Architecture
Automatics provides support to execute test script that uses Candela Lanforge system.
The RDKB test scripts that uses Candela Lanforge are mentioned as WT-Tests and its utility APIs are available in RDKB-test-utils. The utility APIs communicates with the Lanforge Client via service WT REST API service(wt-service). And, the service uses Lanforge JSON APIs to communicate with Lanforge client.
The diagram shows interaction of Automatics system with the Candela Lanforge system.
eyJleHRTcnZJbnRlZ1R5cGUiOjEsImdDbGllbnRJZCI6IiIsImNyZWF0b3JOYW1lIjoiUmFkaGlrYSBTdWRoYWthcmFuIiwib3V0cHV0VHlwZSI6ImJsb2NrIiwibGFzdE1vZGlmaWVyTmFtZSI6IlJhZGhpa2EgU3VkaGFrYXJhbiIsImxhbmd1YWdlIjoiZW4iLCJ1aUNvbmZpZyI6Int9IiwiZGlhZ3JhbURpc3BsYXlOYW1lIjoiIiwic0ZpbGVJZCI6IiIsImF0dElkIjoiMjI2MzY0ODYzIiwiZGlhZ3JhbU5hbWUiOiJjYW5kZWxhX2Rlc2lnbiIsImFzcGVjdCI6IiIsImFzcGVjdEhhc2giOiIiLCJsaW5rcyI6ImF1dG8iLCJkaWFncmFtVXJsIjoiIiwiY2VvTmFtZSI6IkF1dG9tYXRpY3MtQ2FuZGVsYSBJbnRlZ3JhdGlvbiIsInRic3R5bGUiOiJ0b3AiLCJjYW5Db21tZW50IjpmYWxzZSwiY3N2RmlsZVVybCI6IiIsImJvcmRlciI6dHJ1ZSwibWF4U2NhbGUiOiIxIiwib3duaW5nUGFnZUlkIjoyMjYzNjQ4NTUsImVkaXRhYmxlIjpmYWxzZSwiY2VvSWQiOjIzODIyOTg0MSwicGFnZUlkIjoiMjI2MzY0ODU1IiwibGJveCI6dHJ1ZSwic2VydmVyQ29uZmlnIjp7ImVtYWlscHJldmlldyI6IjEifSwib2RyaXZlSWQiOiIiLCJyZXZpc2lvbiI6NiwibWFjcm9JZCI6Ijg1NmMwOTFlLWFhYzctNGMyYS05YmFjLTUwY2RmMGM3MDM4NSIsInByZXZpZXdOYW1lIjoiY2FuZGVsYV9kZXNpZ24ucG5nIiwic2VydmljZSI6IiIsImlzVGVtcGxhdGUiOmZhbHNlLCJsaWNlbnNlU3RhdHVzIjoiT0siLCJ3aWR0aCI6IjExNTEiLCJzaW1wbGVWaWV3ZXIiOmZhbHNlLCJsYXN0TW9kaWZpZWQiOjE2NzMzMzkxOTAwMDAsImV4Y2VlZFBhZ2VXaWR0aCI6ZmFsc2UsIm9DbGllbnRJZCI6IiJ9
Execution of Automatics-Candela Scripts
To execute Automatics-Candela scripts, partner should have a Candela Lanforge system with gateway device connected to it and wt-service deployed in Automatics system.
Setup of WT REST API(wt-service)
Build wt-service
Softwares Required:
Following softwares are required to build wt-service
- Clone the source code from https://code.rdkcentral.com/r/admin/repos/rdk/tools/wt-service
- Open command prompt from directory wt-service and run the command mvn clean install. This will generate wt-service.jar file in target directory.
- Copy the jar file to the VM where the service to be deployed.
- Ensure that Candela Lanforge JSON APIs are accessible from wt-service deploying VM.
Deployment of wt-service
Deployment as standalone java application
Softwares Required:
Following softwares are required to deploy wt-service
- Copy the jar file to the VM where the service to be deployed
- Rename the jar to WTService.jar.
- Run the command java -jar WTService.jar . The service should be up and running.
Deployment using apache-tomcat
Softwares Required:
Following softwares are required to deploy wt-service
- Change the packaging in pom.xml to war.
- Run the command mvn clean install. This will generate wt-service.war file in target directory.
- Rename the jar to WTService.war.
- Copy the file to {apache-tomcat_base_dir}/webapps . Start the server by executing ./startup.sh in {apache-tomcat_base_dir}/bin
- The service should be up and running. The logs will be generating in {apache-tomcat_base_dir}/bin/logs directory
Configuration
- Configure the property 'wtSimulatorBaseUrl' in extra properties of Device from Device Manager UI. This property holds the base url to the lanforge JSON API. eg: http://localhost:8080. The gateway device ti be used for candela testing should have this property configured.
- Configure the property 'wt.service.base.url' in Automatics Properties and this holds the base url of WTService. To add property please follow steps in Add Property
WT-Service REST API Specification
WT Service REST API specification - WTService_REST_API_Specification_v1.0.docx