Forum Discussion

SPA-CSW's avatar
SPA-CSW
New Contributor
11 years ago
Solved

[Resolved] Create rrequest xml tags with data driven testing

Hi, I'm currently implementing some data driven tests and i want to dynamically create some xml tags based on the data that comes from the excel file. For example, if i have data in a specific e...
  • SPA-CSW's avatar
    11 years ago
    I've managed to solve the problem.
    Basically I used the SoapUI Pro event (RequestFilter.filterRequest), and implemented a simple groovy script that filters the requests before they are sent to the server. So the request is created based on the data that i have in the excel sheet and then the event deletes the xml tags that I don't want to send.
    I created two different event scripts, one for individual XML tags and other for xml nodes. With this approach is possible to have only one xml request template and the users can test all the combinations changing only the data in the excel file.