| open |
/socialdemo/public/classic/ |
|
| windowMaximize |
|
|
| click |
link=Sign in |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']//div[@class='ButtonMiddle']/a |
|
| waitForElementPresent |
link=Spaces |
|
| clickAndWait |
link=Spaces |
|
| echo |
-- Add a new Space |
|
| waitForElementPresent |
link=Add New Space |
|
| click |
link=Add New Space |
|
| waitForElementPresent |
name |
|
| type |
name |
Space06 |
| type |
description |
This is description for Space_06 |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
1000 |
|
| echo |
-- Verify space created |
|
| waitForElementPresent |
link=Space06 |
|
| verifyElementPresent |
link=Space06 |
|
| click |
link=Space06 |
|
| waitForTextPresent |
Space06 was created |
|
| verifyTextPresent |
Space06 was created |
|
| echo |
-- Add Activites |
|
| pause |
1000 |
|
| waitForElementPresent |
composerInput |
|
| type |
composerInput |
This is activity for Space 06 |
| echo |
-- share link |
|
| waitForElementPresent |
//form[@id='UIComposer']/div[2]/div[2]/div/a |
|
| click |
//form[@id='UIComposer']/div[2]/div[2]/div/a |
|
| waitForElementPresent |
InputLink |
|
| type |
InputLink |
http://google.com |
| echo |
-- click attach button |
|
| waitForElementPresent |
AttachButton |
|
| click |
AttachButton |
|
| echo |
-- share all |
|
| pause |
1000 |
|
| waitForElementPresent |
ShareButton |
|
| click |
ShareButton |
|
| echo |
-- Verify activity is added |
|
| waitForTextPresent |
This is activity for Space 06 |
|
| verifyTextPresent |
This is activity for Space 06 |
|
| waitForElementPresent |
link=Google |
|
| verifyElementPresent |
link=Google |
|
| verifyTextPresent |
|
Source : http://www.google.com |
| echo |
-- Comment for activity added |
|
| waitForElementPresent |
link=Comment |
|
| click |
link=Comment |
|
| waitForElementPresent |
//div[7]/textarea |
|
| type |
//div[7]/textarea |
This is Comment for Activity in Space 06 |
| click |
//div[7]/input |
|
| waitForTextPresent |
This is Comment for Activity in Space 06 |
|
| verifyTextPresent |
This is Comment for Activity in Space 06 |
|
| waitForElementPresent |
//div[8]/div[2] |
|
| click |
//div[8]/div[2] |
|
| assertConfirmation |
Are you sure to delete this comment? |
|
| waitForTextNotPresent |
This is Comment for Activity in Space 06 |
|
| verifyTextNotPresent |
This is Comment for Activity in Space 06 |
|
| echo |
-- Like and Unlike Activity-- |
|
| verifyElementPresent |
link=Like |
|
| click |
link=Like |
|
| waitForTextPresent |
You like this. |
|
| verifyTextPresent |
You like this. |
|
| verifyElementPresent |
link=Unlike |
|
| click |
link=Unlike |
|
| waitForTextNotPresent |
You like this. |
|
| verifyTextNotPresent |
You like this. |
|
| echo |
--Delete activity-- |
|
| waitForElementPresent |
//div[2]/div/div[1]/div[2] |
|
| click |
//div[2]/div/div[1]/div[2] |
|
| assertConfirmation |
Are you sure to delete this activity? |
|
| waitForTextNotPresent |
This is activity for Space 06 |
|
| verifyTextNotPresent |
This is activity for Space 06 |
|
| echo |
-- Delete Space created-- |
|
| waitForElementPresent |
link=Spaces |
|
| click |
link=Spaces |
|
| waitForElementPresent |
//a[@title='Delete Space'] |
|
| click |
//a[@title='Delete Space'] |
|
| waitForConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| echo |
-- Verify space deleted |
|
| waitForTextNotPresent |
Space06 |
|
| verifyTextNotPresent |
Space06 |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|