| open |
/portal/intranet/ |
|
| windowMaximize |
|
|
| echo |
-- Login |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Share Calendar |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| waitForElementPresent |
//div[@title='Default'] |
|
| mouseOver |
//div[@title='Default'] |
|
| contextMenu |
//div[@title='Default'] |
|
| waitForElementPresent |
link=Share |
|
| click |
link=Share |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| click |
canEdit |
|
| click |
//form[@id='UISharedForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div |
|
| click |
//div[@id='UICalendarPopupWindow']/div/div[1]//div[2] |
|
| waitForElementPresent |
//div[@class='SharedCalendarIcon'] |
|
| click |
link=Logout |
|
| waitForElementNotPresent |
link=Logout |
|
| open |
/portal |
|
| echo |
-- Login demo to add event to shard calendar |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| waitForElementPresent |
//div[@title='root- Default'] |
|
| echo |
-- Add event to shared calendar |
|
| waitForElementPresent |
link=Event |
|
| click |
link=Event |
|
| waitForElementPresent |
eventName |
|
| type |
eventName |
Test_CS11_Event |
| type |
//div[@class='FormContainer']//textarea[@id='description'] |
Test_CS11_Event_description |
| select |
calendar |
label=root - Default |
| click |
//div[@id='QuickAddEventContainer']//div[@class='ButtonRight'] |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login root to check the event added by the other |
|
| waitForElementPresent |
//b[contains(text(),'Sign in')] |
|
| click |
//b[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| echo |
-- Search for and Delete Event |
|
| waitForElementPresent |
value |
|
| type |
value |
Test_CS11_Event |
| click |
//form[@id='UISearchForm']//div[@title='Search'] |
|
| waitForElementPresent |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| click |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| assertConfirmation |
Are you sure you want to delete? |
|
| echo |
-- Remove shared calendar |
|
| waitForElementPresent |
//div[@title='Default'] |
|
| mouseOver |
//div[@title='Default'] |
|
| contextMenu |
//div[@title='Default'] |
|
| waitForElementPresent |
link=Share |
|
| click |
link=Share |
|
| click |
//img[@alt='Delete'] |
|
| assertConfirmation |
The category will be deleted. Do you confirm ? |
|
| waitForElementPresent |
//div[@id='UICalendarPopupWindow']/div/div[1]//div[2] |
|
| click |
//div[@id='UICalendarPopupWindow']/div/div[1]//div[2] |
|
| waitForElementPresent |
//div[@title='Default'] |
|
| verifyElementNotPresent |
//div[@class='SharedCalendarIcon'] |
|
| clickAndWait |
link=Logout |
|
| close |
|
|