No description
Find a file
Daniel f9c21c6e6b refactor for independent test dirs (#7)
* make it so that the actual tests can be moved anywhere, for example in abra recipe repos
-> major refactoring with pytest test discovery magic

* create RUNNER_DICT dynamically with importlib
-> none of the tests are hardcoded, more tests can be added by placing a folder

* autoload fixtures with pytest plugins

* add URL fixture to navigate on web pages. Includes url parser based on python urllib to generate correct links

* fix nextcloud setups and tests

*  add email groundwork with imbox

Reviewed-on: local-it-infrastructure/e2e_tests#7
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-05 21:41:43 +01:00
abratest refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
envfiles@a8375f6fc7 [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
previous-work refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
prototyping refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
recipes refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
tests refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
.gitignore authentik setup and tracing (#2) 2023-11-27 17:01:45 +01:00
.gitmodules [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
conftest.py implement env manager (#6) 2023-12-04 17:09:01 +01:00
docker-compose.yml [WIP] Add new automated test framework (#1) 2023-11-22 21:40:13 +01:00
Dockerfile rework-output-and-test-logic (#3) 2023-11-29 14:14:46 +01:00
main.py refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
pyproject.toml refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
README.md refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00
requirements.txt refactor for independent test dirs (#7) 2023-12-05 21:41:43 +01:00

AbraTest

...description...

Usage

To use AbraTest, follow these steps:

1. GIT Clone

To clone with submodules, use these git commands:

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

pip install -r requirements.txt
playwright install

Run the script with

python main.py  # run abratest
pytest  # test abratest

2.2 Run with Docker

docker compose build  # build the image
docker compose run --rm app python ./main.py  # run AbraTest
docker compose run --rm app pytest  # test AbraTest

Force rebuild with cache

docker-compose up --build

Force rebuild wtihtout cache

docker-compose build --no-cache

Codegen

Use playwright codegen to create code for new testes easily https://playwright.dev/python/docs/codegen

playwright codegen demo.playwright.dev/todomvc