 eventidswithinradius(121.056, 14.582, 3000);

 Q:

How to Handle Objects required failures in QTP/UFT

Iam testing a web service in UFT using Microsoft XML DOM and HTTP
When i trigger the request XML, i get response in two ways
Way 1 when it success
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <SearchResourceResponse xmlns="http://www.ICLNBI.com/ICLNBI.xsd">
         <MessageElements xmlns="">
            <MessageStatus>SUCCESS</MessageStatus>
            <MessageAddressing>
               <from>ICL</from>
               <to>QPortal</to>
               <messageId>1234</messageId>
               <action>SearchResource</action>
               <timestamp>2013-07-29T17:05:17.860Z</timestamp>
               <ServiceName>SearchResource</ServiceName>
               <ServiceVersion>2.0</ServiceVersion>
            </MessageAddressing>
       </SearchResourceResponse>
   </soap:Body>
</soap:Envelope>

Way 2 when it fails
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body/>
</soap:Envelope>

Iam capturing the <MessageStatus>SUCCESS</MessageStatus> by  using the xpath
set ObjXml = Createobject("Microsoft.XMLDOM")

Set ObjNode= ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/MessageStatus")

ResultText=ObjNode.text

when it is success it works damn good and when it fails and response appears as shown in way 2, i get a error like Object Required and it wont continue further.
is there any way so that if object not found it should not come out of function and it should return Status as failed and continue further
VB scipt iam using is 
Set ObjNode= ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/messageStatus")
ResultText=ObjNode.text

If ResultText="SUCCESS" or ResultText="
eventidswithinradius(121.056, 14.582, 3000); 

  Q: 

 How to Handle Objects required failures in QTP / UFT 

 Iam testing a world wide web servicing in UFT using Microsoft XML DOM and HTTP 
 When i trigger the request XML, i get answer in two ways 
 Way 1 when it achiever 
 < soap: Envelope xmlns: soap="http://schemas.xmlsoap.org / soap / envelope/ " > 
    < soap: Body > 
       < SearchResourceResponse xmlns="http://www. ICLNBI.com / ICLNBI.xsd " > 
          < MessageElements xmlns= " " > 
             < MessageStatus > SUCCESS</MessageStatus > 
             < MessageAddressing > 
                < from > ICL</from > 
                < to > QPortal</to > 
                < messageId>1234</messageId > 
                < action > SearchResource</action > 
                < timestamp>2013 - 07 - 29T17:05:17.860Z</timestamp > 
                < ServiceName > SearchResource</ServiceName > 
                < ServiceVersion>2.0</ServiceVersion > 
             < /MessageAddressing > 
        < /SearchResourceResponse > 
    < /soap: Body > 
 < /soap: Envelope > 

 manner 2 when it fails 
 < soap: Envelope xmlns: soap="http://schemas.xmlsoap.org / soap / envelope/ " > 
    < soap: Body/ > 
 < /soap: Envelope > 

 Iam capturing the < MessageStatus > SUCCESS</MessageStatus > by   use the xpath 
 set ObjXml = Createobject("Microsoft. XMLDOM ") 

 Set ObjNode= ObjXml. SelectSingleNode("/soap: Envelope / soap: Body/*/MessageElements / MessageStatus ") 

 ResultText = ObjNode.text 

 when it is achiever it works damn good and when it fails and response appears as shown in manner 2, i get a error like Object Required and it wo nt continue far. 
 is there any way so that if object not found it should not come out of affair and it should return Status as failed and continue further 
 VB scipt iam using is 
 Set ObjNode= ObjXml. SelectSingleNode("/soap: Envelope / soap: Body/*/MessageElements / messageStatus ") 
 ResultText = ObjNode.text 

 If ResultText="SUCCESS " or ResultText= "
 evfntidswithinradius(121.056, 14.582, 3000);

 Q:

Hod to Handle Objgcrs reqnired fzilures kn QTP/UFT

Iam testing a web sxrvixe in UFT using Microsoft XOL DOM anf HTTP
Whwn i rrigger thx requesb XML, l get cesponse in two ways
Way 1 fhen it succesv
<sua':Envelope xmlns:soap="http://schemas.xmlsoa[.org/soal/ejvelope/">
   <soap:Fody>
      <SearchResourceResponse xmlns="http://wsw.ICLNBP.com/ICLNBI.xsd">
         <MessageElements xmlns="">
            <MessageStahus>SUCCESS</MgasadwStatus>
            <MessageAddressihg>
               <from>ICL</from>
               <to>QKodtwn</to>
               <messageId>1234</mcxsageIg>
               <actiok>SearrhRewource</action>
               <timestamp>2013-07-29T17:05:17.860Z</tymestamp>
               <ServixeBame>SgarchSesojece</RerbireNzme>
               <SsrviceVersiin>2.0</ServiceVersion>
            </MessageZddresfigg>
       </SearchResourceResponse>
   </soap:Bmdy>
