parallelReviewAbandon
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium parallelReviewAbandon
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:3']
clickAndWait //input[@value='Start']
verifyTextPresent Parallel workflow
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Summary
verifyTextPresent Project
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']
type //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
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
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyTextPresent Select reviewers
clickAndWait //input[@value='Start the workflow']
verifyElementPresent link=Approve
verifyElementPresent link=Reject
verifyTextNotPresent Select reviewers
clickAndWait link=Summary
verifyTextNotPresent Review
verifyTextPresent Project
clickAndWait link=testFolder1
verifyTextNotPresent Review
clickAndWait link=Log out
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent You are logged as jsmith
clickAndWait link=Dashboard
verifyTextPresent Parallel comment for jsmith
clickAndWait link=testNote1
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent You are logged as bree
clickAndWait link=Dashboard
verifyTextPresent Parallel comment for bree
clickAndWait link=testNote1
verifyElementNotPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
verifyTextPresent Parallel workflow
clickAndWait link=testNote1
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
clickAndWait //input[@value='Abandon workflow']
verifyTextPresent Value is required
type //textarea[@id='abandonProcess:userWorkflowComment'] Abandon of parallel review
clickAndWait //input[@value='Abandon workflow']
clickAndWait link=Workflow
verifyTextPresent Start a workflow
clickAndWait link=Dashboard
verifyTextNotPresent Parallel workflow
verifyTextPresent Your dashboard is empty.
clickAndWait link=Log out