0% found this document useful (0 votes)
40 views14 pages

API Test Cases

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views14 pages

API Test Cases

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd

Component Features Test Case ID

BE Employee TC_001

BE-UserManager UserManager-Account TC_002

0000001
Name
Able to create the new user account

Create new account with a duplicated email

0000002
Objective Test Data
Verify to make sure that the user is able to create the new account Data: AB123

Verify to make sure that the API returns error message with a
duplicated email

0000003
Prerequisite
- User email not exist

- User email exist

0000004
Test Steps
Submit the Register API request—Method: POSTEndpoint: https://{{baseURL}}/api/Users/Header:Content-Type: application/jsonOrigin: htt

Submit the Register API request—Method: POSTEndpoint: https://{{baseURL}}/api/Users/Header:Content-Type: application/jsonOrigin: htt

0000005
Expected Result
Account created successful and return below information.
1. Code: 201 Created
2. Response Data:
{
"status": "success",
"data": {
"username": "",
"role": "customer",
"deluxeToken": "",
"lastLoginIp": "0.0.0.0",
"profileImage": "/assets/public/images/uploads/default.svg",
"isActive": true,
"id": 60,
"email": "{{valid_user_email}}",
"updatedAt": "2020-08-19T14:58:32.703Z",
"createdAt": "2020-08-19T14:58:32.703Z",
"deletedAt": null
}
}
3. Check database information
Account created successful and return below information.

Code: 400 Bad Request


Response Data:
{
"message": "Validation error",
"errors": [
{
"field": "email",
"message": "email must be unique"
}
]
}

0000006
Test Result
Tags Unit Priority Automation status Active?
E2E, High, Account, Login Todo High Yes Yes / No FAILED

High, Checkout Todo High No Yes / No PASSED

0000007
JIRA Number
Jira-123

0000008
ID Summary Data
Email: [email protected]
1 Check login with wrong password
Password: wrong
Expected
Not created "email": "[email protected]",
Message: Invalid email or password. "password": "123456"
Output Actual Note
Invalid email or password. Passed Invalid email or password.
Ticket
<link>
Jira story: A DoD
[ x ] Dev done
[ x ] Dev test
[ x ] Deploy staging
[ x ] Write docs
[ x ] Security scan
[ x ] Write Unit test

You might also like