content.txt
8.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
!1 !-User Story 31: Post-traitement sur des requêtes de DataMining -!
!define path {../test/FitNesseRoot/ReleaseS/SecondPart/ReLease1/SprinT2/UserStory31/}
!define executable {amdaXMLRequestorTool }
!define dataBaseParamPath {../config/DataBaseParameters/}
!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|
|note|!-Copie du fichier XML param dans la base de données des paramètres-!|
|check|execute|cp|command|-f ${path}velocity_cond.xml ${dataBaseParamPath}velocity_cond.xml|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|!-rm-!|command| output-density_2008000000000000.txt |args|0|
|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|!-rm-!|command| output-density_2008000000000000.txt |args|0|
|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|!-rm-!|command| output-density_2008000000000000.txt |args|0|
|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|!-rm-!|command| output-density_2008000000000000.txt |args|0|
|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|!-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|
|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|!-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|
|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|!-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|
|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|!-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|
|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|
|note|!- Suppression des paramètres de test -!|
|check|execute|!-rm-!|command| ${dataBaseParamPath}velocity_cond.xml|args|0|
-----
!contents -R2 -g -p -f -h