Forum Discussion
omatzura
17 years agoSuper Contributor
Hi,
there is no really easy way to do this currently; you will need to create a groovy script that manually builds the entire XML block by calling the next( testRunner, context ) method of the DataSource step to get the next row, something like
def xml = ...
def dataSource = testRunner.testCase.testSteps["DataSource"]
while( dataSource.next() )
{
xml += .. add to xml block..
}
context.blockOfXml = xml
and then use this variable with
${blockOfXml}
in your request..
Hope this helps!
regards,
/Ole
eviware.com
there is no really easy way to do this currently; you will need to create a groovy script that manually builds the entire XML block by calling the next( testRunner, context ) method of the DataSource step to get the next row, something like
def xml = ...
def dataSource = testRunner.testCase.testSteps["DataSource"]
while( dataSource.next() )
{
xml += .. add to xml block..
}
context.blockOfXml = xml
and then use this variable with
${blockOfXml}
in your request..
Hope this helps!
regards,
/Ole
eviware.com
Related Content
- 13 years ago
- 4 years ago
- 2 years ago
- 4 years ago
Recent Discussions
- 15 years ago