Forum Discussion
skillsoft
16 years agoFrequent Contributor
Hi,
I spoke too soon. If I have 80 rows in a spreadsheet and the subscription id in rows 3,79 and 80 are blank and my code is looking to update the spreadsheet on those 3 using:
if(testRunner.testCase.testSteps["companies"].getPropertyValue("BooksSubscriptionID")=="")
{
.
.
.
testStep.run( testRunner, context )
}
What happens when the testcase is done running is rows 1,2 and 3 are overwritten instead of updating 3,79,80. I essentially have to run "run" for each row, in which case I may as well have the datasink enabled and just change the value of the subscription id in the datasink. Any other ideas or is that the way it's going to work?
Thanks,
Mary
I spoke too soon. If I have 80 rows in a spreadsheet and the subscription id in rows 3,79 and 80 are blank and my code is looking to update the spreadsheet on those 3 using:
if(testRunner.testCase.testSteps["companies"].getPropertyValue("BooksSubscriptionID")=="")
{
.
.
.
testStep.run( testRunner, context )
}
What happens when the testcase is done running is rows 1,2 and 3 are overwritten instead of updating 3,79,80. I essentially have to run "run" for each row, in which case I may as well have the datasink enabled and just change the value of the subscription id in the datasink. Any other ideas or is that the way it's going to work?
Thanks,
Mary