Hi Deepesh Jain
deepesh.jain wrote: |
---|
I believe you are trying to parameterize your test request which would accept 2 parameters from the two columns in your excel sheet. And you have 3 sets of data in 3 rows. If this is what you want to do, then you can create property transfer step and transfer properties from row 1 to properties step which would have two properties. You would then read these from your request and then finally place a data source loop to loop through 3 rows. |
This is what I'm trying to do yes - and a property transfer is what I would use. The thing is though, the node I'm trying to populate is an ArrayOfObjects. So I can't just point and click (or use XPath) where the data should transfer too, I have to dynamically add an element to the Array first, then transfer the data of the row, then add another Array element and so on. So in order to use the property transfer, I would first have to create the same number of Array elements in the request as I have rows in my Excel. That however wouldn't be the point of storing the data in an Excel, as I would have to adjust the request everytime I alter the amount of data in the Excel.
Is there a standard way of doing this or would I have to refer to Groovy? I don't know Groovy at all. With JavaScript it would be easy, but as far as I can see JavaScript isn't really supported. I can only see it in the project properties, but when I switch to JS, it seems the interpreter is still expecting Groovy - and I also can't find any documentation on JavaScript usage in SoapUI.
Thanks,
Christof