Browse Source

init

master
Ulrich Carmesin 2 years ago
commit
eee15c1de3
  1. 1
      TC0001/env-post-exec/testcm02/t_object.csv
  2. 1
      TC0001/env-post-exec/testcm02/t_police.csv
  3. 1
      TC0001/env-post-exec/testcm02/t_product.csv
  4. 1
      TC0001/env-post-exec/testcrm01/t_adress.csv
  5. 2
      TC0001/env-post-exec/testcrm01/t_person.csv
  6. 3
      TC0001/env-post-exec/testprd01/t_product.csv
  7. 1
      TC0001/env-pre-exec/testcrmdb/t_adress.csv
  8. 2
      TC0001/env-pre-exec/testcrmdb/t_person.csv
  9. 1
      TC0001/env-pre-exec/testpoldb/t_object.csv
  10. 1
      TC0001/env-pre-exec/testpoldb/t_police.csv
  11. 1
      TC0001/env-pre-exec/testpoldb/t_product.csv
  12. 3
      TC0001/env-pre-exec/testprddb/t_product.csv
  13. 5
      TC0001/table_product.csv
  14. 99
      TC0001/testdata.yml
  15. 24
      TC0001/testspec.csv
  16. 24
      TC0002/testspec.csv
  17. 53
      TC0002/testspec.yml
  18. 1
      TST001/.~lock.testspec.csv#
  19. 13
      TST001/testspec.csv
  20. 25
      catalog/countries.csv
  21. 1
      encoded_iso8859.txt
  22. 1
      encoded_utf8.txt
  23. 1
      encoded_win1250.txt

1
TC0001/env-post-exec/testcm02/t_object.csv

@ -0,0 +1 @@
objid;descript;objtype;value

1
TC0001/env-post-exec/testcm02/t_police.csv

@ -0,0 +1 @@
polid;polnr;polvers;persid;objid;amount;bonus;begindate;enddate

1
TC0001/env-post-exec/testcm02/t_product.csv

@ -0,0 +1 @@
prdid;descript;objtype;factor

1
TC0001/env-post-exec/testcrm01/t_adress.csv

@ -0,0 +1 @@
adrid;persid;street;city;zip;state;sqft

2
TC0001/env-post-exec/testcrm01/t_person.csv

@ -0,0 +1,2 @@
table:person;persid;famname;name;birth;sex

3
TC0001/env-post-exec/testprd01/t_product.csv

@ -0,0 +1,3 @@
table:product;prdid;descript;objtype;factor
testprddb:product;4;first;time;1.234
testprddb:product;5;second;money;2.234

1
TC0001/env-pre-exec/testcrmdb/t_adress.csv

@ -0,0 +1 @@
adrid;persid;street;city;zip;state;sqft

2
TC0001/env-pre-exec/testcrmdb/t_person.csv

@ -0,0 +1,2 @@
table:person;persid;famname;name;birth;sex

1
TC0001/env-pre-exec/testpoldb/t_object.csv

@ -0,0 +1 @@
objid;descript;objtype;value

1
TC0001/env-pre-exec/testpoldb/t_police.csv

@ -0,0 +1 @@
polid;polnr;polvers;persid;objid;amount;bonus;begindate;enddate

1
TC0001/env-pre-exec/testpoldb/t_product.csv

@ -0,0 +1 @@
prdid;descript;objtype;factor

3
TC0001/env-pre-exec/testprddb/t_product.csv

@ -0,0 +1,3 @@
table:product;prdid;descript;objtype;factor
testprddb:product;4;first;time;1.234
testprddb:product;5;second;money;2.234

5
TC0001/table_product.csv

@ -0,0 +1,5 @@
_date;29.06.2022;;
_count;2;;
table:product;prdid;descript;objtype;factor
testprddb:product;4;first;time;1.234
testprddb:product;5;second;money;2.234

99
TC0001/testdata.yml

@ -0,0 +1,99 @@
_option:
_input: testa
description: create 2 new contracts||||||
_steps:
- !!python/object:basic.step.Step
args:
action: new
fct: xml-rest
comp: testrest
execStep: '2'
fct: xml-rest
refLine: '1'
- !!python/object:basic.step.Step
args:
action: new
fct: json-rest
comp: testrest
execStep: '3'
fct: json-rest
refLine: 1,2
_tables:
object:
_comp:
testrest: object
_data:
- _comp:
testrest: object
_nr: '1'
descript: cat
objid: ''
objtype: animal
value: '100'
- _comp:
testrest: object
_nr: '2'
descript: dog
objid: ''
objtype: animal
value: '200'
_date: 02.07.2022
_header:
- _nr
- objid
- descript
- objtype
- value
_hit: false
person:
_comp:
testcrmdb: person
testrest: person
_data:
- _comp:
testrest: person
_nr: '1'
birth: 10.02.1898
famname: Brecht
name: Bert
sex: m
- _comp:
testcrmdb: person
testrest: person
_nr: '2'
birth: 28.09.1942
famname: Leon
name: Donna
sex: f
_date: 01.07.2022
_header:
- _nr
- famname
- name
- birth
- sex
_hit: false
product:
_comp:
testprddb: product
_count: '2'
_data:
- _comp:
testprddb: product
descript: first
factor: '1.234'
objtype: time
prdid: '4'
- _comp:
testprddb: product
descript: second
factor: '2.234'
objtype: money
prdid: '5'
_date: 29.06.2022
_header:
- prdid
- descript
- objtype
- factor
_hit: false

