diff --git a/functional_tests/README.md b/functional_tests/README.md new file mode 100644 index 00000000..0565fad5 --- /dev/null +++ b/functional_tests/README.md @@ -0,0 +1,23 @@ +# Roost Generated Functional Test + +**Execution Date:** 1/11/2026, 5:26:09 AM + +**Test Unique Identifier:** "TCSBaNCS_functional-after-fix" + +**Input(s):** + 1. bankspromot.txt + Path: /var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/bankspromot.txt + 2. TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx + Path: /var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx + 3. TCS BaNCS-Functional Specifications-Securities Back Office Processing-v1.8.1.docx + Path: /var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/TCS BaNCS-Functional Specifications-Securities Back Office Processing-v1.8.1.docx + +**Test Output Folder:** + 1. [TCSBaNCS_functional-after-fix.json](TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.json) + 2. [TCSBaNCS_functional-after-fix.feature](TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.feature) + 3. [TCSBaNCS_functional-after-fix.csv](TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.csv) + 4. [TCSBaNCS_functional-after-fix.xlsx](TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.xlsx) + 5. [TCSBaNCS_functional-after-fix.docx](TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.docx) + +--- + diff --git a/functional_tests/TCSBaNCS_functional-after-fix/.roost/roost_metadata.json b/functional_tests/TCSBaNCS_functional-after-fix/.roost/roost_metadata.json new file mode 100644 index 00000000..135677a1 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/.roost/roost_metadata.json @@ -0,0 +1,34 @@ +{ + "project": { + "name": "TCSBaNCS_functional-after-fix", + "created_at": "2026-01-11T05:26:09.579Z", + "updated_at": "2026-01-11T05:26:09.579Z" + }, + "files": { + "input_files": [ + { + "fileName": "TCSBaNCS_functional-after-fix.txt", + "fileURI": "/var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.txt", + "fileSha": "cf83e1357e" + }, + { + "fileName": "bankspromot.txt", + "fileURI": "/var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/functional_tests/TCSBaNCS_functional-after-fix/bankspromot.txt", + "fileSha": "0664b099ba" + }, + { + "fileName": "TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx", + "fileURI": "/var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx", + "fileSha": "55a242034e" + }, + { + "fileName": "TCS BaNCS-Functional Specifications-Securities Back Office Processing-v1.8.1.docx", + "fileURI": "/var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/d94d3fae-92b7-433a-a9d4-a73f4d7c92f8/functional_tests/TCSBaNCS_functional-after-fix/TCS BaNCS-Functional Specifications-Securities Back Office Processing-v1.8.1.docx", + "fileSha": "2cd5271236" + } + ] + }, + "api_files": { + "input_files": [] + } +} \ No newline at end of file diff --git a/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.csv b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.csv new file mode 100644 index 00000000..f1ba54b3 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.csv @@ -0,0 +1,15 @@ +User Registration with Valid Details +Product Search and Filtering +Shopping Cart Management +Checkout Process +Order Confirmation and Notification +User Profile Management +Role-based Access Control +Data Validation and Error Handling +UI Interactions Across All Screens +Multi-Device Order Placement +Integration with External Systems +Payment Gateway Error Handling +Order Status Transition +Sensitive Data Masking +Inventory Update Synchronization \ No newline at end of file diff --git a/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.docx b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.docx new file mode 100644 index 00000000..1b3e75d9 Binary files /dev/null and b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.docx differ diff --git a/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.feature b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.feature new file mode 100644 index 00000000..34529182 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.feature @@ -0,0 +1,187 @@ +Feature: E-commerce Platform Functional Testing + + # UI Test Scenarios + @ui + Scenario Outline: User Registration with Valid Details + Given I am on the registration page + When I enter valid user details including "", "", and "" + And I click the "Register" button + Then a user account is created successfully + And a confirmation email is sent + + Examples: + | name | email | password | + | John | john@example.com| Pass1234 | + | Alice | alice@example.com| Pass5678 | + + @ui + Scenario Outline: Product Search and Filtering + Given I am on the search page + When I enter "" in the search bar + And I apply filters such as price range "" and category "" + And I click the "Search" button + Then relevant products are displayed according to the search criteria and filters + + Examples: + | keyword | price_range | category | + | Laptop | 500-1000 | Electronics | + | Shoes | 50-100 | Fashion | + + @ui + Scenario Outline: Shopping Cart Management + Given I am logged in + When I search and select a product "" + And I click "Add to Cart" + And I navigate to the cart + And I remove "" from the cart + Then the product is added and removed from the cart successfully + + Examples: + | product | + | Laptop | + | Headphones | + + @ui + Scenario Outline: Checkout Process + Given I have items in the cart + When I click "Checkout" + And I enter shipping details "
", "", "" + And I select a payment method "" + And I complete the payment + Then the order is placed successfully and payment is processed + + Examples: + | address | city | zip | payment_method | + | 123 Main St | New York | 10001 | Credit Card | + | 456 Elm St | Chicago | 60601 | PayPal | + + @ui + Scenario Outline: Order Confirmation and Notification + Given I have successfully placed an order + When I check my email inbox + Then I receive an order confirmation email with order details + + Examples: + | email | + | john@example.com| + | alice@example.com| + + @ui + Scenario Outline: User Profile Management + Given I am logged in and on the user profile page + When I edit profile details such as "", "
", and "" + And I click the "Save" button + Then profile information is updated successfully and changes are reflected immediately + + Examples: + | name | address | contact_number | + | John | 123 Main St | 1234567890 | + | Alice | 456 Elm St | 0987654321 | + + @ui + Scenario Outline: Role-based Access Control + Given users with different roles exist in the system + When I log in as "" user + And I attempt to access "" + Then "" access is granted + + Examples: + | role | feature | accessibility | + | admin | admin dashboard | granted | + | user | admin dashboard | restricted | + + @ui + Scenario Outline: Data Validation and Error Handling + Given I am logged in and on a form requiring data input + When I enter invalid data "" + And I submit the form + Then appropriate error messages are displayed + + Examples: + | invalid_data | + | invalid-email.com| + | 123 | + + @ui + Scenario Outline: UI Interactions Across All Screens + Given I access the application on "" + When I perform common actions like navigation and form submissions + Then UI elements are consistent and functional + + Examples: + | device | + | desktop | + | mobile | + | tablet | + + @ui + Scenario Outline: Multi-Device Order Placement + Given I access the application on "" + When I add items to the cart and proceed to checkout + And I complete the order + Then order placement is successful across all devices with consistent user experience + + Examples: + | device | + | desktop | + | mobile | + | tablet | + + # API Test Scenarios + @api + Scenario Outline: Integration with External Systems + Given the external inventory system is operational + When I navigate to a product page + Then the displayed inventory level matches the external system's inventory data + + Examples: + | product_id | + | 101 | + | 202 | + + @api + Scenario Outline: Payment Gateway Error Handling + Given I have items in the cart and a payment method selected + When I simulate a payment gateway error "" + And I attempt to complete the payment + Then I receive a clear error message and am prompted to retry or select a different payment method + + Examples: + | error_type | + | network failure | + | invalid card | + + @api + Scenario Outline: Order Status Transition + Given an order is placed and initially in pending status + When I confirm the order + And I ship the order + Then order status transitions correctly at each step with appropriate notifications + + Examples: + | order_id | + | 1001 | + | 1002 | + + @api + Scenario Outline: Sensitive Data Masking + Given I perform actions that involve sensitive data entry + When I submit the form + Then sensitive data is masked in logs and partially displayed in UI + + Examples: + | action | + | enter card info| + | enter password | + + @api + Scenario Outline: Inventory Update Synchronization + Given integration with external inventory management system is active + When I update inventory levels in the external system + And I navigate to the product page in the application + Then the displayed inventory matches the updated levels + + Examples: + | product_id | + | 303 | + | 404 | diff --git a/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.json b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.json new file mode 100644 index 00000000..e1798816 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.json @@ -0,0 +1 @@ +[{"type":"functional","title":"User Registration","description":"Verify user registration with valid details.","testId":"TC-001","testDescription":"A new user registers with valid information to create an account.","prerequisites":"User must not have an existing account with the same email.","stepsToPerform":"1. Navigate to the registration page.\n2. Enter valid user details including name, email, and password.\n3. Click 'Register' button.","expectedResult":"User account is created successfully and a confirmation email is sent.","additionalFields":"PII data must be masked in logs, Email format validation"},{"type":"functional","title":"Product Search and Filtering","description":"Verify product search and filtering functionality.","testId":"TC-002","testDescription":"A user searches for a product and applies filters to narrow down results.","prerequisites":"Products must be available in the database.","stepsToPerform":"1. Navigate to the search bar.\n2. Enter a product keyword.\n3. Apply filters such as price range and category.\n4. Click 'Search' button.","expectedResult":"Relevant products are displayed according to the search criteria and filters.","additionalFields":"Boundary Value Analysis for price filters, UI responsiveness check"},{"type":"functional","title":"Shopping Cart Management","description":"Verify adding and removing items from the shopping cart.","testId":"TC-003","testDescription":"A user adds products to the cart and removes them as needed.","prerequisites":"User must be logged in.","stepsToPerform":"1. Search and select a product.\n2. Click 'Add to Cart'.\n3. Navigate to the cart.\n4. Remove a product from the cart.","expectedResult":"Products are added and removed from the cart successfully.","additionalFields":"Data integrity check for cart updates, UI interaction validation"},{"type":"functional","title":"Checkout Process","description":"Verify the checkout process including payment gateway integration.","testId":"TC-004","testDescription":"A user completes the checkout process using a valid payment method.","prerequisites":"User must have items in the cart and a valid payment method.","stepsToPerform":"1. Navigate to the cart.\n2. Click 'Checkout'.\n3. Enter shipping details.\n4. Select a payment method.\n5. Complete the payment.","expectedResult":"Order is placed successfully and payment is processed.","additionalFields":"Error handling for payment failures, Data validation for shipping details"},{"type":"functional","title":"Order Confirmation and Notification","description":"Verify order confirmation and notification email.","testId":"TC-005","testDescription":"A user receives an order confirmation and notification email after successful checkout.","prerequisites":"Order must be successfully placed.","stepsToPerform":"1. Complete the checkout process.\n2. Check the email inbox for confirmation.","expectedResult":"User receives an order confirmation email with order details.","additionalFields":"Email content validation, State Transition testing for order status"},{"type":"functional","title":"User Profile Management","description":"Verify updating user profile information.","testId":"TC-006","testDescription":"A user updates their profile information such as name, address, and contact number.","prerequisites":"User must be logged in and have an existing profile.","stepsToPerform":"1. Navigate to the user profile page.\n2. Edit profile details such as name, address, and contact number.\n3. Click 'Save' button.","expectedResult":"Profile information is updated successfully and changes are reflected immediately.","additionalFields":"Data integrity checks for updated information, PII data must be masked in logs"},{"type":"functional","title":"Role-based Access Control","description":"Verify access control based on user roles.","testId":"TC-007","testDescription":"Different user roles have access to specific features and functionalities.","prerequisites":"Users with different roles must exist in the system.","stepsToPerform":"1. Log in as an admin user.\n2. Access admin-specific features.\n3. Log out and log in as a regular user.\n4. Attempt to access admin features.","expectedResult":"Admin features are accessible only by admin users, regular users are restricted.","additionalFields":"Decision Table testing for role-based access, UI elements visibility based on roles"},{"type":"functional","title":"Data Validation and Error Handling","description":"Verify error handling for invalid data submission.","testId":"TC-008","testDescription":"The system handles errors gracefully when invalid data is submitted in forms.","prerequisites":"User must be logged in.","stepsToPerform":"1. Navigate to any form requiring data input.\n2. Enter invalid data (e.g., incorrect email format).\n3. Submit the form.","expectedResult":"Appropriate error messages are displayed, and the user is prompted to correct the data.","additionalFields":"Error message content validation, UI responsiveness to error prompts"},{"type":"functional","title":"Integration with External Systems","description":"Verify integration with external inventory management system.","testId":"TC-009","testDescription":"The system accurately reflects inventory levels from an external management system.","prerequisites":"External inventory system must be operational and integrated.","stepsToPerform":"1. Navigate to a product page.\n2. Check the displayed inventory level.\n3. Verify against the external system's inventory data.","expectedResult":"Displayed inventory levels match the data from the external system.","additionalFields":"Data synchronization checks, Error handling for integration failures"},{"type":"functional","title":"UI Interactions Across All Screens","description":"Verify consistent UI interactions across different devices and browsers.","testId":"TC-010","testDescription":"The user interface behaves consistently across various devices and browsers.","prerequisites":"Access to multiple devices and browsers.","stepsToPerform":"1. Access the application on a desktop browser.\n2. Perform common actions like navigation and form submissions.\n3. Repeat steps on a mobile browser and tablet.","expectedResult":"UI elements are consistent and functional across all tested devices and browsers.","additionalFields":"Cross-browser compatibility checks, Responsive design validation"},{"type":"functional","title":"Payment Gateway Error Handling","description":"Verify system behavior when payment gateway returns an error.","testId":"TC-011","testDescription":"Simulate a payment failure scenario to ensure the system handles it gracefully.","prerequisites":"User must have items in the cart and a payment method selected.","stepsToPerform":"1. Navigate to the checkout page.\n2. Select a payment method.\n3. Simulate a payment gateway error (e.g., network failure).\n4. Attempt to complete the payment.","expectedResult":"User receives a clear error message and is prompted to retry or select a different payment method.","additionalFields":"Error message content validation, Retry mechanism verification"},{"type":"functional","title":"Order Status Transition","description":"Verify correct state transitions for order statuses.","testId":"TC-012","testDescription":"Ensure order status transitions correctly from pending to confirmed to shipped.","prerequisites":"Order must be placed and initially in pending status.","stepsToPerform":"1. Place an order and verify initial status is pending.\n2. Confirm the order and check status changes to confirmed.\n3. Ship the order and verify status changes to shipped.","expectedResult":"Order status transitions correctly at each step with appropriate notifications.","additionalFields":"State Transition testing, Notification content validation"},{"type":"functional","title":"Sensitive Data Masking","description":"Verify masking of sensitive PII data in logs and UI.","testId":"TC-013","testDescription":"Ensure sensitive information like credit card numbers and passwords are masked.","prerequisites":"User must perform actions that involve sensitive data entry.","stepsToPerform":"1. Navigate to a payment page.\n2. Enter credit card details.\n3. Submit the form and check logs.\n4. Verify UI does not display full sensitive data.","expectedResult":"Sensitive data is masked in logs and partially displayed in UI.","additionalFields":"Log inspection for data masking, UI data masking verification"},{"type":"functional","title":"Multi-Device Order Placement","description":"Verify order placement process across different devices.","testId":"TC-014","testDescription":"Ensure the order placement process is seamless on desktop, mobile, and tablet.","prerequisites":"Access to multiple devices with internet connectivity.","stepsToPerform":"1. Access the application on a desktop.\n2. Add items to the cart and proceed to checkout.\n3. Complete the order.\n4. Repeat the process on mobile and tablet.","expectedResult":"Order placement is successful across all devices with consistent user experience.","additionalFields":"Cross-device compatibility checks, Responsive design validation"},{"type":"functional","title":"Inventory Update Synchronization","description":"Verify real-time synchronization of inventory updates.","testId":"TC-015","testDescription":"Ensure inventory updates are reflected in the system immediately after changes.","prerequisites":"Integration with external inventory management system must be active.","stepsToPerform":"1. Update inventory levels in the external system.\n2. Navigate to the product page in the application.\n3. Verify the displayed inventory matches the updated levels.","expectedResult":"Inventory updates are synchronized in real-time with the external system.","additionalFields":"Data synchronization checks, Real-time update verification"}] \ No newline at end of file diff --git a/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.xlsx b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.xlsx new file mode 100644 index 00000000..68c1029f Binary files /dev/null and b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.xlsx differ