Forum Discussion

HEATConsultant's avatar
HEATConsultant
Occasional Contributor
7 years ago

How to store response sessionkey as a variable to use in other steps?

I would like to automate the below so that whe I get a sessionkey (Step1) I can save it automatically as a variable and then use it for future steps (Step 2, etc)

 

Curent Scenario:

 

Step 1:  Connect SOAP Request which results in a response that includes MySessionKey

 

<connectionStatus>Success</connectionStatus>
<sessionKey>MySessionKey</sessionKey>

 

Step 2:  Create Record Request the xml used here needs to contain the sessionkey

<saas:sessionKey>MySessionKey</saas:sessionKey>

 

How can I accomplish this?  

 

 

  • Hi HEATConsultant

     

    In that Case you can you in-built feature of SoapUI, i.e. Property Transfer.

     

    It will Help you to Fetch value from any tag and Update value of any tag.

     

    Go Through Below link to understand how it works:

     

    SoapUI Property Transfer

     

     

    Do Like and Accept if you find it as Solution.

     

    Thanks,

    Himanshu Tayal

  • Hi HEATConsultant

     

    In that Case you can you in-built feature of SoapUI, i.e. Property Transfer.

     

    It will Help you to Fetch value from any tag and Update value of any tag.

     

    Go Through Below link to understand how it works:

     

    SoapUI Property Transfer

     

     

    Do Like and Accept if you find it as Solution.

     

    Thanks,

    Himanshu Tayal