2 messages in com.canoo.lists.webtest[Webtest] RE: continue but don't abort| From | Sent On | Attachments |
|---|---|---|
| Lynn Walton | 15 Sep 2003 15:28 | |
| Dierk Koenig | 17 Sep 2003 00:37 |
| Subject: | [Webtest] RE: continue but don't abort![]() |
|---|---|
| From: | Lynn Walton (walt...@franklin.edu) |
| Date: | 09/15/2003 03:28:51 PM |
| List: | com.canoo.lists.webtest |
From: "Dierk Koenig" <dier...@canoo.com>
To: <webt...@lists.canoo.com> Subject: RE: [Webtest] continue but don't abort Date: Fri, 12 Sep 2003 11:28:29 +0200 Reply-To: webt...@lists.canoo.com
look into http://webtest.canoo.com/webtest/manual/syntax.html#2
start your test with following entries in the config step:
haltonfailure = false verbose = true
maybe even
summary= false
if you don't need the summary file.
this will run your tests with appropriate messages sent to stdout.
cheers Mittie
This didn't work for me. I had also wanted some way to continue without aborting.
I put in: <testSpec name="main"> <config host="my.domain.com" port="443" protocol="https" basepath="/" haltonfailure="false" verbose="true" summary="false" >
I have a series of this same pattern but for different urls .... invoke, make sure the internal contents don't have a 500 error from our servlet engine, log (a custom step) so we can see the progress
<invoke stepid=" get /hcm/462/ubal6-a/mod2.jsp" url="/hcm/462/ubal6-a/mod2.jsp" /> <not stepid=" /hcm/462/ubal6-a/mod2.jsp contained Internal Server Error "> <verifytext stepid="500 Error" text="500 Internal Server Error"/> </not> <log message=" checked /hcm/462/ubal6-a/mod2.jsp" />
If one fails I want to see messages about the failure but still want it to continue.
After adding the haltonfailure="false" verbose="true" summary="false" you suggested and trying ... it would still stop on the first bad link (404) as follows:
output with ant using -v was like this: [testSpec] Completed Step: /hcm/462/ubal6-a/gradepolicy.jsp contained Internal Server Error " (35/88) [testSpec] Start Step: <unknown>" (36/88) [testSpec] checked /hcm/462/ubal6-a/gradepolicy.jsp [testSpec] Completed Step: <unknown>" (36/88) [testSpec] Start Step: get /hcm/462/ubal6-a/mod1.jsp" (37/88) [testSpec] -> gotoTarget(by url): https://online.franklin.edu:443/hcm/462/ubal6-a/mod1.jsp [testSpec] Completed Step: get /hcm/462/ubal6-a/mod1.jsp" (37/88) [testSpec] Start Step: <unknown>" (38/88) [testSpec] Start Step: 500 Error" (38/88) [testSpec] Completed Step: /hcm/462/ubal6-a/mod1.jsp contained Internal Server Error " (38/88) [testSpec] Start Step: <unknown>" (39/88) [testSpec] checked /hcm/462/ubal6-a/mod1.jsp [testSpec] Completed Step: <unknown>" (39/88) [testSpec] Start Step: get /hcm/462/ubal6-a/m5sect7inc.jsp" (40/88) [testSpec] -> gotoTarget(by url): https://online.franklin.edu:443/hcm/462/ubal6-a/m5sect8inc.jsp
BUILD SUCCESSFUL
That last line is a purposely broken link and that is where the test aborts but you can see it's only step 40 of 88.
I had posted Sun Aug 24th called: Trying to make some custom steps that only warn rather than fail the build hoping to get some guidance for doing it with custom steps, but got no "bites". : )
Thanks, Lynn




