You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »

Setup

Software Requirement

  • JDK 1.8

Follow Steps below to install Java 1.8 on CentOS/linux.

    • Update before installing any new program

    • Install Java 1.8

    • Verify Java is Installed

Sample output:


This Scriptless Service uses the Automatics Orchestration database, so for the scriptless service server to start UP it should have access to Automatics Orchestration and the below mentioned tables should be available in that database.

Scriptless Service Setup

For setting up the Scriptless Service of Automatics 3.0, clone the repo << Rack Data Service>> . Once the repo is cloned, please follow the below steps,

  1. Add the username and password of Automatics MYSQL Database in the application.properties file(/src/main/resources/). Enter the value of username and password of the database to 'spring.datasource.username' and 'spring.datasource.password'.
  2. The password should be entered in base 64 encrypted format.
  3. Use the command "mvn clean install" to build the .jar file of the Scriptless Service.
  4. Check whether the tables that are required for Scriptless Service is present in the automatics database. If not present, create it using the SQL scripts present in the Automatics_DB.sql file starting from line number 1596
  5. Check whether the base URLs of Automatics Orchestration and Scriptless Service application is added to the database. If not added, add it using 'AUTOMATICS_BASE_URL' and 'MICROSERVICE_URL' as the config names in master_config table.  

    AUTOMATICS_BASE_URLBase URL of Automatics Orchestration Application
    MICROSERVICE_URLBase URL of Scriptless Service
  6. Copy the rackdataservice-1.0.0.jar of Rackdataservice Scriptless Service to a folder in VM. Create a empty folder with the name as 'logs' outside the folder that contains the Rackdataservice jar file using the command mkdir logs. Run the below command inside the folder that contains the Rackdataservice jar file to bring the Scriptless Service up in the server.

    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar rackdataservice-1.0.0.jar > logfile.log 2>&1 &
  7. A log file will be created in the logs folder with the name rackDataService.log. We can check the real time logs of the Scriptless Service using this file. 

Tables which are used in RackDataService

command_details
connected_client_config
master_config
predefined_class
predefined_method
predefined_param
primary_command_config_details
scriptless_test_case_details
stb_image_mapping
stb_type
step_actions
step_command_input
step_conditions
step_connected_client
step_details
step_iterations
step_command_params
step_properties
step_utility
test_case_command_config_details
test_cases_repository
test_constants
test_utility
user_group



  

  • No labels