approbationReviewNoAddReviewers
setTimeout 120000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium approbationReviewNoAddReviewers
open logout
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent 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_jbpm_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_jbpm_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:nxl_virtualTasks_listing:nxw_delete_virtualTask:removeParticipant_0']
clickAndWait //input[@value='Start the workflow']
verifyElementPresent link=Approve
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty
selectWindow null
selectOpenSocialGadgetFrame lastdocuments
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 bree
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty
selectWindow null
selectOpenSocialGadgetFrame lastdocuments
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 lbramard
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty
selectWindow null
selectOpenSocialGadgetFrame lastdocuments
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 jsmith
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame waitingfor
clickAndWait link=testNote1
clickAndWait //a[@id='reviewTasksTable:nxl_virtualTasks_listing:nxw_delete_virtualTask: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=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty
selectWindow null
selectOpenSocialGadgetFrame lastdocuments
clickAndWait link=testNote1
verifyTextPresent Project
clickAndWait link=testFolder1
verifyTextNotPresent workflow
clickAndWait link=Log out