All installation commands run using root user(sudo su)
Install below python packages using pip
pip install python-magic pyangbind haikunator requests pyvcloud progressbar pathlib robotframework robotframework-seleniumlibrary robotframework-requests
Install below linux packages
curl http://osm-download.etsi.org/repository/osm/debian/ReleaseSIX/OSM%20ETSI%20Release%20Key.gpg | apt-key add -
add-apt-repository -y "deb http://osm-download.etsi.org/repository/osm/debian/ReleaseSIX stable devops osmclient IM" && apt update
curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list
apt-get install -y python-osmclient python-osm-im google-chrome-stable chromium-chromedriver
./git-repo/devops/tools/OVF_converter/install.sh
Checkout devops from gerrit
git clone "https://osm.etsi.org/gerrit/osm/devops"
If robot seed code not merged to to master, pull it
git pull "https://osm.etsi.org/gerrit/osm/devops" refs/changes/52/7852/4
for build test need to create env-file and provide below details and for Standalone testing export them
export OSM_HOSTNAME=<OSM server IP>
OpenStack Details
export OS_AUTH_URL=<auth url> export OS_PASSWORD=<password> export OS_PROJECT_NAME=<project name> export OS_VIM_CONFIG=<config value>
VCD Details
export VCD_AUTH_URL=<VCD auth url> export VCD_USERNAME=<VCD username> export VCD_PASSWORD=<VCD password> export VCD_TENANT_NAME=<VCD Tenant name> export VCD_ORGANIZATION=<VCD Org name> export VCD_VIM_CONFIG=<config value>
Note:- Optional
export NS_CONFIG=<NS Config Details>
e.g. export NS_CONFIG="'{vld: [ {name: mgmtnet, vim-network-name: mgmt}]}'"
There are two ways to run the test-case:
use devops/robot-systest/run_test.sh file and provide test-name(vim/smoke/sanity/comprehensive).
./devops/robot-systest/run_test.sh -t smoke
use robot command
robot -d path/to/report/dir -i test-tag-to-be-included -e test-tag-to-be-excluded path/to/testsuiet
robot -d devops/robot-systest/reports -i comprehensive devops/robot-systest/testsuite