A Python based automation software built with selenium, currently compatible for Chrome and Firefox testing
- Install Selenium in Terminal (using pip or pip3)
pip install selenium
Or download and install the latest selenium version from here
-
Download Browsers (instructions below)
-
Run the program with a compatible code editor or IDE (eg: VS Code, PyCharm etc)
-
Test scripts are classified by the number in the filename and the test case document is stored in
Dbot/Dbot_automated_test_scenarios
where the behaviour of each sript can be referred to -
Sciprt is operated in the
source_code/desktop_test_script.py
file for desktop based testing andsource_code/mobile_test_script.py
for mobile based testing,source_code/const.py
can be used to change parameters
Chrome Driver
- Open Google Chrome
- On the Chrome address bar, type:
chrome://version
You will see the following at the top of the screen:
Google Chrome: your version of google chrome
-
Go to this page and click the file name that is equivalent to your version of google chrome (this contains the drivers to perform the automated tests on google chrome)
-
Download the file name based on your operating system
-
Download or move the file to directory:
Dbot/Dbot_automated_test_scenarios
-
The setup for chrome driver is complete
Firefox Driver
-
Go here and download the latest version of the driver for your operating system
-
macOS 10.15 (Catalina) and later:
Due to the requirement from Apple that all programs must be notarized, geckodriver will not work on Catalina if you manually download it through another notarized program, such as Firefox
Whilst we are working on a repackaging fix for this problem, you can find more details on how to work around this issue in the macOS notarization section of the documentation
-
Download or move the file to directory:
Dbot/Dbot_automated_test_scenarios
-
The setup for firefox driver is complete