This project is a selenium python UI testing project. The script therein does the following:
- Navigates to this site https://www.ultimateqa.com/filling-out-forms
- Fills in the first form.
- Clicks the submit buttom
- Checks for the successful message
- Clone the repository
$ git clone https://github.com/jaymutuku/python-ui-tests
$ cd python-ui-tests/
$ pip3 install virtualenv
$ virtualenv -p python3 venv
$ source venv/bin/activate
Incase you get an error in the second step above: command 'virtualenv' not found ... Then
$ sudo apt install virtualenv
$ pip install selenium
You don't need to install the unittest library is a built-in library.
$ pip freeze > requirements.txt
$ python -m unittest testcases.test_ui.verifyMessageTest
$ python -m unittest discover
.
----------------------------------------------------------------------
Ran 1 test in 11.108s
OK