Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 #609

Open
manikandanma17 opened this issue Sep 30, 2024 · 8 comments

Comments

@manikandanma17
Copy link

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:

  1. Run below CLI command

lavague-qa --url https://xxxxxxx.com/ --feature feature/create_product.feature

  1. 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
Screenshot 2024-09-30 at 3 08 42 PM Screenshot 2024-09-30 at 3 08 19 PM

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.
Screenshot 2024-09-30 at 3 08 42 PM Screenshot 2024-09-30 at 3 08 19 PM
@manikandanma17
Copy link
Author

It is my humble request to Lavaque team to look in to this issue on high priority as i am blocked with Parameterization of data passing.

@dhuynh95
Copy link
Collaborator

Hi @manikandanma17,
We are working on a revamp from scratch that will make our Agent much more efficient.
We will release it in a week or so and it should solve your issue.
In the meantime, could you either share more information on the website if it's public, and if it's not, could you ping me on my Discord to see how we can figure this out? My handle is DHuynh95

@manikandanma17
Copy link
Author

manikandanma17 commented Oct 1, 2024

@dhuynh95 Thanks for responding to my issue. The web app that i am using for testing is of our organization, hence i could not share it here. But the scenario which i am trying to handle is very simple and generic.

Say for example:
1.Launch a web app which takes user to login page
2.Now, i want to Lavague-QA to read test and test123 values which are stored under "Examples" section of login_test.feature file in to respective input box (username/password)
3. Currently observing it is passing the "" as it is, in to the input box instead of referring to the values mentioned below.

Below is the login_test.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 |

@manikandanma17
Copy link
Author

@dhuynh95 Could you please let me know once Lavague latest version is released? so that i will be able to check parameterization is working or not.
Thanks.

@dhuynh95
Copy link
Collaborator

dhuynh95 commented Oct 7, 2024

Hi @manikandanma17,
Sorry for the time to answer, big launch in preparation.
We are opening a private beta to test the new performance of our Agent API. Would you be interested in trying? If so, we can discuss together to see how we could onboard you.

@manikandanma17
Copy link
Author

@dhuynh95 Thanks for the reply. Apologies, as I am quite occupied with some urgent work, I would not be able to take part of what you are asking.

Sorry if i am bothering you on same thing again, Could please let me know when latest Lavague build will be released? as I am currently blocked to perform any tests with parameterization passing in it.

@manikandanma17
Copy link
Author

@dhuynh95 Could you please let me know if LaVague latest version is released already or not? As you have mentioned above in one of your reply that you are planning for big launch for LaVague.
I am eagerly waiting to see parameterisation issue is resolved with a new release of LaVague .

@dhuynh95
Copy link
Collaborator

dhuynh95 commented Jan 3, 2025

Hi @manikandanma17,
Sorry for not providing news yet. We are finishing cooking and we have an initial version that looks good for testing!
We will release officially end of January but we want to onboard a small pool of early users to get quick feedback from a small group of people before releasing for everyone.
Would you be interested in early access? If so, you can ping me on Discord (dhuynh95 or dhuynh)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants