It looks like you have a few extra spaces between "Person List" and ".*"?
Are there a few blanks at the end of the personList.title resource in your
bundle?
Mike
On 6/13/07, Travers Snyman <[EMAIL PROTECTED]> wrote:
Hi,
I have canoo web test failing running mvn integration-test only on the
PersonTests target in web-tests.xml. The entry in web-tests.xml is
<!-- Verify the people list screen displays without errors -->
<target name="SearchPeople" description="Tests search for and
displaying all people">
<webtest name="searchPeople">
&config;
<steps>
&login;
<invoke description="click View People link" url=
"/persons.html"/>
<verifytitle description="we should see the
personList title"
text=".*${personList.title}.*" regex="true"/>
</steps>
</webtest>
</target>
I can confirm the resource bundle defined in beginning of web-test.xml is
correct and has the personList.title entry. I also checked the generated
html in ..\target\webtest-data and the title generated is Person List |
Appfuse. The error I am getting is
Test failed.
Test step steps (C:\source\camstrutsbasic\src\test\resources\web-tests.xml:239:
) null failed with message
"Wrong document title found! Expected ".*Person List .*" but got "Person
List | AppFuse""
It looks like regex could not get the match, but then all other tests
worked for example SearchUsers which looks exactly the same as SearchPeople
target.
If I do the integration test *Dcargo.wait=true, *I can navigate to
/persons.html and see the title page is Person List | Appfuse. Where is
Person List | Appfuse coming from ?
Anything else to be done here ?
Travers