Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problems in web services
#1
Solved: 11 Years, 4 Months, 3 Weeks ago Toungue 
hello all,

I am facing the following problem in QTP 9.5. I am using the web services add-in to test..well..web services Tongue

anyways, the following is the code;

Code:
WSOrdReq = WebService("WSWebSer").WSOrdReq(DataTable("Branch", dtGlobalSheet), DataTable("Company", dtGlobalSheet), DataTable("Login", dtGlobalSheet), DataTable("Password", dtGlobalSheet), DataTable("MISMO_Ver", dtGlobalSheet), DataTable("DataStream", dtGlobalSheet))

XMLFile("WS.xml").Check CheckPoint("WS.xml")

When the arguments are all valid, the web service returns an XML output which is verified via an xml checkpoint above, however, when an invalid argument is passed or an argument which does not generate any data, the web service is supposed to generate an exception, which it does, but that exception basically stops QTP's test run.

Now i need to capture that exception and add a checkpoint to verify whether its the intended exception thrown by the web service e.g. an exception is supposed to be thrown when an invalid login is sent...my checkpoint will verify actual and expected exception but it cannot as the exception is generated and shown by QTP in an error message and it stops execution.

Need help. Sad
Reply


Messages In This Thread
Problems in web services - by bc993aaa - 06-27-2008, 05:02 PM
RE: Problems in web services - by bc993aaa - 07-08-2008, 08:14 PM
RE: Problems in web services - by Ankur - 07-09-2008, 11:10 AM
RE: Problems in web services - by bc993aaa - 07-09-2008, 11:47 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  submit web services without using add in luckyexpert 0 1,682 08-21-2013, 08:50 PM
Last Post: luckyexpert
  Getting an 'Error in XML document' Error when submitting web services XML luckyexpert 0 3,156 08-20-2013, 10:23 PM
Last Post: luckyexpert
Exclamation Problems with "WScript.Shell" [QTP 10.0] Mukesh.Laxmidhar 0 4,002 01-17-2011, 02:11 PM
Last Post: Mukesh.Laxmidhar
  Problems adding swftoolbar repository pruebastool 0 3,217 07-27-2010, 06:25 PM
Last Post: pruebastool
Sad Web Services Question shiva_kumar 3 3,136 11-20-2009, 07:04 PM
Last Post: Raj20091

Forum Jump:


Users browsing this thread: 2 Guest(s)