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 Allocation Editor functionality #56

Open Entenwilli opened 11 months ago

Entenwilli commented 11 months ago

Description

This test checks basic functionality of the Allocation Diagram Editor.

Steps 1 through 9 perform the necessary steps to be able to create an Allocation Diagram and Model in the first place. They can be skipped if a populated Repository, System and Resource Environment Diagram already exist.

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 (see step 2). Also, have the Error Log view opened to check that no errors occur there when performing the test steps.

I just noticed: Allocation Diagram Editor does not support nested resource compartments. Should that be a thing? Also: Allocation Editor doesn't notice when an assembly context has been deleted.

When using the drop, you need to install the tree editors

Environment

Keine

Test Case Description

  | Test Step | Expected Result -- | -- | -- 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).If the buttons are missing, press enter (This is an issue on Linux systems) | The repository file 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. | The Repository Diagram and Model contain a named Basic Resource 3 | Save the Repository Diagram File. |   4 | Create an initial resource environment diagram.Click Button "Create a new Resource Model from scratch" in menu bar. Follow the wizard (select project, specify file names) | The resourceenvironment file is created in the project. The diagram is opened in an empty editor. 5 | In the Resource Environment Diagram editor: Create a new ResourceContainer in the diagram and name it. | The resource container is created on the canvas and the name is selected for editing (This selection is not visible).The ResourceContainer and its name are set in the resourceenvironment model. 6 | Save the Resource Environment Diagram File. |   7 | 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. 8 | 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 from step 2 by clicking on it once and then pressing the "OK" button. | The System Model and Diagram contain a Assembly Context with a default name (“Assembly_BasicComponentName”). 9 | Save the System Diagram File. |   10 | Create an initial allocation diagram.Click Button "Create a new Allocation Model and Diagram from scratch" in menu bar. Follow the wizard (select project, specify file names). When prompted select the resourceenvironment and system files from steps 5 and 7. | The allocation file is created in the project. The diagram is opened in an editor. The editor is already pre-populated with the ResourceContainer from step 5, containing an AllocationContext for the AssemblyContext from step 8. 11 | Open the EMF tree editor of the generated allocation model by clicking on the model file and selecting "Open With"->"Allocation Model Editor". The tree editor can be used in the following steps to check whether changes in the diagram are also done in the underlying model. | The tree editor is opened. 12 | In the Allocation Diagram Editor, allocate the AssemblyContext on the ResourceContainer, by dragging and dropping the AllocationContext inside of the ResourceContainer. Save the Allocation Diagram File. | The The AssemblyContext is allocated on the ResourceContainer (see Tree Editor). 13 | Rename the existing AllocationContext. Save the Allocation Diagram File. Then check the Allocation Model. | The name of the AllocationContext is set in the allocation model (see Tree Editor). 14 | Switch to the Resource Environment Diagram Editor. Add an additional ResourceContainer, then save the Resource Environment Diagram. | The Resource Environment Diagram and Model feature an additional ResourceContainer.This ResourceContainer should also appear in the Allocation Diagram Editor. 15 | Delete the original ResourceContainer in the Resource Environment Diagram Editor (by clicking on it and then pressing the Del button). Then save the Resource Environment Diagram. | The ResourceContainer disappears from the Resource Environment Diagram. It is marked with an "X" in the top right corner in the Allocation Diagram. 16 | Restore the ResourceContainer (by pressing ctrl+z in the Resource Environment Diagram Editor), then save the Resource Environment Diagram File. | The "X" disappears in the Allocation Diagram Editor. 17 | Delete the AllocationContext in the Allocation Diagram Editor. Save the file. | The AllocationContext disappears from both the Diagram as well as the Allocation Model. 18 | Restore the AllocationContext in the Allocation Diagram. Save the file. | The Allocation context reappears in both the Allocation Diagram as well as the Allocation model. 19 | Delete a ResourceContainer in the Allocation Diagram Editor. Save the Diagram file. | The ResourceContainer disappers from both the Allocation Diagram Editor and the Resource Environment Diagram Editor. 20 | Restore the ResourceContainer in the Allocation Diagram Editor (ctrl+z). Save the Diagram file. | The ResourceContainer reappears in the Allocation Diagram, as well as the Resource Environment Diagram Editors.
Entenwilli commented 11 months ago

The button in the Repository Creation Wizard is not showing up on my Linux Machine. This has been observed two years ago as well. Also been observed in https://github.com/PalladioSimulator/Palladio-Editors-Sirius/issues/55