Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "STP/IM Component/IM Builder Tests"

(New page: This is a set of unit tests to verify the results yielded by the STP/IM Component/IM Builder. ==Test 1: Keeping the Core Instance updated from models of several types...)
 
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a set of unit tests to verify the results yielded by the [[STP-IM Builder | STP/IM Component/IM Builder]].
+
This is a set of unit tests to verify the results yielded by the [[STP/IM Component/IM Builder | STP-IM Builder]].
  
==Test 1: Keeping the Core Instance updated from models of several types==
+
The purpose of this page to aid at development of the STP-IM Builder development; however these unit tests could become the usage scenarios that will showcase the benefits of the Builder.
 +
 
 +
These unit tests are being written and will soon be posted on Bugzilla. They can be executed with [http://help.eclipse.org/ganymede/advanced/content.jsp?topic=/org.eclipse.pde.doc.user/guide/tools/launchers/junit_launcher.htm PDE Plug-in JUnit Tests]
 +
 
 +
==Test 1: Transforming a BPMN model into an STP-IM instance==
 +
Steps to reproduce:
 +
# Create a [[STP/BPMN_Component | BPMN process model]] with several activities.
 +
# Save the model; the Builder will automatically transform it into an STP-IM instance.
 +
 
 +
Expected result: The STP-IM instance is created, with the processes and steps contained in the BPMN model.
 +
 
 +
==Test 2: Creating a SCA model from an STP-IM instance==
 +
Steps to reproduce:
 +
# Create an STP-IM instance with processes, steps and services; could be done whether using the IM editor (org.eclipse.stp.im.editor) or take the resulting model from a transformation such as in Test 1.
 +
# Invoke an action to transform it into an [[STP/SCA_Component | SCA model]].
 +
 
 +
Expected result: The [[STP/SCA_Component | SCA model]] is created, with the service entities contained in the STP-IM instance.
 +
 
 +
==Test 3: Transforming and consolidating several BPMN models==
 +
Steps to reproduce:
 +
# Create several [[STP/BPMN_Component | BPMN process models]], portraying processes of the same business.
 +
# Let the [[STP/IM Component/IM Builder | STP-IM Builder]] transform them and consolidate them in the core instance.
 +
 
 +
Expected result: The STP-IM Core Instance is created and contains the processes and each of its steps.
 +
 
 +
==Test 4: Keeping the Core Instance updated from models of several types==
 
Steps to reproduce:
 
Steps to reproduce:
# Create several BPMN models, portraying processes of the same business.
+
# Create several [[STP/BPMN_Component | BPMN process models]], portraying processes of the same business.
# Let the [[STP-IM Builder | STP/IM Component/IM Builder]] transform them and consolidate them in the core instance.
+
# Let the [[STP/IM Component/IM Builder | STP-IM Builder]] transform them and consolidate them in the core instance.
# Create an SCA model from the STP-IM.
+
# Create an [[STP/SCA_Component | SCA model]] from the STP-IM.
# Make changes in the SCA model.
+
# Make changes in the [[STP/SCA_Component | SCA model]].
  
Expected result: The IM Core Instance should reflect the changes made in the SCA model.
+
Expected result: The IM Core Instance should reflect the changes made in the [[STP/SCA_Component | SCA model]].
  
==Test 2: Keeping the models updated from changes in the core instance ("Reverse Engineering")==
+
==Test 5: Keeping the models updated from changes in the core instance ("Reverse Engineering")==
 
Steps to reproduce:
 
Steps to reproduce:
# Follow steps in Test 1.
+
# Create several [[STP/BPMN_Component | BPMN process models]], portraying processes of the same business.
# Make changes in one of the BPMN models, e.g. one of the Activity names.
+
# Let the [[STP/IM Component/IM Builder | STP-IM Builder]] transform them and consolidate them in the core instance.
 +
# Create an [[STP/SCA_Component | SCA model]] from the STP-IM.
 +
# Make changes in one of the [[STP/BPMN_Component | BPMN process models]], e.g. one of the Activity names.
  
Expected result: The IM Core Instance should update the Activity names in the SCA model created in step 3 of Test 1.
+
Expected result: The IM Core Instance should update the Activity names in the [[STP/SCA_Component | SCA model]] created in step 3.

Latest revision as of 15:56, 20 July 2008

This is a set of unit tests to verify the results yielded by the STP-IM Builder.

The purpose of this page to aid at development of the STP-IM Builder development; however these unit tests could become the usage scenarios that will showcase the benefits of the Builder.

These unit tests are being written and will soon be posted on Bugzilla. They can be executed with PDE Plug-in JUnit Tests

Test 1: Transforming a BPMN model into an STP-IM instance

Steps to reproduce:

  1. Create a BPMN process model with several activities.
  2. Save the model; the Builder will automatically transform it into an STP-IM instance.

Expected result: The STP-IM instance is created, with the processes and steps contained in the BPMN model.

Test 2: Creating a SCA model from an STP-IM instance

Steps to reproduce:

  1. Create an STP-IM instance with processes, steps and services; could be done whether using the IM editor (org.eclipse.stp.im.editor) or take the resulting model from a transformation such as in Test 1.
  2. Invoke an action to transform it into an SCA model.

Expected result: The SCA model is created, with the service entities contained in the STP-IM instance.

Test 3: Transforming and consolidating several BPMN models

Steps to reproduce:

  1. Create several BPMN process models, portraying processes of the same business.
  2. Let the STP-IM Builder transform them and consolidate them in the core instance.

Expected result: The STP-IM Core Instance is created and contains the processes and each of its steps.

Test 4: Keeping the Core Instance updated from models of several types

Steps to reproduce:

  1. Create several BPMN process models, portraying processes of the same business.
  2. Let the STP-IM Builder transform them and consolidate them in the core instance.
  3. Create an SCA model from the STP-IM.
  4. Make changes in the SCA model.

Expected result: The IM Core Instance should reflect the changes made in the SCA model.

Test 5: Keeping the models updated from changes in the core instance ("Reverse Engineering")

Steps to reproduce:

  1. Create several BPMN process models, portraying processes of the same business.
  2. Let the STP-IM Builder transform them and consolidate them in the core instance.
  3. Create an SCA model from the STP-IM.
  4. Make changes in one of the BPMN process models, e.g. one of the Activity names.

Expected result: The IM Core Instance should update the Activity names in the SCA model created in step 3.

Back to the top