Tapestry 5 Test - http://tapestry.apache.org/tapestry5/tapestry-test/ allows you to use Selenium to test your code.
Tapestry Test requires you have the following configured in your project
- src/test/conf
Containing
- keystore - generate as by http://docs.codehaus.org/display/JETTY/How+to+configure+SSL or see below
- webdefaults.xml - sample attached.
- src/main/webapp
Containing your tapestry application.
You then create a test as described on the Tapestry Website and it should all work!
Generating the Keystore
Run
keytool -keystore keystore -alias jetty -genkey -keyalg RSA
This is interactive you should respond with Password 'tapestry'. Press Enter for all details. Type Yes for is in Press Return to use same password
This is what it should look like
Enter keystore password: Re-enter new password: What is your first and last name? [Unknown]: What is the name of your organizational unit? [Unknown]: What is the name of your organization? [Unknown]: What is the name of your City or Locality? [Unknown]: What is the name of your State or Province? [Unknown]: What is the two-letter country code for this unit? [Unknown]: Is CN=Unknown, OU=Unknown, O=Unknown, L=Unknown, ST=Unknown, C=Unknown correct? [no]: yes Enter key password for <jetty> (RETURN if same as keystore password):