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

How to modify/update contents of tabular parameter in JBehave example table #15

Open
AmitRai22 opened this issue Sep 10, 2015 · 0 comments

Comments

@AmitRai22
Copy link

I need to modify content value of Example table of Scenario of JBehave story file through a Step-file(Java-method) will it be possible ?

eg.Story file

*Scenario* :Modifying_Example_Table

**Given** Previous values of example_table_row <Product_Sold>

**Given** Change the status of Product_Sold by Java method 


**Given** Print both previous and current status of Product_Sold

*Examples*:

|Product_Sold |

|"No"|

So can we update the value of Column Product_Sold by the step

"Given Change the status of Product_Sold by Java method"
as below

|Product_Sold |

|"Yes"| 

!--value of Product_Sold changed from "No" to "Yes" that I want by some code inside Step file

Step File :

@Given(Change the status of Product_Sold by Java method )
public void SomeJavaMethod()
{
//Some ExampleTable code to modify the value of  tabular parameter "Product_Sold"


}

so what should be the code inside above method in step file ?

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

1 participant