| open |
/csdemo |
|
| windowMaximize |
|
|
| echo |
-View Task Event- |
|
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
id=UIPortalLoginFormAction |
|
| echo |
-- Agenda |
|
| waitForElementPresent |
link=Agenda |
|
| clickAndWait |
link=Agenda |
|
| echo |
-- Event |
|
| waitForElementPresent |
link=Event |
|
| click |
link=Event |
|
| waitForElementPresent |
eventName |
|
| type |
eventName |
Test_18_Event |
| type |
//div[@class='FormContainer']//textarea[@id='description'] |
Test_18_Event_description |
| click |
link=Save |
|
| waitForElementPresent |
//div[@class="EventContainer"] |
Test_18_Event |
| verifyElementPresent |
//div[@class="EventContainer"] |
Test_18_Event |
| mouseOver |
//div[@class='EventContainerBorder WeekViewEventBoxes PowderBlue'] |
|
| contextMenu |
//div[@class='EventContainerBorder WeekViewEventBoxes PowderBlue'] |
|
| waitForElementPresent |
//a[@class='ItemIcon ViewEventIcon'] |
|
| click |
//a[@class='ItemIcon ViewEventIcon'] |
|
| waitForText |
//div[@class='ViewDescription'] |
Test_18_Event_description |
| verifyText |
//div[@class='ViewDescription'] |
Test_18_Event_description |
| echo |
-- Close pop-up Window |
|
| waitForElementPresent |
css=#UICalendarPopupWindow > div.OverflowContainer.ClearFix > a.CloseButton |
|
| click |
css=#UICalendarPopupWindow > div.OverflowContainer.ClearFix > a.CloseButton |
|
| echo |
-- Type Name Event to search |
|
| waitForElementPresent |
value |
|
| type |
value |
Test_18_Event |
| click |
//form[@id='UISearchForm']//div[@title='Search'] |
|
| echo |
-- Select Event have found |
|
| waitForElementPresent |
//span[@title='Test_18_Event'] |
|
| click |
//span[@title='Test_18_Event'] |
|
| echo |
-- Edit Event |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder EditEventIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder EditEventIcon'] |
|
| echo |
-- Change contact of event |
|
| waitForElementPresent |
//input[@id='eventName' and @value='Test_18_Event'] |
|
| type |
//input[@id='eventName' and @value='Test_18_Event'] |
Test_18_Event_Edit |
| type |
//div[@id='eventDetail']/table/tbody/tr[2]/td[2]/textarea |
Test_18_Event_description Edit |
| echo |
-- Save Editing |
|
| waitForElementPresent |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| click |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| echo |
-- Confirm to Save |
|
| waitForElementPresent |
//a[@onclick="javascript:eXo.webui.UIForm.submitForm('UIEventForm','ConfirmCancel',true)"] |
|
| click |
//a[@onclick="javascript:eXo.webui.UIForm.submitForm('UIEventForm','ConfirmCancel',true)"] |
|
| echo |
-- Delete Event |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteEventIcon'] |
|
| waitForConfirmation |
Are you sure to delete this event/task? |
|
| echo |
-- Week |
|
| waitForElementPresent |
link=Week |
|
| click |
link=Week |
|
| echo |
-- Task |
|
| waitForElementPresent |
link=Task |
|
| click |
link=Task |
|
| waitForElementPresent |
//form[@id='UIQuickAddTask']//input[@id='eventName'] |
|
| type |
//form[@id='UIQuickAddTask']//input[@id='eventName'] |
Test_18_Task |
| type |
//form[@id='UIQuickAddTask']//textarea[@id='description'] |
Test_18_Task_description |
| echo |
-- Save |
|
| waitForElementPresent |
//div[4]/div[2]/div/div/div[2]/a |
|
| click |
//div[4]/div[2]/div/div/div[2]/a |
|
| echo |
-- context Menu |
|
| mouseOver |
//div[@class='EventContainerBorder WeekViewEventBoxes PowderBlue'] |
|
| contextMenu |
//div[@class='EventContainerBorder WeekViewEventBoxes PowderBlue'] |
|
| echo |
-- Select View |
|
| waitForElementPresent |
link=View |
|
| click |
link=View |
|
| echo |
-- Verify Text |
|
| waitForTextPresent |
Test_18_Task_description |
|
| verifyTextPresent |
Test_18_Task_description |
|
| echo |
-- Close pop-up window |
|
| waitForElementPresent |
css=#UICalendarPopupWindow > div.OverflowContainer.ClearFix > a.CloseButton |
|
| click |
css=#UICalendarPopupWindow > div.OverflowContainer.ClearFix > a.CloseButton |
|
| echo |
-- Type name Task to search |
|
| waitForElementPresent |
value |
|
| type |
value |
Test_18_Task |
| echo |
-- Search |
|
| click |
//form[@id='UISearchForm']//div[@title='Search'] |
|
| echo |
-- Select Task have found |
|
| waitForElementPresent |
//span[@title='Test_18_Task'] |
|
| click |
//span[@title='Test_18_Task'] |
|
| echo |
-- Edit Task |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder EditTaskIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder EditTaskIcon'] |
|
| waitForElementPresent |
//input[@id='eventName' and @value='Test_18_Task'] |
|
| type |
//input[@id='eventName' and @value='Test_18_Task'] |
Test_18_Task_Edit |
| type |
//div[@id='eventDetail']/table/tbody/tr[2]/td[2]/textarea |
Test_18_Task_description Edit |
| echo |
-- Save Editting |
|
| waitForElementPresent |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| click |
css=div.HorizontalLayout > div.UIAction > a.ActionButton.LightBlueStyle |
|
| echo |
-- Delete Task |
|
| waitForElementPresent |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteTaskIcon'] |
|
| click |
//table[@id='RowContainerDay']//div[@class='IconHolder DeleteTaskIcon'] |
|
| assertConfirmation |
Are you sure to delete this event/task? |
|
| echo |
-- Sign out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|