<
testPublicSecurityLevel
setTimeout 120000
open /nuxeo/logout
retrieveCurrentDateInfo
open /nuxeo/
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
retrieveCurrentDateInfo
clickAndWait link=Draft
mouseDown link=New
clickAndWait link=Incoming mail
verifyTextPresent Create a new document Incoming mail
retrieveTestFolderPath
type document_create:nxl_cm_document:nxw_title Send Public Mail to Bree
select document_create:nxl_cm_document:nxw_document_type Article
select document_create:nxl_cm_document:nxw_confidentiality label=Level 1 - public
type document_create:nxl_cm_document:nxw_document_dateInputDate ${currentDay}/${currentMonth}/${currentYear} 00:00
type document_create:nxl_cm_document:nxw_receive_dateInputDate ${currentDay}/${currentMonth}/${currentYear} 00:01
type document_create:nxl_correspondence_document:nxw_sending_dateInputDate ${currentDay}/${currentMonth}/${currentYear} 00:02
click //input[@type='file']
type //input[@type='file'] ${testfolderpath}/data/hello.pdf
clickAndWait link=Create
verifyTextPresentIncoming mail saved
watchA4jRequests
typeKeys //input[@id='document_properties:nxl_cm_participants:nxw_action_participants_suggest'] Bree
waitForA4jRequest 10000
verifyText //*[@id='document_properties:nxl_cm_participants:nxw_action_participants_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] Bree Van de Kaamp (Nuxeo)
watchA4jRequests
click //*[@id='document_properties:nxl_cm_participants:nxw_action_participants_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForA4jRequest 10000
type document_properties:nxl_cm_participants:nxw_distribution_comment sending a public mail to Bree
clickAndWait Link=Initial distribution
verifyTextPresent The distribution is done
clickAndWait link=John Doe (Nuxeo)
clickAndWait link=Sent
verifyElementPresent link=Send Public Mail to Bree
clickAndWait link=Send Public Mail to Bree
clickAndWait link=Edit
verifyElementPresent //input[@value='Save']
type //*[@id='document_edit']/x:table[2]/x:tbody/x:tr/x:td[2]/x:textarea document modified by Jdoe
clickAndWait //input[@value='Save']
verifyElementNotPresent //input[@value='Save']
clickAndWait link=Log out
open /nuxeo
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
verifyElementPresent Link=Send Public Mail to Bree
clickAndWait link=Send Public Mail to Bree
clickAndWait link=Edit
verifyElementPresent //input[@value='Save']
type //*[@id='document_edit']/x:table[2]/x:tbody/x:tr/x:td[2]/x:textarea document modified by Bree
clickAndWait //input[@value='Save']
verifyElementNotPresent //input[@value='Save']
verifyElementPresent link=Edit
clickAndWait link=Log out
open /nuxeo/
type username lbramard
type password lbramard1
clickAndWait Submit
verifyTextPresent lbramard
type css=form#userServicesSearchForm input Send Public Mail to Bree
clickAndWait //input[@value='Search']
verifyElementPresent link=Send Public Mail to Bree
clickAndWait link=Send Public Mail to Bree
verifyElementNotPresent link=Edit
clickAndWait link=Log out