svanoort / pyresttest

Python Rest Testing
Apache License 2.0
1.15k stars 325 forks source link

Variables are not passing from one test set to another #246

Closed mravitej closed 7 years ago

mravitej commented 7 years ago
  1. Hi, I declared variables in config and iam using in below test case. the variables are not passing. iam not able to figure out the actual issue.
    • config:

      Variables to use in the test set

    • variable_binds: {'user_id': 'ravitej', 'pass': 'L@ntr0n1x', 'auth': 'plain'}
  1. In this below case: I'm running 1st test set and I'm getting some auth_token in response this auth_token is saved to auth_key to use in another test set, but this auth_key is not passing to the 2nd test set. it was passing an empty variable. I tried all possible ways wich are posted in Github still I am getting the same problem

Thanks in advance, Ravi Teja

mvitiuk commented 7 years ago

you need to template headers, like

but use your "$auth_key"

mravitej commented 7 years ago

Thanks @mvitiuk, it's working now.

svanoort commented 7 years ago

Closed as resolved