This is a sample project of automating different testing tyes. It's divided into 3 parts:
- Website testing
- REST API testing
- Load testing
Website testing part includes selected automated test cases for webpage http://automationpractice.multiformis.com/.
The framework used for test automation is Webdriver.io with Mocha test framework included.
To run locally, you need to have node.js and npm installed.
- Open terminal
- Navigate to website_testing folder
- Run command "npx wdio run ./wdio.conf.js"
- Follow the wizard:
- Where is your automation backend located: On my local machine
- Which framework do you want to use: mocha
- Do you want to use the compiler: no
- Where are your test specs located: press Enter
- Do you want WebdriverIO to autogenerate some test files? n
- Which reporter do you want to use? timeline
- Do you want to add a plugin to your test setup? press Enter
- Do you want to add a service to your test setup? press Enter
- Do you want me to run npm install? n
- Run command again: "npx wdio run ./wdio.conf.js"
- Find the results in results/timeline-report.hmtl
Test results are printed in HTML report using Timeline Reporter package. This is an example of a test report.
Currently 2 tests (001_search and 002_sorting) are failing due to bugs.
The test documentation is available here. It includes the test cases definition and test flows that are part of this project. Please note this is only a sample of all possible test cases and flows and doesn't provide sufficient coverage of all basic functionalities.
REST api testing part includes selected automated test cases for Food data central API.
The tool used for REST api test automation is Postman.
- Import this collection into Postman.
- Click ... on the collection and select "Run collection"
- Click "Run Food data" button
The test documentation is available here.
Load testing part includes load test for Blaze demo web application. More details about this load test can be found here.
The tool used for Load testing is k6.
To run locally, you need to have k6 installed. See instructions.
- Open terminal
- Navigate to load_testing folder
- Run command: "k6 run script.js"
- The result is printed in the terminal