tag:blogger.com,1999:blog-5047841583820836253.post8092056449187457896..comments2024-02-22T11:37:38.305+01:00Comments on Stefan Thelenius about Software Testing: XML automation - Part V - Validate XML responseStefan Theleniushttp://www.blogger.com/profile/14073416685551547144noreply@blogger.comBlogger20125tag:blogger.com,1999:blog-5047841583820836253.post-81466775489886387732014-01-16T15:32:07.865+01:002014-01-16T15:32:07.865+01:00Please check out the complete series for how to ca...Please check out the complete series for how to call etc, search for XML Automation in the blog.<br /><br />The public Web Service in my example is on the Internet and I am not sure if it is still there.<br /><br />Good luck!Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-77491926328013725182014-01-16T15:14:41.789+01:002014-01-16T15:14:41.789+01:00Thanks, is the public web service inbuild within U...Thanks, is the public web service inbuild within UFT? how to call Web service using XML XSD??Anonymoushttps://www.blogger.com/profile/04783151262930369938noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-58966827713851694512014-01-16T14:59:34.250+01:002014-01-16T14:59:34.250+01:00@invisible0786
Hi,
In theory each of your steps ...@invisible0786<br /><br />Hi,<br /><br />In theory each of your steps should work in UFT. Use a public web service and ellaborate with my example code above, should work in UFT I guess. I don't use QTP anymore so I can't support you in this matter, I recommend AdvancedQTP for further assistance.<br /><br />Good luck!<br /><br />/Stefan<br />Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-30333719816316516752014-01-16T10:34:01.041+01:002014-01-16T10:34:01.041+01:00I need to automate following scenario for UFT Proo...I need to automate following scenario for UFT Proof of concept.<br /><br />1) Load of XML file<br />2) Call Web service using XML file/data <br />3) Receive that Web service as service request from API<br />4) Receive web service call from API<br />5) Extract XML payload <br />6) Load expected XML output <br />7) Compare actual andexpected XML files <br />8) Record result Pass / FAIL and no further<br /><br />In UFT, is it possible to create and load XML file then call web service using XML file/data?<br /><br />Is it possible to create a Mock webservice in UFT for POC testing?<br /><br />I think point 2 is the tricky one here and I don’t know how to call webservice in UFT without using WSDL.<br /><br />Thanks in advance for your help.<br /><br />Looking forward for your quick reply<br /><br />Regards<br />KAPIL<br />Anonymoushttps://www.blogger.com/profile/04783151262930369938noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-40442176453241102062013-09-30T08:40:23.976+02:002013-09-30T08:40:23.976+02:00I have no REST examples but I guess it should work...I have no REST examples but I guess it should work.Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-42564193219200452042013-09-30T06:44:00.750+02:002013-09-30T06:44:00.750+02:00Hi Stefan,
I am not sure whether this post is stil...Hi Stefan,<br />I am not sure whether this post is still alive. One question about your XML aumtomation for SOAP based webservices.Can the code be used to test rest based webservices? If yes could you please post sample code abuot that as well.Unknownhttps://www.blogger.com/profile/13159563015745407816noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-89615411067958393652011-11-20T10:29:34.889+01:002011-11-20T10:29:34.889+01:00Wow, there is really much worthwhile info here!Wow, there is really much worthwhile info here!www.teruel-3d.comhttp://www.teruel-3d.comnoreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-21617275451417163082010-05-03T22:09:08.617+02:002010-05-03T22:09:08.617+02:00Hi,
Can you please let me know how to use Username...Hi,<br />Can you please let me know how to use UsernameToken credentials ?<br /><br />Thanks<br />ManiManizhttps://www.blogger.com/profile/12474426064231643348noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-5321160244512933782010-05-03T22:08:02.314+02:002010-05-03T22:08:02.314+02:00This comment has been removed by the author.Manizhttps://www.blogger.com/profile/12474426064231643348noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-43055575526624552222010-04-30T21:13:47.641+02:002010-04-30T21:13:47.641+02:00Hi
Thanks for your reply.
I have sent a mail with...Hi<br />Thanks for your reply.<br /><br />I have sent a mail with my request and response.<br /><br />Please help me on this.Manizhttps://www.blogger.com/profile/12474426064231643348noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-2452305408325891652010-04-30T09:57:48.236+02:002010-04-30T09:57:48.236+02:00Hi,
Have you provided credetials (WinHttpReq.SetC...Hi,<br /><br />Have you provided credetials (WinHttpReq.SetCredentials)?<br /><br />/StefanStefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-36164877511817245552010-04-29T21:47:17.363+02:002010-04-29T21:47:17.363+02:00Hi
I am trying to send a SOAP request using vbscr...Hi<br /><br />I am trying to send a SOAP request using vbscript. I am getting this error<br /><br />No credentials were found and the authenticate action was configured to fail in this situation.<br /><br />Can you please help me on thisManizhttps://www.blogger.com/profile/12474426064231643348noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-77167504272607573952009-11-23T17:21:24.328+01:002009-11-23T17:21:24.328+01:00The number os characters is 2055, below than 2,169...The number os characters is 2055, below than 2,169,895.Unknownhttps://www.blogger.com/profile/01534283186696934439noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-51952305954642027322009-11-23T08:33:05.033+01:002009-11-23T08:33:05.033+01:00OK,
So you get a part of your response...have man...OK,<br /><br />So you get a part of your response...have many characters do you get in the response before truncation? Is it below 2,169,895 ?Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-48611355794903805992009-11-19T17:07:53.662+01:002009-11-19T17:07:53.662+01:00The XML gets truncated.
I am receiving this error ...The XML gets truncated.<br />I am receiving this error directly from WinHttpReq.ResponseText. There is not error just XML gets truncated so later will fail on validation since format is not correct.<br /><br />I have not found the reason, the only thing I know is that the response is way bigger than other request that I have done and have worked.Unknownhttps://www.blogger.com/profile/01534283186696934439noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-20735845077897092202009-11-18T09:12:51.112+01:002009-11-18T09:12:51.112+01:00Hi,
I have not encountered a response out of rang...Hi,<br /><br />I have not encountered a response out of range...yet<br /><br />What kind of problem do you get?Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-15785258999055987362009-11-18T00:05:43.724+01:002009-11-18T00:05:43.724+01:00Hello Stefan your code is really good :) It realle...Hello Stefan your code is really good :) It realle helped me testing web services, I just have a question regarding the size of the response I am having problem when the response is too big, do you suggest any solution to this. Lets say the response is 35879 characters. I saw this text in the http info "This property can only be invoked after the Send method has been called.<br /><br />When using this property in synchronous mode, the limit to the number of characters it returns is approximately 2,169,895."<br /><br />Any idea?Unknownhttps://www.blogger.com/profile/01534283186696934439noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-89172491028709548352008-07-28T22:04:00.000+02:002008-07-28T22:04:00.000+02:00This code really rocks. Good Work...This code really rocks. Good Work...Sanjay Kumarhttps://www.blogger.com/profile/09034814893171298615noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-87936631088300702022008-03-31T12:15:00.000+02:002008-03-31T12:15:00.000+02:00Thanks! I checked your blog but I am not that good...Thanks! I checked your blog but I am not that good in reading Portuguese. I like the concept of smartphones but I'm more into smaller cell-phones like my <A HREF="http://europe.nokia.com/link?cid=PLAIN_TEXT_216098" REL="nofollow">Nokia 6500 Classic</A>Stefan Theleniushttps://www.blogger.com/profile/14073416685551547144noreply@blogger.comtag:blogger.com,1999:blog-5047841583820836253.post-70269943822510837472008-03-31T11:53:00.000+02:002008-03-31T11:53:00.000+02:00Hello. This post is likeable, and your blog is ver...Hello. This post is likeable, and your blog is very interesting, congratulations :-). I will add in my blogroll =). If possible gives a last there on my blog, it is about the <A HREF="http://smartphone-brasil.blogspot.com" REL="nofollow">Smartphone</A>, I hope you enjoy. The address is http://smartphone-brasil.blogspot.com. A hug.<A HREF="4511180838" REL="nofollow"></A>Anonymousnoreply@blogger.com