Acquire Release Example

Description

Simple test for acquire release. Extend if needed.

Environment

any

Test Case Description

Test Step

Expected Result

1

Start PCM and import project 'AcquireExample' in workspace

PCM IDE up and running, AcquireExample project available in workspace

2

Set the simulation result persistence framework: right-click on "Acquire Example.launch", select "Run As"->"Run Configurations",
select 'Acquire Example', select Simulation tab, create an in-memory EDP2 data source and select it. Press apply. Press 'Close'

Simulation ready to run.

3

In the AcquireExample project, right-click on "Acquire Example.launch" and select "Run As"->"1 Acquire Example"

A simulation run is launched. The simulation should complete after a few minutes (or less).

4

Check the simulation results.
Open the "EDP2" perspective. In the experiments view, find the on result "Usage Scenario defaultUsageScenario" and double click on it. In the opening window, select "XY Plot"

The response time of the first four requests should be 10, 20, 30, and 40. Then, the response time should be constant at 50.

5

Check the utilisation of CPU: Double-click on results "CPU [0] in aMaschine (State of Active Resource Tuple)". In the opened window, select on "Pie Chart".

The utilization of CPU should be 100% with 1 job.

6

Check the utilization of the passive resource: Double-click on results "Passive Resource: Assembly_impl.lock (State of Passive ResourceTuple)". In the opened window, select on "Pie Chart".

The utilization should be 100% with the state "0", meaning no resource is available.

7

Check the waiting times at the passive resource: Double click on result "Passive Resource: Assembly_Impl.lock ... (Waiting Time Tuple)". In the opening window, select "XY Plot".

The wait time of the first four requests should be 0, 10, 20 and 30. Then, the wait time should be constant at 40.

Activity

Martina Rapp 
February 9, 2021 at 3:18 PM

Set test case to ‘invalid’ due to Simucom discontinuation starting with PCM 5.0 release

Larissa Schmid 
January 29, 2021 at 8:42 AM

The simulation (step 3) failed:

de.uka.ipd.sdq.workflow.jobs.JobFailedException: Unable to build the simulation plugin. Failure Messages: The method getPassiveRessourceInContext(String, AssemblyContext, AbstractSimulatedResourceContainer, Integer) is undefined for the type Context The method getPassiveRessourceInContext(String, AssemblyContext, AbstractSimulatedResourceContainer, Integer) is undefined for the type Context

Martina Rapp 
November 18, 2019 at 1:07 PM
(edited)

Updated test case description

Fixed

Details

Assignee

Reporter

Components

Priority

Created October 16, 2012 at 6:53 PM
Updated November 6, 2023 at 11:20 AM
Resolved October 17, 2012 at 9:58 AM