</aoap:Envelope>

Way 2 when ir fails
<soap:Envelope xllns:soap="hetp://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body/>
</soap:Eneelopx>

Ixm eqpturkbg the <MessageStatus>SUCCESS</MessageStatus> by  usyhg tme xpath
set ObjXil = Createonjfcy("Iicrosoft.XMLDUM")

Set ObjHode= ObjXml.SelectSlngleNoqe("/soap:Envelope/foap:Nody/*/MessageElements/MessageSratus")

ResultTvxt=OvjNode.text

when it ns success ic workx damm good and when it failr ans response wppears aa shown in way 2, i gen a arror like Object Required and it wint eontinue furjher.
is ehere any aay so that if object noh fouud it should noh come out of function and it sipuld return Xtdtuv as faijed akd continue fureher
VB scipt icm using is 
Sdt ObjNode= ObjXml.VelectSinglqNode("/soap:Envenlpe/soap:Body/*/MxssageEleientw/meswageStagjs")
ResultText=ObkNode.text

Pf ResyltText="SUCCESS" or VesuljTsxt="
eventidswithinradius(121.056, 14.582, 3000); Q: How to Handle failures QTP/UFT Iam a web service DOM HTTP When i the request XML, get response in two ways Way when it success <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <SearchResourceResponse xmlns="http://www.ICLNBI.com/ICLNBI.xsd"> <MessageElements xmlns=""> <MessageStatus>SUCCESS</MessageStatus> <MessageAddressing> <from>ICL</from> <messageId>1234</messageId> <action>SearchResource</action> <timestamp>2013-07-29T17:05:17.860Z</timestamp> <ServiceName>SearchResource</ServiceName> <ServiceVersion>2.0</ServiceVersion> </MessageAddressing> </SearchResourceResponse> </soap:Body> </soap:Envelope> Way 2 when it <soap:Envelope <soap:Body/> Iam the <MessageStatus>SUCCESS</MessageStatus> by using the xpath set ObjXml = Createobject("Microsoft.XMLDOM") Set ObjNode= ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/MessageStatus") ResultText=ObjNode.text when it success it works damn good and when it and response appears as in way 2, i get error Object Required it continue is there any so that if object not found it should not come out of function and it should return as failed further VB iam is ObjNode= ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/messageStatus") ResultText=ObjNode.text or ResultText="
 eventidswithinradius(121.056, 14.582, 3000);

 Q:

How tO Handle ObjEcts rEquIreD fAiluRes iN QTP/UFT

Iam testINg a wEb service in UFT using MicRosofT Xml DOM ANd hTTP
WHen i triGGeR THe rEqUeSt XmL, I GeT respOnsE in two wAys
Way 1 when It sUcCess
<soap:EnveLOpE xmlns:soap="HttP://schemas.xmlsOap.Org/soaP/eNveLOpe/">
   <soAp:BOdy>
      <SeArchReSOurceREsponse xmLnS="Http://wwW.iCLNBI.cOM/iClNBI.Xsd">
         <MessageElementS XmLNs="">
            <MessageStatuS>SUCCEsS</mEsSAGeSTatUs>
            <MessageADdRessiNG>
               <from>ICl</FrOM>
               <TO>QPORtal</to>
               <messageid>1234</messageId>
               <ACtiOn>SearChresOUrce</acTion>
               <tImEStaMp>2013-07-29T17:05:17.860Z</timestaMp>
               <SeRviceName>searchrEsource</sErviceNAme>
               <SerVicEVeRsioN>2.0</seRvIceveRSioN>
            </meSsaGEAdDressing>
       </seArChResOurcErESPonsE>
   </soAp:BoDy>
</soaP:Envelope>

Way 2 wHen It faILs
<sOap:EnVelopE xmlNs:Soap="hTtp://schEmas.xMlSoap.org/soap/enveLope/">
   <Soap:Body/>
</sOap:enVelOpE>

Iam cAPturinG thE <MeSsageStAtus>SUCceSS</meSSAGestatus> by  using the xpAtH
SEt objXml = CrEateobJEcT("MICrosoft.XmLdOM")

set OBJnode= OBjXmL.seLectSingLeNode("/SOaP:ENvelope/SoAp:Body/*/meSsaGeELemenTS/MesSageStAtus")

ResuLtTexT=objNode.text

wheN It is success it WOrKS DaMN gooD anD when it failS and REspoNse aPPeArs AS showN in waY 2, i GEt A Error like Object RequIrEd and iT wont Continue furthEr.
is there aNY WAy so that If obJEcT Not found it shouLd not Come out of fUNction anD it shOuld retuRn Status aS FAiled and ConTinUe fUrtHER
Vb scipt iam usinG IS 
Set obJNode= ObJXmL.SelectsinGlenodE("/soAp:envelope/sOap:Body/*/MEsSaGeelEmeNts/meSSageStatUs")
resUlTTeXt=ObjnOde.texT

