UI tests
Requirements for 1 and 2 tests: Should be realized in one test-class
- Navigate to https://my.whisk-dev.com/
- Sign in
- Navigate to Shopping tab
- Add 5 popular items
- Check by Name that 5 items are added to Shopping list
- 1-4 steps from 1 test
- Delete Shopping list
- Check that user doesn't have Shopping lists
Requirements: Create tests in one test-class and relized precondition from 1 step for all back tests
host: https://api.whisk-dev.com/
Content-type: application/json
Authorization: Bearer Hp1wwzc0AMBi2YyXE2UPqB2pQQoAyG1GLgf9fbDbtCRXNBNONrfMTLGHNohqaqyx
- Create Shoping list POST: /list/v2 body: { "name": "string", "primary": false }
- Get Shopping List by id: GET /list/v2/{id}
- Verify that response contains necessary id
- Verify that Shopping list is empty (content object is empty)
- 1 step from Test 1
- Delete Shopping list by id DELETE: /list/v2/{id}
- Get Shopping List by id: GET /list/v2/{id}
- Verify that code response = 200
- Verify that response message is 'shoppingList.notFound'
Java 14
Gradle 7.1
allure 2.15.0
In the root of project put in command prompt:
gradle clean test
OR
./gradlew clean test
(if you work at Mac)
In the root of project put in command prompt:
allure serve build/allure-results/
Then open Behaviors
tab and you will see the result.
`