open |
restAPI/systemLog?token=dolog&level=INFO&message=-----Selenium switchBetweenPublicAndRestricted |
|
setTimeout |
120000 |
|
open |
logout |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
clickAndWait |
//form[@id='document_content']/table/tbody/tr/td[3]/div/a[1] |
|
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=News |
|
clickAndWait |
link=News for test |
|
clickAndWait |
link=make it public |
|
verifyText |
//div[@id="private_public_publishing_button"]/span |
Public |
verifyText |
//div[@id="private_public_publishing_button"]/a |
Restrict to the social workspace |
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=News |
|
clickAndWait |
link=Public news |
|
clickAndWait |
link=Restrict to the social workspace |
|
verifyText |
//div[@id="private_public_publishing_button"]/span |
Restricted to the Social Workspace |
verifyText |
//div[@id="private_public_publishing_button"]/a |
make it public |
open |
logout |
|
type |
username |
SocialWorkspaceMember |
type |
password |
pwd |
clickAndWait |
Submit |
|
clickAndWait |
link=Home |
|
waitForOpensocialGadgetsToLoad |
nxDocumentListData,content |
60000 |
selectOpenSocialGadgetFrame |
news |
|
verifyText |
//div/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//div/p/a |
Public news |
verifyText |
//div/p[2] |
changing the content of the public news |
verifyText |
//div[2]/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//div[2]/p/a |
News for test |
verifyText |
//div[2]/p[2] |
And now something completely different:" the larch!" |
selectWindow |
null |
|
open |
logout |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
clickAndWait |
//form[@id='document_content']/table/tbody/tr/td[3]/div/a[1] |
|
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=News |
|
clickAndWait |
link=News for test |
|
clickAndWait |
link=Edit |
|
click |
id=document_edit:nxl_news_item:nxw_social_document_visibility:nxw_social_document_visibility_checkbox:1 |
|
clickAndWait |
//*[@id="document_edit:edit_doc_EDIT_CURRENT_DOCUMENT"] |
|
clickAndWait |
link=SocialWorkspaceForNews |
|
clickAndWait |
link=News |
|
clickAndWait |
link=Public news |
|
clickAndWait |
link=Edit |
|
click |
id=document_edit:nxl_news_item:nxw_social_document_visibility:nxw_social_document_visibility_checkbox:0 |
|
clickAndWait |
//*[@id="document_edit:edit_doc_EDIT_CURRENT_DOCUMENT"] |
|
clickAndWait |
link=Home |
|
waitForOpensocialGadgetsToLoad |
nxDocumentListData,content |
60000 |
selectOpenSocialGadgetFrame |
news |
|
verifyText |
//div/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//div/p/a |
Public news |
verifyText |
//div/p[2] |
changing the content of the public news |
verifyText |
//div[2]/p |
Administrator,* |
verifyTextNotPresent |
01/01/1970 |
|
verifyText |
//div[2]/p/a |
News for test |
verifyText |
//div[2]/p[2] |
And now something completely different:" the larch!" |
selectWindow |
null |
|