mirror of
https://github.com/TanelOrumaa/Estonian-ID-card-mobile-authenticator-POC.git
synced 2024-11-25 15:20:59 +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
|
||||
**Inputs:**
|
||||
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:**
|
||||
The application’s home screen is active.
|
||||
The NFC connection is enabled on the device and the system has permission to use it.
|
||||
___
|
||||
**Main success scenario test:**
|
||||
 1. The user saves CAN if it is not saved already.
|
||||
 2. The user puts the ID card against the smartphone.
|
||||
 1. The user puts the ID card against the smartphone.
|
||||
|
||||
**Expected results:**
|
||||
 The system retrieves personal information from the ID card.
|
||||
@ -20,9 +19,8 @@ ___
|
||||
___
|
||||
|
||||
**Extension test:** Invalid CAN used
|
||||
 1. ...
|
||||
 2. User saves invalid CAN (for example 000000).
|
||||
 3. User puts the ID card against the smartphone.
|
||||
 1. User saves invalid CAN (for example 000000).
|
||||
 2. User puts the ID card against the smartphone.
|
||||
|
||||
**Expected results:**
|
||||
 The system is unable to retrieve information from the ID card.
|
||||
@ -30,8 +28,7 @@ ___
|
||||
 The application deletes the saved CAN.
|
||||
___
|
||||
**Extension test:** ID card removed from the smartphone before allowed
|
||||
 2. ...
|
||||
 3. The user puts the ID card against the smartphone and removes it immediately.
|
||||
 1. The user puts the ID card against the smartphone and removes it immediately.
|
||||
|
||||
**Expected results:**
|
||||
 Connection between the ID card and device is lost.
|
||||
@ -106,17 +103,12 @@ The authentication application has been started by an intent coming from another
|
||||
Necessary information has already been retrieved from the ID card.
|
||||
___
|
||||
**Main success scenario test:**
|
||||
 1. The user does nothing.
|
||||
 1. The user completes the authentication process.
|
||||
|
||||
**Expected results:**
|
||||
 The authentication application closes.
|
||||
___
|
||||
**Extension test:** The authentication application fails to close
|
||||
 1. ...
|
||||
|
||||
**Expected results:**
|
||||
 The application remains active.
|
||||
 The user can click on a button to exit the app.
|
||||
**No extensions**
|
||||
|
||||
# **Test Case #5**
|
||||
**Use Case being tested:**
|
||||
@ -126,13 +118,14 @@ The CAN (Card Authentication Number) of an ID card
|
||||
The PIN1 of an ID card
|
||||
A valid Estonian ID card with an NFC interface
|
||||
**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.
|
||||
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.
|
||||
___
|
||||
**Main success scenario test:**
|
||||
 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.
|
||||
 4. User puts the ID card against the device in the 90 second time window.
|
||||
|
||||
@ -144,11 +137,11 @@ ___
|
||||
 1. ...
|
||||
|
||||
**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
|
||||
 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:**
|
||||
 The authentication application cancels the authentication process and closes.
|
||||
@ -160,7 +153,7 @@ ___
|
||||
**Expected results:**
|
||||
 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. ...
|
||||
 2. The authentication application opens and the user enters a CAN that does not match the CAN of the ID card.
|
||||
 4. ...
|
||||
@ -178,62 +171,63 @@ ___
|
||||
 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.
|
||||
|
||||
# **Test Case #6**
|
||||
**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
|
||||
**Inputs:**
|
||||
The PIN2 of an ID card
|
||||
A valid Estonian ID card with an NFC interface
|
||||
**Initial system state:**
|
||||
The user is logged in to a website using the authentication application.
|
||||
# ~~**Test Case #6**~~
|
||||
~~**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~~
|
||||
~~**Inputs:**~~
|
||||
~~The PIN2 of an ID card~~
|
||||
~~A valid Estonian ID card with an NFC interface~~
|
||||
~~**Initial system state:**~~
|
||||
~~The user is logged in to a website using the authentication application.~~
|
||||
___
|
||||
**Main success scenario test:**
|
||||
 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.
|
||||
 3. User enters a valid PIN2.
|
||||
 4. User puts the ID card against the device.
|
||||
~~**Main success scenario test:**~~
|
||||
~~ 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.~~
|
||||
~~ 3. User enters a valid PIN2.~~
|
||||
~~ 4. User puts the ID card against the device.~~
|
||||
|
||||
**Expected results:**
|
||||
 The authentication application closes.
|
||||
 The website should inform the user that it has received the necessary information.
|
||||
~~**Expected results:**~~
|
||||
~~ The authentication application closes.~~
|
||||
~~ The website should inform the user that it has received the necessary information.~~
|
||||
___
|
||||
**Extension test:** The authentication application is not found
|
||||
 1. ...
|
||||
~~**Extension test:** The authentication application is not found~~
|
||||
~~ 1. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 The system should inform the user that the authentication app could not be found.
|
||||
~~**Expected results:**~~
|
||||
~~ 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
|
||||
 3. ...
|
||||
 4. The user does nothing.
|
||||
~~**Extension test:** User fails to put the ID card against the device in time~~
|
||||
~~ 3. ...~~
|
||||
~~ 4. The user does nothing.~~
|
||||
|
||||
**Expected results:**
|
||||
 The authentication application cancels the authentication process and closes.
