Blame view

test/FitNesseRoot/ReleaseS/SecondPart/ReLease1/SprinT2/UserStory31/content.txt 7.03 KB
fbe3c2bb   Benjamin Renard   First commit
1
2
3
4
!1 !-User Story 31: Post-traitement sur des requêtes de DataMining -!

!define path {../test/FitNesseRoot/ReleaseS/SecondPart/ReLease1/SprinT2/UserStory31/}
!define executable {amdaXMLRequestorTool }
fbe3c2bb   Benjamin Renard   First commit
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
!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|
fbe3c2bb   Benjamin Renard   First commit
22
23
24
25
26
27
28
29
30
31


!|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 -!|
fbe3c2bb   Benjamin Renard   First commit
32
33
34
35
36
37
38
39
40
41
42
43
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
44
45
46
47
48
49
50
51
52
53
54
55
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
56
57
58
59
60
61
62
63
64
65
66
67
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
|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 -!|
fbe3c2bb   Benjamin Renard   First commit
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|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|
fbe3c2bb   Benjamin Renard   First commit
149
150
151

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