diff options
Diffstat (limited to 'tests/selenium/README.md')
-rw-r--r-- | tests/selenium/README.md | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/tests/selenium/README.md b/tests/selenium/README.md index aedd7ff..20c89a2 100644 --- a/tests/selenium/README.md +++ b/tests/selenium/README.md @@ -1,2 +1,24 @@ +# Bareos-WebUI Selenium Test -Note: Edit username and password in Bareos class. +This test checks the Bareos WebUI by using seleniums webdriver. + + +## Setting up the test + +To run the test you must set certain environment variables: + + * **BROWSER**: The test takes either 'firefox' or 'chrome', where 'firefox' is the default. + * **USERNAME** and **PASSWORD**: These should contain the login information for the WebUI. + * **VM_IP**: This should be the IP adress of the system where the Bareos WebUI runs on. + * **RESTOREFILE**: The third test is designed to restore a certain file. The default path is '/usr/sbin/bconsole". + * **CLIENT**: Here you need to set what Client the restore test should select. + +## Running the test + +To run all tests included you need a system that runs the WebUI, a client for restore-testing, chromedriver or geckodriver as well as any Python >= 2.7. + +If you meet all the requirements and set the environment variables you can run the test with `python webui-selenium-test.py`. + +## Debugging + +If the test should fail you will find additional informations in the webui-selenium-test.log file. You might want to adjust **SLEEPTIME** environment variable to be set above 1 as it increases the time waited between commands.
\ No newline at end of file |