|
||||
 The user is returned to the website.
|
||||
~~**Expected results:**~~
|
||||
~~ The authentication application cancels the authentication process and closes.~~
|
||||
~~ The user is returned to the website.~~
|
||||
___
|
||||
**Extension test:** Information exchange between the device and ID card fails
|
||||
 4. ...
|
||||
~~**Extension test:** Information exchange between the device and ID card fails~~
|
||||
~~ 4. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 The application cancels the authentication process and directs the user back to the website.
|
||||
~~**Expected results:**~~
|
||||
~~ The application cancels the authentication process and directs the user back to the website.~~
|
||||
___
|
||||
**Extension test:** Invalid PIN2
|
||||
 2. ...
|
||||
 3. User enters a PIN that does not match the PIN2 of the ID card.
|
||||
 4. ...
|
||||
~~**Extension test:** Invalid PIN2~~
|
||||
~~ 2. ...~~
|
||||
~~ 3. User enters a PIN that does not match the PIN2 of the ID card.~~
|
||||
~~ 4. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 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.
|
||||
~~**Expected results:**~~
|
||||
~~ 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.~~
|
||||
|
||||
# **Test Case #7**
|
||||
**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:**
|
||||
The PIN1 of an ID card
|
||||
The CAN (Card Authentication Number) of the ID card
|
||||
A valid Estonian ID card with an NFC interface
|
||||
**Initial system state:**
|
||||
The PIN 1 and CAN are not saved
|
||||
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.
|
||||
An application that supports logging in with the authentication application is active.
|
||||
@ -252,11 +246,11 @@ ___
|
||||
 1. ...
|
||||
|
||||
**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
|
||||
 3. ...
|
||||
 4. The user does nothing.
|
||||
 4. The user does not put the ID card against the smartphone.
|
||||
|
||||
**Expected results:**
|
||||
 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 cancels the authentication process and directs the user back to the requesting application.
|
||||
|
||||
# **Test Case #8**
|
||||
**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
|
||||
**Inputs:**
|
||||
The PIN2 of an ID card
|
||||
**Initial system state:**
|
||||
The requesting application is active.
|
||||
# ~~**Test Case #8**~~
|
||||
~~**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~~
|
||||
~~**Inputs:**~~
|
||||
~~The PIN2 of an ID card~~
|
||||
~~**Initial system state:**~~
|
||||
~~The requesting application is active.~~
|
||||
___
|
||||
**Main success scenario test:**
|
||||
 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.
|
||||
 3. User enters a valid PIN2.
|
||||
 4. User puts the ID card against the device.
|
||||
~~**Main success scenario test:**~~
|
||||
~~ 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.~~
|
||||
~~ 3. User enters a valid PIN2.~~
|
||||
~~ 4. User puts the ID card against the device.~~
|
||||
|
||||
**Expected results:**
|
||||
 The authentication application closes.
|
||||
 The requesting application should inform the user that it has received the necessary information.
|
||||
~~**Expected results:**~~
|
||||
~~ The authentication application closes.~~
|
||||
~~ The requesting application should inform the user that it has received the necessary information.~~
|
||||
___
|
||||
**Extension test:** The authentication application is not found
|
||||
 1. ...
|
||||
~~**Extension test:** The authentication application is not found~~
|
||||
~~ 1. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 The system should inform the user that the authentication app could not be found.
|
||||
~~**Expected results:**~~
|
||||
~~ 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
|
||||
 3. ...
|
||||
 4. The user does nothing.
|
||||
~~**Extension test:** User fails to put the ID card against the device in time~~
|
||||
~~ 3. ...~~
|
||||
~~ 4. The user does nothing.~~
|
||||
|
||||
**Expected results:**
|
||||
 The authentication application cancels the authentication process and closes.
|
||||
 The system returns the user to the requesting application.
|
||||
~~**Expected results:**~~
|
||||
~~ The authentication application cancels the authentication process and closes.~~
|
||||
~~ The system returns the user to the requesting application.~~
|
||||
___
|
||||
**Extension test:** Information exchange between the device and ID card fails
|
||||
 4. ...
|
||||
~~**Extension test:** Information exchange between the device and ID card fails~~
|
||||
~~ 4. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 The application cancels the authentication process and directs the user back to the requesting application.
|
||||
~~**Expected results:**~~
|
||||
~~ The application cancels the authentication process and directs the user back to the requesting application.~~
|
||||
___
|
||||
**Extension test:** Invalid PIN2
|
||||
 2. ...
|
||||
 3. User enters a PIN that does not match the PIN2 of the ID card.
|
||||
 4. ...
|
||||
~~**Extension test:** Invalid PIN2~~
|
||||
~~ 2. ...~~
|
||||
~~ 3. User enters a PIN that does not match the PIN2 of the ID card.~~
|
||||
~~ 4. ...~~
|
||||
|
||||
**Expected results:**
|
||||
 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.
|
||||
~~**Expected results:**~~
|
||||
~~ 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.~~
|
||||
|
||||
# **Test Case #9 (new)**
|
||||
**Use Case being tested:**
|
||||
|
Loading…
Reference in New Issue
Block a user