| 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 |
|
| 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 |
//img[contains(@onclick,"objectId=1")] |
|
| click |
//img[contains(@onclick,"objectId=1")] |
|
| waitForElementPresent |
amount-asked |
|
| type |
amount-asked |
3000 |
| type |
reason |
test |
| waitForElementPresent |
link=Submit |
|
| click |
link=Submit |
|
| waitForElementPresent |
link=Sign out |
|
| 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 |
|
| waitForElementPresent |
link=Business Process Admin |
|
| clickAndWait |
link=Business Process Admin |
|
| echo |
-- view : pay raise process |
|
| waitForElementPresent |
//img[contains(@onclick,"objectId=1") and @title="View"] |
|
| click |
//img[contains(@onclick,"objectId=1") and @title="View"] |
|
| waitForElementPresent |
//div[@id='UIRunningProcessGrid']//img[contains(@onclick,"objectId=1") and @title="View"] |
|
| click |
//div[@id='UIRunningProcessGrid']//img[contains(@onclick,"objectId=1") and @title="View"] |
|
| waitForElementPresent |
//div[@id='UIProcessDetail']//a[contains(@href,"Cancel")] |
|
| click |
//div[@id='UIProcessDetail']//a[contains(@href,"Cancel")] |
|
| waitForElementPresent |
//img[contains(@onclick,"objectId=1") and @title="Delete"] |
|
| click |
//img[contains(@onclick,"objectId=1") and @title="Delete"] |
|
| assertConfirmation |
Do you want to delete this process instance? |
|
| waitForElementPresent |
//div[@id='UITaskListOfProcess']//a[contains(@href,"Cancel")] |
|
| click |
//div[@id='UITaskListOfProcess']//a[contains(@href,"Cancel")] |
|
| echo |
-- Log out |
|
| waitForElementPresent |
link=Sign out |
|
| clickAndWait |
link=Sign out |
|