Skip to content

Instantly share code, notes, and snippets.

@purrarri
Last active November 14, 2025 13:04
Show Gist options
  • Select an option

  • Save purrarri/995542393b6ce9f47f3335e93cf86e5b to your computer and use it in GitHub Desktop.

Select an option

Save purrarri/995542393b6ce9f47f3335e93cf86e5b to your computer and use it in GitHub Desktop.
Q2. Breakdown test cases as in cucumber/ gherkin formatting as for assesment : Mention all necessary fields which should be included in a bug.

Q2 Go to https://petstore.octoperf.com/actions/Catalog.action and report at least 3 bugs.

Bug Report in Gherkin/Cucumber Format

This document serves as a bug report in Gherkin/Cucumber format for reporting an identified issue in the system. The bug report follows the structured format of Gherkin to provide clear details about the bug and its expected behavior.

Usage

The bug report is written using the Gherkin syntax, which allows for easy understanding and communication between stakeholders, developers, and testers. Each bug report includes the following information:

  • Title: A brief title summarizing the bug.
  • Preconditions: The necessary conditions or steps required to reproduce the bug.
  • Steps: The step-by-step instructions to reproduce the bug.
  • Actual Result: The observed result or behavior when executing the steps.
  • Expected Result: The expected result or behavior of the system.
  • Test Date: The date when the bug was reported.
  • Status: The current status of the bug (Open, In Progress, Resolved, Closed).
  • Error Category: The severity category of the bug (Low, Medium, High).

Feel free to refer to the bug report sections for detailed steps, observed and expected results, and the current status of the bug.

Feature: Order module
Scenario: Proceeding Order for Not In-Stock Product
Title: Can proceed order for not in stock product
Precondition:
- Already open https://petstore.octoperf.com/actions/Catalog.action web page
- Already registered an account
- Already logged in
Steps:
Given I am on the homepage of the website
When I search for a not in-stock product, such as "Green Adult Iguana"
And I add the product to the cart
And I proceed to checkout by clicking the Proceed to Checkout button
And I am on the Payment Detail page
And I click the Continue button
And I am on the Order Confirmation page
And I click the Confirm button
Actual Result:
Order will be successfully submitted
Expected Result:
The order should not be submitted, and an error message should be displayed stating that the product is not in stock
Test Date:
Status: (Passed, Failed, Blocked)
Error Category: (Low, Medium, High)
Evidence : *screenshot**
Feature: Search module
Scenario: Duplicated Messages Displayed When Searching Without Any Keywords
Title: There are two same messages when search without any keywords input
Precondition:
- Navigate to https://petstore.octoperf.com/actions/Catalog.action web page
Steps:
Given I am on the homepage of the website
When I leave the search field empty
And I click on the Search button
Actual Result:
There are two identical error messages displayed:
- "Please enter a keyword to search for, then press the search button."
- "Please enter a keyword to search for, then press the search button."
Expected Result:
Only one error message should be displayed:
- "Please enter a keyword to search for, then press the search button."
Test Date:
Status: (Open, In Progress, Resolved, Closed)
Error Category: (Low, Medium, High)
Evidence : *screenshot*
Feature: Shopping Cart Functionality
Scenario: Product on Shopping Cart Removed After User Logout and Login Again
Title: Product on Shopping Cart will be removed when user logout and login again
Precondition:
- Already open https://petstore.octoperf.com/actions/Catalog.action web page
- Already registered an account
- Already logged in
Steps:
Given I am on the homepage of the website
When I search for a product, such as "Adult Male Amazon Parrot"
And I add the product to the cart
And I click the Sign Out button
And I click the Sign In button
And I enter a valid username
And I enter a valid password
And I click the Login button
And I click on the Cart icon
Actual Result:
The shopping cart is empty
Expected Result:
The shopping cart should still contain the previously added product (Adult Male Amazon Parrot)
Test Date:
Status: (Open, In Progress, Resolved, Closed)
Error Category: (Low, Medium, High)
Evidence : *screenshot*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment