Forum Discussion
Use DataSource to fetch the data from excel sheet and then use DataSource Loop to loop through all the testcases inside excel. If you don't know how to implement this. Here is the link :- https://support.smartbear.com/readyapi/docs/testing/data-driven/tutorials/jtds/loop.html
Hi,
I am using soap ui open sources so please suggest how to implement it.
- avidCoder7 years agoSuper Contributor
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.
- radhika17 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.
- radhika17 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.
- radhika17 years agoContributor
can anyone reply?
Related Content
- 11 years agoSoapRookie
Recent Discussions
- 6 days agoemoya