unlockDocumentByWSManager
setTimeout 30000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium unlockDocumentByWSManager
open logout
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait //img[@title='Lock']
verifyTextPresent Locked
verifyElementPresent //img[@title='Unlock']
clickAndWait link=Relations
verifyElementPresent link=Add a new relation
clickAndWait link=Comments
verifyElementPresent link=Add a comment
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent jsmith
verifyTextPresent Locked
clickAndWait link=Summary
clickAndWait link=Relations
clickAndWait link=Comments
verifyElementPresent link=Add a comment
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
verifyElementPresent link=Edit
verifyTextPresent Locked
clickAndWait link=Relations
verifyElementPresent link=Add a new relation
clickAndWait link=Comments
verifyElementPresent link=Add a comment
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username linnet
type password linnet1
clickAndWait Submit
verifyTextPresent linnet
verifyTextPresent Locked
clickAndWait link=Relations
verifyElementNotPresent link=Add a relation
clickAndWait link=Comments
verifyElementPresent link=Add a comment
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
verifyElementNotPresent link=Edit
verifyElementNotPresent //img[@title='Unlock']
verifyTextNotPresent This document is locked
clickAndWait link=Relations
verifyElementNotPresent link=Add a new relation
clickAndWait link=Comments
verifyElementPresent link=Add a comment
clickAndWait link=Log out