Forum Discussion
Hi,
I am using soap ui open sources so please suggest how to implement it.
DataSource Loop makes it easier to run multiple test cases.. And this feature you can get once you buy the license. Otherwise,, You need to write java/groovy code to implement this. You can give a try using for loop :-
def ds = testRunner.testCase.getTestStepByName('DataSource')
def totalRow = 5
def col1, col2, col3
def request = ""
for (row in 1..totalRow) {
if (row > 1) {
testRunner.testCase.getTestStepByName('DataSource').next(testRunner, context)
}
col1= ds.getPropertyValue('col1')
col2= ds.getPropertyValue('col2')
request += "<column1>${col1}</column1><column2>${col2}</column2>"
}This way you need to write codes which is really tough to handle.
- radhika18 years agoContributor
Could you please let me know how to pull the 1st row of excel and execute a test case one time then pull the second row of excel and run the same test case again in open source.
Could you please provide steps for the same.
- radhika18 years agoContributor
Could you please let me know how to pull the 1st row of excel and execute a test case one time then pull the second row of excel and run the same test case again in open source.
Could you please provide steps for the same.