parallelReviewOK
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium parallelReviewOK
setTimeout 120000
open logout
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1/testnote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Workflow
click //input[@id='startWorkflow:workflowDefinitionId:0']
click //input[@id='startWorkflow:lifeCycleDestinationStateTransition:0']
clickAndWait //input[@value='Start']
verifyTextPresent Parallel workflow
verifyElementPresent link=Edit
clickAndWait link=Workflow
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] jsmith
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] John Smith
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Check
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Parallel comment for jsmith
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Parallel comment for jsmith
verifyElementNotPresent link=Approve
verifyElementPresent //input[@value='Start the workflow']
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] bre
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display != 'none' 10000
verifyText //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2] Bree Van de Kaamp
click //*[@id='addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox:suggest']/x:tbody/x:tr[1]/x:td[2]
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_list:0:nxw_actors_listItem') != null 10000
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
waitForCondition selenium.browserbot.getCurrentWindow().document.getElementById('addReviewers:nxl_add_workflow_task:nxw_actors_suggestionBox').style.display == 'none' 10000
select //select[@id='addReviewers:nxl_add_workflow_task:nxw_directive'] label=Diffusion
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Parallel comment for bree
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Parallel comment for bree
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_0']
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_1']
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
clickAndWait //input[@value='Start the workflow']
verifyElementPresent link=Approve
verifyElementPresent link=Reject
verifyElementNotPresent //a[@id='reviewTasksTable:removeParticipant_0']
verifyElementNotPresent //a[@id='reviewTasksTable:removeParticipant_1']
clickAndWait link=Log out
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent You are logged as jsmith
clickAndWait link=Dashboard
clickAndWait link=testNote1
type //textarea[@id="reviewTasksTable:taskActionComment"] ok pour moi
clickAndWait link=Approve
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent You are logged as bree
clickAndWait link=Dashboard
clickAndWait link=testNote1
type //textarea[@id="reviewTasksTable:taskActionComment"] ok pour moi aussi
clickAndWait link=Approve
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextNotPresent Project
verifyTextPresent Approved
clickAndWait link=Workflow
verifyTextPresent Start a workflow
clickAndWait link=Log out