Property array
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Property array
Hi,
I wanted to know if it was possible to store multiple value in a property and call the elements in a request. Something like
array = 1|2|3 (property in TestSuite for example)
and ${#TestSuite#array#0} would return 1 and so on. Is there something like that ? I read that you could use delimiter with | but i didn't really find much more on the doc and on the forum. (also, i don't use the pro version)
Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry for the slow response, kinda lost track this weekend ^^
I'm doing a JDBC request and retrieving multiple value of the same data type. Using a property transfer i can transfer one result into one property, which is not enough for what i want. I would need to put several value of the same type into one property.
The only solution i could think of was to somehow retrieve the xml results of the jdbc request in a groovy script (i guess it must be possible) and then create as much variables as there are results. But i thought it would be way simpler to just be able to put several values into one property.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Regards,
Rao.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I get a xml response from the jdbc request, i want to use then each of the multiple result in a soap request, for that i use the transfer property step usually, but it only allows me to transfer a single value with xpath, into a single property (like, Results/ResultSet/Row/myProp into properties step#myProp).
What i would like to do is, having multiple value stored somewhere (in properties i would guess), that i can call from a soap request with a number as parameter for retrieving different value of the same type, the same way you would fetch a specific row in xpath using Results/ResultSet/Row[n]. So it would be something like Results/ResultSet/Row[n] into ${properties step#myProp#n}. Is it possible to achieve something similar in a simple way in soapui ? Only way i can think of is retrieving the xmlResponse in a groovy script and creating n property and instanciating each of them manually, which is a bit ugly to do.
I don't know if i'm very clear, it's not very easy to explain something when i lack the specific vocabulary, sorry.
