History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: APF-745
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Matt Raible
Reporter: Nathan Anderson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
AppFuse

Canoo test - PasswordHint fails

Created: 01/May/07 04:27 PM   Updated: 10/May/07 12:24 PM
Component/s: Web - Struts
Affects Version/s: 2.0-M5
Fix Version/s: 2.0-M5


 Description  « Hide
Creating a new struts-basic app fails to complete the "integration-test" goal. See error message below:



[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error executing ant tasks

Embedded error: The following error occurred while executing this line:
C:\Java\temp\WPDISP~1\src\test\resources\web-tests.xml:45: Canoo Webtest: R_1454.
Test failed.
Test step steps (C:\Java\temp\WPDISP~1\src\test\resources\web-tests.xml:47: ) null failed with message "Step[invoke "click password hint link" (3/4)]: HTTP error 500, at: invoke"
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 28 seconds
[INFO] Finished at: Tue May 01 14:13:46 PDT 2007
[INFO] Final Memory: 26M/47M
[INFO] ------------------------------------------------------------------------

 All   Comments   Change History   FishEye      Sort Order:
Matt Raible - 01/May/07 11:36 PM
If you run "mvn -Dcargo.wait" and do the steps that WebTest does manually in your browser, what do you see? Are you using M5-SNAPSHOT?

Nathan Anderson - 09/May/07 11:56 AM
Finally had a chance to follow up on this today...

Yes, I am using M5-SNAPSHOT and when I ran the tests today it updated several versions of dependencies.
When I run "mvn -Dcargo.wait" I get "build successful" but no container is started.
When I run "mvn -Dcargo.wait integration-test" Tomcat launches and is listening on 8081, but any requests I make to it returns a blank page [which seems weird to me ;) ]

So I tried it running "mvn jetty:run-war"...
The test that is failing is the password hint. It appears that the test may still be looking for the user "mraible" but the sample-data.xml loads "admin".

Matt Raible - 10/May/07 06:56 AM
Sorry, the command should be "mvn -Dcargo.wait=true integration-test". As far as the bad username in sample-data.xml, I changed this in Subversion a couple nights ago.

Nathan Anderson - 10/May/07 12:22 PM
"mvn -Dcargo.wait=true integration-test" has the same effect as "mvn -Dcargo.wait integration-test". I may have a configuration issue? But in any case I was able to reproduce the issue in Jetty.

This comment that was posted directly to the issues mail list:

hiugong.gwok@... :
"src/test/resources/login.xml has user name and password hard-coded, and it
won't be overwrited during update."

I think Hiugong is right, my login.xml is wrong not sample-data.xml. It sounds to me like I may have created my project at just the wrong time where you were in the middle of changing the user/password combinations, but were not quite done at the time.

I deleted the whole project and re-create it from today's M5-SNAPSHOT. Now everything works as expected. I'll update the bug report accordingly.

Nathan Anderson - 10/May/07 12:24 PM
This bug was a temporary problem caused by an incomplete commit.