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

Compare with Current View Page History

« Previous Version 8 Next »

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 microservice uses the Automatics Orchestration database, so for the microservice server to start UP it should have access to Automatics Orchestration and the below mentioned tables should be available in that database.

Microservice Setup

For setting up the Microservice 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 microservice.
  4. Check whether the tables that are required for microservice 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 microservice to the VM and run the below command to bring the microservice up in the server.
  7. The command to bring the microservice up in server is mentioned in the below snippet.

    nohup java -XX:+UseSerialGC -Dlog4j2.formatMsgNoLookups=true -jar rackdataservice.jar > logfile.log 2>&1 &

Tables which are used in RackDataMicroservice

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