Page 1 of 1

Not able to get updated excel data in the test suite

Posted: Mon May 01, 2017 2:06 am
by Shaifali.khera
Hi,

I have a scenario where I need to update the data bound excel in a test case within test suite and use the updated excel in another test case within the same test suite. But i can't do that without clicking on following popup.
ScreenShot001.jpg
How to get rid of it from within code?

Thanks

Re: Not able to get updated excel data in the test suite

Posted: Mon May 01, 2017 4:44 pm
by krstcs
You really should not be updating your initial test data during the test. This is considered to be a violation of the repeatability requirements for testing. If your data is different each time, then you don't know if the SUT is the issue or if your data change is the issue when your test fails. Any test, and especially automation, should have the same data each time your test run starts so you have a common base-line and your tests are consistent.

If you need to get the initial data and then do a calculation based on that, you should use a Global Parameter to save the returned value from your first test case and then pass that parameter in to the second test case.