PalladioSimulator / Palladio-Editors-Sirius

Sirius-based editors for models of the Palladio Component Model (PCM).
Eclipse Public License 2.0
5 stars 4 forks source link

Test basic System Editor functionality #48

Open stiesssh opened 1 year ago

stiesssh commented 1 year ago

Description

This test checks basic functionality of the System Diagram Editor.

Steps 1 through 13 perform the necessary steps to be able to create a System Diagram and Model. They also enable use of the tools and elements provided by the System Diagram. They can be skipped if a sufficiently populated Repository Diagram already exists.

When performing changes, make sure to have the EMF tree editor opened to check whether changes in the diagram are also done in the underlying model. Also, have the Error Log view opened to check that no errors occur there when performing the test steps.

Environment

None

Test Case Description

  | Test Step | Expected Result -- | -- | -- 0 | Create a new Palladio project. Click Button "Create a new Palladio project" in menu bar. Follow the wizard (specify project name) | Poject is created. 1 | Create an initial repository diagram.Click Button "Create a new Repository Model and Diagram from scratch" in menu bar. Follow the wizard (select project, specify file names) | The repository is created in the project. The diagram is opened in an empty editor. 2 | Create a new Basic Component in the Repository Diagram Editor. Name it with a recognizable name.(I will refer to this component as "BC1".) | The Repository Diagram and Model contain a named Basic Component. 3 | Create a new Interface in the Repository Diagram Editor. Name it with a recognizable name.(I will refer to this component as "IP1".) | The Repository Diagram and Model contain a named Interface. 4 | Connect IP1 to BC1 using a Provided Role. | An arrow shaped connector with a "<\\>" label appears between the Basic Component and Interface. 5 | Create a new Interface in the Repository Diagram Editor. Name it with a recognizable name.(I will refer to this component as "IR1".) | The Repository Diagram and Model contain a second named Interface. 6 | Connect IR1 to BC1 using a Required Role. | An arrow shaped connector with a "<\\>" label appears between the Basic Component and Interface. 7 | Save the Repository Diagram File. |   8 | Create a new InfrastructureInterface in the Repository Diagram Editor. Name it with a recognizable name.(I will refer to this component as "IR2".) | The Repository Diagram and Model contain a named InfrastructureInterface. 9 | Connect IR2 to BC1 using an Infrastructure Required Role. | An arrow shaped connector with a "<\\>" label appears between the Basic Component and Interface. 10 | Create a new Composite Component in the Repository Diagram Editor. Name it with a recognizable name.(I will refer to this component as "CC1".) | The Repository Diagram and Model contain a named Composite Component. 11 | Connect IP1 to CC1 using a Required Role. | An arrow shaped connector with a "<\\>" label appears between the Composite Component and Interface. 12 | Connect IR2 to CC1 using an Infrastructure Provided Role. | An arrow shaped connector with a "<\\>" label appears between the Composite Component and Interface. 13 | Save the Repository Diagram File. |   14 | Create an initial system diagram.Click Button "Create a new System Model and Diagram from scratch" in menu bar. Follow the wizard (select project, specify file names) | The system file is created in the project. The diagram is opened in an editor. A default System is already present within the diagram. 15 | Create an Assembly Context in the pre-existing defaultSystem. Select the existing repository model from step 1 when prompted by the wizard. Then select the Basic Component BC1 by clicking on it once and then pressing the "OK" button. Name the resulting AssemblyContext (I will refer to it as AC1). | The System Model and Diagram contain a named Assembly Context.This Assembly Context should have one Provided Role, one Required Role, and one Infrastructure Required Role. 16 | Add a SystemOperationRequiredRole to the defaultSystem by choosing it from the tools palette and then clicking on the defaultSystem name compartment.Select IR1 as the Role's Interface when prompted. | The defaultSystem features a Requires Role. 17 | Connect the Assembly Context's Requires Role and the System's Requires Role using an OperationRequiredDelegationConnector. | An arrow shaped connector appears between the two Required Roles. 18 | Add a second Assembly Context for CC1. Name it (I will refer to it as AC2). | The System Model and Diagram contain a second named Assembly Context.This Assembly Context should have one Required Role, and one Infrastructure Provided Role. 19 | Connect AC2's Required Role with AC1's Provided Role using an AssemblyConnector. | An arrow shaped connector appears between the two Roles. 20 | Connect AC1's Infrastructure Required Role with AC2's Infrastructure Provided Role using an AssemblyInfrastructureConnector. | An arrow shaped connector appears between the two Roles. 21 | Switch back to the Repository Diagram Editor. Open CC1's Composite System Editor by double clicking on it. | A new System Diagram Editor opens. This Editor features a System named CC1, which already has a Required Role. 22 | Create an Assembly Context in the pre-existing CC1 System. Select the existing repository model from step 1 if prompted by the wizard. Then select the Basic Component BC1 by clicking on it once and then pressing the "OK" button.Name the resulting Assembly Context.Name the resulting AssemblyContext (I will refer to it as AC3). | The CC1 System Diagram contains a named Assembly Context.This Assembly Context should have one Provided Role, one Required Role, and one Infrastructure Required Role. 23 | Add a SystemOperationProvidedRole to the CC1 System by choosing it from the tools palette and then clicking on the defaultSystem name compartment.Select IP1 as the Role's Interface when prompted. | The CC1 System features a Provided Role.CC1 has also been connected to the IP1 Interface using a Provided Role connector in the Repository Diagram, once the System Diagram file has been saved. 24 | Connect CC1's new Provided Role with AC3's Provided Role using an OperationProvidedDelegationConnector. | An arrow shaped connector appears between the two Roles.
stiesssh commented 1 year ago

Results 6th of November 2023

Repository: image System: image The other System: image