commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-old / civicrm / tools / bin / scripts / runCPSTest.sh
1 #!/bin/sh
2 # Script for Running all the Tests one after other
3
4 # Where are we called from?
5 P=`dirname $0`
6
7 # Current dir
8 ORIGPWD=`pwd`
9
10 # File for Storing Log Of Test.
11
12 logCPS=CPSTestResult
13 ###########################################################
14 ##
15 ## Create log for the tests
16 ##
17 ###########################################################
18
19 # Method to Create Log Folder if it does not Exists.
20 create_log()
21 {
22 cd $ORIGPWD/../test/
23
24 PATH4LOG=`pwd`
25
26 if [ ! -d "Result" ] ; then
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.
40 run_cpsTest()
41 {
42 cd $ORIGPWD/../test/selenium-ruby/CPS
43 # Running Selenium (ruby) Tests
44 ruby test_cps_personal.rb
45 }
46 ###########################################################
47 ##
48 ## Start of the script.
49 ##
50 ###########################################################
51
52 start()
53 {
54 create_log
55 clear
56 echo
57 echo " *********************** Load Testing for Quest/CPS *********************** "
58 echo
59 run_cpsTest
60 echo;
61 }
62
63 ###########################################################
64 ##
65 ## Call to start of the script
66 ##
67 ###########################################################
68
69 start