In our cucumber feature file, we are using scenario outline, and we have requirement before running script to populate data at run time.
Based on the city route being passed in the data file, we create PNR using a API which returns me a actual PNR. PNR value created need to be stored in the scenario data table so it can be used in step definition.
If we have Scenario, we can use the DataTable function to access the values inside function. Do we have any class to interact with scenario outline data table
e.g.
Scenario Outline:
Given user have opened the application
And verifies if lookup page is loaded successfully
Then enter <PNR> as confirmation number
Then enter <LastName> as last name
Examples:
|DepartureCity|ArrivalCity|PNR|PassengerName|
|BAH |AUH | |BRUCE WAYNe |
If you notice, i'm not passing PNR value in the data table as blank, and want to update the value once script execution starts
Based on the route being passed, PNR get created at run time. I want to update the value which i receive from CreatePassengerNameRecord() function
Kindly let me know if existing class or alternative solution to solve this issue.
--
Posting rules: http://cukes.info/posting-rules.html
---
You received this message because you are subscribed to the Google Groups "Cukes" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cukes+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.