Skip to main content

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. img.png 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. img_1.png 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pb_testing-0.1.2.52.tar.gz (31.9 kB view hashes)

Uploaded Source

Built Distribution

pb_testing-0.1.2.52-py3-none-any.whl (42.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page