12 years ago
REST Resource URI and XPath Assertions
I am currently evaluating soapui pro for use in our dev team.
I've been trying to use soapui pro to create a test suite with CRUD operations. I have configured all REST steps/PropertyTransfers and are running fine independently. When I started placing assertions, the namespace appears to include the 'id' - for example, 'http://localhost/service/employees/1001' where I have defined my REST URI as 'service/employees/{id}'. I am trying to see if soapui pro supports the dynamic change of the namespace name when doing assertions using xpath. Since CRUD operations generate unique ids every time the test suite is run, I also need to dynamically change the namespace structure for the assertions.
Is this supported? if not, it there a workaround for it?
Thanks in advance.
I've been trying to use soapui pro to create a test suite with CRUD operations. I have configured all REST steps/PropertyTransfers and are running fine independently. When I started placing assertions, the namespace appears to include the 'id' - for example, 'http://localhost/service/employees/1001' where I have defined my REST URI as 'service/employees/{id}'. I am trying to see if soapui pro supports the dynamic change of the namespace name when doing assertions using xpath. Since CRUD operations generate unique ids every time the test suite is run, I also need to dynamically change the namespace structure for the assertions.
Is this supported? if not, it there a workaround for it?
Thanks in advance.