diff --git a/TC0001/testspec.csv b/TC0001/testspec.csv index 3c7897c..4e273d3 100644 --- a/TC0001/testspec.csv +++ b/TC0001/testspec.csv @@ -8,17 +8,22 @@ step:2;testrest;3;1,2;fct:json-rest;action:new # ;;;;; # testdate only here specified;expect:row 2 is inserted as precond;;;; _date;01.07.2022;;;; -table:person;_nr;famname;name;birth;sex -testrest:person;1;Brecht;Bert;10.02.1898;m -testrest:person,testcrmdb:person;2;Leon;Donna;28.09.1942;f +table:person;_nr;_sender;famname;name;birth;sex +testrest:person;1;firma;Brecht;Bert;10.02.1898;m +testrest:person,testcrmdb:person;2;firma;Leon;Donna;28.09.1942;f +table:adress;_nr;city;street;zip; +testrest:adress;1;Kiel;Foerdestr. 4;23123; +testrest:adress,testcrmdb:adress;2;Bonn;Bundesallee 16;52321; # testdate only here specified;expect: no row is inserted as precond;;;; _date;02.07.2022;;;; -table:object;_nr;objid;descript;objtype;value -testrest:object;1;;cat;animal;100 -testrest:object;2;;dog;animal;200 +table:object;_nr;_pos;objid;descript;objtype;value +testrest:object;1;4;;cat;animal;100 +testrest:object;1;5;;dog;animal;110 +testrest:object;2;1;;dog;animal;200 # testdate here and in separate csv specified;;;;; # expect: both row is inserted as precond;;;;; _date;03.07.2022;;;; -table:product;_nr;prdid;descript;objtype;factor -testrest:product;1;;first;time; -testrest:product;2;;second;money; +table:product;_nr;_pos;prdid;descript;objtype;factor +testrest:product;1;4;;first;time; +testrest:product;1;5;;first;clime; +testrest:product;2;1;;second;money; diff --git a/UNIT_TEST/rest-message.xml b/UNIT_TEST/rest-message.xml new file mode 100644 index 0000000..725d69b --- /dev/null +++ b/UNIT_TEST/rest-message.xml @@ -0,0 +1,37 @@ + + + + <_id>sender={_data.person._sender(_steps._nr)} + {_catalog.sender.name(sender)} + {_catalog.sender.client-id(sender)} + {_catalog.sender.department(sender)} + + + <_foreach>msgid={_steps._nr} + + {_par.tctime} + + <_id>{msgid} + <_row>{_data.person(msgid)} + {_row.person.name} + {_row.person.famname} + + <_id>{msgid} + <_row>{_data.adress(msgid)} + {_row.adress.street} + {_row.adress.city} + {_row.adress.zip} + + + <_foreach>posid={_data.product._nr,_pos(msgid)} + + <_id>{posid} + <_row>{_data.product(posid)} + {_row.product.descript} + {_row.product.objtype} + + + + + + \ No newline at end of file diff --git a/UNIT_TEST/shiporder-res.yml b/UNIT_TEST/shiporder-res.yml new file mode 100644 index 0000000..3035dda --- /dev/null +++ b/UNIT_TEST/shiporder-res.yml @@ -0,0 +1,19 @@ +shiporder: + '@orderid': '889923' + '@xmlns:xsi': http://www.w3.org/2001/XMLSchema-instance + '@xsi:noNamespaceSchemaLocation': shiporder.xsd + item: + - note: Special Edition + price: '10.90' + quantity: '1' + title: Empire Burlesque + - price: '9.90' + quantity: '1' + title: Hide your heart + orderperson: John Smith + shipto: + address: Langgt 23 + city: 4000 Stavanger + country: Norway + name: Ola Nordmann + diff --git a/UNIT_TEST/shiporder.xml b/UNIT_TEST/shiporder.xml new file mode 100644 index 0000000..cf3052d --- /dev/null +++ b/UNIT_TEST/shiporder.xml @@ -0,0 +1,23 @@ + + + John Smith + + Ola Nordmann +
Langgt 23
+ 4000 Stavanger + Norway +
+ + Empire Burlesque + Special Edition + 1 + 10.90 + + + Hide your heart + 1 + 9.90 + +
diff --git a/UNIT_TEST/shiporder.xsd b/UNIT_TEST/shiporder.xsd new file mode 100644 index 0000000..28c3098 --- /dev/null +++ b/UNIT_TEST/shiporder.xsd @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/catalog/sender.csv b/catalog/sender.csv new file mode 100644 index 0000000..d1d5527 --- /dev/null +++ b/catalog/sender.csv @@ -0,0 +1,4 @@ +table:sender;name;client-id;depart +;firma;223344;main +;filiale;123456;outside +