Merge pull request #20168 from larssandergreen/add-recurring-filter-to-contribution...
[civicrm-core.git] / tools / bin / scripts / runCPSTest.sh
CommitLineData
6a488035
TO
1#!/bin/sh
2# Script for Running all the Tests one after other
3
4# Where are we called from?
5P=`dirname $0`
6
7# Current dir
8ORIGPWD=`pwd`
9
10# File for Storing Log Of Test.
11
12logCPS=CPSTestResult
13###########################################################
14##
15## Create log for the tests
16##
17###########################################################
18
19# Method to Create Log Folder if it does not Exists.
20create_log()
21{
22 cd $ORIGPWD/../test/
48b420d7
EM
23
24 PATH4LOG=`pwd`
25
26 if [ ! -d "Result" ] ; then
6a488035
TO
27 mkdir Result
28 fi
29}
30
31
32###########################################################
33##
34## Following methods is used to run the test
35##
36###########################################################
37
38
39# Method to Run Selenium Ruby Tests.
40run_cpsTest()
41{
42 cd $ORIGPWD/../test/selenium-ruby/CPS
43 # Running Selenium (ruby) Tests
48b420d7 44 ruby test_cps_personal.rb
6a488035
TO
45}
46###########################################################
47##
48## Start of the script.
49##
50###########################################################
51
52start()
53{
54create_log
55clear
56 echo
57 echo " *********************** Load Testing for Quest/CPS *********************** "
58 echo
59run_cpsTest
60echo;
61}
62
63###########################################################
64##
65## Call to start of the script
66##
67###########################################################
68
69start