-> all program states available Reviewed-on: local-it-infrastructure/e2e_tests#8 Co-authored-by: Daniel <d.brummerloh@gmail.com> Co-committed-by: Daniel <d.brummerloh@gmail.com>
67 lines
No EOL
1.2 KiB
Markdown
67 lines
No EOL
1.2 KiB
Markdown
# AbraTest
|
|
...description...
|
|
|
|
# Usage
|
|
|
|
To use AbraTest, follow these steps:
|
|
|
|
## 1. GIT Clone
|
|
|
|
To clone with submodules, use these git commands:
|
|
|
|
```bash
|
|
git clone --recurse-submodules <repository>
|
|
git submodule update --init // add submodule after normal cloning
|
|
git submodule update --remote // update submodules
|
|
```
|
|
|
|
## Run
|
|
|
|
You can run AbraTest with and without Docker. Choose now and follow the steps accordingly:
|
|
|
|
## 2.1 Run without Docker
|
|
|
|
### Installation
|
|
|
|
Create a python environment and install all dependencies via
|
|
|
|
```bash
|
|
pip install -r requirements.txt
|
|
playwright install
|
|
```
|
|
|
|
Run the script with
|
|
|
|
```bash
|
|
python main.py # run abratest
|
|
pytest # test abratest
|
|
pytest --collect-only # debug test abratest
|
|
```
|
|
|
|
# 2.2 Run with Docker
|
|
|
|
```bash
|
|
docker compose build # build the image
|
|
docker compose run --rm app ./run_abratest.sh # run AbraTest
|
|
docker compose run --rm app ./test_abratest.sh # test AbraTest
|
|
```
|
|
|
|
Force rebuild with cache
|
|
|
|
```bash
|
|
docker-compose up --build
|
|
```
|
|
|
|
Force rebuild wtihtout cache
|
|
|
|
```bash
|
|
docker-compose build --no-cache
|
|
```
|
|
|
|
## Codegen
|
|
|
|
Use playwright codegen to create code for new testes easily https://playwright.dev/python/docs/codegen
|
|
|
|
```bash
|
|
playwright codegen demo.playwright.dev/todomvc
|
|
``` |