Import from SVN (r45945, r596)
[civicrm-core.git] / tools / bin / scripts / test_sandbox.sh
1 #!/usr/bin/env bash -v
2
3 ./setup.sh
4
5 cd ../test/maxq
6
7 # This script is used to run maxq generated test scripts.
8 # Before running these scripts please see Common.py
9 # In Common.py comment and uncomment the constants as per the need
10 # Below commands use someof the modes of maxq. The modes used are :
11 # The -r mode is for running maxq generated test scripts.
12 # The -q mode is for quite mode while testing.
13 # Instead of -q (quite mode), -d(debug mode) can be used.
14 # For all other options, fire $ maxq --help
15
16
17 ############################
18 # Test for Adding Contacts #
19 ############################
20
21 maxq -q -r testAddContactIndividual.py
22 maxq -q -r testAddContactHousehold.py
23 maxq -q -r testAddContactOrganization.py
24
25 #############################
26 # Test for Editing Contacts #
27 #############################
28
29 maxq -q -r testEditContactIndividual.py
30 maxq -q -r testEditContactHousehold.py
31 maxq -q -r testEditContactOrganization.py
32
33 #############################
34 # Test for Viewing Contacts #
35 #############################
36
37 maxq -q -r testViewContactIndividual.py
38 maxq -q -r testViewContactHousehold.py
39 maxq -q -r testViewContactOrganization.py
40
41 #############################################
42 # Test for Relationship By Relationship Tab #
43 #############################################
44
45 maxq -q -r testAddRelByRelTab.py
46 maxq -q -r testEditRelByRelTab.py
47 maxq -q -r testViewRelByRelTab.py
48 maxq -q -r testDisableEnableRelByRelTab.py
49 maxq -q -r testDeleteRelByRelTab.py
50
51 ########################################
52 # Test for Relationship By Contact Tab #
53 #########################################
54
55 maxq -q -r testAddRelByContactTab.py
56 maxq -q -r testEditRelByContactTab.py
57
58 ###############################
59 # Test for Group By Group Tab #
60 ###############################
61
62 maxq -q -r testGroupAllByGroupTab.py
63 maxq -q -r testGroupAllByContactTab.py
64
65 #############################
66 # Test for Tags By Tags Tab #
67 #############################
68
69 maxq -q -r testTagsAllByTagsTab.py
70
71 ##############################
72 # Test for Notes By Note Tab #
73 ##############################
74
75 maxq -q -r testAddNoteByNoteTab.py
76 maxq -q -r testEditNoteByNoteTab.py
77 maxq -q -r testViewNoteByNoteTab.py
78 maxq -q -r testDeleteNoteByNoteTab.py
79
80 #################################
81 # Test for Notes By Contact Tab #
82 #################################
83
84 maxq -q -r testAddNoteByContactTab.py
85 maxq -q -r testEditNoteByContactTab.py
86 maxq -q -r testDeleteNoteByNoteTab.py
87
88 #######################
89 # Test for Admin Tags #
90 #######################
91
92 maxq -q -r testAdminAddTags.py
93 maxq -q -r testAdminEditTags.py
94 maxq -q -r testAdminDeleteTag.py
95
96 ################################
97 # Test for Admin Location Type #
98 ################################
99
100 maxq -q -r testAdminAddLocationType.py
101 maxq -q -r testAdminEditLocationType.py
102 maxq -q -r testAdminEnableDisableLocationType.py
103 maxq -q -r testAdminDeleteLocationType.py
104
105 ##################################
106 # Test for Admin Mobile Provider #
107 ##################################
108
109 maxq -q -r testAdminAddMobileProvider.py
110 maxq -q -r testAdminEditMobileProvider.py
111 maxq -q -r testAdminEnableDisableMobileProvider.py
112 maxq -q -r testAdminDeleteMobileProvider.py
113
114 ##############################
115 # Test for Admin IM Provider #
116 ##############################
117
118 maxq -q -r testAdminAddIMProvider.py
119 maxq -q -r testAdminEditIMProvider.py
120 maxq -q -r testAdminEnableDisableIMProvider.py
121 maxq -q -r testAdminDeleteIMProvider.py
122
123 #####################################
124 # Test for Admin Relationship Types #
125 #####################################
126
127 maxq -q -r testAdminAddRel.py
128 maxq -q -r testAdminEditRel.py
129 maxq -q -r testAdminViewRel.py
130 maxq -q -r testAdminEnableDisableRel.py
131 maxq -q -r testAdminDeleteRel.py
132
133 ####################################
134 # Test for Admin Custom Data Group #
135 ####################################
136
137 maxq -q -r testAdminAddCustomDataGroup.py
138 maxq -q -r testAdminEditCustomDataGroup.py
139 maxq -q -r testAdminEnableDisableCustomDataGroup.py
140 maxq -q -r testAdminPreviewCustomDataGroup.py
141
142 ####################################
143 # Test for Admin Custom Data Field #
144 ####################################
145
146 maxq -q -r testAdminAddCustomDataField.py
147 maxq -q -r testAdminEditCustomDataField.py
148 maxq -q -r testAdminEnableDisableCustomDataField.py
149 maxq -q -r testAdminPreviewCustomDataField.py
150
151 ########################
152 # Test for Custom Data #
153 ########################
154
155 maxq -r -q testEditCustomDataInline.py
156
157 #maxq -q -r adminDeleteCustomDataField.py
158 #maxq -q -r adminDeleteCustomDataGroup.py
159
160 ##############################
161 # Test for Admin CiviDonate #
162 ##############################
163
164 ###################
165 # Contribute Mode #
166 ###################
167
168 maxq -r testAdminAddCiviDonateContributeMode.py
169 maxq -r testAdminEditCiviDonateContributeMode.py
170 maxq -r testAdminDisableEnableCiviDonateContributeMode.py
171 maxq -r testAdminDeleteCiviDonateContributeMode.py
172
173 ###################
174 # Contribute Type #
175 ###################
176
177 maxq -r testAdminAddCiviDonateContributeType.py
178 maxq -r testAdminEditCiviDonateContributeType.py
179 maxq -r testAdminDisableEnableCiviDonateContributeType.py
180 maxq -r testAdminDeleteCiviDonateContributeType.py
181
182 ######################
183 # Payment Instrument #
184 ######################
185
186 maxq -r testAdminAddCiviDonatePaymentInstrument.py
187 maxq -r testAdminEditCiviDonatePaymentInstrument.py
188 maxq -r testAdminDisableEnableCiviDonatePaymentInstrument.py
189 maxq -r testAdminDeleteCiviDonatePaymentInstrument.py
190
191 ##########################
192 # Test for Basic Search #
193 ##########################
194
195 maxq -q -r testSearchByLNameIndividual.py
196 maxq -q -r testSearchByHNameHousehold.py
197 maxq -q -r testSearchByONameOraganization.py
198 maxq -q -r testSearchByNoCriteria.py
199 maxq -q -r testSearchByGroup.py
200 maxq -q -r testSearchByContactTagGroupName.py
201
202 #############################
203 # Test for Advanced Search #
204 #############################
205
206 maxq -q -r testAdvSearchByAllCriteria.py
207 maxq -q -r testAdvSearchByContactName.py
208 maxq -q -r testAdvSearchByContactGroupCategory.py