ALM Phase 2 - Test Configurations, Matrix, Libraries Training

40
ALM Phase 2 Training Chris Williams Senior Test Specialist - ALM

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

Page 1: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Phase 2 Training

Chris Williams Senior Test Specialist - ALM

Page 2: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

22

Traceability Matrix

Test Configurations

Libraries and Baselines

AgendaAgenda

Page 3: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Traceability Matrix

Chris Williams Senior Test Specialist - ALM

Page 4: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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

Page 5: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 6: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

6

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

Page 7: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

7

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

requirements you want as your Source Requirements

Page 8: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

8

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

Requirements’ dialog to select your source Requirements

Page 9: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 10: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 11: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 12: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 13: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Traceability Matrix

Chris Williams Senior Test Specialist - ALM

Lab Session

Page 14: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Test Configurations

Chris Williams Senior Test Specialist - ALM

ALM Test Configurations

Page 15: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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

Page 16: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

16

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

cover a specific part of a requirement.

Page 17: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 18: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

18

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

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

Page 19: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 20: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 21: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 22: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

22

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

different configuration.

Page 23: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

23

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

the selected tests.

Page 24: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

24

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

instance and select the ‘Generate Test Configuration’ option.

Page 25: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 26: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Test Configurations

Chris Williams Senior Test Specialist - ALM

Lab Session

Page 27: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Libraries and Baselines

Chris Williams Senior Test Specialist - ALM

Page 28: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 29: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 30: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

30

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

Page 31: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 32: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

32

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

can compare 2 Baselines for differences.

Page 33: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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.

Page 34: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

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

Page 35: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

35

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

Project.

Page 36: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

36

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

Page 37: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

37

Importing Baselines – Step 3

• Select the ‘Next’ button

Page 38: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

38

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

Page 39: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Libraries & Baselines

Chris Williams Senior Test Specialist - ALM

Lab Session

Page 40: ALM Phase 2 - Test Configurations, Matrix, Libraries Training

ALM Phase 2 Training

Questions