Forum Discussion

Krithika's avatar
Krithika
Occasional Contributor
15 years ago

Reuse xml in http requests

Hi,

Is there a way to define the XML script globally that can be used in many http requests ? so if there is a change in the script i do not have to update each test case one by one.
Please let me know if there is any feature for this.


Thanks,
Krithika
  • tkumark's avatar
    tkumark
    Occasional Contributor
    one option might be in TestSuite under "Test Properties" create a property and past the xml there and call this property will you tests. Paste${#Testcase#xml} where ever required in the request
  • Krithika's avatar
    Krithika
    Occasional Contributor
    Thanks you for your reply.

    I tried that but it fails and I get 400 bad request because there is no valid xml in the body except ${#TestSuite#xml}