approbationReviewAbandon
setTimeout 120000
open restAPI/systemLog?token=dolog&level=WARN&message=----- Selenium approbationReviewAbandon
open logout
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait link=Workflow
click //input[@id='startWorkflow:workflowDefinitionId:1']
click //input[@id='startWorkflow:lifeCycleDestinationStateTransition:3']
clickAndWait //input[@value='Start']
verifyTextPresent Approval workflow
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame waitingfor
verifyTextPresent Approval workflow
clickAndWait link=testNote1
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_jbpm_comment'] Approval comment for bree
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for bree
verifyElementNotPresent link=Approve
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_jbpm_comment'] Approval comment for jsmith
clickAndWait //input[@value='Add']
verifyTextPresent Selected participant(s) successfully added to the workflow
verifyTextPresent Approval comment for jsmith
verifyElementNotPresent link=Approve
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent jsmith
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty. There are no tasks that require your intervention.
selectWindow null
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
verifyElementNotPresent link=Edit
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
verifyElementNotPresent //input[@value='Start the workflow']
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Your dashboard is empty. There are no tasks that require your intervention.
selectWindow null
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testWorkspace1/testFolder1/testNote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait link=Workflow
verifyElementNotPresent link=Approve
clickAndWait //input[@value='Start the workflow']
type //textarea[@id="reviewTasksTable:taskActionComment"] ok for me
clickAndWait link=Approve
verifyElementPresent link=Approve
verifyElementPresent link=Reject
clickAndWait link=Summary
verifyTextPresent Project
verifyElementPresent link=Edit
clickAndWait link=testFolder1
clickAndWait link=Log out
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent jsmith
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextPresent Approval comment for jsmith
clickAndWait link=testNote1
verifyElementPresent link=Edit
clickAndWait link=Summary
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Workflow
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent bree
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame tasks
verifyTextNotPresent Approval comment for bree
selectWindow null
selectOpenSocialGadgetFrame lastdocuments
clickAndWait link=testNote1
clickAndWait link=Summary
verifyElementNotPresent link=Edit
verifyElementPresent //div[@id='lock_unlock_button']
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent jdoe
clickAndWait link=Home
waitForOpensocialGadgetsToLoad nxDocumentListData 60000
selectOpenSocialGadgetFrame userdocuments
clickAndWait link=testNote1
clickAndWait link=Workflow
clickAndWait //input[@value='Abandon workflow']
verifyTextPresent Value is required
type //textarea[@id='abandonProcess:userWorkflowComment'] Abandoning approval workflow
clickAndWait //input[@value='Abandon workflow']
verifyElementPresent link=Edit
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
clickAndWait link=Summary
verifyTextPresent Project
clickAndWait link=testFolder1
verifyTextNotPresent workflow
clickAndWait link=Log out