Test project to show
- features of MS Playwright on Python
- automation project structure using pytest
All tests designed to cover application Test-Me
Tools:
- Install python
- Install PyCharm
- Install python dependencies
pip install -r requirements.txt
- Make sure playwright version 1.8+ installed
- conftest.py file contains main fixtures to work
- Page objects stored in page_object folder
- Tests stored in tests folder
- Settings are spread between:
- pytest.ini
- settings.py
- Create file
secure.json
for logins and passwords. Structure below. For demo purpose my file included to project as credentials already exposed in Test-Me documentaion
{
"users": {
"userRole1": {
"login": "login",
"password": "password"
},
"userRole2": {
"login": "login",
"password": "password"
}
}
}
- Install software to test Test-Me
- Set correct path to DB in
pytest.ini
file - Run Test-Me (check guide in it's repo)
- Run tests using command
pytest