Test_SNF_ECMS_84_DenyPayraise_ecmdemo
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
click link=Login
waitForElementPresent username
type username mary
type password gtn
clickAndWait link=Sign in
echo -- Open form to create new 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 --  pay raise process
waitForElementPresent //div[@id='UIBPDefinition']/table/tbody/tr[2]/td[4]/div/img
click //div[@id='UIBPDefinition']/table/tbody/tr[2]/td[4]/div/img
waitForElementPresent amount-asked
type amount-asked 5000
type reason to buy new machine
waitForElementPresent link=Submit
click link=Submit
echo -- Log out
clickAndWait link=Sign out
pause 3000
echo -- Log in by admin
click link=Login
waitForElementPresent username
type username root
type password gtn
clickAndWait link=Sign in
echo -- Deny request
waitForElementPresent link=Business Process Controller
clickAndWait link=Business Process Controller
waitForElementPresent link=Manage
click link=Manage
waitForElementPresent amount-granted
type amount-granted 5000
waitForElementPresent link=Deny
click link=Deny
clickAndWait link=Sign out