forked from cerberustesting/cerberus-core
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathINSTALL
83 lines (57 loc) · 3.34 KB
/
INSTALL
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
Required Packages
-----------------
Make sure you've installed the following packages before continuing.
MySQL 5.6.xx
Java 1.8
Glassfish Server v4.1.1
- if necessary, copy the mysql jdbc drivers jar file on the glassfish/lib folder of your Glassfish installation.
The drivers can be downloaded at http://dev.mysql.com/downloads/connector/j/
- In case your default distribution does not use Oracle jdk, you can get it from the web and modify glassfish config :
file : glassfish/config/asenv.conf
can be modified in order to add the following line :
AS_JAVA=/home/user/local/jdk1.8.0_xx
pointing to the location of the choosen jdk folder.
Installation
------------
0) Download Cerberus package
1) Setup Cerberus Database
- create a user and associated schema inside mysql
CREATE USER 'cerberus'@'%' IDENTIFIED BY 'toto';
GRANT USAGE ON * . * TO 'cerberus'@'%' IDENTIFIED BY 'toto';
GRANT USAGE ON * . * TO 'cerberus'@'localhost' IDENTIFIED BY 'toto';
CREATE DATABASE IF NOT EXISTS `cerberus` ;
GRANT ALL PRIVILEGES ON `cerberus` . * TO 'cerberus'@'%';
- modify 00Config.sh file with your local parameters.
2) Application Server Configuration. We made the choice to use glassfish
- run installation script --> 01AppServerConfig.sh[.bat]
3) Deploy Cerberus Application
- run deploy script --> 02DeployApp.sh[.bat]
4) You can connect to cerberus and start using it.
http://localhost:8080/Cerberus/
- Default Logins to the Cerberus Web Interface :
admin / admin for administrator access
cerberus / cerberus for standard user access
- The first connection to the application will initialise the database so it may be a bit slow (be patient during the update of the database).
Before starting a test case, you need a selenium server running.
You can get the selenium jar file from http://docs.seleniumhq.org/download/
You can use the start-selenium.sh script in tools/selenium/ folder. Update it in order to use the proper jvm and selenium jar.
Here is the configuration we could see that provide the best stability :
Firefox 45.4.0ESR and Selenium 2.45
Other earlier configuration that should provide good result are :
Firefox 52.0ESR and selenium 3.3.1 (with Gecko driver 0.15).
Script execution automation can be done using the scripts located in tools/batchexecution/.
NB : don't forget to update the cerberus parameters according to your Environment --> parameter page in Admin menu needs to be changed according to your local config.
2 parameters are mandatory in order to start :
- cerberus_mediastorage_path parameter : in order to store the various execution media files (ex : /home/pete/cerberus_media/) inside the correct local folder. This is where Cerberus will try to store the files xml, json or images taken during the execution.
- cerberus_applicationobject_path : in order to store the various object files (ex : (ex : /home/pete/cerberus_objects/))
Update
------
0) Download and unzip(tar) Cerberus package
1) [Optional] Backup database
- mysqldump -u cerberus -p cerberus > CerberusBddBackup.sql
2) Modify 00Config.sh file with your local parameters. Tips: you can copy file from previous installation.
3) Deploy Cerberus Application
- run deploy script --> 02DeployApp.sh[.bat]
4) You can connect to cerberus.
- The first connection will ask you to update the database.
- You can start using Cerberus right after this update.