echo |
----- This tests the login delay that happens when a bad password is provided. The delay is one second per bad attempt (up to a maximum). ----- |
|
echo |
----- First make sure the user is logged out ----- |
|
include |
/selenium_scripts/logout.html |
|
open |
${proxy_suffix} |
|
assertTitle |
Login |
|
echo |
-- First login and log back out to reset any delay counters -- |
|
include |
/selenium_scripts/login.html |
|
assertElementPresent |
//div[@id='psibluebar'] |
|
include |
/selenium_scripts/logout.html |
|
storeEval |
selenium.getSpeed() |
old_speed |
storeEval |
selenium.doSetSpeed(0) |
just_want_to_eval |
storeExpression |
${current_password} |
good_password |
include |
/selenium_scripts/login.html |
current_password=BAADF00D |
assertTextPresent |
|
Wrong username or password |
include |
/selenium_scripts/login.html |
current_password=${good_password} |
assertElementPresent |
//div[@id='psibluebar'] |
|
include |
/selenium_scripts/logout.html |
|
include |
/selenium_scripts/login.html |
current_password=BAADF00D |
assertTextPresent |
|
Wrong username or password |
include |
/selenium_scripts/login.html |
current_password=BAADF00D |
assertTextPresent |
|
Wrong username or password |
sleep |
1000 |
|
include |
/selenium_scripts/login.html |
current_password=BAADF00D |
assertTextPresent |
|
Wrong username or password |
include |
/selenium_scripts/login.html |
current_password=${good_password} |
assertTextPresent |
|
Wrong username or password |
sleep |
5000 |
|
include |
/selenium_scripts/login.html |
current_password=${good_password} |
assertElementPresent |
//div[@id='psibluebar'] |
|
include |
/selenium_scripts/logout.html |
|
include |
/selenium_scripts/login.html |
current_password=${good_password} |
assertElementPresent |
//div[@id='psibluebar'] |
|
include |
/selenium_scripts/logout.html |
|
storeEval |
selenium.doSetSpeed(${old_speed}) |
just_want_to_eval |
storeExpression |
${good_password} |
current_password |