Browser tests for https://computer-database.gatling.io
This is automation testing framework on top of seleniumbase.io for testing https://computer-database.gatling.io website. This website has read only database ¯_(ツ)_/¯
To run tests on https://computer-database.gatling.io/ in 3 threads:
make test
To open test result report:
make report
-k
is defaul option so u can run particular tests like:make test run=create
where 'create' string for pattern matching with test names
- Install chrome browser to local host
pip install -r requirements.txt
sbase install chromedriver latest
pytest --base_url=http://url.com --html=report.html -l -v
conftest.py
: global fixtures and command line keys config (base_url)
framework/urls.py
: uri's to web pages without base url
framework/actions
: python modules for repeatable browser actions
framework/actions/base_actions
:
- setUp before browser open
- redefining of seleniumbase methods (
open
, etc)- global helper methods
- fixture injection (Faker for
self.faker.word()
inside test)
framework/actions/modules
: logically divided modules with selectors and selector builders
framework/actions/tests
: test suits grouped by product functionality