Sample source code of automated test of web pages and a REST api.
The objective is to implement the same tests using different automation test tools and different programming languages.
The web pages under test:
- https://www.selenium.dev/selenium/web/web-form.html
- http://harmin-demo.gitlab.io/reports/web/ajax.html
The REST api under test:
- https://harmin-parra.github.io/demo/report-java/index.html (for Allure Java tests)
- https://harmin-parra.github.io/demo/report-nodejs/index.html (for Allure Node.js tests)
- https://harmin-parra.github.io/demo/report-python/index.html (for Allure Python tests)
- https://harmin-parra.github.io/demo/report-playwright/index.html (for Playwright/Node.js tests)
- https://harmin-parra.github.io/demo/report-cypress/index.html (for Cypress tests)
- https://harmin-parra.github.io/demo/report-robot/report.html (for Robot Framework tests)
- https://harmin-parra.github.io/demo/report-karate/karate-summary.html (for Karate Framework tests)
The tests were developed using the following programming languages:
- Python
- Java
- Node.js
The tests were developed using:
-
For Web tests:
-
For API tests:
Category | Python | Java | Node.js |
---|---|---|---|
Web test tools |
|
|
|
REST API test tools |
|
|
|
Unit test framework | Pytest | JUnit5 | Mocha |
Package manager | pip | Maven | npm |
Test Reporting Tool | Allure report | Allure report | Allure report |
Code repository | Gitlab | Gitlab | Gitlab |
Continuos integration | Gitlab-CI | Gitlab-CI | Gitlab-CI |
Test environment | Docker | Docker | Docker |