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 SEFF Editor functionality #49

Open reichef opened 1 year ago

reichef commented 1 year ago

Beschreibung

This test checks basic functionality of the SEFF Diagram Editor. It requires a populated Repository Diagram and Model. The reuse of the Diagram and Model that result from the completion of the Repository Diagram Editor test (Editor-98) is recommended.
Steps 1 - 9 then expand on that Repository model and diagram in order to allow for the testing of additional SEFF Diagram Editor functionalities.

When performing changes, make sure to have the EMF tree editor of the Repository Model opened to check whether changes in the SEFF diagram are also done in the underlying model (Note: all changes within the SEFF diagram should occur within a sub-tree of the SEFF in the repository model). Also, have the Error Log view opened to check that no errors occur there when performing the test steps.

GuardedBranchTransitition do not allow for naming in the GMF Editor.

Umgebung

Keine

Test Case Description

  | Test Step | Expected Result -- | -- | -- 1 | Open the Repository Diagram from test case https://jira.palladio-simulator.com/browse/EDITORS-98 (Test basic Repository Editor functionality). | The Repository Diagram Editor containing the Diagram from test case https://jira.palladio-simulator.com/browse/EDITORS-98 is displayed. 2 | Open the EMF tree editor of the repository model by clicking on the model file and selecting "Open With"->"Repository Model Editor". The tree editor can be used in the following steps to check whether changes in the diagram (and specifically the SEFF in the diagram) are also done in the underlying model. | The tree editor is opened. 3 | Add a Signature to the InfrastructureInterface IP2. Name it with a recognizable name. (I will refer to it as "Sig2") | IP2 now contains a named Signature. 4 | Add an additional Interface to the Repository Diagram. Name it with a recognizable name. (I will refer to it as "IR1") | The Repository Diagram and model now contain an additional named Interface. 5 | Add a Signature to the Interface IR1. Name it with a recognizable name. (I will refer to it as "Sig3") | IR1 now contains a named signature. 6 | Connect BC1 with IR1 using a RequiredRole. | An arrow shaped connector with a "<>" label appears between the Basic Component and Interface. 7 | Add an additional InfrastructureInterface to the Repository Diagram. Name it with a recognizable name. (I will refer to it as "IR2".) | The Repository Diagram and model contain a new named InfrastructureInterface. 8 | Add a Signature to IR2. Name it. (I will refer to it as "Sig4".) | The InfrastrucureInterface contains a named Signature. 9 | Connect BC1 with IR2 using an InfrastructureRequiredRole. | An arrow shaped connector with a "<>" label appears between the Basic Component and InfrastructureInterface. 10 | Double click on the SEFF in BC1. | The SEFF Diagram Editor opens. 11 | Add an AcquireAction to the SEFF. Select BC1's PassiveResource in the dialog.Name the AquireAction. | The SEFF contains a named AquireAction. 12 | Connect the pre-existing StartAction with the AquireAction with a Control Flow. (You may have to delete the Control Flow from the StartAction to the StopAction in order to be able to do so.) | An arrow shaped Connector connects the StartAction and AquireAction. 13 | Add a LoopAction. Name it with a recognizable name. | The SEFF contains a named LoopAction. 14 | Change the amount of loops within the LoopAction. To do so double click its name compartment and enter a new stoex (e.g.: "2") in the stoex dialog. | The amount of loops for the LoopAction has changed. 15 | Add a SetVariableAction to the LoopAction's compartment. Name it with a recognizable name. | The LoopAction contains a named SetVariableAction. 16 | Add a VariableUsage to the SetVariableAction's Compartment. In the dialog, enter the local variable name. | The SetVariableAction contains a VariableUsage. 17 | Add a VariableCharacterisation to the VariableUsage's compartment. | The VariableUsage contains a VariableCharacterisation. 18 | Slow Double-click the VariableCharacterisation and enter a stoex in the stoex Dialog. | The VariableCharacterization displays a stoex. 19 | Add a ReleaseAction to the SEFF. Select BC1's PassiveResource in the dialog. Name the ReleaseAction with a recognizable name. | The SEFF contains a named ReleaseAction. 20 | Add an InternalAction to the SEFF. Name it with a recognizable name. | The SEFF contains a named InternalAction. 21 | Add a ResourceDemand to the InternalAction's ResourceDemands-compartment. Select any resource in the "Select ProcessingResourceType..."-dialog. Then enter a stoex in the stoex-dialog (slow Double-Click). | The InternalAction contains a ResourceDemand. This ResourceDemand displays its ProcessingResourceType and a stoex. 22 | Add a FailureOccurrenceDescription to the FailureOccurenceDescriptions-comparment. | The InternalAction contains a FailureOccurrenceDescription. 23 | Add an InfrastructureCall to the InfrastructureCallsCompartment. Select IR2's Sig4 in the "Select InfrastructureSignature..."-dialog. Then enter a stoex in the stoex-dialog. | The InternalAction contains an InfrastructureCall. This InfrastructureCall displays a stoex and a Signature. 24 | Add an ExternalCallAction to the SEFF. Select IR1's "Sig3" Signature in the "Select OperationSignature..."-dialog. | The SEFF contains an ExternalCallAction. This Action displays the Signature in its name compartment. 25 | Add a BranchAction to the SEFF. Name it with a recognizable name. | The SEFF contains a named BranchAction. 26 | Add a GuardedBranchTransition to the BranchAction. | The BranchAction contains a GuardedBranchTransition. 27 | Double-click the GuardedBranchTransition. Enter a stoex in the stoex dialog. | The GuardedBranchTransition displays a stoex after "Cond:". 28 | Add a ProbabilisticBranchTransition to the BranchAction. Name it with a recognizable name. | The BranchAction contains a named ProbabilisticBranchTransition. 29 | Slowly double-click the "Probability"-label in the ProbabilisticBranchTransition. Enter a number. | The ProbabilisticBranchTransition displays a number after "Probability:". 30 | Add a ForkAction to the SEFF. Name it with a recognizable name. | The SEFF contains a named ForkAction. 31 | Add a ResourceDemandingBehaviour to the ForkAction's "ForkedBehaviours"-compartment. | The ForkAction contains a ResourceDemandingBehaviour. 32 | Add a RecoveryAction the the ResourceDemandingBehaviour. Name it with a recognizable name. | The ResourceDemandingBehaviour contains a named RecoveryAction. 33 | Add a RecoveryAction Behaviour to the RecoveryAction. Name it with a recognizable name. | The RecoveryAction contains a named RecoveryActionBehaviour.
reichef commented 1 year ago

From 29. Januar 2021: 18 Difference to the test opens the inline Editor 21 the stoex editor does not open, also the inline editor does not open 24 the stoex editor does not open, also the inline editor does not open 27 Difference to the test opens the inline Editor 33 Recovery Action is empty?