SquashTA does not execute tests in the same order that SquashTM requested
Publié : lun. août 28, 2017 11:41 am
hello,
With SquashTM 1.14.2 and SquashTA 1.9, I have a strange comportment: SquashTA does not execute the tests in the order requested by SquashTM.
The testsuite.json file SquahTM generates and provides to Jenkins job uses the same order than the one shown in SquashTM user interface.
But SquashTA does not uses this order.
Here infos picked from Jenkins logfile job:
[ul]
[li]testsuite.json file: [code]
{"test": [
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-003"}, "script":"10-Systeme/1-PREQ-ENV-SYST-003.ta", "id":"1374"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-PGSQL-007"}, "script":"11-SGDB/postgreSQL/1-PREQ-ENV-PGSQL-007.ta", "id":"1375"},
{"param":{"TC_REFERENCE":"3-CFMT-PGSQL-005"}, "script":"11-SGDB/postgreSQL/3-CFMT-PGSQL-005.ta", "id":"1376"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-001"}, "script":"10-Systeme/1-PREQ-ENV-SYST-001.ta", "id":"1377"},
{"param":{"TC_REFERENCE":"3-CFMT-PGSQL-006"}, "script":"11-SGDB/postgreSQL/3-CFMT-PGSQL-006.ta", "id":"1378"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-002"}, "script":"10-Systeme/1-PREQ-ENV-SYST-002.ta", "id":"1379"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-ORA-001"}, "script":"11-SGDB/Oracle/1-PREQ-ENV-PGSQL-001.ta", "id":"1380"},
{"param":{"TC_REFERENCE":"3-CFMT-SYST-001"}, "script":"10-Systeme/3-CFMT-SYST-001.ta", "id":"1381"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-005"}, "script":"10-Systeme/1-PREQ-ENV-SYST-005.ta", "id":"1382"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-008"}, "script":"10-Systeme/1-PREQ-ENV-SYST-008.ta", "id":"1383"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-006"}, "script":"10-Systeme/1-PREQ-ENV-SYST-006.ta", "id":"1384"},
{"param":{"TC_REFERENCE":"3-CFMT-SYST-009"}, "script":"10-Systeme/3-CFMT-SYST-009.ta", "id":"1385"},
{"param":{"TC_REFERENCE":"3-CFMT-APA-005"}, "script":"12-Serveur_HTTP/Apache/3-CFMT-APA-005.ta", "id":"1386"}
]}
[/code][/li]
[li] SquashTA uses this order: [code]
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-003.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-001.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-002.ta
[INFO] Beginning execution of test 3-CFMT-SYST-001.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-005.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-008.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-006.ta
[INFO] Beginning execution of test 3-CFMT-SYST-009.ta
[INFO] Beginning execution of test 1-PREQ-ENV-PGSQL-007.ta
[INFO] Beginning execution of test 3-CFMT-PGSQL-005.ta
[INFO] Beginning execution of test 3-CFMT-PGSQL-006.ta
[INFO] Beginning execution of test 1-PREQ-ENV-PGSQL-001.ta
[INFO] Beginning execution of test 3-CFMT-APA-005.ta
[/code] [/li]
[/ul]
With SquashTM 1.14.2 and SquashTA 1.9, I have a strange comportment: SquashTA does not execute the tests in the order requested by SquashTM.
The testsuite.json file SquahTM generates and provides to Jenkins job uses the same order than the one shown in SquashTM user interface.
But SquashTA does not uses this order.
Here infos picked from Jenkins logfile job:
[ul]
[li]testsuite.json file: [code]
{"test": [
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-003"}, "script":"10-Systeme/1-PREQ-ENV-SYST-003.ta", "id":"1374"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-PGSQL-007"}, "script":"11-SGDB/postgreSQL/1-PREQ-ENV-PGSQL-007.ta", "id":"1375"},
{"param":{"TC_REFERENCE":"3-CFMT-PGSQL-005"}, "script":"11-SGDB/postgreSQL/3-CFMT-PGSQL-005.ta", "id":"1376"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-001"}, "script":"10-Systeme/1-PREQ-ENV-SYST-001.ta", "id":"1377"},
{"param":{"TC_REFERENCE":"3-CFMT-PGSQL-006"}, "script":"11-SGDB/postgreSQL/3-CFMT-PGSQL-006.ta", "id":"1378"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-002"}, "script":"10-Systeme/1-PREQ-ENV-SYST-002.ta", "id":"1379"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-ORA-001"}, "script":"11-SGDB/Oracle/1-PREQ-ENV-PGSQL-001.ta", "id":"1380"},
{"param":{"TC_REFERENCE":"3-CFMT-SYST-001"}, "script":"10-Systeme/3-CFMT-SYST-001.ta", "id":"1381"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-005"}, "script":"10-Systeme/1-PREQ-ENV-SYST-005.ta", "id":"1382"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-008"}, "script":"10-Systeme/1-PREQ-ENV-SYST-008.ta", "id":"1383"},
{"param":{"TC_REFERENCE":"1-PREQ-ENV-SYST-006"}, "script":"10-Systeme/1-PREQ-ENV-SYST-006.ta", "id":"1384"},
{"param":{"TC_REFERENCE":"3-CFMT-SYST-009"}, "script":"10-Systeme/3-CFMT-SYST-009.ta", "id":"1385"},
{"param":{"TC_REFERENCE":"3-CFMT-APA-005"}, "script":"12-Serveur_HTTP/Apache/3-CFMT-APA-005.ta", "id":"1386"}
]}
[/code][/li]
[li] SquashTA uses this order: [code]
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-003.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-001.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-002.ta
[INFO] Beginning execution of test 3-CFMT-SYST-001.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-005.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-008.ta
[INFO] Beginning execution of test 1-PREQ-ENV-SYST-006.ta
[INFO] Beginning execution of test 3-CFMT-SYST-009.ta
[INFO] Beginning execution of test 1-PREQ-ENV-PGSQL-007.ta
[INFO] Beginning execution of test 3-CFMT-PGSQL-005.ta
[INFO] Beginning execution of test 3-CFMT-PGSQL-006.ta
[INFO] Beginning execution of test 1-PREQ-ENV-PGSQL-001.ta
[INFO] Beginning execution of test 3-CFMT-APA-005.ta
[/code] [/li]
[/ul]