Not able to get updated excel data in the test suite

Ask general questions here.
Shaifali.khera
Posts: 1
Joined: Mon May 01, 2017 1:57 am

Not able to get updated excel data in the test suite

Post by Shaifali.khera » Mon May 01, 2017 2:06 am

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
ScreenShot001.jpg (63.78 KiB) Viewed 391 times
How to get rid of it from within code?

Thanks

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

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

Post by krstcs » Mon May 01, 2017 4:44 pm

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.
Shortcuts usually aren't...