Test_SNF_ECMS_89_ViewProcess
open /ecmdemo/public/acme/
windowMaximize
echo -- Login
click link=Login
waitForElementPresent username
type username mary
type password gtn
clickAndWait link=Sign in
echo -- Create a request
clickAndWait link=Business Process Controller
echo --  BP Definition Controller
waitForElementPresent //div[@id='UIControllerManager']/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
click //div[@id='UIControllerManager']/div/div/div[1]/div/div/div/div/div[2]/div/div/div/div
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 3000
type reason test
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 -- View detail of process
clickAndWait link=Business Process Admin
echo --  view : pay raise process
waitForElementPresent //div[@id='UIMonitor']/table/tbody/tr[3]/td[4]/div/img[1]
click //div[@id='UIMonitor']/table/tbody/tr[3]/td[4]/div/img[1]
waitForElementPresent //div[@id='UIRunningProcessGrid']/table/tbody/tr/td[6]/div/img[1]
click //div[@id='UIRunningProcessGrid']/table/tbody/tr/td[6]/div/img[1]
waitForElementPresent //div[@id='UITaskListOfProcess']/div/div/div[2]/table/tbody/tr/td/a/div/div/div
click //div[@id='UITaskListOfProcess']/div/div/div[2]/table/tbody/tr/td/a/div/div/div
waitForElementPresent //div[@id='UIRunningProcessGrid']/table/tbody/tr/td[6]/div/img[2]
click //div[@id='UIRunningProcessGrid']/table/tbody/tr/td[6]/div/img[2]
assertConfirmation Do you want to delete this process instance?
click //div[@id='UIProcessDetail']/div/div/div[2]/table/tbody/tr/td/a[2]/div/div/div
echo -- Log out
clickAndWait link=Sign out