mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-11-22 13:51:00 +02:00
Updated Use Case Tests (markdown)
parent
68fc8b52d1
commit
bfbd742693
@ -4,14 +4,13 @@ _NB! Notation info: ... in the extension test cases means that steps up to this
|
|||||||
[Use Case #5](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-5) : Display the public information of the ID card in the authentication application
|
[Use Case #5](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-5) : Display the public information of the ID card in the authentication application
|
||||||
**Inputs:**
|
**Inputs:**
|
||||||
A valid Estonian ID card with an NFC interface
|
A valid Estonian ID card with an NFC interface
|
||||||
The CAN (Card Authentication Number) of the ID card
|
The CAN (Card Authentication Number) of the ID card has been saved
|
||||||
**Initial system state:**
|
**Initial system state:**
|
||||||
The application’s home screen is active.
|
The application’s home screen is active.
|
||||||
The NFC connection is enabled on the device and the system has permission to use it.
|
The NFC connection is enabled on the device and the system has permission to use it.
|
||||||
___
|
___
|
||||||
**Main success scenario test:**
|
**Main success scenario test:**
|
||||||
 1. The user saves CAN if it is not saved already.
|
 1. The user puts the ID card against the smartphone.
|
||||||
 2. The user puts the ID card against the smartphone.
|
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The system retrieves personal information from the ID card.
|
 The system retrieves personal information from the ID card.
|
||||||
@ -20,9 +19,8 @@ ___
|
|||||||
___
|
___
|
||||||
|
|
||||||
**Extension test:** Invalid CAN used
|
**Extension test:** Invalid CAN used
|
||||||
 1. ...
|
 1. User saves invalid CAN (for example 000000).
|
||||||
 2. User saves invalid CAN (for example 000000).
|
 2. User puts the ID card against the smartphone.
|
||||||
 3. User puts the ID card against the smartphone.
|
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The system is unable to retrieve information from the ID card.
|
 The system is unable to retrieve information from the ID card.
|
||||||
@ -30,8 +28,7 @@ ___
|
|||||||
 The application deletes the saved CAN.
|
 The application deletes the saved CAN.
|
||||||
___
|
___
|
||||||
**Extension test:** ID card removed from the smartphone before allowed
|
**Extension test:** ID card removed from the smartphone before allowed
|
||||||
 2. ...
|
 1. The user puts the ID card against the smartphone and removes it immediately.
|
||||||
 3. The user puts the ID card against the smartphone and removes it immediately.
|
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 Connection between the ID card and device is lost.
|
 Connection between the ID card and device is lost.
|
||||||
@ -106,33 +103,29 @@ The authentication application has been started by an intent coming from another
|
|||||||
Necessary information has already been retrieved from the ID card.
|
Necessary information has already been retrieved from the ID card.
|
||||||
___
|
___
|
||||||
**Main success scenario test:**
|
**Main success scenario test:**
|
||||||
 1. The user does nothing.
|
 1. The user completes the authentication process.
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The authentication application closes.
|
 The authentication application closes.
|
||||||
___
|
___
|
||||||
**Extension test:** The authentication application fails to close
|
**No extensions**
|
||||||
 1. ...
|
|
||||||
|
|
||||||
**Expected results:**
|
|
||||||
 The application remains active.
|
|
||||||
 The user can click on a button to exit the app.
|
|
||||||
|
|
||||||
# **Test Case #5**
|
# **Test Case #5**
|
||||||
**Use Case being tested:**
|
**Use Case being tested:**
|
||||||
[Use Case #8](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-8) : Use the authentication application to log into a website
|
[Use Case #8](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-8) : Use the authentication application to log into a website
|
||||||
**Inputs:**
|
**Inputs:**
|
||||||
The CAN (Card Authentication Number) of an ID card
|
The CAN (Card Authentication Number) of an ID card
|
||||||
The PIN1 of an ID card
|
The PIN1 of an ID card
|
||||||
A valid Estonian ID card with an NFC interface
|
A valid Estonian ID card with an NFC interface
|
||||||
**Initial system state:**
|
**Initial system state:**
|
||||||
|
The CAN and PIN1 has not been saved by the application.
|
||||||
The user has the authentication application installed on the mobile phone.
|
The user has the authentication application installed on the mobile phone.
|
||||||
NFC technology is enabled on the user’s device and user has given the authentication application permission to use the NFC adapter.
|
NFC technology is enabled on the user’s device and user has given the authentication application permission to use the NFC adapter.
|
||||||
A website that supports logging in with the authentication application is active in the device’s web browser.
|
A website that supports logging in with the authentication application is active in the device’s web browser.
|
||||||
___
|
___
|
||||||
**Main success scenario test:**
|
**Main success scenario test:**
|
||||||
 1. The user selects the authentication application option as a method for logging in.
|
 1. The user selects the authentication application option as a method for logging in.
|
||||||
 2. The authentication application opens and the user enters the CAN of the ID card if prompted.
|
 2. The authentication application opens and the user enters the CAN of the ID card.
|
||||||
 3. User enters PIN1 of the ID card.
|
 3. User enters PIN1 of the ID card.
|
||||||
 4. User puts the ID card against the device in the 90 second time window.
|
 4. User puts the ID card against the device in the 90 second time window.
|
||||||
|
|
||||||
@ -144,11 +137,11 @@ ___
|
|||||||
 1. ...
|
 1. ...
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The system should inform the user that the authentication app could not be found.
|
 Nothing happens.
|
||||||
___
|
___
|
||||||
**Extension test:** User fails to put the ID card against the device in time
|
**Extension test:** User fails to put the ID card against the device in time
|
||||||
 3. ...
|
 3. ...
|
||||||
 4. The user does nothing.
|
 4. The user does not put the ID card against the device in the 90 second time window.
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The authentication application cancels the authentication process and closes.
|
 The authentication application cancels the authentication process and closes.
|
||||||
@ -160,7 +153,7 @@ ___
|
|||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The application cancels the authentication process and directs the user back to the website.
|
 The application cancels the authentication process and directs the user back to the website.
|
||||||
___
|
___
|
||||||
**Extension test:** Non-matching CAN
|
**Extension test:** CAN does not match the ID card
|
||||||
 1. ...
|
 1. ...
|
||||||
 2. The authentication application opens and the user enters a CAN that does not match the CAN of the ID card.
|
 2. The authentication application opens and the user enters a CAN that does not match the CAN of the ID card.
|
||||||
 4. ...
|
 4. ...
|
||||||
@ -178,62 +171,63 @@ ___
|
|||||||
 The application notifies the user that the PIN1 provided was incorrect.
|
 The application notifies the user that the PIN1 provided was incorrect.
|
||||||
 The application cancels the authentication process and directs the user back to the website.
|
 The application cancels the authentication process and directs the user back to the website.
|
||||||
|
|
||||||
# **Test Case #6**
|
# ~~**Test Case #6**~~
|
||||||
**Use Case being tested:**
|
~~**Use Case being tested:**~~
|
||||||
[Use Case #9](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-9) : Use the authentication application to give a signature on a website
|
~~[Use Case #9](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-9) : Use the authentication application to give a signature on a website~~
|
||||||
**Inputs:**
|
~~**Inputs:**~~
|
||||||
The PIN2 of an ID card
|
~~The PIN2 of an ID card~~
|
||||||
A valid Estonian ID card with an NFC interface
|
~~A valid Estonian ID card with an NFC interface~~
|
||||||
**Initial system state:**
|
~~**Initial system state:**~~
|
||||||
The user is logged in to a website using the authentication application.
|
~~The user is logged in to a website using the authentication application.~~
|
||||||
___
|
___
|
||||||
**Main success scenario test:**
|
~~**Main success scenario test:**~~
|
||||||
 1. The user starts a process that requires a signature on the website.
|
~~ 1. The user starts a process that requires a signature on the website.~~
|
||||||
 2. The authentication application opens and the user enters the CAN of the ID card if prompted.
|
~~ 2. The authentication application opens and the user enters the CAN of the ID card if prompted.~~
|
||||||
 3. User enters a valid PIN2.
|
~~ 3. User enters a valid PIN2.~~
|
||||||
 4. User puts the ID card against the device.
|
~~ 4. User puts the ID card against the device.~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The authentication application closes.
|
~~ The authentication application closes.~~
|
||||||
 The website should inform the user that it has received the necessary information.
|
~~ The website should inform the user that it has received the necessary information.~~
|
||||||
___
|
___
|
||||||
**Extension test:** The authentication application is not found
|
~~**Extension test:** The authentication application is not found~~
|
||||||
 1. ...
|
~~ 1. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The system should inform the user that the authentication app could not be found.
|
~~ The system should inform the user that the authentication app could not be found.~~
|
||||||
___
|
___
|
||||||
**Extension test:** User fails to put the ID card against the device in time
|
~~**Extension test:** User fails to put the ID card against the device in time~~
|
||||||
 3. ...
|
~~ 3. ...~~
|
||||||
 4. The user does nothing.
|
~~ 4. The user does nothing.~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The authentication application cancels the authentication process and closes.
|
~~ The authentication application cancels the authentication process and closes.~~
|
||||||
 The user is returned to the website.
|
~~ The user is returned to the website.~~
|
||||||
___
|
___
|
||||||
**Extension test:** Information exchange between the device and ID card fails
|
~~**Extension test:** Information exchange between the device and ID card fails~~
|
||||||
 4. ...
|
~~ 4. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The application cancels the authentication process and directs the user back to the website.
|
~~ The application cancels the authentication process and directs the user back to the website.~~
|
||||||
___
|
___
|
||||||
**Extension test:** Invalid PIN2
|
~~**Extension test:** Invalid PIN2~~
|
||||||
 2. ...
|
~~ 2. ...~~
|
||||||
 3. User enters a PIN that does not match the PIN2 of the ID card.
|
~~ 3. User enters a PIN that does not match the PIN2 of the ID card.~~
|
||||||
 4. ...
|
~~ 4. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The application notifies the user that the PIN2 provided was incorrect.
|
~~ The application notifies the user that the PIN2 provided was incorrect.~~
|
||||||
 The application cancels the authentication process and directs the user back to the website.
|
~~ The application cancels the authentication process and directs the user back to the website.~~
|
||||||
|
|
||||||
# **Test Case #7**
|
# **Test Case #7**
|
||||||
**Use Case being tested:**
|
**Use Case being tested:**
|
||||||
[Use Case #10](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-10) : Use the authentication application to log into an application running on the same device
|
[Use Case #10](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-10) : Use the authentication application to authenticate to an application running on the same device
|
||||||
**Inputs:**
|
**Inputs:**
|
||||||
The PIN1 of an ID card
|
The PIN1 of an ID card
|
||||||
The CAN (Card Authentication Number) of the ID card
|
The CAN (Card Authentication Number) of the ID card
|
||||||
A valid Estonian ID card with an NFC interface
|
A valid Estonian ID card with an NFC interface
|
||||||
**Initial system state:**
|
**Initial system state:**
|
||||||
|
The PIN 1 and CAN are not saved
|
||||||
The user has the authentication application installed on the device.
|
The user has the authentication application installed on the device.
|
||||||
NFC technology is enabled on the user’s device and the user has given the authentication application permission to use the NFC adapter.
|
NFC technology is enabled on the user’s device and the user has given the authentication application permission to use the NFC adapter.
|
||||||
An application that supports logging in with the authentication application is active.
|
An application that supports logging in with the authentication application is active.
|
||||||
@ -252,11 +246,11 @@ ___
|
|||||||
 1. ...
|
 1. ...
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The user should be informed that the authentication app could not be found.
|
 Nothing happens.
|
||||||
___
|
___
|
||||||
**Extension test:** User fails to put the ID card against the device in time
|
**Extension test:** User fails to put the ID card against the device in time
|
||||||
 3. ...
|
 3. ...
|
||||||
 4. The user does nothing.
|
 4. The user does not put the ID card against the smartphone.
|
||||||
|
|
||||||
**Expected results:**
|
**Expected results:**
|
||||||
 The authentication application cancels the authentication process and closes.
|
 The authentication application cancels the authentication process and closes.
|
||||||
@ -286,52 +280,52 @@ ___
|
|||||||
 The application notifies the user that the PIN1 provided was incorrect.
|
 The application notifies the user that the PIN1 provided was incorrect.
|
||||||
 The application cancels the authentication process and directs the user back to the requesting application.
|
 The application cancels the authentication process and directs the user back to the requesting application.
|
||||||
|
|
||||||
# **Test Case #8**
|
# ~~**Test Case #8**~~
|
||||||
**Use Case being tested:**
|
~~**Use Case being tested:**~~
|
||||||
[Use Case #11](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-11) : Use the authentication application to provide a signature to another application
|
~~[Use Case #11](https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC/wiki/Use-Cases#use-case-11) : Use the authentication application to provide a signature to another application~~
|
||||||
**Inputs:**
|
~~**Inputs:**~~
|
||||||
The PIN2 of an ID card
|
~~The PIN2 of an ID card~~
|
||||||
**Initial system state:**
|
~~**Initial system state:**~~
|
||||||
The requesting application is active.
|
~~The requesting application is active.~~
|
||||||
___
|
___
|
||||||
**Main success scenario test:**
|
~~**Main success scenario test:**~~
|
||||||
 1. The user starts a process that requires a signature in the requesting application.
|
~~ 1. The user starts a process that requires a signature in the requesting application.~~
|
||||||
 2. The authentication application opens and the user enters the CAN of the ID card if prompted.
|
~~ 2. The authentication application opens and the user enters the CAN of the ID card if prompted.~~
|
||||||
 3. User enters a valid PIN2.
|
~~ 3. User enters a valid PIN2.~~
|
||||||
 4. User puts the ID card against the device.
|
~~ 4. User puts the ID card against the device.~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The authentication application closes.
|
~~ The authentication application closes.~~
|
||||||
 The requesting application should inform the user that it has received the necessary information.
|
~~ The requesting application should inform the user that it has received the necessary information.~~
|
||||||
___
|
___
|
||||||
**Extension test:** The authentication application is not found
|
~~**Extension test:** The authentication application is not found~~
|
||||||
 1. ...
|
~~ 1. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The system should inform the user that the authentication app could not be found.
|
~~ The system should inform the user that the authentication app could not be found.~~
|
||||||
___
|
___
|
||||||
**Extension test:** User fails to put the ID card against the device in time
|
~~**Extension test:** User fails to put the ID card against the device in time~~
|
||||||
 3. ...
|
~~ 3. ...~~
|
||||||
 4. The user does nothing.
|
~~ 4. The user does nothing.~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The authentication application cancels the authentication process and closes.
|
~~ The authentication application cancels the authentication process and closes.~~
|
||||||
 The system returns the user to the requesting application.
|
~~ The system returns the user to the requesting application.~~
|
||||||
___
|
___
|
||||||
**Extension test:** Information exchange between the device and ID card fails
|
~~**Extension test:** Information exchange between the device and ID card fails~~
|
||||||
 4. ...
|
~~ 4. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The application cancels the authentication process and directs the user back to the requesting application.
|
~~ The application cancels the authentication process and directs the user back to the requesting application.~~
|
||||||
___
|
___
|
||||||
**Extension test:** Invalid PIN2
|
~~**Extension test:** Invalid PIN2~~
|
||||||
 2. ...
|
~~ 2. ...~~
|
||||||
 3. User enters a PIN that does not match the PIN2 of the ID card.
|
~~ 3. User enters a PIN that does not match the PIN2 of the ID card.~~
|
||||||
 4. ...
|
~~ 4. ...~~
|
||||||
|
|
||||||
**Expected results:**
|
~~**Expected results:**~~
|
||||||
 The application notifies the user that the PIN2 provided was incorrect.
|
~~ The application notifies the user that the PIN2 provided was incorrect.~~
|
||||||
 The application cancels the authentication process and directs the user back to the requesting application.
|
~~ The application cancels the authentication process and directs the user back to the requesting application.~~
|
||||||
|
|
||||||
# **Test Case #9 (new)**
|
# **Test Case #9 (new)**
|
||||||
**Use Case being tested:**
|
**Use Case being tested:**
|
||||||
|
Loading…
Reference in New Issue
Block a user