Skip to content

Test Cases

Rebekka Lohse edited this page May 10, 2023 · 8 revisions

Test Cases

Since there are no automatic tests for our project, we have decided to set up a manuelle test list. These test cases can be used to check the functionality of the code before pushing on main. The order of test is as follows: isolated tests, import/ export tests and then interaction tests.

Explanation of Terms

Fragment Model

Step Action Desired Result
01 create a start event using the "Create StartEvent" Button from the panel Start event exists
02 create an intermediate/ boundary event using the "Create Intermediate/ Boundary Event" Button from the panel Intermediate/ Boundary event exists
03 create a gateway using the "Create Gateway" button from the panel Gateway exists
04 create an activity using the "Create Task" button from the panel Activity exists
05 create a data object reference using the "Create DataObjectReference" button from the panel Data object reference exists
06 create the class "Class 0" using the drop down menu of the data object reference and select this class Data object reference has the class "Class 0"
07 create the state "State 0" using the drop down menu of the data object reference and select this state Data object reference has the state "State 0"
08 close the drop down menu by clicking outside of all objects Drop down menu disappears

Data Model

Step Action Desired Result
09 change to Data Model in Data Model
10 create a class using the "Create Class" button from the panel class exists
11 name this class "Class 1" by clicking on the class class is called "Class 1"
12 connect a new class with Class 1 using the "Link with new object" button from the context pad of Class 1 second connected class exists
13 name the new class "Class 2" new class is called "Class 2"
14 create a new class using the "Create Class" Button from the panel class exists
15 name this class "Class 3" by clicking on the class class is called "Class 3"
16 connect Class 2 and Class 3 using the "Link object to other objects" button from the context pad of Class 2 Class 2 and Class 3 are connected
17 create a new class using the "Create Class" Button from the panel class exists
18 name this class "Class 4" by clicking on the class class is called "Class 4"
19 connect Class 3 and Class 4 using the "Associate Classes" button from the panel Class 3 and Class 4 are connected
20 delete Class 4 * Class 4 ist gone (including all connections)
##Objective Model
Step Action Desired Result
--- --- ---
21 change to Objective Model in Objective Model
22 create an objective using the "Create Objective" button from the panel object exists
23 create a class called "Class 4" using the dropdown menu and select it object is off Class 4
24 create an instance called "Instance 1" using the dropdown menu and select it object Instance 1
25 create a state called "State 1" using the dropdown menu and select it object is in State 1
26 create a new object using the "Link with new object" button from the context pad of Instance 1 second object exists
27 select for this object also Class 4 and name it "Instance 2" new object is called "Instance 2"
28 create a new objective using the "Create Objective" button from the panel third object exists
29 select for this object also Class 4 and name it "Instance 3" new object is called "Instance 3"
30 connect Instance 2 and Instance 3 using the "Link object to other objects" button from the context pad of Instance 2 Instance 2 and Instance 3 are connected
31 create a new objective using the "Create Objective" button from the panel fourth object exists
32 select for this object Class 1 drop down has no instances for this class
33 create "Instance 1" for this object and select it new object is called "Instance 1"
34 delete Instance 3 Instance 3 is gone
35 create a new objective called "Objective 2" using the drop down menu Objective 2 exists ans is empty