Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read the HTTP response inside QTP script
#2
Not Solved
Hi,

You got to use an asynchronous call with the URL and then get back the response body.

From what I could remember,

Code:
Set httpObj = CreateObject("MSXML2.XMLHTTP")
httpObj.open "GET","Your URL", FALSE  /*(False makes an asynchronous call)
httpObj.send

msgbox httpObj.responseText

there are other methods and properties such as getResponseHeader(method) & responseBody(property), which can be used according to your requirement. For more information just check the msdn library for the object MSXML2.XMLHTTP

Hope this helps.

Cheers,
Anil
Reply


Messages In This Thread
RE: Read the HTTP response inside QTP script - by anil2u - 10-14-2013, 06:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Set Value in JavaEdit Inside JavaTable yonobev 9 12,971 11-08-2017, 11:12 PM
Last Post: lotos
  Objects inside WpfList shinji458 23 22,270 11-08-2017, 10:54 PM
Last Post: lotos
  Sending json file request and validating response in soap UI tool using Groovy script smiley 0 3,875 07-19-2017, 04:58 PM
Last Post: smiley
  Want to read the data from excel and set read value in the JavaTable rajeevk7 0 2,307 07-10-2017, 04:20 PM
Last Post: rajeevk7
  Get numbers inside all webelements in webtable and sort them pradeep537 1 2,809 08-04-2016, 01:24 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)