1011: Log into the UI using username and password

1011: Log into the UI using username and password

Test Case #:1011

Test Case Name: Log into the UI using username and password

System: OpenLMIS

Subsystem: blue

Test case designed by: Paulina Borowa

Design Date: 05.10.2016

Short description

Acceptance criteria:

  • User can log into the UI using following credentials: l: admin, p: password

  • After creating new user through the API, user can log into the UI using new credentials

                                                                                                                                                   

Pre – conditions:

                                                     

Step

 

Action

Expected system response

Comment

1

 Verify if http://10.222.17.205/public/#/login is available (the login form should be seen).

 

2

   Try to login using following credentials:

  • login: trusted-client

  • password: secret

Logging with this credentials should not be possible.

 

3

   Try to login using following credentials:

  • login: admin

  • password: password

Login should be finished successful.

 

4

 

Create User enity.

Method: Put

Body:

  {
   "username": "UserNa1mea112",
    "email": "testowesoldevelo@gmail.com",
    "firstName": "Na1m1ea2F",
    "lastName": "Las1t2aN",
    "verified": "true",
    "active": "true",
    "restrictLogin": "false",
    "timezone":"CTM"
}
                                                                                  

Status 200 OK

                                                 

5

Check if after creating user an email has been sent

 

 

6

Set password

Method: Post

Body:

{

    "token":"1b28f8ef-73c7-44f2-811c-5f791f667c9f",

    "username": "UserNa1mea112",

    "newPassword":"Password123"

}


 

 Status 200 OK

 

From OLMIS-587 -password must be between 8 to 16 characters, should not contain spaces and contain at least 1 number, -error message is displayed if password doesn't meet the above parameters

 

7

Try to login using following credentials:

  • login: UserNa1mea112

  • password: Password123

Login should be finished successful.

 

8

Verify if the logging is possible with wrong credentials (the proper warning should be displayed).

Logging with wrong credentials should not be possible. 

 

OpenLMIS: the global initiative for powerful LMIS software