diff --git a/README.md b/README.md index 019ca6e..5d4a010 100644 --- a/README.md +++ b/README.md @@ -75,6 +75,7 @@ if a=="N": ### 生成的遍历路径 生成的 case 目录下各个 casen_path.py +case 目录下 case.csv ## 基本绘图要求 diff --git a/__pycache__/doxmind.cpython-36.pyc b/__pycache__/doxmind.cpython-36.pyc new file mode 100644 index 0000000..e46a4bd Binary files /dev/null and b/__pycache__/doxmind.cpython-36.pyc differ diff --git a/__pycache__/doxml.cpython-36.pyc b/__pycache__/doxml.cpython-36.pyc new file mode 100644 index 0000000..9012608 Binary files /dev/null and b/__pycache__/doxml.cpython-36.pyc differ diff --git a/case/case.csv b/case/case.csv new file mode 100644 index 0000000..03004ef --- /dev/null +++ b/case/case.csv @@ -0,0 +1,5 @@ +1,Receive_Data(),Verify_Data(),a=test(),/ǰ a="Y",b=Transform(a),/ǰ b>1,Load() +2,Receive_Data(),Verify_Data(),a=test(),/ǰ a="Y",b=Transform(a),c=select1(),/ǰ c=5,e=select2(c),/ǰ e>=5,d=select4(c),/ǰ d<=8,runit() +3,Receive_Data(),Verify_Data(),a=test(),/ǰ a="Y",b=Transform(a),c=select1(),/ǰ c=2,d=select3(c),/ǰ d>8,runit() +4,Receive_Data(),Verify_Data(),a=test(),/ǰ a="Y",b=Transform(a),c=select1(),/ǰ c=2,d=select3(c),/ǰ d<=8,runit() +5,Receive_Data(),Verify_Data(),a=test(),/ǰ a="N",Report_Errors() diff --git a/case/case0_path.py b/case/case0_path.py new file mode 100644 index 0000000..b25668c --- /dev/null +++ b/case/case0_path.py @@ -0,0 +1,5 @@ +Receive_Data() +Verify_Data() +a=test() +b=Transform(a) +Load() diff --git a/case/case1_path.py b/case/case1_path.py new file mode 100644 index 0000000..b5ca708 --- /dev/null +++ b/case/case1_path.py @@ -0,0 +1,8 @@ +Receive_Data() +Verify_Data() +a=test() +b=Transform(a) +c=select1() +e=select2(c) +d=select4(c) +runit() diff --git a/case/case2_path.py b/case/case2_path.py new file mode 100644 index 0000000..8e4855a --- /dev/null +++ b/case/case2_path.py @@ -0,0 +1,7 @@ +Receive_Data() +Verify_Data() +a=test() +b=Transform(a) +c=select1() +d=select3(c) +runit() diff --git a/case/case3_path.py b/case/case3_path.py new file mode 100644 index 0000000..8e4855a --- /dev/null +++ b/case/case3_path.py @@ -0,0 +1,7 @@ +Receive_Data() +Verify_Data() +a=test() +b=Transform(a) +c=select1() +d=select3(c) +runit() diff --git a/case/case4_path.py b/case/case4_path.py new file mode 100644 index 0000000..3fb7ff0 --- /dev/null +++ b/case/case4_path.py @@ -0,0 +1,4 @@ +Receive_Data() +Verify_Data() +a=test() +Report_Errors() diff --git a/case/case_code.py b/case/case_code.py new file mode 100644 index 0000000..4d7b512 --- /dev/null +++ b/case/case_code.py @@ -0,0 +1,35 @@ +Receive_Data() + +Verify_Data() + +a=test() + +if a=="Y": + b=Transform(a) + + if b>1: + Load() + + c=select1() + + if c==5: + e=select2(c) + + if e>=5: + d=select4(c) + + if d<=8: + runit() + + if c==2: + d=select3(c) + + if d>8: + runit() + + if d<=8: + runit() + +if a=="N": + Report_Errors() + diff --git a/content.xml b/content.xml new file mode 100644 index 0000000..c336a8e --- /dev/null +++ b/content.xml @@ -0,0 +1 @@ +StartReceive_DataVerify_Data a=test()b=Transform(a)Report_ErrorsLoadStop a="Y" a="N" b>1 c=select1()c=5d=select3(c)runite=select2(c)d=select4(c)c=2e>=5d>8d<=80Example of Workflow<control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="05ot85cp1k053ohrrhtgo2l2p1" end2="76q1ecqiei4u494hnsu4a9cl0i" id="2c5n1fblru4h7d2vberl5ieirr" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080667"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="6690se63nn0agpf9u043icvmc4" end2="4b2jmltt0skuhgqbdfu5l8c02j" id="5dg85o329g2ur9qnao1kuqgbeq" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080672"><title/></relationship><relationship end1="1pq6cvcq69ka37htidt28aaq2c" end2="6g2eenlf2rt8ggrht7702r9380" id="7imalemcmikk5bciesfuo2jr4q" modified-by="gyrx-zhangxf" style-id="7l17voi6tevu785loslf1ietog" timestamp="1526286080686"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"><position svg:x="-1" svg:y="122"/></control-point><control-point amount="0.3" angle="0.2617993877991494" index="1"><position svg:x="187" svg:y="-7"/></control-point></control-points></relationship><relationship end1="76q1ecqiei4u494hnsu4a9cl0i" end2="6690se63nn0agpf9u043icvmc4" id="4138j4j8ol0b9dc6gu6uhqnlle" modified-by="gyrx-zhangxf" style-id="3qt0jscebbr1jq5c20qv9cvqoh" timestamp="1526286080674"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="1b8245dra75mmi6ap7t53sn9vg" end2="3ikogfi858brsn8ansq5q2ds0l" id="2126oblnir80vdrugul9kh53t5" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080662"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="76q1ecqiei4u494hnsu4a9cl0i" end2="1je2u1g9ghg60eu0g41668akej" id="3il4i14qaq74fme33bsdlee4te" modified-by="gyrx-zhangxf" style-id="3qt0jscebbr1jq5c20qv9cvqoh" timestamp="1526286080669"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="1je2u1g9ghg60eu0g41668akej" end2="6k78uamaup9hbadm03ug0665en" id="10avokn6f7089knp80tgldqec0" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080670"><title/></relationship><relationship end1="3ikogfi858brsn8ansq5q2ds0l" end2="05ot85cp1k053ohrrhtgo2l2p1" id="4fi0253fuvd1gshdo9ndgip7oc" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080664"><title/><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="4b2jmltt0skuhgqbdfu5l8c02j" end2="2293p47fvb7tf9uj4irn3m4hdp" id="4s62rljpaem8k3mpb026v4rv07" modified-by="gyrx-zhangxf" style-id="3qt0jscebbr1jq5c20qv9cvqoh" timestamp="1526286080676"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="2293p47fvb7tf9uj4irn3m4hdp" end2="1pq6cvcq69ka37htidt28aaq2c" id="3nvgvjlmu0s9elkedgv9vl9cm7" modified-by="gyrx-zhangxf" style-id="7jph77gg3qgfn4smdn1nhiccem" timestamp="1526286080677"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="4b2jmltt0skuhgqbdfu5l8c02j" end2="0svgpd5rufc11mfjeh2gq1inl3" id="3fmejjqu498o6617a0avtadku4" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958830"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="0svgpd5rufc11mfjeh2gq1inl3" end2="2nlj5tfs12vekrvk54nt5buhoe" id="18gubo356fljaomfig9dv690tr" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508946"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="0svgpd5rufc11mfjeh2gq1inl3" end2="6j5199lve49iqd75gq2f1ivrcn" id="142sn9ufoacarc8frfugknjlhe" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508943"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="6j5199lve49iqd75gq2f1ivrcn" end2="590a3e8ripd189qdq43e2nallk" id="3epji2aj08o9trm3v4k1c0oqa3" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958861"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="590a3e8ripd189qdq43e2nallk" end2="24kul0roj2ectgebf0shqm4b2n" id="2dchqmtk7n7md64at28mjtckpj" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508955"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="2nlj5tfs12vekrvk54nt5buhoe" end2="4s9c796qaih2cs6n50ofpc8tq5" id="2cg2bpg8lme93ekbdav3qf2sjn" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958844"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="590a3e8ripd189qdq43e2nallk" end2="4a1sc7pkm2c0nip2nes7g5fpkr" id="1taed6kec5ivi1av71frjroi6o" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508952"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="4s9c796qaih2cs6n50ofpc8tq5" end2="4lku2ua912cmitnuve2i9gcmqt" id="33nod5gugpbd7hha4uamm99qbv" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508949"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="4lku2ua912cmitnuve2i9gcmqt" end2="0mcqrff5v3rrda7uu9upr09eov" id="75v6m62ud0h96fql57qmne5pp9" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526439496976"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="0mcqrff5v3rrda7uu9upr09eov" end2="4a1sc7pkm2c0nip2nes7g5fpkr" id="7qk43akumkc102bk7ivgsrv04r" modified-by="gyrx-zhangxf" style-id="0a1dtl1l0hclhrros725mmrbke" timestamp="1526439508958"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="24kul0roj2ectgebf0shqm4b2n" end2="1qa2ud181hefi0eq7e4u7p2e63" id="0sqd89c0kbftd350eqknduuiq6" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958870"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="4a1sc7pkm2c0nip2nes7g5fpkr" end2="1qa2ud181hefi0eq7e4u7p2e63" id="04n846vlo4tmb09umk91gregcl" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958872"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship><relationship end1="1qa2ud181hefi0eq7e4u7p2e63" end2="6g2eenlf2rt8ggrht7702r9380" id="5a4ci3lvht0ksro1glsfbqbl66" modified-by="gyrx-zhangxf" style-id="68n0bhepgradtgvimna6nbi3l7" timestamp="1526437958876"><control-points><control-point amount="0.3" angle="0.2617993877991494" index="0"/><control-point amount="0.3" angle="0.2617993877991494" index="1"/></control-points></relationship></relationships></sheet></xmap-content> \ No newline at end of file diff --git a/fina.xml b/fina.xml new file mode 100644 index 0000000..69a2ba4 --- /dev/null +++ b/fina.xml @@ -0,0 +1 @@ +<node_1b8245dra75mmi6ap7t53sn9vg id="1b8245dra75mmi6ap7t53sn9vg" type="start">Start<node_3ikogfi858brsn8ansq5q2ds0l id="3ikogfi858brsn8ansq5q2ds0l" type="sub">Receive_Data<node_05ot85cp1k053ohrrhtgo2l2p1 id="05ot85cp1k053ohrrhtgo2l2p1" type="sub">Verify_Data<node_76q1ecqiei4u494hnsu4a9cl0i id="76q1ecqiei4u494hnsu4a9cl0i" type="func">a=test()<node_6690se63nn0agpf9u043icvmc4 id="6690se63nn0agpf9u043icvmc4" type="select">a="Y"<node_4b2jmltt0skuhgqbdfu5l8c02j id="4b2jmltt0skuhgqbdfu5l8c02j" type="func">b=Transform(a)<node_2293p47fvb7tf9uj4irn3m4hdp id="2293p47fvb7tf9uj4irn3m4hdp" type="select">b>1<node_1pq6cvcq69ka37htidt28aaq2c id="1pq6cvcq69ka37htidt28aaq2c" type="sub">Load<node_6g2eenlf2rt8ggrht7702r9380 id="6g2eenlf2rt8ggrht7702r9380" type="end">Stop</node_6g2eenlf2rt8ggrht7702r9380></node_1pq6cvcq69ka37htidt28aaq2c></node_2293p47fvb7tf9uj4irn3m4hdp><node_0svgpd5rufc11mfjeh2gq1inl3 id="0svgpd5rufc11mfjeh2gq1inl3" type="func">c=select1()<node_2nlj5tfs12vekrvk54nt5buhoe id="2nlj5tfs12vekrvk54nt5buhoe" type="select">c=5<node_4s9c796qaih2cs6n50ofpc8tq5 id="4s9c796qaih2cs6n50ofpc8tq5" type="func">e=select2(c)<node_4lku2ua912cmitnuve2i9gcmqt id="4lku2ua912cmitnuve2i9gcmqt" type="select">e>=5<node_0mcqrff5v3rrda7uu9upr09eov id="0mcqrff5v3rrda7uu9upr09eov" type="func">d=select4(c)<node_4a1sc7pkm2c0nip2nes7g5fpkr id="4a1sc7pkm2c0nip2nes7g5fpkr" type="select">d<=8<node_1qa2ud181hefi0eq7e4u7p2e63 id="1qa2ud181hefi0eq7e4u7p2e63" type="sub">runit<node_6g2eenlf2rt8ggrht7702r9380 id="6g2eenlf2rt8ggrht7702r9380" type="end">Stop</node_6g2eenlf2rt8ggrht7702r9380></node_1qa2ud181hefi0eq7e4u7p2e63></node_4a1sc7pkm2c0nip2nes7g5fpkr></node_0mcqrff5v3rrda7uu9upr09eov></node_4lku2ua912cmitnuve2i9gcmqt></node_4s9c796qaih2cs6n50ofpc8tq5></node_2nlj5tfs12vekrvk54nt5buhoe><node_6j5199lve49iqd75gq2f1ivrcn id="6j5199lve49iqd75gq2f1ivrcn" type="select">c=2<node_590a3e8ripd189qdq43e2nallk id="590a3e8ripd189qdq43e2nallk" type="func">d=select3(c)<node_24kul0roj2ectgebf0shqm4b2n id="24kul0roj2ectgebf0shqm4b2n" type="select">d>8<node_1qa2ud181hefi0eq7e4u7p2e63 id="1qa2ud181hefi0eq7e4u7p2e63" type="sub">runit<node_6g2eenlf2rt8ggrht7702r9380 id="6g2eenlf2rt8ggrht7702r9380" type="end">Stop</node_6g2eenlf2rt8ggrht7702r9380></node_1qa2ud181hefi0eq7e4u7p2e63></node_24kul0roj2ectgebf0shqm4b2n><node_4a1sc7pkm2c0nip2nes7g5fpkr id="4a1sc7pkm2c0nip2nes7g5fpkr" type="select">d<=8<node_1qa2ud181hefi0eq7e4u7p2e63 id="1qa2ud181hefi0eq7e4u7p2e63" type="sub">runit<node_6g2eenlf2rt8ggrht7702r9380 id="6g2eenlf2rt8ggrht7702r9380" type="end">Stop</node_6g2eenlf2rt8ggrht7702r9380></node_1qa2ud181hefi0eq7e4u7p2e63></node_4a1sc7pkm2c0nip2nes7g5fpkr></node_590a3e8ripd189qdq43e2nallk></node_6j5199lve49iqd75gq2f1ivrcn></node_0svgpd5rufc11mfjeh2gq1inl3></node_4b2jmltt0skuhgqbdfu5l8c02j></node_6690se63nn0agpf9u043icvmc4><node_1je2u1g9ghg60eu0g41668akej id="1je2u1g9ghg60eu0g41668akej" type="select">a="N"<node_6k78uamaup9hbadm03ug0665en id="6k78uamaup9hbadm03ug0665en" type="sub">Report_Errors<node_6g2eenlf2rt8ggrht7702r9380 id="6g2eenlf2rt8ggrht7702r9380" type="end">Stop</node_6g2eenlf2rt8ggrht7702r9380></node_6k78uamaup9hbadm03ug0665en></node_1je2u1g9ghg60eu0g41668akej></node_76q1ecqiei4u494hnsu4a9cl0i></node_05ot85cp1k053ohrrhtgo2l2p1></node_3ikogfi858brsn8ansq5q2ds0l></node_1b8245dra75mmi6ap7t53sn9vg> diff --git a/null.xml b/null.xml new file mode 100644 index 0000000..8fb1b24 --- /dev/null +++ b/null.xml @@ -0,0 +1 @@ +<node_1b8245dra75mmi6ap7t53sn9vg></node_1b8245dra75mmi6ap7t53sn9vg> \ No newline at end of file diff --git a/styles.xml b/styles.xml new file mode 100644 index 0000000..f6473dd --- /dev/null +++ b/styles.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?><xmap-styles xmlns="urn:xmind:xmap:xmlns:style:2.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" version="2.0"><automatic-styles><style id="42vbvrn49g1k8308v87cq190m5" name="" type="topic"><topic-properties border-line-color="#558ED5" border-line-width="3pt" fo:font-family="Open Sans" line-class="org.xmind.branchConnection.roundedElbow" line-color="#558ED5" line-width="1pt"/></style><style id="0ufrfdl0g3gn1j1n77b13ilgbe" name="" type="summary"><summary-properties line-color="#C3D69B" line-width="5pt" shape-class="org.xmind.summaryShape.square"/></style><style id="2jrv70isdb89rgv524qdbs1nca" name="" type="boundary"><boundary-properties fo:color="#FFFFFF" fo:font-family="Georgia" fo:font-size="10pt" fo:font-style="italic" line-color="#77933C" line-pattern="dot" line-width="3pt" shape-class="org.xmind.boundaryShape.roundedRect" svg:fill="#C3D69B" svg:opacity=".2"/></style><style id="7obidu6ul7rvk27qivdic9bvo8" name="" type="topic"><topic-properties border-line-color="#F1BD51" border-line-width="2pt" fo:font-family="Open Sans" svg:fill="#FBF09C"/></style><style id="7r4ret73f7h0q36kvv2lgv0ppt" name="" type="topic"><topic-properties border-line-color="#558ED5" border-line-width="5pt" fo:color="#376092" fo:font-family="Open Sans" line-class="org.xmind.branchConnection.curve" line-color="#558ED5" line-width="1pt" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#DCE6F2"/></style><style id="56dt76ao9u4f65tlh1i12u6lvn" name="" type="topic"><topic-properties border-line-color="#558ED5" border-line-width="2pt" fo:color="#17375E" fo:font-family="Open Sans" line-class="org.xmind.branchConnection.curve" line-color="#558ED5" line-width="1pt" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#DCE6F2"/></style><style id="13planra3uu1k3md3ql1hkurck" name="" type="topic"><topic-properties border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Georgia" fo:font-size="10pt" fo:font-style="italic" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#77933C"/></style><style id="22lsjih1dn9i743n217juje7a0" name="" type="topic"><topic-properties border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Open Sans" fo:font-weight="bold" line-color="#558ED5" svg:fill="#558ED5"/></style><style id="3otlhemei4jr0mil3r953jmhtp" name="" type="relationship"><relationship-properties arrow-end-class="org.xmind.arrowShape.triangle" fo:color="#595959" fo:font-family="Georgia" fo:font-size="10pt" fo:font-style="italic" fo:font-weight="normal" fo:text-decoration="none" line-color="#77933C" line-pattern="dash" line-width="3pt"/></style><style id="1am7cpu9l31ar13to0om0k8hrr" name="" type="map"><map-properties color-gradient="none" line-tapered="none" multi-line-colors="none" svg:fill="#FFFFFF"/></style></automatic-styles><master-styles><style id="5vo53bb8h9d698ia10uktmkv9a" name="" type="theme"><theme-properties><default-style style-family="subTopic" style-id="42vbvrn49g1k8308v87cq190m5"/><default-style style-family="summary" style-id="0ufrfdl0g3gn1j1n77b13ilgbe"/><default-style style-family="boundary" style-id="2jrv70isdb89rgv524qdbs1nca"/><default-style style-family="calloutTopic" style-id="7obidu6ul7rvk27qivdic9bvo8"/><default-style style-family="centralTopic" style-id="7r4ret73f7h0q36kvv2lgv0ppt"/><default-style style-family="mainTopic" style-id="56dt76ao9u4f65tlh1i12u6lvn"/><default-style style-family="summaryTopic" style-id="13planra3uu1k3md3ql1hkurck"/><default-style style-family="floatingTopic" style-id="22lsjih1dn9i743n217juje7a0"/><default-style style-family="relationship" style-id="3otlhemei4jr0mil3r953jmhtp"/><default-style style-family="map" style-id="1am7cpu9l31ar13to0om0k8hrr"/></theme-properties></style></master-styles><styles><style id="43df7kpu6s5g47cuk70cjj9q74" name="" type="topic"><topic-properties border-line-color="#2096F3" fo:color="#757575" fo:font-family="Roboto" fo:font-size="16pt" shape-class="org.xmind.topicShape.circle" svg:fill="none"/></style><style id="5k16j8v986dvmvoehaglcum0fm" name="" type="topic"><topic-properties border-line-color="#9E9E9E" border-line-width="4pt" fo:color="#757575" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="none"/></style><style id="51n802q0f07baj60our2q611io" name="" type="topic"><topic-properties fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.diamond" svg:fill="#616161"/></style><style id="49p2n4ksg4jpg6mak09u5kfosg" name="" type="topic"><topic-properties border-line-color="#43A047" border-line-width="4pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#43A047"/></style><style id="006cmllp3jmgqskhmo1kaucmhb" name="" type="topic"><topic-properties border-line-color="#FF0303" border-line-width="4pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#FF0303"/></style><style id="7lm0tuf58a0e1g7rub3lk6ijck" name="" type="topic"><topic-properties border-line-color="#009688" border-line-width="3pt" fo:font-family="Roboto" shape-class="org.xmind.topicShape.circle" svg:fill="#009688"/></style><style id="486dl7l5beim1aorml7jl8i1s1" name="" type="topic"><topic-properties fo:font-family="Roboto" fo:font-size="8pt" shape-class="org.xmind.topicShape.circle" svg:fill="#43A047"/></style><style id="1jet72lf56lkqjkvh2gs51255a" name="" type="topic"><topic-properties fo:font-family="Roboto" fo:font-size="8pt" shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="3vmea50k9uqi15matdaf9vb81u" name="" type="relationship"><relationship-properties line-color="#9E9E9E" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="39rnoprcc9t1j7b441lrkvp4dt" name="" type="relationship"><relationship-properties line-color="#43A047" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="78i3j7eke43t3bmi2khknc2mle" name="" type="relationship"><relationship-properties line-color="#9E9E9E" line-pattern="solid" shape-class="org.xmind.relationshipShape.zigzag"/></style><style id="6ds6klu2ghqqg2po0j7g4t9hua" name="" type="relationship"><relationship-properties arrow-end-class="org.xmind.arrowShape.none" line-color="#9E9E9E" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="3m4lj8ns2jikov2ihefh8a22gt" name="" type="relationship"><relationship-properties line-color="#FF0303" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="3qb1doloc62cnfn3nq6fitsp47" type="relationship"><relationship-properties shape-class="org.xmind.relationshipShape.straight"/></style><style id="2p179ih2vh4s67jjetc9gv38nv" type="relationship"><relationship-properties shape-class="org.xmind.relationshipShape.zigzag"/></style><style id="68n0bhepgradtgvimna6nbi3l7" type="relationship"><relationship-properties line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="1s7e661oh0dv98j8l47ao0hu59" type="relationship"><relationship-properties line-pattern="solid" shape-class="org.xmind.relationshipShape.zigzag"/></style><style id="2u2n8n41g6r67iv9odptvmf8v1" type="topic"><topic-properties fo:font-size="8pt" shape-class="org.xmind.topicShape.circle"/></style><style id="4et9vgcon07n8ss4q28cb9p2rb" name="" type="topic"><topic-properties fo:font-size="8pt" shape-class="org.xmind.topicShape.circle"/></style><style id="5p7ktrpm79oqaic7c0ogrvmq7c" type="topic"><topic-properties fo:font-size="8pt" shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="5p9iumto8fje0m9jbbmqvulvkq" type="relationship"><relationship-properties arrow-end-class="org.xmind.arrowShape.none" line-color="#FF0303" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="4bamo5pefklsj07s9n6te9qlq7" type="relationship"><relationship-properties line-color="#FF0303" line-pattern="solid" shape-class="org.xmind.relationshipShape.zigzag"/></style><style id="0f7ob53uua0o1hd87esb16pub8" type="topic"><topic-properties fo:font-size="8pt" shape-class="org.xmind.topicShape.circle" svg:fill="#77933C"/></style><style id="29dk8lv4o41r7o9j6nfjrdb6v0" type="topic"><topic-properties fo:font-family="Roboto" fo:font-size="8pt" shape-class="org.xmind.topicShape.circle" svg:fill="#77933C"/></style><style id="12epf6nvf8d8iqujrqa9fdl9r1" type="topic"><topic-properties svg:fill="#8EB4E3"/></style><style id="02lr15ab9f1cb8faar42cvmp17" type="topic"><topic-properties border-line-color="#43A047" border-line-width="4pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#8EB4E3"/></style><style id="4frle8ucp4r383k87hp2pinij0" type="topic"><topic-properties border-line-color="#9E9E9E" border-line-width="4pt" fo:color="#757575" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#8EB4E3"/></style><style id="160t27rsskaj43js9nqdgcr1e6" type="topic"><topic-properties border-line-color="#FF0303" border-line-width="4pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#8EB4E3"/></style><style id="2c93n64ot1um385k8mui82nobj" type="topic"><topic-properties fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.diamond" svg:fill="#8EB4E3"/></style><style id="2isi6p9e2l5pm4h1uihlb7bum6" type="topic"><topic-properties border-line-color="#030303" border-line-width="3pt" fo:color="#030303" fo:font-family="Microsoft YaHei" fo:text-transform="lowercase" line-class="org.xmind.branchConnection.curve" line-color="#030303" line-width="5pt" svg:fill="#FFFFFF"/></style><style id="1ft5dsfjva60l3gc2fcnk1snpg" type="topic"><topic-properties shape-class="org.xmind.topicShape.rect"/></style><style id="3lr13a80bf0flju5q7pp3ec3iv" type="topic"><topic-properties shape-class="org.xmind.topicShape.roundedRect"/></style><style id="2v73ds120m4vmqhh3a8jtjcgqs" type="topic"><topic-properties border-line-color="#43A047" border-line-width="4pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.diamond" svg:fill="#8EB4E3"/></style><style id="6lmjm92mgl6h9tmq0k54kn3shn" type="topic"><topic-properties fo:font-family="Roboto" fo:font-size="10pt" shape-class="org.xmind.topicShape.circle" svg:fill="#77933C"/></style><style id="1n1m6rr1a6prkmnksu4n5b1upk" type="topic"><topic-properties fo:font-family="Roboto" fo:font-size="10pt" shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="6k7vsj4sfhgqr9stt1hk5hqhpc" type="topic"><topic-properties border-line-color="#43A047" border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.diamond" svg:fill="#4F81BD"/></style><style id="2062l834626nbo2o99imfo5s12" type="topic"><topic-properties border-line-color="#FF0303" border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#4F81BD"/></style><style id="4okjs0ocjohcgvd5g4l2l19k84" type="topic"><topic-properties border-line-color="#9E9E9E" border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#4F81BD"/></style><style id="30llr44a2qolk1srajpci9g7ql" type="topic"><topic-properties border-line-width="0pt" fo:color="#FFFFFF" fo:font-family="Roboto" fo:font-weight="normal" shape-class="org.xmind.topicShape.diamond" svg:fill="#4F81BD"/></style><style id="2mmabmlpmbsaoomiamt2gthjfs" type="topic"><topic-properties border-line-width="0pt" fo:color="#FFFFFF" shape-class="org.xmind.topicShape.roundedRect" svg:fill="#4F81BD"/></style><style id="2ij2b7qg54jvjrg4arvgec24h1" type="topic"><topic-properties border-line-width="0pt" fo:color="#FFFFFF" svg:fill="#4F81BD"/></style><style id="7jph77gg3qgfn4smdn1nhiccem" type="relationship"><relationship-properties line-color="#9BBB59" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="3qt0jscebbr1jq5c20qv9cvqoh" type="relationship"><relationship-properties arrow-end-class="org.xmind.arrowShape.none" line-color="#9BBB59" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style><style id="7l17voi6tevu785loslf1ietog" type="relationship"><relationship-properties line-color="#9BBB59" line-pattern="solid" shape-class="org.xmind.relationshipShape.zigzag"/></style><style id="3qs1hhg72mq5na8q8tmrdh4pdm" type="topic"><topic-properties shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="402e0kg5jmvnrvjr9bb3bri554" type="topic"><topic-properties fo:font-size="12pt" shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="6oh4run13cufdgc2nb9mu98pmb" type="topic"><topic-properties shape-class="org.xmind.topicShape.diamond"/></style><style id="4sshmvgf17bc35gtmq0lisne4t" type="topic"><topic-properties fo:font-size="11pt" shape-class="org.xmind.topicShape.circle" svg:fill="#FF0303"/></style><style id="6k5edntt2vevs3ec597g08en52" type="relationship"><relationship-properties line-pattern="solid"/></style><style id="0a1dtl1l0hclhrros725mmrbke" type="relationship"><relationship-properties arrow-end-class="org.xmind.arrowShape.none" line-pattern="solid" shape-class="org.xmind.relationshipShape.straight"/></style></styles></xmap-styles> \ No newline at end of file diff --git a/xmind2case.py b/xmind2case.py index c62569a..633fd08 100644 --- a/xmind2case.py +++ b/xmind2case.py @@ -255,7 +255,7 @@ def pathlist2_scipts(pathlist): casetitle="case" - ##### 生成 按照路径拆分逻辑脚本 ------ 这段暂时意义不大 + ##### 生成 按照路径拆分逻辑脚本 ----- 一般用不到 """ @@ -305,18 +305,20 @@ def pathlist2_scipts(pathlist): f.writelines(script) f.close() + """ + ###### 生成 完全遍历的各个脚本 及手工测试用例, 前者可用于自动化遍历,后者可用于手工遍历 - ###### 生成 完全遍历的脚本 - + csv="" for i in range(len(pathlist)): filepath=casepath+"/" + casetitle + str(i) + "_path.py" - script="" + csv=csv + str(i+1) + for ii in range(len(pathlist[i])): cmd_name=pathlist[i][ii][0] @@ -327,6 +329,7 @@ def pathlist2_scipts(pathlist): if cmd_name[-1:]!=")": cmd_name=cmd_name+"()" script=script +cmd_name + "\n" + csv=csv + "," + cmd_name ## 函数 @@ -334,19 +337,31 @@ def pathlist2_scipts(pathlist): if cmd_name[-1:]!=")": cmd_name=cmd_name+"()" script=script + cmd_name + "\n" - + csv=csv + "," + cmd_name + ## 判断 if cmd_type=="select": + csv=csv + "," + "如果/前置 " + cmd_name pass - + ## 路径脚本 f=open(filepath,"w") f.writelines(script) - f.close() + f.close() + + csv=csv + "\n" + + + ## CSV 手工用例 + csvpath=casepath+"/" + casetitle + ".csv" + + f=open(csvpath,"w") + f.writelines(csv) + f.close() -##### 全逻辑脚本, 利用 xml 文件结构和特征 +##### 全逻辑脚本, 利用 xml 文件结构和特征 可用于可视化编程 def xml2_script():