From e0900d8405baa47b59b19165a0e2f9d6729eaca1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Wilfried=20G=C3=B6esgens?= Date: Fri, 12 Sep 2008 12:51:59 +0000 Subject: [PATCH] * Some nice selenium tests. They use 'testuser' and 'testpass' and mess arround with the citadel you open in the browser window. Testuser should be alowed to send internet mail. --- webcit/selenium/ChangeIdentity | 107 ++++++++++++ webcit/selenium/LoginEditcontactLogout | 212 ++++++++++++++++++++++++ webcit/selenium/LoginLogOut | 52 ++++++ webcit/selenium/LoginNoteseditingLogout | 117 +++++++++++++ webcit/selenium/Tasks | 127 ++++++++++++++ webcit/selenium/login_out | 47 ++++++ webcit/selenium/webcit | 18 ++ 7 files changed, 680 insertions(+) create mode 100644 webcit/selenium/ChangeIdentity create mode 100644 webcit/selenium/LoginEditcontactLogout create mode 100644 webcit/selenium/LoginLogOut create mode 100644 webcit/selenium/LoginNoteseditingLogout create mode 100644 webcit/selenium/Tasks create mode 100644 webcit/selenium/login_out create mode 100644 webcit/selenium/webcit diff --git a/webcit/selenium/ChangeIdentity b/webcit/selenium/ChangeIdentity new file mode 100644 index 000000000..764eb2a63 --- /dev/null +++ b/webcit/selenium/ChangeIdentity @@ -0,0 +1,107 @@ + + + + + + +ChangeIdentity + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ChangeIdentity
open/
typeunametestuser
typepnametestpass
selectlnamelabel=C
clickAndWaitlogin_action
clickAndWait//ul[@id='button']/li[9]/a/img
clickAndWaitlink=(edit)
typefake_roomnametest fake room
clickchange_room_name_button
clickAndWait//ul[@id='button']/li[9]/a/img
clickAndWaitlink=(edit)
typefake_hostnametest fake host
clickAndWaitchange_host_name_button
clickAndWait//ul[@id='button']/li[9]/a/img
clickAndWaitlink=(edit)
clickAndWaitcancel_button
clickAndWait//ul[@id='button']/li[12]/a/img
assertConfirmationLog off now?
+ + diff --git a/webcit/selenium/LoginEditcontactLogout b/webcit/selenium/LoginEditcontactLogout new file mode 100644 index 000000000..66490cf3b --- /dev/null +++ b/webcit/selenium/LoginEditcontactLogout @@ -0,0 +1,212 @@ + + + + + + +LoginEditcontactLogout + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LoginEditcontactLogout
open/
typeunametestuser
typepnametestpass
selectlnamelabel=C
clickAndWaitlogin_action
clickAndWaitlink=Summary
clickAndWaitlink=testuser
clickAndWait//ul[@id='button']/li[2]/a/img
clickAndWait//div[@id='msg_inner']/table/tbody/tr[1]/td[1]/a
clickAndWait//div[@id='navbar']/ul/li[3]/a/span
typesubject_idhallo
clickAndWaitsend_button
clickAndWait//ul[@id='button']/li[4]/a/img
clickAndWaitlink=17
clickAndWaitlink=exact:12:00
typesummarytestevent
typelocationtestcity
typedescriptiontesting events
clicktabtd1
typeattendees_boxtesttest@outgesourced.org
clicktabtd2
clicktabtd1
clickAndWaitsave_button
clickAndWaitlink=testevent
clickAndWaitsave_button
clickAndWaitlink=testevent
clickAndWaitdelete_button
clickAndWait//ul[@id='button']/li[5]/a/img
clickAndWaitlink=Add new contact
typefirstnametestcontact
typelastnametestname
typeprimary_inetemailtesttest@outgesourced.org
clickAndWaitok_button
clickAndWaitlink=testname, testcontact
clickAndWaitlink=[edit]
typeextadrtestroad
clickAndWaitok_button
clicklink=Log off
assertConfirmationLog off now?
+ + diff --git a/webcit/selenium/LoginLogOut b/webcit/selenium/LoginLogOut new file mode 100644 index 000000000..56cc0360a --- /dev/null +++ b/webcit/selenium/LoginLogOut @@ -0,0 +1,52 @@ + + + + + + +LoginLogOut + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LoginLogOut
open/
typeunametestuser
typepnametestpass
selectlnamelabel=C
clickAndWaitlogin_action
click//ul[@id='button']/li[12]/a/img
assertConfirmationLog off now?
+ + diff --git a/webcit/selenium/LoginNoteseditingLogout b/webcit/selenium/LoginNoteseditingLogout new file mode 100644 index 000000000..4735c66df --- /dev/null +++ b/webcit/selenium/LoginNoteseditingLogout @@ -0,0 +1,117 @@ + + + + + + +LoginNoteseditingLogout + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
LoginNoteseditingLogout
open/
typeunametestuser
typepnametestpass
selectlnamelabel=C
clickAndWaitlogin_action
clickAndWait//ul[@id='button']/li[6]/a/img
clickAndWaitlink=Add new note
clickclass=stickynote_body
typevaluetestnote
click//input[@value='Save']
clickAndWait//ul[@id='button']/li[6]/a/img
clickclass=stickynote_body
typevaluetestnote edited
click//input[@value='Save']
clickAndWait//ul[@id='button']/li[6]/a/img
clickclass=stickynote_body
typevaluetestnote edited not saving
clicklink=Cancel
clickAndWait//ul[@id='button']/li[12]/a/img
assertConfirmationLog off now?
+ + diff --git a/webcit/selenium/Tasks b/webcit/selenium/Tasks new file mode 100644 index 000000000..361de4802 --- /dev/null +++ b/webcit/selenium/Tasks @@ -0,0 +1,127 @@ + + + + + + +Tasks + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Tasks
open/
typeunametestuser
typepnametestpass
selectlnamelabel=C
clickAndWaitlogin_action
clickAndWait//ul[@id='button']/li[7]/a/img
clickAndWait//div[@id='navbar']/ul/li[3]/a/span
clickAndWaitlink=Add new task
typesummarytesttask
typecategorytestcategory
typedescriptiontest description
clickAndWaitsave_button
clickAndWaitlink=testtask
typedescriptiontest description edited
clickAndWaitsave_button
clickAndWaitlink=testtask
typedescriptiontest description edited cancel
clickAndWaitcancel_button
clickAndWaitlink=testtask
clickAndWaitdelete_button
clickAndWait//ul[@id='button']/li[12]/a/img
assertConfirmationLog off now?
+ + diff --git a/webcit/selenium/login_out b/webcit/selenium/login_out new file mode 100644 index 000000000..370520f7d --- /dev/null +++ b/webcit/selenium/login_out @@ -0,0 +1,47 @@ + + + + + + +login_out + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
login_out
open/
typeunametestuser
typepnametestpass
clickAndWaitlogin_action
clicklink=Abmelden
assertConfirmationJetzt abmelden?
+ + diff --git a/webcit/selenium/webcit b/webcit/selenium/webcit new file mode 100644 index 000000000..99da1b41b --- /dev/null +++ b/webcit/selenium/webcit @@ -0,0 +1,18 @@ + + + + + + Test Suite + + + + + + + + + +
Test Suite
LoginLogOut
LoginEditcontactLogout
LoginNoteseditingLogout
Tasks
ChangeIdentity
+ + -- 2.39.2