24
TC0001/testspec.csv

@ -0,0 +1,24 @@
# A: keywords to control;B: value ;;;;
option:description;create 2 new contracts;;;;
option:_input;testa;;# _ defines a keyword=variable in the spec: ;;
# ;;;;;
# ;component;exec;_nr;action;args
step:1;testrest;2;1;fct:xml-rest;action:new
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
# 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
# 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;

24
TC0002/testspec.csv

@ -0,0 +1,24 @@
# A: keywords to control;B: value ;;;;
option:description:0;create 2 new contracts;;;;
option:_input;testa;;# _ defines a keyword=variable in the spec: ;;
# ;;;;;
# ;component;exec;_nr;action;args
step:1;testrest;2;1;fct:xml-rest;action:new
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
# 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
# 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;

53
TC0002/testspec.yml

@ -0,0 +1,53 @@
# A: keywords to control;B: value ;;;;
_head:
application:
- TESTAPP
depricated: N
_option:
description:
- "create 2 new contracts"
reference:
- US01704
# ;component;exec;_nr;action;args
_step:
- _id: 1
_comp: testrest
_exec: 2
_ref: 1
_args:
- fct: xml-rest
- action: new
- _id: 2
_comp: testrest
_exec: 3
_ref: 1,2
_args:
- fct: json-res
- action: new
_date: 01.07.2022
_table: person
- comp: testrest:person
_nr: 1
famname: Brecht
name: Bert
birth: 10.02.1898
sex: m
- comp:
- testrest:person
- testcrmdb:person;
_nr: 2
famname: Leon
name: Donna
birth: 28.09.1942
sex: f
# 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
# 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;

1
TST001/.~lock.testspec.csv#

@ -0,0 +1 @@
,ulrich,hp-ulrich,18.07.2022 19:34,file:///home/ulrich/.config/libreoffice/4;

13
TST001/testspec.csv

@ -0,0 +1,13 @@
# A: keywords to control;B: value ;;;;;;;;;;;
option:description;something;;;;;;;;;;;
option:testcases;TC0001,TC0002,TC0003;;# _ defines a keyword=variable in the spec: ;;;;;;;;;
# ;;;;;;;;;;;;
# ;# component;# action;# args;;;;;;;;;
step:1;TST001;1;start:init_testsuite;;;;
step:2;testcases;2;start:init_testcase;;;;;;;;;
step:3;testcases;3;start:execute_testcase;;;;;;;;;
step:4;testcases;4;start:collect_testcase;;;;;;;;;
step:5;testcases;5;start:compare_testcase;;;;;;;;;
step:6;TST001;6;report:testcases;;;;;;;;;
# ;;;;;;;;;;;;

25
catalog/countries.csv

@ -0,0 +1,25 @@
_key;ALPHA-2 ;;;;;;;;
_ids;Land ;ALPHA-3 ;numerisch ;TLD ;;;;;
_ref;aktuell;;;;;;;;
table:countries;Land ;ALPHA-2 ;ALPHA-3 ;numerisch ;TLD ;IOC ;ISO 3166-2 ;UN;aktuell
;Dänemark ;DK ;DNK ;208;.dk ;DEN ;DK ;DK;DK
;Deutsche Demokratische Republik (historisch) ;DD ;DDR ;278;.dd ;GDR ;DD ;DD;DE
;Deutschland ;DE ;DEU ;276;.de ;GER ;DE ;DE;DE
;Dominica ;DM ;DMA ;212;.dm ;DMA ;DM ;DM;DM
;Dominikanische Republik ;DO ;DOM ;214;.do ;DOM ;DO ;DO;DO
;Dschibuti ;DJ ;DJI ;262;.dj ;DJI ;DJ ;DJ ;DJ
;Ecuador ;EC ;ECU ;218;.ec ;ECU ;EC ;EC;EC
;Elfenbeinküste (Côte d’Ivoire) ;CI ;CIV ;384;.ci ;CIV ;CI ;CI;CI
;El Salvador ;SV ;SLV ;222;.sv ;ESA ;SV ;SV;SV
;Eritrea ;ER ;ERI ;232;.er ;ERI ;ER ;ER;ER
;Estland ;EE ;EST ;233;.ee ;EST ;EE ;EE;EE
;Singapur ;SG ;SGP ;702;.sg ;SGP ;SG ;SG;SG
;Sint Maarten ;SX ;SXM ;534;;;SX ;SX;SX
;Slowakei ;SK ;SVK ;703;.sk ;SVK ;SK ;SK;SK
;Slowenien ;SI ;SVN ;705;.si ;SLO ;SI ;SI;SI
;Somalia ;SO ;SOM ;706;.so ;SOM ;SO ;SO;SO
;Sowjetunion (UdSSR, historisch) ;SU ;SUN ;810;.su ;URS ;;;SU
;Spanien ;ES ;ESP ;724;.es ;ESP ;ES ;ES;ES
;Tschad ;TD ;TCD ;148;.td ;CHA ;TD ;TD;TD
;Tschechien ;CZ ;CZE ;203;.cz ;CZE ;CZ ;CZ;CZ
;Tschechoslowakei (historisch) ;CS ;CSK ;200;.cs ;TCH ;CS ;;CZ,SK

1
encoded_iso8859.txt

@ -0,0 +1 @@
öfter

1
encoded_utf8.txt

@ -0,0 +1 @@
öfter

1
encoded_win1250.txt

@ -0,0 +1 @@
öfter
Loading…
Cancel
Save