BDD and AI library
Project description
Scenario Thinker
BDD and AI combined - generate yourself Python scripts in selenium using BDD scenarios.
Setup
Before all, the best approach would be to make virtual environment:
python3 -m venv venv
After installing this library, you can initialize all the files:
st_prepare
This will create flask server code in your project location. Also it will copy view for interacting with generating code itself, view for controlling generated and their styles and js scripts for them + .env file . It's highly recommended to not change them, unless you know what you're doing.
Add .env file
Add there token from AI ML API like this: AI_ML_API_VALUE = "xxx"
Start server with flask run and and start working with your scenario. Open file in generated views that means views/index.html and put there scenario feature.
Scenario feature should look like this
Feature: showing off behave
Scenario: run a simple test
Given visiting site localhost:3000/button_with_redirect
When I click button with text "Go to my favorites"
Then I will be redirected into site localhost:3000/my_favourites
After that, start program and hope for the best.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file scenario_thinker-0.1.1.2.tar.gz.
File metadata
- Download URL: scenario_thinker-0.1.1.2.tar.gz
- Upload date:
- Size: 77.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a93b69b46817e932510fced518278b2eb21c9664e8296ee89cb40c41fe817e
|
|
| MD5 |
aaf964e338e8f1ba113b7075f66976f7
|
|
| BLAKE2b-256 |
c429527cdb578ce577ae730088c8f3b9075c47adf3b0dd80242110053c87dd30
|
File details
Details for the file scenario_thinker-0.1.1.2-py3-none-any.whl.
File metadata
- Download URL: scenario_thinker-0.1.1.2-py3-none-any.whl
- Upload date:
- Size: 84.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4049ffca39936a833d8a25dced775bbf9e77a9efba4d41788d24f5b2311eb113
|
|
| MD5 |
9052d33749bf94f295613804341ee5fb
|
|
| BLAKE2b-256 |
c5e0dd3b889cc6a807f75f852abadf2bed9511fe030aff71181b88ca7186b45b
|