Introduction
Robot provides 2 command line intefaces which may be accessed
- SSH into the Robot VM
- cd /opt
demo.sh
/opt/demo.sh provides several Robot functions that streamline some of the procedures for deploying a VNF for demonstration purposes. The original functions are referenced in the sections on Installing and Running the ONAP Demos and, over time, some additional functions have been added.
root@vm03-robot:/opt# ./demo.sh demo.sh init demo.sh init_customer demo.sh distribute [<prefix>] demo.sh preload <vnf_name> <module_name> demo.sh appc <module_name> demo.sh init_robot demo.sh instantiateVFW demo.sh deleteVNF <module_name from instantiateVFW> |
---|
ete.sh
/opt/ete/sh runs selected Robot testsuite test cases
root@vm03-robot:/opt# ./ete.sh |
---|
Results of the tests may be viewed via a web browser. See below for details. Note that the log folder for each ete.sh execution is named ETE_<pid>.
Initializing the Robot Quicklinks Web Page
The robot container on the Robot VM is initialized with a password protected Web page that should be initialized after all of the ONAP VMs have been started. This page presents some useful information and links for the ONAP instance under test. Use the demo.sh script to initialize the web page and provide a password for the 'test' user required to access the page.
- ssh into the Robot VM
- cd /opt
- ./demo.sh init_robot
./demo.sh init_robot will prompt to enter the password for the user 'test', traditionally 'test' is used as the password as well.
oot@vm03-robot:/opt# ./demo.sh init_robot Starting Xvfb on display :89 with res 1280x1024x24 |
---|
Accessing the Robot Quicklinks Web Page
Access the robot page with http://<robot_vm_ip>:88. You will be prompted for credentials. Enter user 'test' with the password provided above.
Accessing the Robot Logs
The Robot Logs are best viewed via the browser at http://<robot_vm_init:88/logs/ or via the link in Quicklinks page above.
Running Robot TestSuites
/opt/ete/sh provides a command line interface for executing the Robot ETE testsuites.
Usage: ete.sh [ health | ete | closedloop | instantiate | distribute ]
Test | Purpose | Description |
---|---|---|
health | Report the health status of ONAP Components | Executed health check Rest API calls provided by each component and reports overall health status of the component. |
ete | Runs full suite of ETE tests | Executes the closedloop, instantiate and distribute test suites |
closedloop | Runs full suite of closed loop tests | For the following VNFs, executes customer creation, model distribution, instantation and closed loop test for
|
instantiate | Runs full suite of instantiate tests | For the following VNFs, executes customer creation, model distribution, instantation for
|
distribute | Runs the full suite of model distribuition tests | For the following VNFs, executes model distribution
|