Hi,

I'm running following test:

<reportSite depth="8" description="Testing mysite.com">
      <not description="the phrase 'Page not ' or 'exception' should not
appear in the page">
                <verifyText description="search for the phrase 'Page not',
case insensitive"
                    text="(?i:Page not )"
                    regex="true" />
                <verifyText description="search for the word 'exception',
case insensitive"
                    text="(?i:exception)"
                    regex="true" />
      </not>
</reportSite>

So I want to test my whole site, that exceptions or broken links are not
found. This test works fine, except if one of these verifyText steps find
"exception" or "page not" text, the reportSite step shows in results that
all tests passed and I get green bar. I would like to get red bar if even
one page in my site contains text "exception" or "page not ". Is this
possible if so, how ? Here is my config for this test:

<config
            host="mysite.com"
            basepath="portal"
            haltonfailure="true"
            haltonerror="true"
            summary="true"
            saveresponse="true"
            >
            <option name="JavaScriptEnabled" value="false"></option>
            </config>

Regards,
Tomi Mäkinen

Reply via email to