How to Document Test Cases (SysML)?

A SysML test case defines the scenario with which requirement(s) can be tested. In this article you will learn how to model test cases.

Produce test case from requirement

  1. In a SysML requirement diagram, move your mouse pointer over a requirement that you want to produce Test Case.
  2. Press on the Resource Catalog button at top right and drag it out.
  3. Release the mouse button at the place where you want the test case (shape) to be created.
  4. Select Verify <- Test Case from Resource Catalog.
  5. Release the mouse button to create a test case. Name it.
    Test case is created
    Test case is created

Creating test case and link to requirement

  1. In a requirement diagram, click the Test Case button on the diagram toolbar and then click on the diagram to create a Test Case.
  2. Move your mouse pointer to the Test Case.
  3. Press on the Resource Catalog button at top right and drag it out.
  4. Move the mouse pointer over a Requirement and then release the mouse button, a Verify relationship will be created from the Test Case to the Requirement.
    Verify relationship created
    Verify relationship created

Documenting test case

  1. Right click on a test case and select Open Specification... from the popup.

    Open specification of test case
  2. In the Test Plans tab, fill in the Steps, Procedures and Expected Results.
    Test Plan filled
    Test Plan filled

Related Resources

The following resources may help you to learn more about the topic discussed in this page.

 
2. Customizing requirement types Table of Contents 4. Record and document software requirements in Requirement List
 

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.