Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: use properties instead of modifying vcs files

...

Option 1 - Running the web tests against to a stand-alone instance of tDAR

  1. modify the following values in TestConstants.javaDEFAULT_BASE_URL  - e.g. In your JUnit run configuration, add the following system properties (e.g -Duser.pass="foobar")
    1. tdar.baseurl (e.g. -Dtdar.baseurl="http://alpha.tdar.org:80"

      .  Don't forget the colon.DEFAULT_PORT -

      )

    2. tdar.user (e.g. -Dtdar.user="8080test@tdar.org"  
    3. USERNAME - change to a known account on the standalone instance.
    4. PASSWORD 
    5. ADMIN_USERNAME - change to a known admin-level- account on the standalone instance
    6. ADMIN_PASSWORD )
    7. tdar.pass(e.g. -Dtdar.pass="test")
  2. Run the test using JUnit  instead instead of via the maven verify goal

...

  • Modify /src/main/resources/hibernate.properties to specify the test database (i.e copy/paste the values from src/test/resources/hibernate.properties)
  • Modify /src/main/resources/crowd.properties to specify the test authentication host
  • Do one of the following (but not both) 
  • change jetty port in pom.xml from 8080 to 8180, -OR-
  • change the DEAULT_PORT in TdarConstants.java to connect to 8080 instead of 8180.In the JUnit run configuration, add the following system property:
    • -Dtdar.baseurl="http://localhost:8080"

Writing Tests in tDAR

Starting Points

...