cancel
Showing results for 
Search instead for 
Did you mean: 

Token Storage

Highlighted
Frequent Visitor

Token Storage

Hi,

 

For one of the test we wish to run we will call a service and receive a token. I am trying to understand whether when we call the service and receive the valid response with the token, whether SOAPUI stores the token somewhere, or whether a specific action needs to be taken to store the token.

 

The token will be needed to be able to conduct subsequent test case steps?

 

If it is not possible to store the token using a prebuilt function of SOAPUI is it possible to do this in groovy.

 

Cheers,


Tim

2 REPLIES 2
Highlighted
Community Hero

Re: Token Storage

User have to handle it based on the response message. If you have sample response, probably someone will be able to help you to retrieve and use it in further service calls.

For example, here is some sample script to retrieve, note that it was specific to that response only.

https://github.com/nmrao/soapUIGroovyScripts/blob/b1f3a2eea91b1f82bd5f4c8ff9d4198afd7d3245/groovy/Js...

Here is another example how to set cookie as header to the mentioned step automatically.

https://github.com/nmrao/soapUIGroovyScripts/blob/b1f3a2eea91b1f82bd5f4c8ff9d4198afd7d3245/groovy/Se...


Regards,
Rao.
Highlighted
Occasional Contributor

Re: Token Storage

 You can create new custom property and use property transfer to set token value into the property from your response.