| open |
/portal/public/intranet/ |
|
| echo |
-- SignIn/SignOut |
|
| windowMaximize |
|
|
| echo |
-- Login by Administrator-- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
root |
| type |
password |
gtn |
| echo |
--Login : Root |
|
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
Root Root |
|
| verifyTextPresent |
Root Root |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by Manager-- |
|
| waitForElementPresent |
//div[contains(text(),'Sign in')] |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
john |
| type |
password |
gtn |
| echo |
--Login : John Smith |
|
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
John Smith |
|
| verifyTextPresent |
John Smith |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by User-- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
mary |
| type |
password |
gtn |
| echo |
--Login : Mary Williams |
|
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
Mary Williams |
|
| verifyTextPresent |
Mary Williams |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|
| echo |
-- Login by Demo-- |
|
| click |
//div[contains(text(),'Sign in')] |
|
| waitForElementPresent |
username |
|
| type |
username |
demo |
| type |
password |
gtn |
| echo |
--Login : Jack Miller |
|
| clickAndWait |
link=Sign in |
|
| waitForTextPresent |
Jack Miller |
|
| verifyTextPresent |
Jack Miller |
|
| echo |
--Logout |
|
| waitForElementPresent |
link=Logout |
|
| clickAndWait |
link=Logout |
|