diff --git a/functional_tests/README.md b/functional_tests/README.md new file mode 100644 index 00000000..5087ef56 --- /dev/null +++ b/functional_tests/README.md @@ -0,0 +1,23 @@ +# Roost Generated Functional Test + +**Execution Date:** 1/11/2026, 5:31:55 AM + +**Test Unique Identifier:** "TCSBaNCS_functional-after-fix" + +**Input(s):** + 1. bankspromot.txt + Path: /var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/12043b8c-5ab1-4ec8-8e64-5209df53a436/bankspromot.txt + 2. TCSBaNCS_ST_BSSB_FSD_CallCenterOperator_v14.2.docx + Path: /var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/12043b8c-5ab1-4ec8-8e64-5209df53a436/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/12043b8c-5ab1-4ec8-8e64-5209df53a436/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..845a3d13 --- /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:31:55.445Z", + "updated_at": "2026-01-11T05:31:55.445Z" + }, + "files": { + "input_files": [ + { + "fileName": "TCSBaNCS_functional-after-fix.txt", + "fileURI": "/var/tmp/Roost/RoostGPT/TCSBaNCS_functional-after-fix/12043b8c-5ab1-4ec8-8e64-5209df53a436/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/12043b8c-5ab1-4ec8-8e64-5209df53a436/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/12043b8c-5ab1-4ec8-8e64-5209df53a436/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/12043b8c-5ab1-4ec8-8e64-5209df53a436/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..94a70349 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.csv @@ -0,0 +1,15 @@ +User Registration and Account Creation +Product Search and Filtering +Checkout Process with Payment Gateway Integration +Order Confirmation and Receipt Generation +Promotional Code Application +Shopping Cart Management +User Profile Management +Product Review and Rating System +Order History and Tracking +Customer Support Interaction +Invalid Payment Method Handling +Tax and Shipping Fee Calculation +Expired Promotional Code Handling +Order Status Transition +Data Protection Compliance \ 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..be152f7f 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..9596be20 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.feature @@ -0,0 +1,214 @@ +Feature: E-commerce Platform Functional Testing + + # UI Test Scenarios + @ui + Scenario Outline: User Registration and Account Creation + Given I am on the registration page + When I enter valid personal information including name "", email "", and password "" + And I agree to terms and conditions + 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 | Pass123! | + | Alice | alice@example.com| Secure456!| + + @ui + Scenario Outline: Product Search and Filtering + Given I am logged in and on the homepage + When I enter "" in the search bar + And I click the 'Search' button + And I apply filters such as price range "" and category "" + Then search results are displayed according to the search term and applied filters + + Examples: + | product_name | price_range | category | + | Laptop | $500-$1000 | Electronics| + | Shoes | $50-$100 | Fashion | + + @ui + Scenario Outline: Checkout Process with Payment Gateway Integration + Given I have items in the shopping cart + When I navigate to the shopping cart + And I click the 'Checkout' button + And I enter shipping information "" + And I select payment method "" + And I complete payment through the payment gateway + Then the order is placed successfully + And payment is processed + + Examples: + | shipping_info | payment_method | + | 123 Main St, City, Zip | Credit Card | + | 456 Elm St, City, Zip | PayPal | + + @ui + Scenario Outline: Order Confirmation and Receipt Generation + Given I have completed a purchase + When I check my email for order confirmation + And I view the order receipt in my user account + Then an order confirmation email is received + And the receipt is available in the user account + + Examples: + | email_address | + | user1@example.com | + | user2@example.com | + + @ui + Scenario Outline: Promotional Code Application + Given I have items in the shopping cart and a valid promotional code "" + When I navigate to the shopping cart + And I proceed to checkout + And I enter the promotional code in the designated field + And I click 'Apply' button + Then a discount is applied to the order total + And it is reflected in the final amount + + Examples: + | promo_code | + | SAVE10 | + | DISCOUNT20 | + + @ui + Scenario Outline: Shopping Cart Management + Given I am logged in and browsing products + When I add a product "" to the shopping cart + And I update the quantity of the product in the cart to "" + And I remove a product "" from the cart + Then items are added, updated, and removed from the shopping cart successfully + + Examples: + | product | quantity | product_to_remove | + | Book | 2 | Book | + | Laptop | 1 | Laptop | + + @ui + Scenario Outline: User Profile Management + Given I am logged in and on the profile page + When I update personal information fields with name "", email "", and address "
" + And I save changes + Then profile information is updated successfully + And changes are reflected immediately + + Examples: + | name | email | address | + | John | john@example.com | 123 Main St | + | Alice | alice@example.com| 456 Elm St | + + @ui + Scenario Outline: Product Review and Rating System + Given I have purchased the product and am logged in + When I navigate to the purchased product page + And I enter a review "" in the designated field + And I select a rating "" + And I submit the review and rating + Then the review and rating are submitted successfully + And displayed on the product page + + Examples: + | review | rating | + | Great product! | 5 | + | Not satisfied | 2 | + + @ui + Scenario Outline: Order History and Tracking + Given I am logged in and have placed orders + When I navigate to the order history page + And I select an order to view details + And I check the tracking status of the order + Then order history is displayed with accurate details + And tracking information is up-to-date + + Examples: + | order_id | + | 12345 | + | 67890 | + + @ui + Scenario Outline: Customer Support Interaction + Given I am logged in and on the support page + When I fill out the support request form with details "
" + And I submit the support request + Then the support request is submitted successfully + And a confirmation message is displayed + + Examples: + | details | + | Issue with order | + | Account question | + + @ui + Scenario Outline: Invalid Payment Method Handling + Given I have items in the shopping cart and an invalid payment method saved + When I navigate to the shopping cart + And I click 'Checkout' button + And I select the invalid payment method + And I attempt to complete the payment + Then payment is declined + And an error message is displayed to the user + + Examples: + | invalid_method | + | Expired Card | + | Invalid PayPal | + + @ui + Scenario Outline: Tax and Shipping Fee Calculation + Given I have items in the shopping cart and am ready to checkout + When I navigate to the shopping cart + And I click 'Checkout' button + And I enter shipping address "
" + And I review the calculated tax and shipping fees + Then tax and shipping fees are calculated accurately + And based on the shipping address and order total + + Examples: + | address | + | 123 Main St, Zip | + | 456 Elm St, Zip | + + @ui + Scenario Outline: Expired Promotional Code Handling + Given I have items in the shopping cart and an expired promotional code "" + When I navigate to the shopping cart + And I proceed to checkout + And I enter the expired promotional code in the designated field + And I click 'Apply' button + Then an error message is displayed indicating the promotional code is expired + And no discount is applied + + Examples: + | expired_code | + | OLD10 | + | EXPIRED20 | + + @ui + Scenario Outline: Order Status Transition + Given I have placed an order and am logged in + When I navigate to the order history page + And I select the recent order + And I monitor status changes from pending to confirmed, shipped, and delivered + Then order status transitions correctly + And is updated in real-time + + Examples: + | order_id | + | 12345 | + | 67890 | + + @ui + Scenario Outline: Data Protection Compliance + Given I am on the registration page + When I enter personal information including name "", email "", and password "" + And I review and consent to data protection policies + And I click 'Register' button + Then user registration is successful + And data protection consent is recorded + + Examples: + | name | email | password | + | John | john@example.com | Pass123! | + | Alice | alice@example.com| Secure456!| 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..d77cf512 --- /dev/null +++ b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.json @@ -0,0 +1 @@ +[{"type":"functional","title":"User Registration and Account Creation","description":"Verify that a new user can successfully register and create an account.","testId":"TC-001","testDescription":"A new user fills out the registration form with valid details and submits it.","prerequisites":"User is on the registration page.","stepsToPerform":"1. Navigate to the registration page.\n2. Enter valid personal information including name, email, and password.\n3. Agree to terms and conditions.\n4. Click 'Register' button.","expectedResult":"User account is created successfully and a confirmation email is sent.","additionalFields":"Email format validation, Password strength validation, Terms and conditions acceptance"},{"type":"functional","title":"Product Search and Filtering","description":"Verify that users can search for products and apply filters.","testId":"TC-002","testDescription":"A user searches for a product and applies filters to narrow down results.","prerequisites":"User is logged in and on the homepage.","stepsToPerform":"1. Enter product name in the search bar.\n2. Click 'Search' button.\n3. Apply filters such as price range and category.","expectedResult":"Search results are displayed according to the search term and applied filters.","additionalFields":"Search term validation, Filter application, Result accuracy"},{"type":"functional","title":"Checkout Process with Payment Gateway Integration","description":"Verify the checkout process including payment gateway integration.","testId":"TC-003","testDescription":"A user completes the checkout process using a valid payment method.","prerequisites":"User has items in the shopping cart.","stepsToPerform":"1. Navigate to the shopping cart.\n2. Click 'Checkout' button.\n3. Enter shipping information.\n4. Select payment method.\n5. Complete payment through the payment gateway.","expectedResult":"Order is placed successfully and payment is processed.","additionalFields":"Payment method validation, Shipping information accuracy, Payment gateway response handling"},{"type":"functional","title":"Order Confirmation and Receipt Generation","description":"Verify that an order confirmation and receipt are generated after a successful purchase.","testId":"TC-004","testDescription":"A user receives an order confirmation and receipt after completing a purchase.","prerequisites":"User has completed a purchase.","stepsToPerform":"1. Complete the checkout process.\n2. Check email for order confirmation.\n3. View order receipt in user account.","expectedResult":"Order confirmation email is received and receipt is available in the user account.","additionalFields":"Email receipt format, Order details accuracy, Receipt accessibility"},{"type":"functional","title":"Promotional Code Application","description":"Verify that users can apply valid promotional codes during checkout.","testId":"TC-005","testDescription":"A user applies a valid promotional code at checkout to receive a discount.","prerequisites":"User has items in the shopping cart and a valid promotional code.","stepsToPerform":"1. Navigate to the shopping cart.\n2. Proceed to checkout.\n3. Enter promotional code in the designated field.\n4. Click 'Apply' button.","expectedResult":"Discount is applied to the order total and reflected in the final amount.","additionalFields":"Promotional code validation, Discount calculation accuracy, Expired code handling"},{"type":"functional","title":"Shopping Cart Management","description":"Verify that users can add, update, and remove items from the shopping cart.","testId":"TC-006","testDescription":"A user manages items in their shopping cart by adding new items, updating quantities, and removing items.","prerequisites":"User is logged in and browsing products.","stepsToPerform":"1. Add a product to the shopping cart.\n2. Update the quantity of the product in the cart.\n3. Remove a product from the cart.","expectedResult":"Items are added, updated, and removed from the shopping cart successfully.","additionalFields":"Cart update validation, Quantity change reflection, Cart item removal confirmation"},{"type":"functional","title":"User Profile Management","description":"Verify that users can update their profile information.","testId":"TC-007","testDescription":"A user updates their profile information including name, email, and address.","prerequisites":"User is logged in and on the profile page.","stepsToPerform":"1. Navigate to the profile page.\n2. Update personal information fields.\n3. Save changes.","expectedResult":"Profile information is updated successfully and changes are reflected immediately.","additionalFields":"Data integrity checks, Profile update confirmation, Email format validation"},{"type":"functional","title":"Product Review and Rating System","description":"Verify that users can submit reviews and ratings for purchased products.","testId":"TC-008","testDescription":"A user submits a review and rating for a product they have purchased.","prerequisites":"User has purchased the product and is logged in.","stepsToPerform":"1. Navigate to the purchased product page.\n2. Enter a review in the designated field.\n3. Select a rating.\n4. Submit the review and rating.","expectedResult":"Review and rating are submitted successfully and displayed on the product page.","additionalFields":"Review content validation, Rating scale validation, Review submission confirmation"},{"type":"functional","title":"Order History and Tracking","description":"Verify that users can view their order history and track orders.","testId":"TC-009","testDescription":"A user views their order history and tracks the status of an order.","prerequisites":"User is logged in and has placed orders.","stepsToPerform":"1. Navigate to the order history page.\n2. Select an order to view details.\n3. Check the tracking status of the order.","expectedResult":"Order history is displayed with accurate details and tracking information is up-to-date.","additionalFields":"Order details accuracy, Tracking status updates, Order history accessibility"},{"type":"functional","title":"Customer Support Interaction","description":"Verify that users can contact customer support through the platform.","testId":"TC-010","testDescription":"A user initiates a customer support request through the website.","prerequisites":"User is logged in and on the support page.","stepsToPerform":"1. Navigate to the customer support page.\n2. Fill out the support request form with details.\n3. Submit the support request.","expectedResult":"Support request is submitted successfully and a confirmation message is displayed.","additionalFields":"Support form validation, Submission confirmation, Support request tracking"},{"type":"functional","title":"Invalid Payment Method Handling","description":"Verify system behavior when an invalid payment method is used during checkout.","testId":"TC-011","testDescription":"A user attempts to complete a purchase using an invalid or expired payment method.","prerequisites":"User has items in the shopping cart and an invalid payment method saved.","stepsToPerform":"1. Navigate to the shopping cart.\n2. Click 'Checkout' button.\n3. Select the invalid payment method.\n4. Attempt to complete the payment.","expectedResult":"Payment is declined, and an error message is displayed to the user.","additionalFields":"Error message validation, Payment method verification, User guidance for resolution"},{"type":"functional","title":"Tax and Shipping Fee Calculation","description":"Verify that tax and shipping fees are calculated accurately during checkout.","testId":"TC-012","testDescription":"A user proceeds to checkout and reviews the calculated tax and shipping fees.","prerequisites":"User has items in the shopping cart and is ready to checkout.","stepsToPerform":"1. Navigate to the shopping cart.\n2. Click 'Checkout' button.\n3. Enter shipping address.\n4. Review the calculated tax and shipping fees.","expectedResult":"Tax and shipping fees are calculated accurately based on the shipping address and order total.","additionalFields":"Tax rate validation, Shipping fee calculation, Address-based fee adjustment"},{"type":"functional","title":"Expired Promotional Code Handling","description":"Verify system behavior when an expired promotional code is applied during checkout.","testId":"TC-013","testDescription":"A user attempts to apply an expired promotional code at checkout.","prerequisites":"User has items in the shopping cart and an expired promotional code.","stepsToPerform":"1. Navigate to the shopping cart.\n2. Proceed to checkout.\n3. Enter the expired promotional code in the designated field.\n4. Click 'Apply' button.","expectedResult":"An error message is displayed indicating the promotional code is expired, and no discount is applied.","additionalFields":"Expired code validation, Error message clarity, User guidance for valid codes"},{"type":"functional","title":"Order Status Transition","description":"Verify that order status transitions correctly from pending to delivered.","testId":"TC-014","testDescription":"A user places an order and tracks its status through various stages.","prerequisites":"User has placed an order and is logged in.","stepsToPerform":"1. Navigate to the order history page.\n2. Select the recent order.\n3. Monitor status changes from pending to confirmed, shipped, and delivered.","expectedResult":"Order status transitions correctly and is updated in real-time.","additionalFields":"Status update timing, Real-time tracking, Notification accuracy"},{"type":"functional","title":"Data Protection Compliance","description":"Verify compliance with data protection regulations during user registration.","testId":"TC-015","testDescription":"A new user registers and consents to data protection policies.","prerequisites":"User is on the registration page.","stepsToPerform":"1. Navigate to the registration page.\n2. Enter personal information including name, email, and password.\n3. Review and consent to data protection policies.\n4. Click 'Register' button.","expectedResult":"User registration is successful, and data protection consent is recorded.","additionalFields":"Consent recording validation, Privacy policy accessibility, User data handling compliance"}] \ 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..cf20a2ad Binary files /dev/null and b/functional_tests/TCSBaNCS_functional-after-fix/TCSBaNCS_functional-after-fix.xlsx differ