Forum Discussion
6 Replies
Sort By
- nmraoChampion Level 3Consider 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- sergeykutsakovOccasional Contributor
I don't understand how to get access_token? I need use groovy script?
- sergeykutsakovOccasional 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?
Related Content
- 2 years ago
- 3 years ago
Recent Discussions
- 3 days ago