Exercise 17.1 - SysML TM4J Reference Connection
Objectives
The new learning objective of this exercise is to create reference connections between a SysML element and a TM4J (Test Management for JIRA) element.
Preparation
This exercise assumes the student has
Cameo System Modeler 18.0 - 19.0 (or MagicDraw with SysML plug-in) installed correctly on his or her machine with a valid license for use, and
Syndeia 3.3 installed as a plugin for Cameo/MagicDraw with a valid license for use
Syndeia JIRA interface, correctly installed with a valid license for user.
The user can. It is generally advisable to carry out these exercises in a non-production repository, a "sandbox", set up for training and practice purposes.
We will use the provided MagicDraw project Syndeia_JIRA_TM4J_Tutorial.mdzip. For this demonstration, you may use any JIRA repository you have available with the ability to create and edit TM4J elements of types Test Case, Test Cycle and Test Plan
Background – TM4J (Test Management for JIRA)
TM4J is a test management solution integrated into the JIRA user interface. The generic schema is shown in Figure 1.
A Test Case describes a specific test procedure.
A Test Cycle contains a set of Test Cases.
A Test Plan tracks the overall test program for a particular release or milestone. It contains one or more Test Cycles.
Any of these elements can be linked to a JIRA Issue.
Figure 1 TM4J Schema
Exercise
Open the SysML project Syndeia_JIRA_TM4J_ Tutorial.mdzip (or your own), right-click the top-level package, and launch the Syndeia dashboard (Figure 2).
Figure 2 Launching Syndeia dashboard
If Syndeia connections are set to store in the SysML model, the dashboard will open immediately. If they are stored in Syndeia Cloud (see Exercise 1.1), choose or create a project for the exercise.
To connect to JIRA, right-click the JIRA category under Repositories in the Repository Manager tab and select Add… (Figure 3), then enter a name, your own JIRA URL and credentials, and click OK (Figure 4).
Figure 3 Adding a JIRA network connection
Figure 4 Entering JIRA repository info
Your repository should load and expand to show projects and issues, as in Figure 5.
Figure 5 Viewing JIRA repository contents in Repository Manager tab
To create a reference connection between a SysML element and a Tm4J Test Case, go to the Connection Manager tab on the Syndeia dashboard, as in Figure 6.
Expand the SysML model in the left pane to show the Test Case 01 block.
Select Reference under Connection Type in the middle pane.
Expand the Issues folder in the right pane to show the Test Case to be connected, for example, SYNDT-T3.
Drag and drop Test Case 01 from the left pane on top of an issue in the right pane to connect them.
Figure 6Â Syndeia Dashboard, Connection Manager tab
To see the reference connections that have been created, go to the Connection Search tab on the Syndeia dashboard and click the Refresh button (see Figure 7).
Figure 7Â Syndeia Dashboard, Connection Summary tab
The reference connections can be used in a number of ways by Syndeia. Close the Syndeia dashboard. To open a TM4J directly from MagicDraw, right-click on Test Case 01 in the containment browser and select Syndeia → Open Connected Artifacts.. Check one and the JIRA issues will be opened in the default web browser (see Figure 7). Note: your JIRA interface may appear different depending on your configuration settings.
Figure 8Â JIRA web interface
The reference connection may also be used to detect changes across the connection. To demonstrate,
Make a change in the Test Case in the JIRA web interface, e.g. set Priority to High, and save the change
Reopen the Syndeia dashboard. Go to the Connection Browser, expand to find the connection to Test Case 01, right-click and select Compare Source & Target (Figure 9).
Figure 9Â Syndeia Connection Browser, comparison across new connection
The Comparison Result tab (Figure 10) shows a newer version of the TM4J element is available. The reference connection can be updated by right-clicking on the red row and selecting either Sync Source to Target or Sync Target to Source.
Figure 10Â Syndeia Comparison Results tab showing a newer version of the TM4J element available
Â