Test_SNF_ECMS_86_DisapproveHolidayProcess_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Log in
click link=Login
waitForElementPresent username
type username mary
type password gtn
clickAndWait link=Sign in
echo -- Create a holiday request
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
echo --  BP Definition Controller
waitForElementPresent //div[@id='UIControllerManager']//div[text()="BP Definition Controller"]
click //div[@id='UIControllerManager']//div[text()="BP Definition Controller"]
echo --  Holiday process
waitForElementPresent //img[@title='Manage Start']
click //img[@title='Manage Start']
waitForElementPresent end
click end
waitForElementPresent //a[@title='Next Year']
click //a[@title='Next Year']
waitForElementPresent link=16
click link=16
waitForElementPresent link=Submit
click link=Submit
clickAndWait link=Sign out
echo -- Login by administration
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Open form and disapprove request
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
waitForElementPresent link=Manage
click link=Manage
waitForElementPresent link=Disapprove
click link=Disapprove
clickAndWait link=Sign out
echo -- Log in by creator
click link=Login
waitForElementPresent username
type username mary
type password gtn
clickAndWait link=Sign in
echo -- Open form and modify request
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
waitForElementPresent link=Manage
click link=Manage
waitForElementPresent end
click end
waitForElementPresent link=29
click link=29
waitForElementPresent link=Modify
click link=Modify
clickAndWait link=Sign out
echo -- Login by admin again
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Open form and approve request
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
waitForElementPresent link=Manage
click link=Manage
waitForElementPresent link=Approve
click link=Approve
echo add James in HR
waitForElementPresent link=Users and Groups Manager
clickAndWait link=Users and Groups Manager
waitForElementPresent link=Group Management
click link=Group Management
waitForElementPresent //a[@title="Organization"]
click //a[@title="Organization"]
waitForElementPresent //a[@title="Management"]
click //a[@title="Management"]
waitForElementPresent link=Human Resources
click link=Human Resources
waitForElementPresent //a[@title="Select User"]
click //a[@title="Select User"]
waitForElementPresent james
click james
waitForElementPresent //form[@id='UIUserSelector']/div[2]/div[2]/a[1]
click //form[@id='UIUserSelector']/div[2]/div[2]/a[1]
waitForElementPresent link=Save
click link=Save
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Validate by human resource
click link=Login
waitForElementPresent username
type username james
type password gtn
clickAndWait link=Sign in
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
waitForElementPresent link=Manage
click link=Manage
waitForElementPresent link=Read
click link=Read
echo -- Log out
waitForElementPresent link=Sign out
clickAndWait link=Sign out
echo -- Log in by Administration remove James
waitForElementPresent link=Login
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
waitForElementPresent link=Users and Groups Manager
clickAndWait link=Users and Groups Manager
waitForElementPresent link=Group Management
click link=Group Management
waitForElementPresent //a[@title="Organization"]
click //a[@title="Organization"]
waitForElementPresent //a[@title="Management"]
click //a[@title="Management"]
waitForElementPresent link=Human Resources
click link=Human Resources
waitForElementPresent //img[@alt='DeleteUser']
click //img[@alt='DeleteUser']
assertConfirmation Are you sure to delete user james from group organization/management/human-resources?
echo -- Log out end
waitForElementPresent link=Sign out
clickAndWait link=Sign out