does anybody know it ?

On Thu, Dec 11, 2008 at 4:58 PM, 张伟伟 <belivexia...@gmail.com> wrote:

> hi everyone ,
>
> when i using canoo , i met a problem : when storeXPath can't find the
> suitable match ,
> it will stop follow steps throw exception message ,like this :
>  Message
>
> No match for xpath expression
> <//tbody[count(tr)>30]//td/b[contains(text(),'Fax
> :')]/parent::*/text()[last()]
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------
> So how can i make it  neglect the error can continue exucte next
> <storeXPath  ? just now ,i check the haltonfailure and haltonerror attribute
> in config, but it does'nt works , i think it will conintue next webtest ,not
> next step . Any idear  ?
>
> ////////////////////////////////////////////////
>
> <target name="test">
>  <webtest name="test">
>         <config
>             host="www.foreignhr.com"
>             port="80"
>             protocol="http"
>             summary="true"
>             saveresponse="false"
>             resultpath="/home/eggsist/canooTest/results"
>           />
>     <steps>
>            <invoke url="index.php"/>
>
>            <storeXPath description="title" xpath="******"
> property="jobtitle" />
>
>             <storeXPath description="rFax" xpath="*****"
> property="employerFax" />
>
>             <storeXPath description="rEmail" xpath="******"
> property="employDesc" />
>
> </steps>
> .................
>

Reply via email to