Forum Discussion

asantev2's avatar
asantev2
Occasional Contributor
2 months ago
Solved

Data-Driven Loop in BDD Tests

Used Gherkin syntax to create a set of values to run a data loop, however, it is not using the data set properly

 

  • Thanks for the explanation and resources, I fixed it with the code in the screen shot with no errors, what do you think? 

     

9 Replies

  • Humashankar's avatar
    Humashankar
    Champion Level 0

    If the data set is being properly utilized 
    Please check the it is correctly retrieve and use the data from the Gherkin scenario's examples table

    Hope this helps - Happy to help further !!

    Thank you very much and have a fantastic day!

    Warm regards

     

    • asantev2's avatar
      asantev2
      Occasional Contributor

      Hi, it is not correctly retrieving the data set from the examples table, the same script works when I use the one username or password, but the same script runs into an error with the table in the examples. What could possibly be wrong?

      • rraghvani's avatar
        rraghvani
        Champion Level 3

        You have not provided the step definitions, only the scenario?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    Here's a simple example,

    In your code, you are not using any of the function parameters.

    • asantev2's avatar
      asantev2
      Occasional Contributor

      How can I edit my code to use the function parameters? or where in my code can I implement using the function parameters? I am not well versed in coding. Please help.

    • asantev2's avatar
      asantev2
      Occasional Contributor

      Thanks for the explanation and resources, I fixed it with the code in the screen shot with no errors, what do you think?