| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-Manage contacts- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Add an Contact |
|
| waitForElementPresent |
link=Contacts |
|
| click |
link=Contacts |
|
| waitForElementPresent |
link=Contact |
|
| click |
link=Contact |
|
| waitForElementPresent |
firstName |
|
| type |
firstName |
Test_43 |
| type |
lastName |
eXo_Contact |
| type |
nickName |
Contact_43 |
| type |
jobTitle |
eXo_Tester_43 |
| type |
multiEmail0 |
Test_43@gmail.com |
| click |
link=Save |
|
| echo |
-- Verify contacts created |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| click |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| waitForElementPresent |
link=Test_43 eXo_Contact |
|
| verifyElementPresent |
link=Test_43 eXo_Contact |
|
| waitForElementPresent |
link=Test_43@gmail.com |
|
| verifyElementPresent |
link=Test_43@gmail.com |
|
| echo |
-- Edit contact |
|
| mouseOver |
link=Test_43 eXo_Contact |
|
| contextMenu |
link=Test_43 eXo_Contact |
|
| waitForElementPresent |
link=Edit |
|
| click |
link=Edit |
|
| waitForElementPresent |
firstName |
Test_43 |
| type |
firstName |
Test_43_Edited |
| type |
lastName |
eXo_Contact |
| type |
nickName |
Contact_43 |
| type |
jobTitle |
eXo_Tester_43 |
| type |
multiEmail0 |
Test_43_Edited@gmail.com |
| click |
link=Save |
|
| echo |
-- Verify contacts edited |
|
| waitForElementPresent |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| click |
xpath=//div[@class='PersonalAddress']//div[@title='My Contacts'] |
|
| waitForElementPresent |
link=Test_43_Edited eXo_Contact |
|
| verifyElementPresent |
link=Test_43_Edited eXo_Contact |
|
| verifyElementPresent |
link=Test_43_Edited@gmail.com |
|
| verifyElementPresent |
link=Test_43_Edited@gmail.com |
|
| echo |
-- Move Contact |
|
| echo |
---- selecte user to move |
|
| waitForElementPresent |
//tr[2]/td[1]/input |
|
| click |
//tr[2]/td[1]/input |
|
| echo |
---- Show addressbook to select move |
|
| waitForElementPresent |
//form[@id='UIContacts']/div[2]/a[1]/div |
|
| click |
//form[@id='UIContacts']/div[2]/a[1]/div |
|
| waitForElementPresent |
//div[@id='UIContactPopupWindow'] |
|
| echo |
---- select Adressbook |
|
| waitForElementPresent |
//div[2]/div[2]/div/a |
|
| click |
//div[2]/div[2]/div/a |
|
| echo |
-- Delete Contact Are you sure you want to delete this contact ? |
|
| echo |
---- select adress book contain user |
|
| waitForElementPresent |
//div[@id='addressesjohn']/div |
|
| click |
//div[@id='addressesjohn']/div |
|
| echo |
---- select user to delete |
|
| waitForElementPresent |
//td[1]/input |
|
| click |
//td[1]/input |
|
| echo |
---- delete user |
|
| waitForElementPresent |
//form[@id='UIContacts']/div[2]/a[4]/div |
|
| click |
//form[@id='UIContacts']/div[2]/a[4]/div |
|
| waitForConfirmation |
Are you sure you want to delete this contact ? |
|
| assertConfirmation |
Are you sure you want to delete this contact ? |
|
| click |
link=Sign out |
|
| waitForElementPresent |
link=Sign in |
|