Skip to content

Getting Started

Dirk Lehmann edited this page Aug 16, 2018 · 39 revisions

Getting started with CTM

On this page you can find some simple examples, which should give you a quick start into CTM.
If you want to deepen your CTM knowledge, please see our CTM Guidebook on more configuration options.

Example conditions

In all given examples below we use GitHub issues to define our product requirements:
Requirement definition in GitHub See our CTM Guidebook which other tools are supportted by CTM

Code annotated requirement mapping

  1. The product's source code is written in Java. Each automated test that safeguards a product requirement gets a specific comment which assigns the test to the corresponding product requirement.
...
    /** 
     * Overwhelming complex test, which covers my
     * product requirement #1
     */
    // Trace(GitHub:doergn/sourcecodeRepo#1)
    public void testApp() {
        assertTrue(true);
    }
...

Code example 1: Note the // Trace(GitHub:doergn/sourcecodeRepo#1) comment which assign this test to product requirement #1

  1. CTM requires a configuration file to run:
{
  "bla": "bla"
}

Requirement mapping file

Using multiple source code repositories

Using the traceability repository

Adding traceability repository links to requirements