| open |
/portal |
|
| windowMaximize |
|
|
| echo |
-Add Task For Shared Calendar- |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| echo |
-- Share Calendar |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| pause |
2000 |
|
| waitForElementPresent |
//div[@title='Default'] |
|
| mouseOver |
//div[@title='Default'] |
|
| contextMenu |
//div[@title='Default'] |
|
| waitForElementPresent |
link=Share |
|
| click |
link=Share |
|
| pause |
1000 |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| click |
canEdit |
|
| echo |
-- click save-- |
|
| waitForElementPresent |
//form[@id='UISharedForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div |
|
| click |
//form[@id='UISharedForm']/div[2]/div/div/table/tbody/tr/td/div[1]/div/div/div |
|
| echo |
-- close share calendare form |
|
| waitForElementPresent |
//div[@id='UICalendarPopupWindow']/div/div[1]//div[2] |
|
| click |
//div[@id='UICalendarPopupWindow']/div/div[1]//div[2] |
|
| waitForElementPresent |
//div[@class='SharedCalendarIcon'] |
|
| pause |
2000 |
|
| click |
link=Logout |
|
| waitForElementNotPresent |
link=Logout |
|
| open |
/portal |
|
| echo |
-- Login demo to add task to shard calendar |
|
| echo |
-- Login |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| pause |
2000 |
|
| waitForElementPresent |
//div[@title='root- Default'] |
|
| echo |
-- Add task to shared calendar |
|
| waitForElementPresent |
link=Task |
|
| click |
link=Task |
|
| pause |
1000 |
|
| waitForElementPresent |
//form[@id='UIQuickAddTask']//input[@id='eventName'] |
|
| type |
//form[@id='UIQuickAddTask']//input[@id='eventName'] |
Test_CS12_Task |
| type |
//form[@id='UIQuickAddTask']//textarea[@id='description'] |
Test_CS12_Task_description |
| select |
//form[@id='UIQuickAddTask']/div[2]/div/table/tbody/tr[6]/td[2]/select |
label=root - Default |
| click |
//div[@id='QuickAddEventContainer']/div[2]/table/tbody/tr/td/div[3]/div/div/div |
|
| click |
//div[4]/div/div[2]/div/div/div/div/div/div/div[2]/table/tbody/tr/td/div[1]/div/div/div |
|
| pause |
2000 |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login root to check the task added by the other |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div/a |
|
| pause |
5000 |
|
| waitForElementPresent |
link=Agenda |
|
| click |
link=Agenda |
|
| pause |
2000 |
|
| echo |
-- Search for and Delete Task |
|
| waitForElementPresent |
value |
|
| type |
value |
Test_CS12_Task |
| click |
//form[@id='UISearchForm']//div[@title='Search'] |
|
| waitForElementPresent |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| click |
//div[@class='UIListView SpliterResizableListArea']//tr[@class='UIListViewRow'] |
|
| pause |
1000 |
|
| echo |
---- delete task |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteTaskIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteTaskIcon'] |
|
| 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 |
|
| pause |
1000 |
|
| waitForElementPresent |
//img[@alt='Delete'] |
|
| 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'] |
|
| pause |
1000 |
|
| clickAndWait |
link=Logout |
|
| close |
|
|