Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The QTP 9.5 with Web Services add-in is behaving very strange with multi dimensional
#1
Not Solved
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…
Reply
#2
Not Solved
Please post your code and error(s) here.

Don't forget to format the code using "Preview Post" button given below.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
‘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


Attached Files
.doc   qtp.doc (Size: 32 KB / Downloads: 87)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Strange form, cant get it marvson 0 1,464 05-12-2016, 07:35 PM
Last Post: marvson
  Strange Behaviour of SwfTable robertosalemi 2 3,356 12-29-2015, 03:41 PM
Last Post: robertosalemi
  Multi Select in UFT/ QTP vanga 0 3,513 02-25-2015, 07:03 PM
Last Post: vanga
  Testing Web Services sohalshah 10 8,724 04-17-2014, 01:29 AM
Last Post: Tp123
  sort two dimensional array. venkatesh9032 0 1,814 03-06-2014, 02:47 PM
Last Post: venkatesh9032

Forum Jump:


Users browsing this thread: 2 Guest(s)