Overview: TypeScript UI and API with BDD testing framework
Systems under test:
Technology stack:
- Basic: TypeScript, Cypress
- BDD: Cucumber
- UI: Cypress
- API: Cypress
- Reporting: Allure
- Install Node.js. 12+
- Install Yarn
git clone
the project.- Install dependencies with a terminal command
yarn install
ornpm install
in the project's root folder. - Additional step: You need to install Allure, if you want to use it.
- Launch
java -jar studentmgmt-0.0.1-SNAPSHOT.jar
withyarn cy:api-setup
in new terminal before running any api tests - You can use Cypress GUI with
yarn cy:ui
command to execute individual feature and debug - As well, you can start test suite with
yarn cy:headless
command. - Also, you can start the suite and generate Allure report with
yarn cy:allure
and after it, open it withyarn allure:open
. - And the most prefered options is to use
yarn cy:allure:open
command, that would execute the suite, generate and open the report as an HTML doc.
- Framework creates allure reports, that located in
allure-results
folder. - Check the
Running tests
section to get more info about working with Allure reports. - Note: Allure folder would be cleared within the next test run.
- All individual scenario can be executed indepedently
- For api test, If an resource is not available, 404 is assumed according to swapper documentation.
- Some api operations are tested in combination in functional test cases (use cases of the api)