content.txt 7.03 KB
!1 !-User Story 31: Post-traitement sur des requêtes de DataMining -!

!define path {../test/FitNesseRoot/ReleaseS/SecondPart/ReLease1/SprinT2/UserStory31/}
!define executable {amdaXMLRequestorTool }
!2 Description du test
!-Le but du test est de valider l'application d'un post-traitement ou d'une chaine de post-traitements sur le résultat d'une requête de Download -!

!2 Test

!|script|ConnectToDDServer|
|check|login|1|

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

!|script|TestAmdaCommandLine|
|set|${path}|path|
|note|!- Suppression des éventuelles archives précédentes générées -!|
|check|execute|!-rm-!|command|-f *.zip|args|0|
|check|execute|!-rm-!|command|-f *.gz|args|0|
|check|execute|!-rm-!|command|-f *.tar|args|0|


!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + zip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}download_US31_1.xml|args|0|
|note|!- (2) Vérification de la création d'un zip -!|
|check|execute|!-test `ls *.zip | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-unzip -!|command| *.zip |args|0|
|check|execute|!-ls -!|command| output-density_2008000000000000.txt |args|0|
|check|execute|!-rm-!|command| output-density_2008000000000000.txt |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + tar-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}download_US31_2.xml|args|0|
|note|!- (2) Vérification de la création d'un tar -!|
|check|execute|!-test `ls *.tar | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-tar xvf -!|command| *.tar |args|0|
|check|execute|!-ls -!|command| output-density_2008000000000000.txt |args|0|
|check|execute|!-rm-!|command| output-density_2008000000000000.txt |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + gzip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}download_US31_3.xml|args|0|
|note|!- (2) Vérification de la création d'un fichier compressée .gz -!|
|check|execute|!-test `ls *.gz | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-gzip -df -!|command| *.gz |args|0|
|check|execute|!-ls -!|command| output-density_2008000000000000.txt |args|0|
|check|execute|!-rm-!|command| output-density_2008000000000000.txt |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + tar + gzip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}download_US31_4.xml|args|0|
|note|!- (2) Vérification de la création d'une archive compressée tar.gz -!|
|check|execute|!-test `ls *.tar.gz | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-tar xzvf -!|command| *.tar.gz |args|0|
|check|execute|!-ls -!|command| output-density_2008000000000000.txt |args|0|
|check|execute|!-rm-!|command| output-density_2008000000000000.txt |args|0|

!|script|TestAmdaCommandLine|
|set|${path}|path|
|note|!- Suppression des archives créées -!|
|check|execute|!- rm  -!|command| *.zip |args|0|
|check|execute|!- rm  -!|command| *.gz |args|0|
|check|execute|!- rm  -!|command| *.tar |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + zip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}datamining_US31_zip.xml|args|0|
|note|!- (2) Vérification de la création d'un zip -!|
|check|execute|!-test `ls *.zip | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-unzip -!|command| *.zip |args|0|
|check|execute|!-ls -!|command| timeTable_velocity_cond_*.txt |args|0|
|check|execute|!-ls -!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!| command|timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|


!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + tar-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}datamining_US31_tar.xml|args|0|
|note|!- (2) Vérification de la création d'un tar -!|
|check|execute|!-test `ls *.tar | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-tar xvf -!|command| *.tar |args|0|
|check|execute|!-ls -!|command| timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!| command|timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + gzip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}datamining_US31_gzip.xml|args|0|
|note|!- (2) Vérification de la création d'un fichier compressée .gz -!|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-gzip -df -!|command| *.gz |args|0|
|check|execute|!-ls -!|command| timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|

!|script|TestAmdaCommandLine|
|reference|US 31: id 20|id test|
|note|!-Download + tar + gzip-!|
|note|!- (1) Execution de la requête -!|
|check|execute|${executable}|command|${path}datamining_US31_tgz.xml|args|0|
|note|!- (2) Vérification de la création d'une archive compressée tar.gz -!|
|check|execute|!-test `ls *.tar.gz | wc -l` -!|command| -eq 1 |args|0|
|note|!- (3) Vérification du contenu de l'archive -!|
|check|execute|!-tar xzvf -!|command| *.tar.gz |args|0|
|check|execute|!-ls -!|command| timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-ls -!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| Gaps_timeTable_velocity_cond*.txt |args|0|
|check|execute|!-rm-!|command| TooSmall_timeTable_velocity_cond*.txt |args|0|

!|script|TestAmdaCommandLine|
|set|${path}|path|
|note|!- Suppression des archives créées -!|
|check|execute|!- rm  -!|command| *.zip |args|0|
|check|execute|!- rm  -!|command| *.gz |args|0|
|check|execute|!- rm  -!|command| *.tar |args|0|

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