Ask a Question

Get Data dialog doesn't pass just the property data

davidkcoblentz
New Contributor

Get Data dialog doesn't pass just the property data

I am new to ReadyAPI and am building my first Test Suite along with a New Test Case called Query Print List. I added 6 Test Steps (SOAP calls) and have tested each one and  they all work properly. My firsts test step issues a LOGON to the endpoint which returns a SessionID. This SessionID is needed in each of the 5 steps that follow in this test case. I am using the Get Data Dialog in the second step to get the SessionID from the response of the first step but keep getting an error Invalid SessionID as if ReadyAPI is not filling it in.

 

What am I doing wrong??. I can't get it to work even when I try to manually refer to it.

 

This is my Test Case and steps

davidkcoblentz_0-1679431000057.png

This is my Get Data Dialog Request for the second step to get the SessionID from the first step

davidkcoblentz_1-1679431053500.png

 

 

4 REPLIES 4
ChrisAdams
Community Leader

After the test has ran, have you checked the Raw Request tab of the second request to see it has been added as you expect?

davidkcoblentz
New Contributor

I figured out that I could add Property Transfer Steps in order to accomplish copying the properties to other steps as needed and now the Test Case and all of it's steps work great. I noticed when I did that I needed to change the Path Language to XPath to get it to work. I am wondering if that is what is causing the Get Data not to work. Maybe it is using one of the other methods to get the properties.

 

With Property Transfer steps it now works great

davidkcoblentz_0-1679522112387.png

I did have to change Path Language to XPath to get it to work

davidkcoblentz_2-1679522371731.png

 

I am stil curious why the Get Data did not work right. This is the XML from the second step that it simply says the SESSID is invalid. I am still curious why?

davidkcoblentz_3-1679522690393.png

I get this error still when trying to use Get Data

davidkcoblentz_4-1679522959615.png

 

ChrisAdams
Community Leader

Hi,

 

At least you have a working solution.  As for why it didn't work, I don't know.  I use Get Data all the time.  Fab piece of functionality.

The only thing I could suggest is check the 'Raw' tab of the request in question.  The 'raw' tab shows exactly what SoapUI/ReadyAPI passed to the webservice after the vars have been interpolated by the ${stuff} expressions in the XML view.

Sorry, you suggested the RAW data tab before, I didn't know that was after variable substitution.
This is the RAW data that it sends when I use Get Data 

davidkcoblentz_1-1679595543392.png

After I correct the SessID parameter with valid data and the step runs successfully, this is the comparison between the two RAW data steps. I am not sure why it insists on including the XML Schema again, but apparently that is what breaks it.

davidkcoblentz_2-1679595860988.png

 

 

cancel
Showing results for 
Search instead for 
Did you mean: