Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test basic ResourceEnvironment Editor functionality #53

Open
singhsnigdha86 opened this issue Nov 6, 2023 · 2 comments
Open

Test basic ResourceEnvironment Editor functionality #53

singhsnigdha86 opened this issue Nov 6, 2023 · 2 comments
Assignees

Comments

@singhsnigdha86
Copy link

No description provided.

@singhsnigdha86 singhsnigdha86 self-assigned this Nov 6, 2023
@singhsnigdha86
Copy link
Author

singhsnigdha86 commented Nov 6, 2023

Description:

This test checks basic functionality of the ResourceEnvironment diagram editor. This involves creating a resource container, Linking Resources and connections between resource containers. 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.

Environment

None

Test Case Description

  Test Step Expected Result
1 Create a Project first. 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.
2 Open the EMF tree editor of the generated resourceenvironment model by clicking on the model file and selecting "Open With"->"Resourceenvironment 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. Ensure to save the diagram after every change and click into the tree editor (the contents are not refreshed if the tree editor has no focus). The tree editor is opened.
3 In the diagram editor: Create a new ResourceContainer in the diagram and name it “RC1“. The resource container is created on the canvas and the name is selected for editing.The ResourceContainer and its name are set in the resourceenvironment model.
4 Create a new ProcessingResourceSpecification to the ResourceContainer. Select the ProcessungResourceType: “CPU” and then select the SchedulingPolicy: “Delay” The ProcessingResourceSpecification is created and displayed in the diagram. The “Active Resource Type Active Resource Specification” Property is set to CPU. The “Scheduling Policy” Property is set to “Scheduling Policy Delay”
5 One-click on the field ProcessingRate and change it to 2 The ProcessingRate becomes editable. The new rate is displayed in the diagram and set in the resourceenvironment model.
6 One-click on the field MTTF and press F2. Set a new MTTF value, e.g. 1 The MTTF field becomes editable.The new value is displayed and set in the resourceenvironment model
7 Create a new ProcessingResourceSpecification to the ResourceContainer. Select the ProcessungResourceType: “CPU” and then select the SchedulingPolicy: “Delay”. Click on the specification and press DEL. The resource specification is deleted.
8 Create a new “HDD Processing Resource Specification” to the ResourceContainer. Set the attributes. The ProcessingResourceSpecification is created and displayed in the diagram.
9 Create a new Delay processing resource specification to the ResourceContainer. Select the SchedulingPolicy Delay The ProcessingResourceSpecification is created and displayed in the diagram.
10 Create a new LinkingResource. Click on the LinkingResource button in the toolbox and then click on an empty spot in the canvas. The LinkingResource is created and displayed in the diagram. It is also created in the resourceenvironment model.
11 Edit the properties of the LinkingResource. One-click on the field latency and set a new value, e.g., 1. The latency becomes editable.The new value is displayed and set in the resourceenvironment model.
12 Edit the properties of the LinkingResource. One-click on the field throughput and set a new value , e.g., 1. the throughput becomes editable.The new value is displayed and set in the resourceenvironment model.
13 Create a second resource container “RC2“. Then, select a “connector” from the toolbox and create a connection from the LinkingResource to the first ResourceContainer “RC1“.Repeat this for the second ResourceContainer “RC2“. Connections are drawn from both ResourceContainers to the LinkingResource. In the EMF model, both ResourceContainers are set in the LinkingResource attribute "Connected Resource Containers Linking Resource"
14 Select the connection between the first ResourceContainer and the LinkingResource and press DEL. The connection is be removed from the diagram. The ResourceContainer is removed from the LinkingResource attribute "Connected Resource Containers Linking Resource"
15 Delete the second ResourceContainer by selecting it and pressing DEL. The ResourceContainer is removed from the diagram and the model. It is also removed from the LinkingResource attribute "Connected Resource Containers Linking Resource"
16 Close and re-open the diagram editor multiple times. When the editor is re-opened, all information (Resource Container, LinkingResource, ProcessingResourceSpecifications) should be displayed in the editor.

@singhsnigdha86
Copy link
Author

All the tests described in the description are successfully tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants