Home > Requirements > Product Management
Report generated 22-07-2023 00:08

Feature: Product Management

Scenarios

Background: Automation exercise app is running

Given User launch application

When user gets product

Then User should get the statuscode as 200

When user creates product

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
405"This request method is not supported."

When user get brands

Then User should get the statuscode as 200

When user create brands

Then User should get the statuscode as 200

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
405"This request method is not supported."

When user search products

Then User should get the statuscode as 200

When user search products without value

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
400"Bad request, search_product parameter is missing in POST request."

When user login with valid credentials

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
200"User exists!"

When user login without valid credentials

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
400"Bad request, email or password parameter is missing in POST request."

When user delete the login

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
405"This request method is not supported."

When login with invalid credentials

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
404"User not found!"

When user create new account

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
201"User created!"

When user update the account

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
200"User updated!"

When user deletes the account

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
200"Account deleted!"

When user get the details

Then User should get the statuscode as 200

And User should get the responseCode {responsebodycode}

And User responsemessage as {responsemessagebody}

Examples:

responsebodycoderesponsemessagebody
200"User updated!"

Feature Coverage By Scenario

Test Outcomes

Test Performance

Automated Tests

Scenario Steps Started Duration Result
get products 2 00:08:34 5s 154ms SUCCESS
Add product (1 example) 4 00:08:39 1s 087ms SUCCESS
Get Brands 2 00:08:40 979ms SUCCESS
create Brands (1 example) 3 00:08:41 981ms SUCCESS
search product 2 00:08:42 998ms SUCCESS
search product without param (1 example) 4 00:08:43 997ms SUCCESS
login with valid credentials (1 example) 3 00:08:44 967ms SUCCESS
login without valid credentials (1 example) 4 00:08:45 990ms SUCCESS
verify delete login (1 example) 4 00:08:46 957ms SUCCESS
login with invalid credentials (1 example) 4 00:08:47 968ms SUCCESS
create user (1 example) 4 00:08:48 1s 009ms SUCCESS
update user (1 example) 4 00:08:49 943ms SUCCESS
Delete user (1 example) 4 00:08:50 990ms SUCCESS
get user account details (1 example) 4 00:08:51 970ms SUCCESS

Manual Tests

No manual tests were recorded
Serenity BDD version 3.2.1