serialReviewAddReviewers
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium serialReviewAddReviewers
open logout
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 //table[@class="dataInput"]/tbody/tr/td[2]/span/table/tbody/tr[2]//input
click //input[@value="workflowDocumentModificationNotAllowed"]
clickAndWait //input[@value="Start"]
verifyTextPresent Serial workflow
verifyElementNotPresent link=Modification
verifyTextPresent Modification not allowed
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyElementPresent //input[@value="Start the workflow"]
clickAndWait link=Log out
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
verifyElementNotPresent link=Modification
verifyElementNotPresent //div[@id="lock_unlock_button"]
clickAndWait link=Workflow
verifyElementNotPresent //input[@value="Start the 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 link=Workflow
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=Diffusion
type //div[@class="tabsContent"]/div/div[2]//div[@class="boxBody"]//table//textarea Comment for bree
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for bree
verifyElementPresent //input[@value="Start the workflow"]
verifyElementPresent link=Remove
verifyElementNotPresent link=Approve
clickAndWait //input[@value="Start the workflow"]
verifyElementPresent link=Approve
clickAndWait link=Approve
verifyElementNotPresent link=Approve
verifyTextPresent Select reviewers
clickAndWait link=Log out
type username bree
type password bree1
clickAndWait Submit
verifyTextPresent You are logged as bree
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
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
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for lbramard
verifyElementPresent link=Remove
clickAndWait link=Approve
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyTextNotPresent Select reviewers
clickAndWait link=Log out
type username lbramard
type password lbramard1
clickAndWait Submit
verifyTextPresent You are logged as lbramard
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
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 jdoe
submitAndWait //div[@class="tabsContent"]//form/
verifyTextPresent John Doe
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 jdoe
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for jdoe
verifyElementPresent link=Remove
clickAndWait link=Approve
verifyElementNotPresent link=Approve
verifyElementNotPresent link=Reject
verifyTextNotPresent Select reviewers
clickAndWait link=Log out
type username jdoe
type password jdoe1
clickAndWait Submit
verifyTextPresent You are logged as jdoe
clickAndWait link=Dashboard
clickAndWait link=testNote1
verifyTextPresent Select reviewers
verifyTextNotPresent Participants management
verifyTextNotPresent Abandon workflow
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
clickAndWait //input[@value="Add"]
verifyTextPresent Comment for jsmith
verifyElementPresent link=Remove
clickAndWait link=Remove
verifyTextNotPresent Comment for jsmith
clickAndWait link=Log out
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
type //div[@class="tabsContent"]//div[5]/form//textarea Abandoning serial review #2
clickAndWait //input[@value="Abandon workflow"]
verifyElementPresent link=Modification
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