You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 6
Next »
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 Usage: demo.sh <command> [<parameters>] demo.sh init - Execute both init_customer + distribute demo.sh init_customer - Create demo customer (Demonstration) and services, etc. demo.sh distribute [<prefix>] - Distribute demo models (demoVFW and demoVLB) demo.sh preload <vnf_name> <module_name> - Preload data for VNF for the <module_name> demo.sh appc <module_name> - provide APPC with vFW module mount point for closed loop demo.sh init_robot - Initialize robot after all ONAP VMs have started demo.sh instantiateVFW - Instantiate vFW module for the a demo customer (DemoCust<uuid>) demo.sh deleteVNF <module_name from instantiateVFW> - Delete the module created by instantiateVFW |
---|
ete.sh
/opt/ete/sh runs selected Robot testsuite test cases
root@vm03-robot:/opt# ./ete.sh Usage: ete.sh [ health | ete | closedloop | instantiate | distribute ] |
---|
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 WEB Site Password for user 'test': Starting Xvfb on display :89 with res 1280x1024x24 Executing robot tests at log level TRACE ============================================================================== OpenECOMP ETE ============================================================================== OpenECOMP ETE.Robot ============================================================================== OpenECOMP ETE.Robot.Testsuites ============================================================================== OpenECOMP ETE.Robot.Testsuites.Update Onap Page :: Initializes ONAP Test We... ============================================================================== Update ONAP Page | PASS | ------------------------------------------------------------------------------ OpenECOMP ETE.Robot.Testsuites.Update Onap Page :: Initializes ONA... | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== OpenECOMP ETE.Robot.Testsuites | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== OpenECOMP ETE.Robot | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== OpenECOMP ETE | PASS | 1 critical test, 1 passed, 0 failed 1 test total, 1 passed, 0 failed ============================================================================== Output: /share/logs/demo/UpdateWebPage/output.xml Log: /share/logs/demo/UpdateWebPage/log.html Report: /share/logs/demo/UpdateWebPage/report.html |
---|
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.