Hi,

currently the best way to do this is to implement
addComputedParameters() in your step

Cheers,
Marc.
-- 
Blog: http://mguillem.wordpress.com


Tara Czutno wrote:
> I made a custom step so that I can have an xpath evaluated and if the
> xpath verification fails, the step would not fail and hence the test
> would keep going.
> 
> I've read the discussion on why this kind of failure may not be needed,
> but in my case it seems we need it because the test takes many steps
> (and time) to get to that point and the text is not critical. 
> 
> My problem is, I would like to insert into the test results that this
> step has a warning or something like that.  I tried creating just a
> property but that does not work because the value of the property gets
> printed out in the test results before it would be changed to true when
> there is a warning like in the code below.
> 
> Any suggestions???
> 
> public class VerifyXPathWarning extends VerifyXPath {
>     private String warning = "false";
> 
> 
>     public void doExecute() throws JaxenException {
>         try {
>             super.doExecute();
>         } catch (StepFailedException e) {
>             warning = "true";
>         }
>     }
> 
>     public String getWarning() {
>         return warning;
>     }
> ...
> }
> 


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

Reply via email to