open |
restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium taskOnDeletedDocument |
|
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 |
|
type |
//input[@name='addReviewers:nxl_add_workflow_task:nxw_actors_suggest'] |
|
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'] |
|
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 |
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=testFolder1 |
|
click |
//input[@id="CHILDREN_DOCUMENT_LIST:nxl_document_listing_1:nxw_listing_selection_box_with_current_document_1"] |
|
waitForEditable |
//input[@value="Delete"] |
|
clickAndWait |
//input[@value="Delete"] |
|
assertConfirmation |
Delete selected document(s)? |
|
verifyTextNotPresent |
testNote1 |
|
clickAndWait |
link=Dashboard |
|
assertTextPresent |
testNote1 |
|
watchA4jRequests |
|
|
click |
dashboardDocumentProcessTable:refreshButton |
|
waitForA4jRequest |
3000 |
|
refreshAndWait |
|
|
assertTextNotPresent |
testNote1 |
|
clickAndWait |
link=Log out |
|
type |
username |
jsmith |
type |
password |
jsmith1 |
clickAndWait |
Submit |
|
verifyTextPresent |
You are logged as jsmith |
|
clickAndWait |
link=Dashboard |
|
assertTextPresent |
Your dashboard is empty. There are no tasks that require your intervention. |
|
clickAndWait |
link=Log out |
|
type |
username |
Administrator |
type |
password |
Administrator |
clickAndWait |
Submit |
|
verifyTextPresent |
You are logged as Administrator |
|
clickAndWait |
link=Workspaces |
|
clickAndWait |
link=testWorkspace1 |
|
clickAndWait |
link=testFolder1 |
|
clickAndWait |
link=Manage |
|
clickAndWait |
link=Trash |
|
click |
//input[@id="CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document"] |
|
verifyChecked |
//input[@id="CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document"] |
|
waitForEditable |
//span[@id="CURRENT_SELECTION_UNDELETE"]/input |
12000 |
clickAndWait |
//input[@value="Restore"] |
|
assertConfirmation |
Undelete selected document(s)? |
|
verifyTextPresent |
1 Document(s) restored |
|
clickAndWait |
link=Log out |
|
type |
username |
jsmith |
type |
password |
jsmith1 |
clickAndWait |
Submit |
|
verifyTextPresent |
You are logged as jsmith |
|
clickAndWait |
link=Dashboard |
|
assertTextPresent |
testNote1 |
|
clickAndWait |
link=Log out |
|
type |
username |
jdoe |
type |
password |
jdoe1 |
clickAndWait |
Submit |
|
verifyTextPresent |
You are logged as jdoe |
|
clickAndWait |
link=Dashboard |
|
assertTextPresent |
testNote1 |
|
clickAndWait |
link=testNote1 |
|
type |
//textarea[@id="abandonProcess:userWorkflowComment" ] |
foo |
clickAndWait |
//input[@value="Abandon workflow"] |
|
clickAndWait |
link=Log out |
|