โจ Web Automation Testing using Selenium WebDriver & Python โจ
What will be used on this project
Item | Source |
---|---|
Editor | VS Code (https://code.visualstudio.com/download) |
Package Manager | PIP (https://pip.pypa.io/en/stable/getting-started/) |
UI Test Tools | Selenium WebDriver with Python (https://pypi.org/project/selenium/) |
WebDriver Manager (https://pypi.org/project/webdriver-manager/) | |
Browser | Latest version of Chrome / Mozilla Firefox |
Install VS Code Editor, Python, and PIP
To check whether you already installed Python & PIP
python --version
python -m pip --version
Install Selenium
python -m pip install Selenium
Install Web Driver Manager
python -m pip install webdriver-manager
๐ Clone this Repository through Terminal or Command Prompt
Open this Automation Project using VS Code Editor.
Change to Project directory on Terminal or Command Prompt
cd SeleniumTest
Run All Tests on Terminal
Note: Only for file which name started with
test_
python -m unittest
Run Specific Test
python -m unittest test_pythonorg.py
python -m unittest test_saucedemo.py
Run Specific Test Case
python test_saucedemo.py TestSauceDemo.test_e_success_logout