Acquire Release Example
Description
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", | 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. | 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. |
relates to
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
step 1: changed test data URL from old svn URL https://svnserver.informatik.kit.edu/i43/svn/code/Palladio/Examples/Acquire_Example to new github URL 'https://github.com/PalladioSimulator/Palladio-Example-Models/tree/master/Acquire_Example'
added new step 2 to set simulatoin result persistence framework
corrected expected waiting times range in step 4
Simple test for acquire release. Extend if needed.