serialReviewNoAddReviewers
setTimeout 120000
open logout
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Workflow
click //table[@class="dataInput"]/tbody/tr/td[2]/span/table//tr[2]//input
click //input[@value="workflowDocumentModificationNotAllowed"]
clickAndWait //input[@value="Start"]
verifyTextPresent Serial workflow
verifyElementNotPresent link=Modification
verifyTextPresent Modification not allowed
verifyElementNotPresent link=Approve
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//td[@class="labelField"]//input bree
submitAndWait //div[@class="tabsContent"]//form/
verifyTextPresent Bree Van de Kaamp
click link=Add to selection
waitForCondition var value = selenium.getText('//div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table[@class="rightsAddManager"]'); value.match(/Remove/); 15000
select //table[@class="dataInput"]//tr[3]//select label=Opinion
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table//textarea Comment for bree 2
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for bree 2
verifyElementPresent link=Remove
verifyElementPresent //input[@value="Start the workflow"]
verifyElementNotPresent link=Approve
verifyNotVisible //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//form
click link=Select reviewers
waitForVisible //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//form
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//td[@class="labelField"]//input lbramard
submitAndWait //div[@class="tabsContent"]//form/
verifyTextPresent Lucien Bramard
click link=Add to selection
waitForCondition var value = selenium.getText('//div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table[@class="rightsAddManager"]'); value.match(/Remove/); 15000
select //table[@class="dataInput"]//tr[3]//select label=Diffusion
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table//textarea Comment for lbramard 2
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for lbramard 2
verifyElementPresent link=Remove
verifyNotVisible //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//form
click link=Select reviewers
waitForVisible //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//form
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//td[@class="labelField"]//input jsmith
submitAndWait //div[@class="tabsContent"]//form/
verifyTextPresent John Smith
click link=Add to selection
waitForCondition var value = selenium.getText('//div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table[@class="rightsAddManager"]'); value.match(/Remove/); 15000
select //table[@class="dataInput"]//tr[3]//select label=Diffusion
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table//textarea Comment for jsmith 2
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for jsmith 2
verifyElementPresent link=Remove
clickAndWait //input[@value="Start the workflow"]
verifyElementPresent link=Approve
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent You are logged as bree
verifyElementNotPresent link=Modification
verifyElementNotPresent //div[@id="lock_unlock_button"]
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty.
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username jsmith
type password jsmith1
clickAndWait Submit
verifyTextPresent You are logged as jsmith
verifyElementNotPresent link=Modification
verifyElementNotPresent //div[@id="lock_unlock_button"]
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty.
clickAndWait link=Log out
open nxpath/default/default-domain/workspaces/testworskspace1/testfolder1/testnote1@view_documents
type username lbramard
type password lbramard1
clickAndWait Submit
verifyTextPresent You are logged as lbramard
verifyElementNotPresent link=Modification
verifyElementNotPresent //div[@id="lock_unlock_button"]
clickAndWait link=Workflow
verifyTextNotPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty.
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
verifyTextPresent workflow
clickAndWait link=testNote1
type //div[@class="tabsContent"]//div[5]/form//textarea Abandoning serial review#3
clickAndWait //input[@value="Abandon workflow"]
verifyElementPresent link=Modification
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