Forum Discussion
nmrao
Champion Level 3
Consider storing the access token at higher level instead of test case level property i.e., either test suite or project level depending on your use case of reusing token.
You will be able to access the token in your requests using ${#TestSuite#TOKEN} or ${#Project#TOKEN}, assuming toke is stored as respective level property TOKEN
You will be able to access the token in your requests using ${#TestSuite#TOKEN} or ${#Project#TOKEN}, assuming toke is stored as respective level property TOKEN
sergeykutsakov
8 years agoOccasional Contributor
I don't understand how to get access_token? I need use groovy script?
- sergeykutsakov8 years agoOccasional Contributor
I should illustrate.
I need access token for other testcases. I send this token to server side in header:HHToken: HD4K9SM6SU3OG59T36GH136EK8CBDQVNR01ONQ9PAT4JP2
SoapUI offers variant send it in header as:
Authorization: Bearer HD4K9SM6SU3OG59T36GH136EK8CBDQVNR01ONQ9PAT4JP2
But this variant is unsuitable for me.
So I create teststep with request in which I get acess_token. Only acess_token which I transfer to other testcase.
I think it is not good idea. Can you suggest me other variant how can I get acсess_token?
- nmrao8 years agoChampion Level 3Do you want to show the response(just structure with dummy element, not necessarily the actual data)?
- sergeykutsakov8 years agoOccasional Contributor
I need send this access_token in current and next request in header as
HHToken: xxxxxxxxxxxxxxxxxxxxxxx
I ask how to save or transfer access_token?
Related Content
- 2 years ago
- 3 years ago
Recent Discussions
- 3 days ago