Solved
Forum Discussion
Radford Thanks a lot for your answer!
And, do you know how to set "DataSource - Number of Rows" property from groovy?
Thant would also be great to have.
Regards,
Joaquin.
jcabelloa, I'm not sure I understand what you are refering to when you say "DataSource - Number of Rows"? Do you mean the "Rows Per Iteration" option? If so I think you need:
// Example run from Groovy Script test step def dataSourceTestStep = testRunner.getTestCase().getTestStepByName("DataSource") dataSourceTestStep.setRecordsPerIteration(1)
Radford Is it possible to set the DataSource row at the project level in a startup script?
Note: You are asking a different question, it's probably best to start a new topic.
I assume you mean the start row?
I don't have time at the moment to test this, but I think you need something like:
// Example run from Project Setup Script def dataSourceTestStep = project.getTestSuiteByName("Your Test Suite Name").getTestCaseByName("Your Test Case Name").getTestStepByName("DataSource") dataSourceTestStep.setStartRow("2")