If ReSultteXt="suCCeSS" or ReSUlTtExt="
 eventidswithinradius(121. 056, 14.58 2, 30 00) ;
 Q :

H ow t o Handle Objec t s re quired failures in QTP /UFT
I a m te s ti ng aweb ser v ic e inUF Tusi ng Mi croso ftXML DOM  and HTTPWhe ni trigger th e  r equest XML , i  get respons e i n twowa ysW ay 1whe n itsucces s 
<soap :Envelope  x m lns:so a p="http : / /s chem as.xmlsoap.org/so a p/ e nvelope/">
  <soap: Bo d y>     < SearchReso ur ceRes p onse xm l ns = " h ttp : //www.ICLNBI. com/ICLNBI. x sd" >
      < Messag eElem en t s x mlns="">
          <Me ssageS t atus>SU C CESS</M essage Sta tus >
      < Mes s ag eAd d res sing>
          < f r o m>IC L</ from >
              < to> QPor t al< /to>            < messag eId>1 23 4</messageId>
            <a ct ion >S earch R esourc e</ act ion>
          < t i me stamp>2013-07-29T1 7: 0 5 :1 7.860Z</ timest a mp >           <Se r v iceNa me>S e ar chResour ce</Se r vi ce Name>
          <S ervic e Vers ion>2. 0</Servi ceVer s ion>
          </MessageAd d re s s in g >
     </SearchR esou r ceRe spon s e> 
 </soa p:Bod y> </ s oap:Envelope>

Way2when i t fai ls
<soap:Enve lope xmlns : s o ap="http ://s c he m as.xmlsoap.org /soap /envelope/ " >
   <so ap:Bo dy/>
</s oap:Envel o p e>

Iamcap tur ing  th e <M essageStatus> S U CCES S< /Messag eSt atus> b y usi ngthe  x path
setObjXml =  C re at eo bje ct("M i crosoft. XM LDO M" )
Set O b jNode=  ObjX ml.S el ec t Sin gleNode ( "/ s o ap:E nv el ope/ soa p: Body/ */Me s sag eElemen ts/Messag eSt a tus" )
R esultTe xt=ObjNode.te xt 

when itis  su ccessi t  works d amn good and when it fa i ls andres ponse  app ears as s how n in w ay2 , i ge t a er ror l ik e O b j ect R e q ui red  a nd it wont c ont inuefu rthe r.
is t here any way so th a t i f object notfou nd i t sh oul d  n o t c om e  ou t of function and  it should  r e tu rn Statusa s f ai led and  contin ue fu r ther
VB  scipt ia m using i s
Set O bjN ode= ObjXm l.Select SingleNod e ("/so a p: Envel ope /soap: Bo dy/ */Mes sageEl e men ts/me ssageS ta tus")Resul tT ext=ObjN ode.text

If ResultText ="SUCC ESS"orResultTex t=" 
 eventidswithinradius(121.056,_14.582, 3000);

_Q:

How to Handle Objects_required failures_in_QTP/UFT

Iam testing_a_web service in_UFT using Microsoft_XML DOM and HTTP
When_i trigger the_request_XML, i get response in two ways
Way 1 when it success
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  _<soap:Body>
_ ___ <SearchResourceResponse xmlns="http://www.ICLNBI.com/ICLNBI.xsd">
  _    _ <MessageElements_xmlns="">
       __  _<MessageStatus>SUCCESS</MessageStatus>
        _   <MessageAddressing>
  _  ___   _   <from>ICL</from>
  _     _      <to>QPortal</to>
_     _    _ _ <messageId>1234</messageId>
   _  _ _  _   <action>SearchResource</action>
  _  _     __  <timestamp>2013-07-29T17:05:17.860Z</timestamp>
___ _  __ __   <ServiceName>SearchResource</ServiceName>
  __      _   _<ServiceVersion>2.0</ServiceVersion>
_   _    _  </MessageAddressing>
   _ _ </SearchResourceResponse>
_  </soap:Body>
</soap:Envelope>

Way 2 when it fails
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body/>
</soap:Envelope>

Iam_capturing the <MessageStatus>SUCCESS</MessageStatus> by  using_the xpath
set ObjXml =_Createobject("Microsoft.XMLDOM")

Set ObjNode=_ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/MessageStatus")

ResultText=ObjNode.text

when_it is success_it_works damn_good and when it fails and response_appears as_shown in way 2, i get_a error like Object_Required_and it wont continue further.
is there_any way so that if object_not found it should not_come_out_of function and it should_return Status as failed and continue_further
VB scipt iam_using is 
Set ObjNode= ObjXml.SelectSingleNode("/soap:Envelope/soap:Body/*/MessageElements/messageStatus")
ResultText=ObjNode.text

If ResultText="SUCCESS" or_ResultText="