content.txt 2.48 KB
!1 !-User Story 3: TimeTable - Operations-!

!define path {../test/FitNesseRoot/ReleaseS/SecondPart/ReLease1/SprinT1/UserStory3/}
!define executable {ttOperations }
!2 Description du test
Le but du test est de valider les opérations d'union, d'intersection et d'antiintersection sur une ou plusieurs timetable.

!2 Test

!|script|TestAmdaCommandLine|
|set|${path}|path|



!|script|TestAmdaCommandLine|
|note|!-Exécution de ttOperations pour réaliser une union -!|
|reference|US 3: id 25|id test|
|check|execute|${executable}|command|union --out_dir=${path} --out_type=ASCII ${path}tt_US3_25_1.txt ${path}tt_US3_25_2.txt ${path}tt_US3_25_3.txt |args|0|
|check|diffTimeTable|tt_US3_25_1_u_tt_US3_25_2_u_tt_US3_25_3.txt|TT1|res-tt_US3_25_1_u_tt_US3_25_2_u_tt_US3_25_3.txt|TT2|0|
|reference|US 3: id 26|id test|
|check|execute|${executable}|command|union --out_dir=${path} --out_type=ASCII ${path}tt_US3_26_ini.txt |args|0|
|check|diffTimeTable|tt_US3_26.txt|TT1|res-tt_US3_26.txt|TT2|0|
|reference|US 3: id 27|id test|
|check|execute|${executable}|command|intersect --out_dir=${path} --out_type=ASCII ${path}tt_US3_25_1.txt ${path}tt_US3_25_2.txt ${path}tt_US3_25_3.txt |args|0|
|check|diffTimeTable|tt_US3_25_1_i_tt_US3_25_2_i_tt_US3_25_3.txt|TT1|res-tt_US3_25_1_i_tt_US3_25_2_i_tt_US3_25_3.txt|TT2|0|
|reference|US 3: id 28|id test|
|check|execute|${executable}|command|intersect --out_dir=${path} --out_type=ASCII ${path}tt_US3_28_1.txt ${path}tt_US3_28_2.txt |args|0|
|check|diffTimeTable|tt_US3_28_1_i_tt_US3_28_2.txt|TT1|res-tt_US3_28_1_i_tt_US3_28_2.txt|TT2|0|
|check|calculate|intersect|execution|${path}tt_US3_28_1.txt ${path}tt_US3_28_2.txt|time|<0.1|
|reference|US 3: id 29|id test|
|check|execute|${executable}|command|antiintersect --out_dir=${path} --with_msk --out_type=ASCII ${path}tt_US3_25_1.txt ${path}tt_US3_25_2.txt ${path}tt_US3_25_3.txt |args|0|
|check|diffTimeTable|tt_US3_25_1_ai_tt_US3_25_2_ai_tt_US3_25_3.txt|TT1|res-tt_US3_25_1_ai_tt_US3_25_2_ai_tt_US3_25_3.txt|TT2|0|

!|script|TestAmdaCommandLine|
|set|${path}|path|
|note|!- Suppression des timetables générées -!|
|check|execute|!-rm-!|command| ${path}tt_US3_25_1_u_tt_US3_25_2_u_tt_US3_25_3.txt|args|0|
|check|execute|!-rm-!|command| ${path}tt_US3_25_1_i_tt_US3_25_2_i_tt_US3_25_3.txt|args|0|
|check|execute|!-rm-!|command| ${path}tt_US3_25_1_ai_tt_US3_25_2_ai_tt_US3_25_3.txt|args|0|
|check|execute|!-rm-!|command| ${path}tt_US3_26.txt|args|0|
|check|execute|!-rm-!|command| ${path}tt_US3_28_1_i_tt_US3_28_2.txt|args|0|

-----
!contents -R2 -g -p -f -h