gregory_kozel
15 years agoNew Contributor
Dynamic XML generation in Request
Greetings,
I was wondering if SoapUI has the capability to generate XML tags in the request message.
example of what I am asking - take this generic soap request:
1
2
3
In this example, fields 1 2 and 3 are being parsed out from a .txt file:
field1=1
field2=2
field3=3
and my Properties step is being populated accordingly. However, I would like to be able to parse out a .txt file that might have these fields repeating, i.e. simulating multiple rows from a database
so the .txt file would look somthing like follows:
field1=1
field2=2
field3=3
field1=4
field2=5
field3=6
My script will overwrite the Properties in my testCase with 4, 5 & 6 respectively (although this is a different issue).
I'd like to find a way to dynamically generate 3 new xml tags in this case for the request message, to look like the following:
1
2
3
4
5
6
Thank you in advance for any advice you may provide. If my question is unclear, I will gladly provide more detail where possible.
~Greg
I was wondering if SoapUI has the capability to generate XML tags in the request message.
example of what I am asking - take this generic soap request:
In this example, fields 1 2 and 3 are being parsed out from a .txt file:
field1=1
field2=2
field3=3
and my Properties step is being populated accordingly. However, I would like to be able to parse out a .txt file that might have these fields repeating, i.e. simulating multiple rows from a database
so the .txt file would look somthing like follows:
field1=1
field2=2
field3=3
field1=4
field2=5
field3=6
My script will overwrite the Properties in my testCase with 4, 5 & 6 respectively (although this is a different issue).
I'd like to find a way to dynamically generate 3 new xml tags in this case for the request message, to look like the following:
Thank you in advance for any advice you may provide. If my question is unclear, I will gladly provide more detail where possible.
~Greg