priyanka
13 years agoNew Contributor
How to rename the properties dynamically
Hi,
I am new to SoapUI.So far it is looking like a good tool for me but i am stuck at one requirement and need your help.
My requests need a parameter/property whose 'name' changes with the tests.For example one tests uses the request with parameter/property 1,2,3 and the next test uses the same property value(or a different value) but with new name 4,5,6.
I tried adding a project property say (pic1) whose value(say 1) is being fetched from a file.
Then i tried to use ${#Project#pic1} as one of the request properties with a value(like file:c:\image.gif)
i was hoping that the name of the paramter being sent in the request(multipart form ,post request) will be replaced by 1 and filename parameter will be file:c:\image.gif.
But actually the name shown in the raw request remains ${#Project#pic1} and is not replace by '1' instead.
i know i can work around this by creating multiple different requests but i want to avoid doing that if there is a smarter way available.Please help!
I am new to SoapUI.So far it is looking like a good tool for me but i am stuck at one requirement and need your help.
My requests need a parameter/property whose 'name' changes with the tests.For example one tests uses the request with parameter/property 1,2,3 and the next test uses the same property value(or a different value) but with new name 4,5,6.
I tried adding a project property say (pic1) whose value(say 1) is being fetched from a file.
Then i tried to use ${#Project#pic1} as one of the request properties with a value(like file:c:\image.gif)
i was hoping that the name of the paramter being sent in the request(multipart form ,post request) will be replaced by 1 and filename parameter will be file:c:\image.gif.
But actually the name shown in the raw request remains ${#Project#pic1} and is not replace by '1' instead.
i know i can work around this by creating multiple different requests but i want to avoid doing that if there is a smarter way available.Please help!