| windowMaximize |
|
|
| open |
/portal/public/intranet/ |
|
| echo |
-- Login by demo |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| click |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
name=username |
|
| type |
name=username |
demo |
| type |
name=password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div |
|
| echo |
-- Add connection to john |
|
| clickAndWait |
link=My Activities |
|
| clickAndWait |
link=Connections |
|
| clickAndWait |
link=Add Connections |
|
| waitForElementPresent |
//div[@id='UIDisplayProfileList']/div/div[4]/div[2]/div/a |
|
| click |
//div[@id='UIDisplayProfileList']/div/div[4]/div[2]/div/a |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by john |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| click |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
name=username |
|
| type |
name=username |
john |
| type |
name=password |
gtn |
| waitForElementPresent |
link=Sign in |
|
| click |
link=Sign in |
|
| echo |
-- Accept invitation |
|
| waitForElementPresent |
link=My Activities |
|
| click |
link=My Activities |
|
| pause |
2000 |
|
| clickAndWait |
link=Connections |
|
| clickAndWait |
link=Incoming |
|
| waitForElementPresent |
//div[@id='UIInvitations']/div/div/div[3]/div[2]/div/a[2] |
|
| click |
//div[@id='UIInvitations']/div/div/div[3]/div[2]/div/a[2] |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by demo |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| click |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
name=username |
|
| type |
name=username |
demo |
| type |
name=password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Share a comment |
|
| waitForElementPresent |
//textarea[@id='composerInput'] |
|
| type |
//textarea[@id='composerInput'] |
Hello. I'm dem |
| typeKeys |
//textarea[@id='composerInput'] |
o |
| waitForElementPresent |
//input[@id='ShareButton'] |
|
| click |
//input[@id='ShareButton'] |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2] |
|
| click |
//div[@id='UIPresentationContainer']/div[2] |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by john |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| click |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
name=username |
|
| type |
name=username |
john |
| type |
name=password |
gtn |
| clickAndWait |
//div[@id='UIPortalLoginFormAction']/div/div/div |
|
| echo |
-- Share a comment |
|
| waitForElementPresent |
//textarea[@id='composerInput'] |
|
| type |
//textarea[@id='composerInput'] |
Hello. I'm joh |
| typeKeys |
//textarea[@id='composerInput'] |
n |
| waitForElementPresent |
//input[@id='ShareButton'] |
|
| click |
//input[@id='ShareButton'] |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by demo |
|
| waitForElementPresent |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| click |
//div[@id='UIPresentationContainer']/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
name=username |
|
| type |
name=username |
demo |
| type |
name=password |
gtn |
| clickAndWait |
link=Sign in |
|
| echo |
-- Check the status |
|
| waitForElementPresent |
link=Connections |
|
| click |
link=Connections |
|
| waitForTextPresent |
Hello. I'm john |
|
| verifyTextPresent |
Hello. I'm john |
|
| waitForElementPresent |
link=My Status |
|
| click |
link=My Status |
|
| waitForTextNotPresent |
Hello. I'm john |
|
| verifyTextNotPresent |
Hello. I'm john |
|
| echo |
-- Add new space |
|
| clickAndWait |
link=Show all |
|
| waitForElementPresent |
//form[@id='UISpaceSearch']/div[2]/div/div/div[2]/div[2]/div/div/div/div |
|
| click |
//form[@id='UISpaceSearch']/div[2]/div/div/div[2]/div[2]/div/div/div/div |
|
| waitForElementPresent |
//input[@id='name'] |
|
| type |
//input[@id='name'] |
Test |
| waitForElementPresent |
link=Create |
|
| click |
link=Create |
|
| pause |
5000 |
|
| waitForElementPresent |
//div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/div/a |
|
| click |
//div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/div/a |
Test |
| echo |
-- Put status on space |
|
| pause |
3000 |
|
| waitForElementPresent |
//textarea[@id='composerInput'] |
|
| type |
//textarea[@id='composerInput'] |
New spac |
| typeKeys |
//textarea[@id='composerInput'] |
e |
| waitForElementPresent |
//input[@id='ShareButton'] |
|
| click |
//input[@id='ShareButton'] |
|
| clickAndWait |
link=Home |
|
| waitForElementPresent |
link=Spaces |
|
| click |
link=Spaces |
|
| waitForTextPresent |
New space |
|
| verifyTextPresent |
New space |
|
| echo |
-- Delete space |
|
| clickAndWait |
link=Show all |
|
| waitForElementPresent |
//div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/a |
|
| click |
//div[@id='UIManageMySpaces']/div[2]/div[2]/div/div/a |
|
| assertConfirmation |
Are you sure to delete this space? This can not be undone. All page navigations and this group will be deleted, too. |
|
| echo |
-- Delete connection |
|
| clickAndWait |
link=My Activities |
|
| clickAndWait |
link=Connections |
|
| waitForElementPresent |
//div[@id='UIMyConnections']/div/div[2]/div[3]/div[2]/div/a |
|
| click |
//div[@id='UIMyConnections']/div/div[2]/div[3]/div[2]/div/a |
|
| clickAndWait |
link=Logout |
|