diff --git a/Use-Case-Tests.md b/Use-Case-Tests.md new file mode 100644 index 0000000..daa6a6d --- /dev/null +++ b/Use-Case-Tests.md @@ -0,0 +1,47 @@ +_NB! Notation info: ... in the extension test cases means that the steps up to this point are same as in the main success scenario test case._ +# **Test Case #1** +**Use Case being tested:** +Use Case #5 +**Use Case description:** +Displaying the public information of the ID card in the authentication application +**Inputs:** +A valid Estonian ID card with a NFC interface +The CAN (Card Authentication Number) of the the ID card +**Initial system state:** +The application’s home screen is opened. +The NFC connection is enabled on the smartphone and the system has permission to use it. +___ +**Main success scenario test:** +1. The user starts the process to read information from the ID card. +2. The user enters the valid CAN. +3. The user puts the ID card against the smartphone. + +**Expected results:** +    The system notifies that the data has been retrieved from the card. +    The full name and the personal identification number of the card’s owner is displayed. +___ +**Extension test cases** +**ID card not detected test:** +    2. ... +    3. The user does not put the ID card against the phone during the next 90 seconds. + +**Expected results:** +    The system notifies that ID card was not detected. +    The user is back on the home screen of the application. +___ +**Invalid CAN entered test:** +1. ... +2. The user enters an invalid CAN (for example 000000). +3. The user puts the ID card against the smartphone. + +**Expected results:** +    The system notifies the user that the CAN was invalid. +    The user is returned to the application’s home screen. +___ +**ID card removed from the smartphone before allowed:** +    2. ... +    3. The user puts the ID card against the smartphone and removes it immediately. + +**Expected results:** +    The system notifies the user that connection to the ID card was lost. +    The user is returned to the application’s home screen.