AppFuse JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
  • AppFuse
  • APF-745

Canoo test - PasswordHint fails

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.0-M5
  • Fix Version/s: 2.0-M5
  • Component/s: Web - Struts
  • Labels:
    None

Description

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] ------------------------------------------------------------------------

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
  • Source
Hide
Permalink
Matt Raible added a comment - 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?
Show
Matt Raible added a comment - 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?
Hide
Permalink
Nathan Anderson added a comment - 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".
Show
Nathan Anderson added a comment - 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".
Hide
Permalink
Matt Raible added a comment - 10/May/07 6: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.
Show
Matt Raible added a comment - 10/May/07 6: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.
Hide
Permalink
Nathan Anderson added a comment - 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.
Show
Nathan Anderson added a comment - 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.
Hide
Permalink
Nathan Anderson added a comment - 10/May/07 12:24 PM
This bug was a temporary problem caused by an incomplete commit.
Show
Nathan Anderson added a comment - 10/May/07 12:24 PM This bug was a temporary problem caused by an incomplete commit.

People

  • Assignee:
    Matt Raible
    Reporter:
    Nathan Anderson
Vote (0)
Watch (0)

Dates

  • Created:
    01/May/07 4:27 PM
    Updated:
    10/May/07 12:24 PM
    Resolved:
    10/May/07 12:24 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for AppFuse. Try JIRA - bug tracking software for your team.