< Previous | Next >

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 perspective if you are not already using it.
  2. In my_plug-in under the contribution_test folder, right-click Work Products and select New > Artifact.
  3. Give the new artifact the following attributes:
    • Name: my_contributing_test_case
    • Brief description: Contributing Brief Description
    • Purpose: Contributing Purpose
    • Main description: Contributing Main Description
  4. Use the Variability Type menu to select Contributes, then click Select in this section. The Select Dialog: Artifacts window opens.
  5. Select test_case and click OK to close this window. You can find this under core.tech.common.exten_supp > technical_work_products.
  6. Save your changes by closing the editor.
  7. Switch back to the Browsing perspective. Make sure that you are using my.basic.configuration.
  8. Use the configuration view to open Work Product Kinds > Uncategorized, then locate Test Case.
  9. Double-click the Test Case icon to invoke the editor. The description now has text that you included in the contributing artifact. You will see it appended to the appropriate fields in the customized test case.
    contributing brief description text appears in the main description area
    This is another example of using contributes variability to customize content in a dependent plug-in by making changes to the base plug-in.
< Previous | Next >