Skip to content

SamuelLenyakopiro/GameMania

 
 

Repository files navigation

🧪 Game Mania – Katalon Studio Automated Test Suite

📘 Overview

This project is an automated testing suite created using Katalon Studio Enterprise (version 10.4.0) for validating the Game Mania web application:
🔗 Test URL: https://hyvabe.gamemania.com/

The suite automates end-to-end functional testing for user authentication, product order placement, and order confirmation flows.
Each test case validates different aspects of the Game Mania online shopping experience — from login to checkout.


🗂️ Project Structure

Game Mania (Katalon Project)
│
├── Profiles/                      # Environment and variable profiles
├── Test Cases/
│   ├── TC_001_Login               # Verifies login functionality
│   ├── TC_002_Signup              # Tests new user registration
│   ├── TC_003_OrderPlacement      # Automates the product ordering flow
│   ├── TC_004_PreOrderPlacement   # Automates product pre-order flow
│   └── Order Confirmation          # Verifies successful order confirmation
│
├── Object Repository/
│   ├── Page_Customer Login/
│   ├── Page_Success Page/
│   │    ├── Capture_1_PreOrderNumber
│   │    ├── Confirm_OrderPlaced
│   │    ├── Select_MyAccount
│   │    └── Select_Username
│   ├── Page_Winkelwagen/          # Shopping cart
│   └── Page_To settle/            # Payment & settlement
│
├── Test Suites/
│   └── Game Mania                 # Combined suite of all related test cases
│
├── Data Files/                    # (Optional) test data sources
├── Keywords/                      # Custom keywords used in test steps
├── Reports/                       # Generated execution reports
└── Include/                       # Supporting scripts and files

🧩 Test Case Descriptions

1️⃣ TC_001_Login

Objective: Validate user login with valid credentials.
Steps:

  1. Open browser and navigate to https://hyvabe.gamemania.com
  2. Click on the Login button
  3. Enter credentials
    • Email: xxx@gmail.com
    • Password: xxxxxxx
  4. Click on Sign in
  5. Verify successful login and redirection to user account.
    Expected Result: User is logged in successfully.

2️⃣ TC_003_OrderPlacement

Objective: Automate placing an order for a product.
Precondition: User must be logged in.
Steps:

  1. Navigate to a product page
  2. Add the product to the cart
  3. Proceed to checkout
  4. Complete payment flow
    Expected Result: Order is placed successfully, and confirmation is displayed.

3️⃣ Order Confirmation

Objective: Validate that the order confirmation page displays correct order details.
Key Element:

  • Object: Page_Success Page/Capture_1_PreOrderNumber
  • Action: Verify and extract order/pre-order number text.

Common Issue:

  • Unable to get text of object 'Object Repository/Page_Success Page/Capture_1_PreOrderNumber'
  • Possible Cause: The element is not visible or not yet loaded when the script attempts to read it.
  • Fix: Add explicit waits (WebUI.waitForElementVisible()) before calling getText().

🚀 How to Run the Project

Requirements

Execution Steps

  1. Clone the repository:
    git clone https://github.com/<your-username>/GameMania-Katalon.git
  2. Open Katalon StudioFile > Open Project → Select the cloned folder.
  3. Select the Test Suite → Game Mania.
  4. Click ▶ Run to execute all test cases sequentially.
  5. View results in:
    • Log Viewer: Real-time execution logs
    • Reports folder: Detailed HTML/PDF reports

🧾 Example Log Output

Status Test Case Message
✅ PASSED TC_001_Login Login successful
✅ PASSED TC_003_OrderPlacement Order placed successfully
❌ FAILED Order Confirmation Unable to get text of object Capture_1_PreOrderNumber

🛠️ Troubleshooting Tips

  • Ensure dynamic web elements are captured correctly (use Smart XPath or CSS selectors).
  • Add waits or delays for pages that take time to load.
  • Re-record or update broken test objects from the Object Repository.
  • Check element visibility using:
    WebUI.waitForElementVisible(findTestObject('Page_Success Page/Capture_1_PreOrderNumber'), 10)

📊 Reports & Analytics

Katalon automatically generates:

  • Execution summary (pass/fail rates)
  • Step-level logs
  • HTML and PDF reports

🧑‍💻 Author

Created by: HP
Automation Tool: Katalon Studio Enterprise
Website Tested: https://hyvabe.gamemania.com
Date: October 2025

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Groovy 92.5%
  • TypeScript 7.5%