Parameterization is not working in Lavague-QA: Variable parameter is passed in to input field as it is, instead of values mentioned under "Examples" section of xxxx.feature file
Describe the bug Pre-requisites:
Below is the xxxxxx.feature file Feature: Create Product
Scenario Outline: Create a product Given Launch web app URL When User is on the login page And Maximize the page And Enter "" into "Username" field And Enter "" into "Password" field And Click on "SIGN IN" button
Examples:
| username | password |
| test | test123 |To Reproduce Steps to reproduce the behavior:
- Run below CLI command
lavague-qa --url https://xxxxxxx.com/ --feature feature/create_product.feature
- Observe that the variable mentioned in "Scenario Outline" is passed into input field as it is, instead of passing the corresponding value mentioned under "Examples" section
Note: Screenshots and Logs are attached here for your reference.
Expected behavior
The value mentioned under "Examples" section should be passed into respective input field as per variable mentioned in "Scenario Outline" section
Logs:
warnings.warn(warning_message, UserWarning) Ready to generate tests on https://xxxxxxx.com/ for Feature: Create Product
Scenario Outline: Create a product Given Launch web app URL When User is on the login page And Maximize the page And Enter "" into "Username" field And Enter "" into "Password" field And Click on "SIGN IN" button
Examples:
| username | password |
| test | test123 |2024-09-30 14:53:24,975 - INFO - Screenshot folder cleared 2024-09-30 14:53:34,002 - INFO - Thoughts:
- The current screenshot shows the login page for test-apps
- The objective is to ensure the user is on the login page, which is already achieved.
- The next step is to provide confirmation that the user is on the login page.
Next engine: COMPLETE Instruction: The user is on the login page of test-apps. 2024-09-30 14:53:34,004 - INFO - Objective reached. Stopping... 2024-09-30 14:53:40,055 - INFO - Thoughts:
- The current screenshot shows a login page for test-apps.
- The objective is to maximize the page.
- Maximizing the page will provide a better view and potentially reveal more elements that are currently not visible.
- The best next step is to use the Navigation Controls to maximize the window.
Next engine: Navigation Controls Instruction: MAXIMIZE_WINDOW 2024-09-30 14:53:49,271 - INFO - Thoughts:
- The current screenshot shows a login page for test-apps.
- The objective is to enter "" into the "Username" field.
- The "Username" field is visible and ready for interaction.
- The next step should involve entering the provided username into the "Username" field.
Next engine: Navigation Engine Instruction: Enter "" into the "Username" field. 2024-09-30 14:54:05,978 - INFO - Thoughts:
- The current screenshot shows a login page for test-apps.
- The objective is to enter a password into the "Password" field.
- The "Password" field is visible and ready for input.
- The next step is to enter the given password into the "Password" field.
Next engine: Navigation Engine Instruction: Enter "" into the "Password" field. 2024-09-30 14:54:16,183 - INFO - ### Thoughts:
- The current screenshot shows the sign-in page for test-apps.
- The username and password fields have been filled in the previous steps.
- The next step is to click on the "SIGN IN" button to proceed with the login process.
Source: lavague-ai/LaVague