Selenium tests for python.org.
Tests automation with TestLink.
Install geckodriver:
https://github.com/mozilla/geckodriver/releasesAdd to the PATH: export PATH=$PATH:/path/to/directory/of/downloaded/executable/
Preferable path: /usr/local/bin
Setup tutorial.
Download
https://bitnami.com/stack/testlink/virtual-machineLog in with default bitnami/bitnami.
$ vim /opt/bitnami/apps/testlink/htdocs/config.inc.php $tlCfg->api->enabled = TRUE;
...
$tlCfg->exec_cfg->enable_test_automation = ENABLED;
$ sudo /opt/bitnami/ctlscript.sh startCheck your IP address:
$ sudo ifconfigType the address in your browser to access login page:
192.168.8.134/login.phpEnter:
Login: user
Password: ybrI6m4eODIX
For this project it is:
Name: Selenium
Prefix: SE
Project description: Test cases for web page 'python.org'
The rest is as default.
In Test Specification select the new Test Project in the tree view,
then hit toothed wheel (settings) and add button.
Go to Test Specification tab, then fill Filters.
Test Case ID: Case
Test title: First test case
(tab) Project > Test Plan Management > (button) Create
Name: Plan
Check boxes public and active.
(tab) Project > Builds / Releases > (button) Create
Name: Build
My Settings > API Interface > (button) Generate a new key
Copy it to run_test_module.py along with proper IP address
and provide new properties (IDs etc.) for created test.
source venv/bin/activate
pip install TestLink-API-Python-client