Micro Focus QTP (UFT) Forums
The QTP 9.5 with Web Services add-in is behaving very strange with multi dimensional - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: The QTP 9.5 with Web Services add-in is behaving very strange with multi dimensional (/Thread-The-QTP-9-5-with-Web-Services-add-in-is-behaving-very-strange-with-multi-dimensional)



The QTP 9.5 with Web Services add-in is behaving very strange with multi dimensional - bcmouli - 03-21-2008

Hi,

We are having couple of APIs which returns multidimensional arrays, but the QTP shows the return correctly for the first called API and for all the rest it is showing as single dimensional array. Doesn’t matter which API, but it only shows correctly the first called API. Please suggest me on how to resolve this issue. By using lastResponse, I can proceed with our test scripting, but have to figure out why this QTP is behaving like this.

Thanks in advance…


RE: The QTP 9.5 with Web Services add-in is behaving very strange with multi dimensional - Ankur - 03-21-2008

Please post your code and error(s) here.

Don't forget to format the code using "Preview Post" button given below.


RE:The QTP 9.5 with WebServices addin is behaving very strange with multi dimensional - bcmouli - 03-21-2008

‘If the below code is run, then logon1 shows as 2 D and list shows as 1 D.
Code:
logon1 = WebService("SoapApiService").super(parameter1,parameter2)
list = WebService("SoapApiService").listcommand(parameter1,parameter2)
'The following is seen in the debug viewer

[-]logon1(0,0)
[-]logon1(0,0)
[-]logon1(1,0)
[-]logon1(1,1)

[-]list(0)
[-]list(1)

‘If the below code is run, then list shows as 2 D and logon shows as 1 D.
Code:
list = WebService("SoapApiService").listcommand(parameter1,parameter2)
logon1 = WebService("SoapApiService").super(parameter1,parameter2)
'The following is seen in the debug viewer

[-]list(0,0)
[-]list(0,0)
[-]list(1,0)
[-]list(1,1)

[-]logon1(0)
[-]logon1(1)

‘I am able to capture the return xml from the below cmd and continue.
Code:
Set var_List = WebService("SoapApiService").LastResponse