approbationReviewNoAddReviewers
setTimeout 120000
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium approbationReviewNoAddReviewers </td>
<tr>
<td>open</td>
<td>logout</td>
<td>
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent You are logged as jsmith
clickAndWait link=Workflow
click //input[@id='startWorkflow:workflowDefinitionId:1']
click //input[@id='startWorkflow:lifeCycleDestinationStateTransition:0']
clickAndWait //input[@value='Start']
verifyTextPresent Approval workflow
verifyElementPresent link=Edit
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Summary
verifyTextNotPresent workflow
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=Verification
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Approval comment for jsmith
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for jsmith
clickAndWait //input[@value='Add']
verifyTextPresent Value is required
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
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest']
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] lbramard
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] Lucien Bramard
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
pause 3000
typeKeys //input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] jdoe
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 Doe
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
type //textarea[@id='addReviewers:nxl_add_workflow_task:nxw_comment'] Comment for the three new reviewers
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Comment for the three new reviewers
verifyElementPresent //a[@id='reviewTasksTable:removeParticipant_0']
clickAndWait //input[@value='Start the workflow']
verifyElementPresent link=Approve
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty
clickAndWait link=testNote1
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent You are logged as bree
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty
clickAndWait link=testNote1
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Log out
type username lbramard
type password lbramard1
clickAndWait Submit
verifyTextPresent You are logged as lbramard
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty
clickAndWait link=testNote1
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Log out
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent You are logged as jsmith
clickAndWait link=Dashboard
clickAndWait link=testNote1
clickAndWait //a[@id='reviewTasksTable:removeParticipant_0']/img
assertConfirmation Delete the task?
verifyTextNotPresent bramard
type //textarea[@id='abandonProcess:userWorkflowComment'] Abandoning approbation review for the third time
clickAndWait //input[@value='Abandon workflow']
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
verifyTextPresent Start a workflow
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty
clickAndWait link=testNote1
verifyTextPresent Project
clickAndWait link=testFolder1
verifyTextNotPresent workflow
clickAndWait link=Log out