mirror of
https://github.com/appinfosapienza/so-un-bot.git
synced 2025-03-14 17:26:14 +01:00
ingsw: Add 04-22
This commit is contained in:
parent
e341a56d78
commit
87f903d836
4 changed files with 23 additions and 0 deletions
1
Ingegneria del Software/0422-16/correct.txt
Normal file
1
Ingegneria del Software/0422-16/correct.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
100%
|
20
Ingegneria del Software/0422-16/quest.txt
Normal file
20
Ingegneria del Software/0422-16/quest.txt
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
img=https://i.imgur.com/6m6ALRb.png
|
||||||
|
La state coverage di un insieme di test cases (cioè sequeze di inputs) per uno state diagram è la percentuale di stati (inclusi START ed END) rggiunti almeno una volta.
|
||||||
|
|
||||||
|
Si consideri lo state diagram in figura
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ed il seguente insieme di test cases:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
1) Start PIN validation, card inserted, PIN Entered, Valid PIN, Cancel 3, End PIN Validation 2
|
||||||
|
|
||||||
|
2) Start PIN validation, card inserted, PIN Entered, Valid PIN, Cancel 2, End PIN Validation 2
|
||||||
|
|
||||||
|
3) Start PIN validation, card inserted, PIN Entered, Invalid PIN, PIN Entered, Invalid PIN, PIN Entered, Invalid PIN, PIN Entered, Invalid PIN, More than 3 failed..., END PIN validation 1;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Quale delle seguenti è la migliore stima della state coverage per i test cases di cui sopra
|
1
Ingegneria del Software/0422-16/wrong1.txt
Normal file
1
Ingegneria del Software/0422-16/wrong1.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
90%
|
1
Ingegneria del Software/0422-16/wrong2.txt
Normal file
1
Ingegneria del Software/0422-16/wrong2.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
80%
|
Loading…
Reference in a new issue