AW: [Webtest] AW: Always failing when some text is found on page
Zoth, Jochen" <email@example.com
Tue, 21 Nov 2006 16:12:13 +0100
Alright, so let's find a nice name for it :)
Do you already have an idea where and how to "setup" this feature?
Maybe by defining a file in the config section like:
Or using a new step like
<defaultSteps> ... </defaultSteps>
<baseSteps> ... </baseSteps>
<responseValidation> ... </responseValidation>
<onEachResponse> ... </onEachResponse>
in each <webtest>?
Von: firstname.lastname@example.org =
[mailto:email@example.com] Im Auftrag von Marc Guillemot
Gesendet: Dienstag, 21. November 2006 10:26
Betreff: Re: [Webtest] AW: Always failing when some text is found on =
In my original post I wrote "the most difficult will be... to find a =
name for this", now you quote me with "The only difficult Marc has, is =
find a good name". I now wait for someone to say that's not difficult at =
and should already have been done ;-)
Jochen Zoth wrote:
> Hi Alex,
> We had a similar issue few days ago. It was about how to do a set of =
> on every page / response you get.
> The only difficult Marc has, is to find a good name ;-)
> " - recurrent check that should occur on each new page. Currently the =
> way to do that is to included (for instance with an entity) the
> verification checks each time when a new response is received. This =
> perfectly and is flexible but it's a bit cumbersome and it's too easy =
> forget the verification on some pages. Ideally WebTest should provide =
> way to specify (verification) steps that have to be performed each =
> new response has been received. I've had this idea on the beginning of =
> year but WebTest internal didn't provide the possibility to (easily)
> implement this. Since the refactoring post 2.1 this should now be =
> and the most difficult will be... to find a good name for this.
> Suggestions are welcome. (Marc)"
> Von: firstname.lastname@example.org =
> Im Auftrag von Curelea, Alexandru
> Gesendet: Montag, 20. November 2006 23:03
> An: email@example.com
> Betreff: [Webtest] Always failing when some text is found on page
> Hi all,=20
> I suspect the following isn't possible in Webtest, but I thought I'd =
> Is there a way to specify (preferably in a central location like a =
> file) some text, such as "Internal server error", which will always =
> a page load containing that text to fail?
> My reasoning is the following:
> Since Webtest simulates a user's actions, there are certain errors =
> as the above-mentioned "internal server error") that the user should =
> be able to cause. If such an error is caused by any of the tests, it
> should be fixed (eg. it is never "expected behaviour" for the test). =
> the error is given, it might not always be caught by the checks on =
> page, but it will invariably cause the test to fail later on - it =
> save a lot of time when reading the test results if it failed right =
> I could, of course, put a VerifyText inside a Not after every page
> load.... but that isn't really an attractive option, since our test =
> numbers in the thousands of steps by now. This is why I'm hoping for =
> way to tell Webtest to always fail when it encounters that text, no =
> As I said, I can't really see any way to do this, so I will most =
> end up just adding that check in all of our key modules. But any =
> are very welcome!
> WebTest mailing list
View this message in context: =
Sent from the WebTest mailing list archive at Nabble.com.
WebTest mailing list