Reuse Method Content: Contribute to a Work Product

The goal of this exercise is to extend a Work Product by adding a contribution.

  1. Switch to the Authoring authoring button perspective if you are not already using it.
  2.  

  3. Locate the Work products folder work products icon under the Contribution Test folder. Right-click on this icon and select New then select Artifact.
  4.  

    new artifact created under work products

     

  5. Give the new artifact the following attributes:

     

  6.  

  7. Use the Variability Type menu to select Contributes, then click the Select... button in this section. The Select Dialog: Artifacts window will appear.
  8.  

  9. Select test_case and click OK to close this window.
  10.  

    select artifacts window

     

  11. Save your changes by closing the editor.
  12.  

  13. Now switch back to the Browsing perspective and use the configuration view to locate the Test Case. Recall this artifact is a type of Work Product.
  14.  

    configuration view shows test case artifact

     

  15. Double-click on this icon to invoke the editor. The description now has text that you included in the contributing artifact. You'll see it appended to the appropriate fields in the customized test case.

     

    artifact test case

     

    This is another example of using contributing variabity to customize content in one plug-in by making changes to another plug-in.

 

Continue