Library for bdd testing
Reason this release was yanked:
just checking if library will install all dependencies
Project description
PB_TESTING
Library for testing using Page Object Pattern and Behaviour Driven Development.
Commands
All commands are typed into terminal
```bash`` prepare
It will create:
- directories: __resources_for_testing, features, steps, pages__
- configuration_file __config.ini__
- __common_steps.py__ file in steps,`` consisting basic commands used in testing
(selenium finding, clicking elements on site)
- database for keeping urls and attributes
To scan for urls in your project (you must be in your project directory).
Available frameworks: rails, django
<hr style="border:2px solid gray"/>
```bash
pb_configuration
This method will pop gui with urls from your project, urls used in testing and attributes to those urls, which could be used in tests. It will look like this.
On left we have urls scanned from project.
In the middle there are urls that will be used in testing.
On the right side there will be attributes(ids, input names, css classes) also used in tests.
scan_for_urls
To get all attributes located at your site with url in your project, type
attributes_in_sites
It will drop directories into your resources_for_testing directory
create-scenario-gui
This command is responsible for gui for creating tests. It look like this and it will be used for creating bdd type tests.
When having problems with starting python test database with dumped data
Dumping data from
python3 manage.py dumpdata auth.User --indent 4 > users.json
and after that to run server with date from fixtures
python3 manage.py testserver users.json groups.json --addrport 7000 & PID=$
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pb_testing-0.1.2.52-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8f80cb195132862f89b6c1f1a62870f9a593e2b4d1ceb97eebb506b93b4072c |
|
MD5 | 7b2c03f4a74dcc4709c40b8af043804d |
|
BLAKE2b-256 | e36341fc6a456e4f9a82ad3ea488deee62239beeaf836589da627014e8f781f3 |