ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test...

34

Transcript of ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test...

Page 1: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 2: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 3: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••

••

Page 4: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 5: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•••

Page 6: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•••

••••

Page 7: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••

•••

• …

••

Page 8: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••

Page 9: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 10: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•••••

••

Page 11: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••

Page 12: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••••••

Page 13: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•sudo apt-get update

sudo apt-get -y install python-osmclient python-osm-im

•pip install haikunator requests robotframework robotframework-requests robotframework-seleniumlibrary

pip list #check installed packages

robot --version #verify installation

•sudo apt-get install lighttpd

sudo vi /etc/lighttpd/lighttpd.conf

- server.document-root <path to Robot framework report output folder- mkdir in /tmp>

- server.port <change to available port-8088>

systemctl restart lighttpd.service

Page 14: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•git clone "https://osm.etsi.org/gerrit/osm/devops"

•••

robot -d robot-systest/reports -i vim robot-systest/testsuitetestsuite/cli/TS02__Test_Vim.robot

Page 15: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 16: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Section Used For

Settings1) Importing test libraries, resource files and variable files.2) Defining metadata for test suites and test cases.

Variables Defining variables that can be used elsewhere in the test data.

Test Cases Creating test cases from available keywords.

Keywords Creating user keywords from existing lower-level keywords

Page 17: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 18: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 19: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 20: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

*** Keywords ***Contains keywords commons to your test suite. Keywords declared here can be used anywhere in the suite, even in setup and teardown calls. Keywords settings are: [Documentation] Used for specifying the keyword documentation[Arguments] Specify the keyword arguments[Return] Specify the keyword return value[Timeout] Set the keyword execution timeout (Test fails if timeout is reached)

Page 21: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•wget http://osm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest/packages/robot_scripts.zip

•unzip robot_script.zip

•vi hackfest_test.robot

Page 22: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Page 23: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Page 24: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•robot -d devops/robot-systest/reports -i vim hackfest_test.robot

Page 25: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

••

••

Page 26: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•sudo apt-get updatesudo apt-get install -y unzip xvfb libxi6 libgconf-2-4 curlsudo apt-get install default-jdk

curl -sS -o - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -sudo DEBIAN_FRONTEND=noninteractive add-apt-repository -y "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main"sudo apt-get -y update

sudo apt-get -y install google-chrome-stable

#Download and install Selenium Chrome driverwget https://chromedriver.storage.googleapis.com/2.41/chromedriver_linux64.zipunzip chromedriver_linux64.zip

sudo mv chromedriver /usr/bin/chromedriversudo chown root:root /usr/bin/chromedriversudo chmod +x /usr/bin/chromedriver

Page 27: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Page 28: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Page 29: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

•robot -d devops/robot-systest/reports -i gui_login_test hackfest_test.robot

Page 30: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test
Page 31: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Develops/User guide:

http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html

https://github.com/robotframework/QuickStartGuide/blob/master/QuickStart.rst

https://twiki.cern.ch/twiki/bin/view/EMI/RobotFrameworkAdvancedGuide\

https://bulkan.github.io/robotframework-requests/

Editor:

https://pypi.org › project › robotframework-ridehttps://macromates.com/https://github.com/nokia/RED http://www.jetbrains.com/pycharm/

Page 32: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

#devops on slack#bi-weekly meeting

https://osm.etsi.org/wiki/index.php/Release_SIX_Integration_(DEVOPS)

Page 33: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test

Q & A

Thank You

Page 34: ETSIosm-download.etsi.org/ftp/osm-6.0-six/8th-hackfest...Section Used For Settings 1) Importing test libraries, resource files and variable files. 2) Defining metadata for test