You are on page 1of 18

List of names is empty

List of names is not empty

New name field is empty


S.A
S.C

New name field is not empty


S.B
S.D

List of names is empty


List of names is not empty

New name field is empty


S.A
S.C.1
List Item not selected
S.C.2
List Item selected

New name field is not empty


S.B
S.D.1
List Item not selected
S.D.2
List Item selected

List of names is empty

New name field is empty


S.A
List Item not selected

S.C.1

List item selected

S.C.2

List of names is not empty

New name field is not empty


S.B
New name matches a
listed name
List Item not selected
New name does not match
a listed name
New name matches a
listed name
List item selected
New name does not match
a listed name

S.D.1.a
S.D.1.b
S.D.2.a
S.D.2.b

List of names is empty

List of names is not empty

Name field is empty


S.A
Name matches a listed name

S.C.1

Name does not match a list

S.C.2

Name field is not empty


S.B
List Item not selected
Name matches a listed name
List item selected
Name does not match a list

List Item not selected

empty

S.D.1.a
S.D.1.b
S.D.2.a

UML Task 2

1. Use the Della Enhancement State Diagram as the source of information for this exe
2. The first three states have been fully defined, leaving five states only partially defin
3. You are to fill-in the missing information in the provided UML State Table, using the
S.A

List of names is empty


New name field is empty
"Add to List ->" is hidden
"<-Remove from List" is hidden

S.B

List of names is empty


Name field is not empty
"Add to List ->" is visible
"<-Remove from List" is hidden

S.C.1

List of names is not empty


New name field is empty
List item not selected
"Add to List ->" is hidden
"<-Remove from List" is hidden

S.C.2

List of names is not empty


New name field is empty
List item selected
"Add to List ->" is hidden
"<-Remove from List" is visible

S.D.1.a

List of names is not empty


New name field is not empty
List item not selected
Name matches a listed name
"Add to List ->" is hidden
"<-Remove from List" is hidden

S.D.1.b

List of names is not empty


New name field is not empty
List item not selected
Name does not match a listed name

S.D.1.b

"Add to List ->" is visible


"<-Remove from List" is hidden
S.D.2.a

List of names is not empty


New name field is not empty
List item selected
Name matches a listed name
"Add to List ->" is hidden
"<-Remove from List" is visible

S.D.2.b

List of names is not empty


New name field is not empty
List item selected
Name does not match a listed name
"Add to List ->" is visible
"<-Remove from List" is visible

Verification Rules
1. List of names is empty

2. List of names is not empty

3. List item selected

4. List item not selected


5. New name field is empty
6. New name field is not empty and
it does not match a name in the list

7. New name field is not empty and


it matches a name in the list
8. When a "Add to List ->" button is
pressed

9. When a "<- Remove from List" button


is pressed

10. "Add to List ->" button is hidden

11. "Add to List ->" button is visible

12. "<- Remove from List" button is


hidden

13. "<- Remove from List" button is


visible

Student: put your name here

ate Diagram as the source of information for this exercise


n fully defined, leaving five states only partially defined
ormation in the provided UML State Table, using the provided Diagram and the Verification rules
Change text field so it is not empty (Transition to S.B)
Change text field, but it ends up being empty (Stay in S.A)

Change text field so it is empty (Transition to S.A)


Change text field, but it is not empty (Stay in S.B)
Press "Add to List ->" button (Transition to S.C.2)

Change text field so it is not empty and does not match an existing name (Transition to S.D.1
Change text field so it is not empty and it matches an existing name (Transition to S.D.1.a)
Change text field, but it ends up being empty (Stay in S.C.1)
Select one of the names in the list (Transition to S.C.2)

There are just two transitions possibilities for changing the new name field
a. Change the new name so it is empty
b. Change the new name so it is not empty

There are three transitions possibilities for changing the new name field
a. Change the new name so it is empty
b. Change the new name so it is not empty and matches a name in the list of names
c. Change the new name so it is not empty and doe not match a name in the list of names
There is a transition based on selecting a name from the list of names
There are always two transitions possible using "<- Remove from List" button
a. "<- Remove from List" button and list is now empty
b. "<- Remove from List" button and list is not empty
It is not possible to use the "<- Remove from List" button, it should be hidden
It is not possible to use the "Add to List ->" button, it should be hidden
There is only one transition possible using the "Add to List ->" button
a. "Add to List ->" button

It is not possible to use the "Add to List ->" button, it should be hidden

The target state must have


a. an empty new name field
b. list of names is not empty (we just added a name to it)
c. list item is selected (the just added name is the selected name)
The target state must have
a. new name field is not empty (what was removed has been placed in the field)
b. list item not selected (we just removed it)
One of the following two conditions must be true
a. new name field is empty
b. new name field is not empty and it matches a name in the list of names

One of the following two conditions must be true


a. new name field is not empty and the list of names is empty
b. new name field is not empty, the list of names is not empty, the new name does not m
any name in the list of names
One of the following two conditions must be true
a. list of names is empty
b. list of names is not empty and no name in the list has been selected
There is only one state that is true that has the "<- Remove from List" button being visible
a. list of names is not empty and a name in the list has been selected

You might also like