Forum Discussion

alibaba82's avatar
alibaba82
Super Contributor
14 years ago

XML file reader

Hello,
Is it possible to have a new teststep called XML. There are times where I need to read XML from an external sources other than a soap/rest step. Typically its just copy/pasting xml or reading xml from some remote file location. Currently, I use groovy to accomplish this but it is a lot of work. I need to be able to create assertions and perform others actions that are supported in soap/rest teststeps in this XML teststep.

Thanks

Ali

2 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Thanks for suggestion. We'll see to add it in next releases.

    robert
  • M_McDonald's avatar
    M_McDonald
    Super Contributor
    Maybe this would help in the meantime. I have always wanted to be able have separate assertion steps to be able to manage assertions more effectively, so what I came up with was this:

    1) Create a mock service that just echoes whatever is posted to it
    2) Create HTTP POST requests that get their content from another XML source (for me it was a SOAP or REST response) and point them at the echo service
    3) Add assertions to each HTTP request as desired.