tavern icon indicating copy to clipboard operation
tavern copied to clipboard

The data saved in the previous stage is not the value saved when the next stage is used

Open iakirago opened this issue 3 years ago • 1 comments

Here is the example

  - name: Create testcase for use
    request:
      url: "{HOST:s}/parallel/tests/"
      method: POST
      json:
        name: 'cov-test'
    response:
      strict:
        - json:off
      status_code: 200
      save:
        json:
          new_run_id: "testcase.run_id"
          newtest_uuid: "testcase.uuid"
          newtest_id: "testcase.id"

  - name: Verify uievents API
    request:
      url: "{HOST}/parallel/{newtest_id}/{new_run_id}"
      method: GET
    response:
      strict:
        - json:off
      status_code: 200

The first stage saved new_run_id is 1,and when used in the second stage it changed to '0'. I would like to know where is the problem and how to solve this problem.

Thanks!

iakirago avatar Jun 22 '22 03:06 iakirago

Can you provide the logs from tavern to show this happening? I can't reproduce this locally

michaelboulton avatar Jun 26 '22 10:06 michaelboulton