Hi,

I don't know Selenium's assertText and verifyText ;-(

Verifications currently break the test execution directly when they
fail. There were some discussion about giving the possibility to
"collect" failed verification without breaking the test before the end
but this has not been implemented until now.

Cheers,
Marc.
-- 
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Tokutan wrote:
> Hi Marc,
> 
> Sorry for not being clear, I know that we can use <not> if we expect a
> step to fail, however, if we do not know whether a step will fail but we
> still want to run all steps within a webtest nest, how can we do this?
> For example,
> 
> <invoke url="http://www.google.com <http://www.google.com/>"/>
>> <verifyText text="may or may not fail"/>
>> <verifyText text="Google"/>----> this step should still be executed
> 
> When using Selenium, there is assertText and verifyText whereby the
> previous one will stop any subsequent steps and latter will continue any
> subsequent steps when one step fails. What is the best way to do this
> with Webtest?
> 
> thanks,
> 
> 
> Hi,
> 
> if you expect a <verifyText.../> to fail, then just wrap it in a <not>.
> 
> Cheers,
> Marc.
> 
> Tokutan wrote:
>> First of all, thanks for Marc who answered my previous question in
>> regards to replaceFilter by using echo message, it works like a charm:)
>>
>> I have been using webtest for a good period of time, however I am still
>> yet not able to figure out how to configure webtest so that when one
>> previous verify step fails, the subsequent verify step should still be
> run.
>>
>> For example, i have the following script:
>>
>> <invoke url="http://www.google.com <http://www.google.com/>"/>
>> <verifyText text="shouldfail"/>
>> <verifyText text="Google"/>----> this step should still be executed
>>
>>
>> I have tried by using option haltonfailure and set it to false, but
>> still no luck i.e. the subsequent step is not executed at all. Using
>> ifStep also beats out the purpose as there can only be when step passes
>> or fails which will cause subsequent step to be executed.
>>
>> Webtest should execute all subsequent step and should report a fail even
>> when only one of the steps fails.
>>
>> Thanks,
> 


_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to