This repo's content has been folded into AutoBDD as that project's internal test suite (see
AutoBDD/test-projects/autobdd-test/). The four-repo structure was consolidated into a single AutoBDD monorepo (phase-1).No further development happens in this repo. Changes to the test suite should be made in the AutoBDD repo instead. This repo is kept read-only for historical reference and to document how an AutoBDD test project is set up.
Reference: https://github.com/xyteam/AutoBDD
- (historical) smoke test and demo the automagic power of xyteam/autobdd test framework;
- (historical) serve as a template for setting up a new autobdd test project — note the content now lives inside AutoBDD as its internal test suite.
- docker,
- docker-compose
- git
- vnc client/viewer
- mkdir -p $HOME/Projects
- git clone https://github.com/xyteam/autobdd-test.git $HOME/Projects/autobdd-test
results are grouped by test suite under test-results/:
test-results/
├── e2e-test/
│ ├── single-runner-report/ # cucumber html - single-runner (test-1nit)
│ ├── parallel-runner-report/ # cucumber html - parallel runner (test-autobdd-libs)
│ └── auto-runner-report/ # cucumber html - auto-runner
├── cypress-test/ # cypress run.log + video/screenshot artifacts
├── jest-test/ # jest run.log
├── pytest-test/ # pytest run.log
└── k6-test/ # k6 run.log
each suite produces a result file to inspect:
| suite | result file | how to view |
|---|---|---|
| e2e-test | e2e-test/auto-runner-report/index.html |
open in a browser (cucumber html report) |
| e2e-test | e2e-test/parallel-runner-report/index.html |
open in a browser |
| e2e-test | e2e-test/single-runner-report/index.html |
open in a browser |
| cypress-test | cypress-test/run.log (and cypress-test/*.mp4 video) |
open log in a text editor |
| jest-test | jest-test/run.log |
open in a text editor |
| pytest-test | pytest-test/run.log |
open in a text editor |
| k6-test | k6-test/run.log |
open in a text editor |
a representative green-run output per suite (what each report/run.log looks like) is
available as a gist: https://gist.github.com/xywang68/79d2410ac7c7b7607a87216b0ea35ee2
docker-compose run --rm autobdd-test-run "make e2e-test"
docker-compose run --rm autobdd-test-run "make k6-test"
docker-compose run --rm autobdd-test-run "make jest-test"
docker-compose run --rm autobdd-test-run "make cypress-test"
docker-compose run --rm autobdd-test-run "make pytest-test"
docker-compose run --rm autobdd-test-run "xvfb-runner.sh make test-all"
docker-compose up -d autobdd-test-dev
ssh -o StrictHostKeyChecking=no localhost -p 2224
default password is *ubuntu*
launch remmina (or another vnc client):
remmina -c vnc://localhost:5924
(default password is ubuntu)
cd e2e-test/test-something
single-runner.sh features/test_image.feature
single-runner.sh features/test_ocr.feature:7
Observe browser GUI from vnc viewer