Logo: Relish

  1. Sign in

Project: Seleniumwebtestingsk

Login/Logout

It is necessary to login to the portal to complete any further tasks
Attempting to login with an invalid or blank username and/or password gives an error message

Scenarios
  • @login
  • @BuildVerificationTest
LoginAs_ScenarioUser
Given
I am on the login screen
When
I login as "pkadmin" with password "123"
Then
the portal should load
  • @logout
Logging out of portal returns to login page
Given
I am logged into the portal
When
I click the logout button
Then
I should be returned to the login screen
  • @failedlogin
Logging in with correct username and incorrect password gives error message
Given
I am on the login screen
When
I login as "pkadmin" with password "abc"
Then
I should receive an error message "Login Failed: Incorrect password"
  • @failedlogin
Logging in with username and blank password gives error message
Given
I am on the login screen
When
I login as "pkadmin" with password ""
Then
I should receive an error message "Please Enter a Password"
  • @failedlogin
Logging in with blank username gives error message
Given
I am on the login screen
When
I login as "" with password ""
Then
I should receive an error message "Please Enter a Username"
  • @failedlogin
Logging in with invalid username gives error message
Given
I am on the login screen
When
I login as "notavaliduser" with password "123"
Then
I should receive an error message "Login Failed: notavaliduser is not a valid user on this system"

Last published over 4 years ago by ess kay.