content.txt 10.6 KB
!1 !-User Story 37: File output CDF -!

!define path {../test/FitNesseRoot/ReleaseS/ThirdPart/ReLease2/SprinT3/UserStory37/}
!define executable {amdaXMLRequestorTool }
!2 Description du test
!-  En tant qu'utilisateur scientifique
Je peux définir une sortie sous forme d'un fichier CDF
Afin de travailler avec mes données sur mon ordinateur ultérieurement  
-!

!2 Test

!3 Connexion au serveur 

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

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

!3 Exécution des scripts

!|script|TestAmdaCommandLine|
|reference|US 37: id 00|id test|
|note|!- Création d'un fichier CDF pour scalaire float -!|
|check|execute|${executable}|command|${path}request_us37_00.xml|args|0|
|check|execute|cdfdump|command|-output output-dst_2008000000000000.cdf.dump output-dst_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-dst_2008000000000000.cdf.dump ${path}/download_37_00_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 01|id test|
|note|!- Création d'un fichier CDF pour vecteur float -!|
|check|execute|${executable}|command|${path}request_us37_01.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_2008000000000000.cdf.dump output-imf_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-imf_2008000000000000.cdf.dump ${path}/download_37_01_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 02|id test|
|note|!- Création d'un fichier CDF pour scalaire integer -!|
|check|execute|${executable}|command|${path}request_us37_02.xml|args|0|
|check|execute|cdfdump|command|-output output-qual1_sta_2008000000000000.cdf.dump output-qual1_sta_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-qual1_sta_2008000000000000.cdf.dump ${path}/download_37_02_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 03|id test|
|note|!- Création d'un fichier CDF pour tableau integer -!|
|check|execute|${executable}|command|${path}request_us37_03.xml|args|0|
|check|execute|cdfdump|command|-output output-vex_els_spec_2008000030000000.cdf.dump output-vex_els_spec_2008000030000000.cdf |args|1|
|check|execute|diff|command|output-vex_els_spec_2008000030000000.cdf.dump ${path}/download_37_03_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 04|id test|
|note|!- Création d'un fichier CDF pour tableau float -!|
|check|execute|${executable}|command|${path}request_us37_04.xml|args|0|
|check|execute|cdfdump|command|-output output-e_mgs_omni_2005029230000000.cdf.dump output-e_mgs_omni_2005029230000000.cdf |args|1|
|check|execute|diff|command|output-e_mgs_omni_2005029230000000.cdf.dump ${path}/download_37_04_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 05|id test|
|note|!- Création d'un fichier CDF pour une magnitude calculée -!|
|check|execute|${executable}|command|${path}request_us37_05.xml|args|0|
|check|execute|cdfdump|command|-output output-magnitude_2008000000000000.cdf.dump output-magnitude_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-magnitude_2008000000000000.cdf.dump ${path}/download_37_05_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 06|id test|
|note|!- Création d'un fichier CDF pour un paramètre composé système sans échantillonage -!|
|check|execute|${executable}|command|${path}request_us37_06.xml|args|0|
|check|execute|cdfdump|command|-output output-ram_pressure_2008000000000000.cdf.dump output-ram_pressure_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-ram_pressure_2008000000000000.cdf.dump ${path}/download_37_06_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 07|id test|
|note|!- Création d'un fichier CDF pour un paramètre sur un grand intervalle de temps -!|
|check|execute|${executable}|command|${path}request_us37_07.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_2008002000000000.cdf.dump output-imf_2008002000000000.cdf |args|1|
|check|execute|diff|command|output-imf_2008002000000000.cdf.dump ${path}/download_37_07_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 08|id test|
|note|!- Création de deux fichiers CDF pour deux paramètres (deux noeuds output définis)  -!|
|check|execute|${executable}|command|${path}request_us37_08.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_2008000000000000.cdf.dump output-imf_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-imf_2008000000000000.cdf.dump ${path}/download_37_08_imf_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-dst_2008000000000000.cdf.dump output-dst_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-dst_2008000000000000.cdf.dump ${path}/download_37_08_dst_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 09|id test|
|note|!- Création de deux fichiers CDF pour un paramètre avec sortie différente (deux noeuds output définis)  -!|
|check|execute|${executable}|command|${path}request_us37_09.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_2008000000000000.cdf.dump output-imf_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-imf_2008000000000000.cdf.dump ${path}/download_37_09_imf_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-imf_1_2008000000000000.cdf.dump output-imf_1_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-imf_1_2008000000000000.cdf.dump ${path}/download_37_09_imf_1_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 10|id test|
|note|!- Création d'un fichier CDF à partir d'une expression logique -!|
|check|execute|${executable}|command|${path}request_us37_10.xml|args|0|
|check|execute|cdfdump|command|-output output-expression_logical_1_2008000003000000.cdf.dump output-expression_logical_1_2008000003000000.cdf |args|1|
|check|execute|diff|command|output-expression_logical_1_2008000003000000.cdf.dump ${path}/download_37_10_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 11|id test|
|note|!- Création d'un fichier CDF avec plusieurs paramètres dans un même fichier -!|
|check|execute|${executable}|command|${path}request_us37_11.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_dst_2008000000000000.cdf.dump output-imf_dst_2008000000000000.cdf |args|1|
|check|execute|diff|command|output-imf_dst_2008000000000000.cdf.dump ${path}/download_37_11_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 12|id test|
|note|!- Création d'un fichier CDF par intervalle de temps et par paramètre -!|
|check|execute|${executable}|command|${path}request_us37_12.xml|args|0|
|check|execute|cdfdump|command|-output output-imf_tt_1_0.cdf.dump output-imf_tt_1_0.cdf |args|1|
|check|execute|diff|command|output-imf_tt_1_0.cdf.dump ${path}/download_37_12_imf_0_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-imf_tt_1_1.cdf.dump output-imf_tt_1_1.cdf |args|1|
|check|execute|diff|command|output-imf_tt_1_1.cdf.dump ${path}/download_37_12_imf_1_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-imf_tt_1_2.cdf.dump output-imf_tt_1_2.cdf |args|1|
|check|execute|diff|command|output-imf_tt_1_2.cdf.dump ${path}/download_37_12_imf_2_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-imf_tt_1_3.cdf.dump output-imf_tt_1_3.cdf |args|1|
|check|execute|diff|command|output-imf_tt_1_3.cdf.dump ${path}/download_37_12_imf_3_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-dst_tt_1_0.cdf.dump output-dst_tt_1_0.cdf |args|1|
|check|execute|diff|command|output-dst_tt_1_0.cdf.dump ${path}/download_37_12_dst_0_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-dst_tt_1_1.cdf.dump output-dst_tt_1_1.cdf |args|1|
|check|execute|diff|command|output-dst_tt_1_1.cdf.dump ${path}/download_37_12_dst_1_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-dst_tt_1_2.cdf.dump output-dst_tt_1_2.cdf |args|1|
|check|execute|diff|command|output-dst_tt_1_2.cdf.dump ${path}/download_37_12_dst_2_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-dst_tt_1_3.cdf.dump output-dst_tt_1_3.cdf |args|1|
|check|execute|diff|command|output-dst_tt_1_3.cdf.dump ${path}/download_37_12_dst_3_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_tt_1_0.cdf.dump output-efield_tt_1_0.cdf |args|1|
|check|execute|diff|command|output-efield_tt_1_0.cdf.dump ${path}/download_37_12_efield_0_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_tt_1_1.cdf.dump output-efield_tt_1_1.cdf |args|1|
|check|execute|diff|command|output-efield_tt_1_1.cdf.dump ${path}/download_37_12_efield_1_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_tt_1_2.cdf.dump output-efield_tt_1_2.cdf |args|1|
|check|execute|diff|command|output-efield_tt_1_2.cdf.dump ${path}/download_37_12_efield_2_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_tt_1_3.cdf.dump output-efield_tt_1_3.cdf |args|1|
|check|execute|diff|command|output-efield_tt_1_3.cdf.dump ${path}/download_37_12_efield_3_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 13|id test|
|note|!- Création d'un fichier CDF par intervalle de temps avec plusieurs paramètres dans un même fichier -!|
|check|execute|${executable}|command|${path}request_us37_13.xml|args|0|
|check|execute|cdfdump|command|-output output-efield_dst_imf_tt_1_0.cdf.dump output-efield_dst_imf_tt_1_0.cdf |args|1|
|check|execute|diff|command|output-efield_dst_imf_tt_1_0.cdf.dump ${path}/download_37_13_0_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_dst_imf_tt_1_1.cdf.dump output-efield_dst_imf_tt_1_1.cdf |args|1|
|check|execute|diff|command|output-efield_dst_imf_tt_1_1.cdf.dump ${path}/download_37_13_1_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_dst_imf_tt_1_2.cdf.dump output-efield_dst_imf_tt_1_2.cdf |args|1|
|check|execute|diff|command|output-efield_dst_imf_tt_1_2.cdf.dump ${path}/download_37_13_2_REF.cdf.dump|args|0|
|check|execute|cdfdump|command|-output output-efield_dst_imf_tt_1_3.cdf.dump output-efield_dst_imf_tt_1_3.cdf |args|1|
|check|execute|diff|command|output-efield_dst_imf_tt_1_3.cdf.dump ${path}/download_37_13_3_REF.cdf.dump|args|0|

!|script|TestAmdaCommandLine|
|reference|US 37: id 14|id test|
|note|!- Création d'un fichier CDF contenant plusieurs intervalles de temps et plusieurs paramètres -!|
|check|execute|${executable}|command|${path}request_us37_14.xml|args|0|
|check|execute|cdfdump|command|-output output-efield_dst_imf_tt_1.cdf.dump output-efield_dst_imf_tt_1.cdf |args|1|
|check|execute|diff|command|output-efield_dst_imf_tt_1.cdf.dump ${path}/download_37_14_REF.cdf.dump|args|0|

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