ALM Phase 2 - Test Configurations, Matrix, Libraries Training

Post on 13-Apr-2017

57 views 0 download

Transcript of ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Phase 2 Training

Chris Williams Senior Test Specialist - ALM

22

Traceability Matrix

Test Configurations

Libraries and Baselines

AgendaAgenda

ALM Traceability Matrix

Chris Williams Senior Test Specialist - ALM

4

Setting Up a Traceability Matrix

• Step 1 – Configure Traceability Matrix • Step 2 – Define Source Requirements• Step 3 – Filter Requirements• Step 4 – Filter By Linked Tests• Step 5 – Create Traceability Matrix• Step 6 – Generate Traceability Matrix

5

Traceability Matrix View• The Traceability Matrix is built in the Requirements

Module of ALM.• It is accessed from the ‘View’ menu within the

Requirements Module of ALM.

6

Configure Traceability Matrix• Click the button. • The ‘Configure Traceability Matrix’ wizard opens.

7

Define Source Requirements• In the Define the Source Requirements, identify the

requirements you want as your Source Requirements

8

Filter Requirements• Click the button. • Navigate to the ‘Req Parent’ field within the ‘Filter

Requirements’ dialog to select your source Requirements

9

Filter Requirements• The requirements selected in the ‘Req Parent’ field

within the ‘Filter Requirements’ dialog are displayed in the ‘Configure Traceability Matrix’ wizard shown below.

10

Filter By Linked Tests• In the Filtered by Linked Tests, identify the Tests that are

associated with the Source Requirements by selecting the ‘Filtered by Linked Tests’ checkbox.

11

Create Traceability Matrix• Select the ‘OK’ button where the ‘Traceability Matrix’

grid is displayed showing the source requirements and the number of associated Tests.

12

Generate Traceability Matrix• Click the button. • Opens the ‘Generate Traceability Matrix’ dialog,

enabling you to save the ‘Traceability Matrix’ view to a ‘Microsoft Excel’ worksheet.

ALM Traceability Matrix

Chris Williams Senior Test Specialist - ALM

Lab Session

ALM Test Configurations

Chris Williams Senior Test Specialist - ALM

ALM Test Configurations

15

Setting Up Test Configurations

• Step 1 – Define Test Configurations • Step 2 – Add Data to Test Configurations• Step 3 – Add Coverage• Step 4 – Define Test Sets• Step 5 – Add Configurations to Test Sets• Step 6 – Generate Test Configurations from Test Instances

16

What is Test Configurations• A new entity that gathers all the information required to

cover a specific part of a requirement.

17

Define Test Configurations• A new ‘Test Configuration’ tab with grid view and

standard operations.

• Each Test of any type can have many configurations.

• Each Test has at least one configuration. Created automatically when creating a test.

18

Define Test Configurations• Derive the test with multiple variants (Configurations).

Later each configuration will use different data and will be executed separately.

19

Add Data to Test Configurations• New Setting parameters value in test plan. • The parameters that are defined in the test are saved in

ALM. • The parameters that are defined are owned by the test

and by the configuration which the test configurations can use.

20

Add Requirement Coverage to Test Configurations• Shows which configurations actually participate in the Coverage,

and their status, which explains the status of the test.• ‘All Configurations’ : New configuration will be added

automatically to cover the requirement. • ‘Selected Configurations’ : A subset of the test’s configuration.

Add Test Configurations to Coverage

• The user can drag a test from the test plan tree this option will automatically add all the test’s configurations and will set the test to be in ‘All Configurations’ mode.

• The user can drag a configuration this will automatically add the test’s configuration owner tests in the ‘Selected Configurations’ mode and the requirement coverage will include only the selected configuration.

22

Define Test Sets• Each row is an instance of test which is executed in a

different configuration.

23

Add Test Configurations to Test Sets• Configuration panel which displays the configurations of

the selected tests.

24

Generate Test Configurations from Test Instances• To generate ‘Test Configurations’ right click on the test

instance and select the ‘Generate Test Configuration’ option.

25

Generate Test Configurations from Test Instances• Create a new configuration with

the typed name. • The new configuration will get

the status and parameters values from the instance.

• The instance and all its runs will be associated with the new configuration (instead of the one that they were associated with before).

• If the instance used to cover a requirement, it’s removed from the coverage and the new configuration is added instead.

ALM Test Configurations

Chris Williams Senior Test Specialist - ALM

Lab Session

ALM Libraries and Baselines

Chris Williams Senior Test Specialist - ALM

28

What is Libraries and Baselines

• Library is a collection of Tests, Requirements, Components and Resources.

• The User defines a Library by selecting root folders for each type of entity.

• The Library will consist of all entities under the root.• The User can capture a Baseline of a Library – a snapshot

in time of all entities in it.• This notation is similar to a Label in StarTeam or

ClearCase.

29

Creating Libraries• Library contains a pointer to the Root Folders. • Libraries can only point to folders • Root Folders cannot be changed after the Library has

been created.

30

Defining Baselines• Create a Library. • Define Library Content.• Create a Baseline.

31

Creating Baselines• A Baseline contains contents of library at the time the

baseline is created. • Capture Project Entities.• Required For Asset Sharing.• Valuable for Pinning Tests.• Can be used with or without Version Control.• Create a Baseline for example when the Requirements

are approved and frozen for Release or Projects has entities that you want to share with other Projects.

32

Comparing Baselines• After defining a Library and capturing Baselines, the user

can compare 2 Baselines for differences.

33

Baselines Pinned to Test Sets• After capturing a Baseline, the user wants to execute

tests as they were in the Baseline capturing time.• A Test Set used to running ‘old” tests is pinned to a

Baseline. • Freezes the tests within a Test Set. • Guarantee execution of the correct Test.

34

Setting Up Asset Sharing• Step 1 – Create a Library • Step 2 – Define Library Content• Step 3 – Create a Baseline• Step 4 – Import to Project

35

Importing Baselines – Step 1• Create a Library.• Define Library Contents. • Create a Baseline. • Import Baseline From Current Project or from a different

Project.

36

Importing Baselines – Step 2• Select the ‘Next’ button

37

Importing Baselines – Step 3

• Select the ‘Next’ button

38

Importing Baselines – Step 4• Select the ‘Finish’ button

ALM Libraries & Baselines

Chris Williams Senior Test Specialist - ALM

Lab Session

ALM Phase 2 Training

Questions