Author: wsmoak Date: Sat Oct 25 17:35:57 2008 New Revision: 707922 URL: http://svn.apache.org/viewvc?rev=707922&view=rev Log: [CONTINUUM-1942] Add some Selenium IDE tests for Continuum Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html (with props) continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html (with props) Modified: continuum/branches/continuum-1.2.x/continuum-webapp-test/Readme.txt Modified: continuum/branches/continuum-1.2.x/continuum-webapp-test/Readme.txt URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/Readme.txt?rev=707922&r1=707921&r2=707922&view=diff ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/Readme.txt (original) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/Readme.txt Sat Oct 25 17:35:57 2008 @@ -1,3 +1,10 @@ +Test with Firefox and Selenium IDE + * Start Continuum + * Open Firefox and navigate to Continuum (it should be on the "Create Admin User" page.) + * in Firefox, Tools -> Selenium IDE + * in Selenium IDE, File -> Open Test Suite and choose src/test/selenium-ide/continuum_test_suite.html + * in Selenium IDE, click the 'Play entire test suite' icon + Test Continuum with Tomcat 5.x and firefox 'mvn clean install' or 'mvn clean install -Ptomcat5x,firefox' @@ -21,4 +28,3 @@ mvn selenium:start-server cargo:start The server will run until you press Ctrl-C, and you can run the tests from the IDE. - Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,77 @@ + + + + + + +add_and_delete_local_repo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
add_and_delete_local_repo
open/continuum/admin/repositoryList.action
clickAndWaitlink=Local Repositories
assertTextPresentLocal Repositories
clickAndWaiteditRepository_0
typesaveRepository_repository_nameTest Repo
typesaveRepository_repository_location/tmp/testrepo
typesaveRepository_repository_nameTest Repository
clickAndWaitsaveRepository_0
assertTextPresentTest
clickAndWait//table[@id='ec_table']/tbody/tr[2]/td[6]/a/img
clickAndWaitremoveRepository_0
assertTextNotPresentTest
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_local_repo.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,72 @@ + + + + + + +add_and_delete_project_group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
add_and_delete_project_group
open/continuum/projectGroupSummary.action?projectGroupId=1
clickAndWaitlink=Show Project Groups
clickAndWaitaddProjectGroup
typeaddProjectGroup_nametest
typeaddProjectGroup_groupIdtest
typeaddProjectGroup_descriptionTest Project Group
clickAndWaitaddProjectGroup_0
assertTextPresenttest
clickAndWait//table[@id='ec_table']/tbody/tr[2]/td[6]/a/img
clickAndWaitremoveProjectGroup_0
assertTextNotPresenttest
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_project_group.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,197 @@ + + + + + + +add_and_delete_user + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
add_and_delete_user
open/continuum/groupSummary.action
clickAndWaitlink=Users
clickAndWaitusercreate_0
typeuserCreateForm_user_usernametest
typeuserCreateForm_user_fullNameTest User
typeuserCreateForm_user_emailtest@example.com
typeuserCreateForm_user_passwordtest123
typeuserCreateForm_user_confirmPasswordtest123
clickAndWaituserCreateForm_0
clickAndWaitaddRolesToUser_submitRolesButton
clickAndWaitlink=Logout
clickAndWaitlink=Login
typeloginForm_usernametest
typeloginForm_passwordtest123
clickAndWaitloginForm__login
assertTextPresentChange Password
typepasswordForm_existingPasswordtest123
typepasswordForm_newPasswordtest123
typepasswordForm_newPasswordConfirmtest123
clickAndWaitpasswordForm__submit
assertTextPresentcannot match
typepasswordForm_existingPasswordtest123
typepasswordForm_newPasswordtest1234
typepasswordForm_newPasswordConfirmtest1234
clickAndWaitpasswordForm__submit
assertTextPresentProject Groups
clickAndWaitlink=Logout
clickAndWaitlink=Login
typeloginForm_usernameadmin
typeloginForm_passwordtest123
clickAndWaitloginForm__login
clickAndWaitlink=Users
clickAndWait//table[@id='ec_table']/tbody[2]/tr[3]/td[7]/a/img
clickAndWaituserdelete_0
assertTextPresentList of Users
assertTextNotPresentTest User
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_and_delete_user.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,52 @@ + + + + + + +add_duplicate_project_group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
add_duplicate_project_group
open/continuum/groupSummary.action
clickAndWaitlink=Show Project Groups
clickAndWaitaddProjectGroup
typeaddProjectGroup_nameDefault Project Group
typeaddProjectGroup_groupIddefault
clickAndWaitaddProjectGroup_0
assertTextPresentalready exists
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/add_duplicate_project_group.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,207 @@ + + + + + + +check_menu_options + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
check_menu_options
open/continuum/
clickAndWaitlink=About
assertTextPresentAbout Continuum
clickAndWaitlink=Show Project Groups
assertTextPresentProject Groups
clickAndWaitlink=Maven 2.0.x Project
assertTextPresentAdd Maven 2
clickAndWaitlink=Maven 1.x Project
assertTextPresentAdd Maven 1
clickAndWaitlink=Ant Project
assertTextPresentAdd Ant
clickAndWaitlink=Shell Project
assertTextPresentAdd Shell
clickAndWaitlink=Local Repositories
assertTextPresentDEFAULT
clickAndWaitlink=Purge Configurations
assertTextPresentRepository Purge Configurations
assertTextPresentDirectory Purge Configurations
clickAndWaitlink=Schedules
clicklink=Schedules
assertTextPresentDEFAULT_SCHEDULE
clickAndWaitlink=Installations
clickAndWaitinstallationsTypeChoice_0
assertTextPresentType
clickAndWaitlink=Build Environments
clickaddBuildEnv_0
clickAndWaitlink=Queues
assertTextPresentCurrent Build
clickAndWaitlink=Build Definitions Templates
assertTextPresentAvailable Templates
clickAndWaitlink=Configuration
clickAndWaitCancel
clickAndWaitlink=Appearance
assertTextPresentCompany Details
clickAndWaitlink=Users
assertTextPresentList of Users
clickAndWaitlink=Roles
assertTextPresentRole List
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/check_menu_options.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,20 @@ + + + + + + Test Suite + + + + + + + + + + + +
Test Suite
create_admin_user_and_general_configuration
check_menu_options
add_and_delete_local_repo
add_and_delete_project_group
add_duplicate_project_group
add_and_delete_user
edit_project_group
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/continuum_test_suite.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,76 @@ + + + + + +create-admin-user + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
create-admin-user
open/continuum/security/addadmin.action
typeadminCreateForm_user_fullName
typeadminCreateForm_user_fullNameAdministrator
typeadminCreateForm_user_emailadmin@example.com
typeadminCreateForm_user_passwordtest123
typeadminCreateForm_user_confirmPasswordtest123
clickAndWaitadminCreateForm_0
typeloginForm_usernameadmin
typeloginForm_passwordtest123
clickAndWaitloginForm__login
assertTextPresentGeneral Configuration
clickAndWaitconfiguration_0
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/create_admin_user_and_general_configuration.html ------------------------------------------------------------------------------ svn:eol-style = native Added: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html URL: http://svn.apache.org/viewvc/continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html?rev=707922&view=auto ============================================================================== --- continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html (added) +++ continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html Sat Oct 25 17:35:57 2008 @@ -0,0 +1,56 @@ + + + + + +edit-project-group + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
edit-project-group
open/continuum/
assertTextPresentProject Groups
clickAndWaitaddProjectGroup
typeaddProjectGroup_nameDefault Project Group
typeaddProjectGroup_groupIddefault
typeaddProjectGroup_descriptionDefault project group
clickAndWaitaddProjectGroup_0
assertTextPresentalready exists
+ + Propchange: continuum/branches/continuum-1.2.x/continuum-webapp-test/src/test/selenium-ide/edit_project_group.html ------------------------------------------------------------------------------ svn:eol-style = native