Import from SVN (r45945, r596)
[civicrm-core.git] / tools / bin / scripts / test_sandbox.sh
CommitLineData
6a488035
TO
1#!/usr/bin/env bash -v
2
3./setup.sh
4
5cd ../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
21maxq -q -r testAddContactIndividual.py
22maxq -q -r testAddContactHousehold.py
23maxq -q -r testAddContactOrganization.py
24
25#############################
26# Test for Editing Contacts #
27#############################
28
29maxq -q -r testEditContactIndividual.py
30maxq -q -r testEditContactHousehold.py
31maxq -q -r testEditContactOrganization.py
32
33#############################
34# Test for Viewing Contacts #
35#############################
36
37maxq -q -r testViewContactIndividual.py
38maxq -q -r testViewContactHousehold.py
39maxq -q -r testViewContactOrganization.py
40
41#############################################
42# Test for Relationship By Relationship Tab #
43#############################################
44
45maxq -q -r testAddRelByRelTab.py
46maxq -q -r testEditRelByRelTab.py
47maxq -q -r testViewRelByRelTab.py
48maxq -q -r testDisableEnableRelByRelTab.py
49maxq -q -r testDeleteRelByRelTab.py
50
51########################################
52# Test for Relationship By Contact Tab #
53#########################################
54
55maxq -q -r testAddRelByContactTab.py
56maxq -q -r testEditRelByContactTab.py
57
58###############################
59# Test for Group By Group Tab #
60###############################
61
62maxq -q -r testGroupAllByGroupTab.py
63maxq -q -r testGroupAllByContactTab.py
64
65#############################
66# Test for Tags By Tags Tab #
67#############################
68
69maxq -q -r testTagsAllByTagsTab.py
70
71##############################
72# Test for Notes By Note Tab #
73##############################
74
75maxq -q -r testAddNoteByNoteTab.py
76maxq -q -r testEditNoteByNoteTab.py
77maxq -q -r testViewNoteByNoteTab.py
78maxq -q -r testDeleteNoteByNoteTab.py
79
80#################################
81# Test for Notes By Contact Tab #
82#################################
83
84maxq -q -r testAddNoteByContactTab.py
85maxq -q -r testEditNoteByContactTab.py
86maxq -q -r testDeleteNoteByNoteTab.py
87
88#######################
89# Test for Admin Tags #
90#######################
91
92maxq -q -r testAdminAddTags.py
93maxq -q -r testAdminEditTags.py
94maxq -q -r testAdminDeleteTag.py
95
96################################
97# Test for Admin Location Type #
98################################
99
100maxq -q -r testAdminAddLocationType.py
101maxq -q -r testAdminEditLocationType.py
102maxq -q -r testAdminEnableDisableLocationType.py
103maxq -q -r testAdminDeleteLocationType.py
104
105##################################
106# Test for Admin Mobile Provider #
107##################################
108
109maxq -q -r testAdminAddMobileProvider.py
110maxq -q -r testAdminEditMobileProvider.py
111maxq -q -r testAdminEnableDisableMobileProvider.py
112maxq -q -r testAdminDeleteMobileProvider.py
113
114##############################
115# Test for Admin IM Provider #
116##############################
117
118maxq -q -r testAdminAddIMProvider.py
119maxq -q -r testAdminEditIMProvider.py
120maxq -q -r testAdminEnableDisableIMProvider.py
121maxq -q -r testAdminDeleteIMProvider.py
122
123#####################################
124# Test for Admin Relationship Types #
125#####################################
126
127maxq -q -r testAdminAddRel.py
128maxq -q -r testAdminEditRel.py
129maxq -q -r testAdminViewRel.py
130maxq -q -r testAdminEnableDisableRel.py
131maxq -q -r testAdminDeleteRel.py
132
133####################################
134# Test for Admin Custom Data Group #
135####################################
136
137maxq -q -r testAdminAddCustomDataGroup.py
138maxq -q -r testAdminEditCustomDataGroup.py
139maxq -q -r testAdminEnableDisableCustomDataGroup.py
140maxq -q -r testAdminPreviewCustomDataGroup.py
141
142####################################
143# Test for Admin Custom Data Field #
144####################################
145
146maxq -q -r testAdminAddCustomDataField.py
147maxq -q -r testAdminEditCustomDataField.py
148maxq -q -r testAdminEnableDisableCustomDataField.py
149maxq -q -r testAdminPreviewCustomDataField.py
150
151########################
152# Test for Custom Data #
153########################
154
155maxq -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
168maxq -r testAdminAddCiviDonateContributeMode.py
169maxq -r testAdminEditCiviDonateContributeMode.py
170maxq -r testAdminDisableEnableCiviDonateContributeMode.py
171maxq -r testAdminDeleteCiviDonateContributeMode.py
172
173###################
174# Contribute Type #
175###################
176
177maxq -r testAdminAddCiviDonateContributeType.py
178maxq -r testAdminEditCiviDonateContributeType.py
179maxq -r testAdminDisableEnableCiviDonateContributeType.py
180maxq -r testAdminDeleteCiviDonateContributeType.py
181
182######################
183# Payment Instrument #
184######################
185
186maxq -r testAdminAddCiviDonatePaymentInstrument.py
187maxq -r testAdminEditCiviDonatePaymentInstrument.py
188maxq -r testAdminDisableEnableCiviDonatePaymentInstrument.py
189maxq -r testAdminDeleteCiviDonatePaymentInstrument.py
190
191##########################
192# Test for Basic Search #
193##########################
194
195maxq -q -r testSearchByLNameIndividual.py
196maxq -q -r testSearchByHNameHousehold.py
197maxq -q -r testSearchByONameOraganization.py
198maxq -q -r testSearchByNoCriteria.py
199maxq -q -r testSearchByGroup.py
200maxq -q -r testSearchByContactTagGroupName.py
201
202#############################
203# Test for Advanced Search #
204#############################
205
206maxq -q -r testAdvSearchByAllCriteria.py
207maxq -q -r testAdvSearchByContactName.py
208maxq -q -r testAdvSearchByContactGroupCategory.py