Issuu on Google+

TestR User Guide Server Installation

Save time. Save the environment. TestR - It’s testing, reinvented. www.mytestr.com


Table of Contents Platform Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Application Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 Installation Steps ........ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Tomcat Server ........... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Database................. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Ssh and scp Syntax .... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Default Paths ............... . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3


TestR Server Installation Platform Requirements java version "1.6.0_24" or greater Tested on: OpenJDK Runtime Environment (IcedTea6 1.11.9) (rhel-1.57.1.11.9.el6_4-x86_64) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) Web server/Application Server: Tomcat 7+ or greater Database Server: MySQL : 5.1.67 + or greater Operating Systems:

. Tested on CentOS release 6.4 (Final) . TestR will also work on other versions of linux as long as there is Tomcat 7+, MySQL 5.1.67 and java 1.6+ support.

. Windows server

Application Components a. TestRServer.war [Web Services Module] b. TestRWeb.war [Admin Web Module] c. TestR.sql [Database Script to create empty database structure] d. TestR_Initialization.sql [Database script for initializing empty database]

Page 1


TestR Server Installation Installation Steps A. Tomcat Server 1. Copy TestRServer.war and TestRWeb.war to server using ‘scp’ command 2. Open terminal on server using ssh 3. cd /usr/share/tomcat7/webapps 4. Move the war files to webapps folder using ‘mv’ 5. Go to bin folder of tomcat and startup tomcat server if not already started [cd /usr/share/tomcat7/bin/sh startup.sh] B. Database 1. Copy TestR.sql and TestR_Initialization.sql to server 2. Log in to MySQL using credentials [mysql –u[username] –p[password] 3. After the MySQL command prompt appears, type the following command set global wait_timeout = 2147480; 4. Restart MySQL after this command using the following command /etc/init.d/mysqld restart 5. Type the following commands at the MySQL terminal a. ‘source TestR.sql’ –This will create the empty database structure b. ‘source TestR_Initialization.sql’ - This will enter the minimum required data into the database

Page 2


TestR Server Installation Installation Steps (con’t) C. Ssh and scp syntax 1. Sc: syntax scp TestRServer.war server_admin@97.74.85.92:~/ enter password when prompted scp [Full Path and File Name] [scp username]@[server ip]:~/ 2. ssh: syntax ssh server_admin@97.74.85.92 ssh [username]@[server ip] enter password when prompted

Default Paths /var/www/vhosts/markr.ca ssh will put the user who logged in at the above path scp will put files copied to server in the above path To see current folder/path type pwd To list contents of a folder type ls To change current folder type cd [new path] To change current folder to root, use cd /

Page 3

To get version use: OS: cat/etc/*-release java: java-version


TestR Server Installation Guide