lundi 1 janvier 2018

How to change xml every time Taurus tests run?

I have following yaml for Taurus tests :

- url: 'someURL'
    method: POST
    label: 'SomeLabel'
    headers:
     Content-Type: "application/xml"
     Authorization: "auth"
     remote_user: "someUser"
    body-file: './requests/some.xml'
    assert:
      - contains:
        - 200
        subject: http-code
        regexp: true
    assert-xpath:
      - xpath: "//response//someId[.='00001']"

So when I run these test someId gets returned. Id gets returned according to the data in some.xml. Recently our requirement was to someIds gets returned according to if data is seen in previous requests then someIDs will change, that I don't want. What I want is whenever the tests run one field in xml should change in a way it wasn't seen before, is there something in Taurus to get this requirement.

Aucun commentaire:

Enregistrer un commentaire