Chapter 2.  Quick Start Guide

Table of Contents

2.1. Setup
2.1.1. Creating a Project
2.1.2. Creating Test Environments
2.1.3. Executing Tests
2.1.4. Results and Reports

This section of the tutorial covers the creation of a project, several test cases and a test suite. In addition, the test cases and the test suite will be executed and as a last step, test reports will be generated from the test results. The example project in this guide involves both hardware and software components. For this example, we will consider a printer as our system under test.

Our printer has both hardware and software components which must be tested, as well as various versions of each to be tested in different environments. A good example here are the printer drivers, which have different versions for Windows and Linux, and must also be tested in different versions of each.

The different sorts of testing that must be done require different teams of testers. For our tutorial we will consider two different teams, the hardware team and the software team. The different teams have different issue management systems to track defects. The hardware team uses JIRA, while the software team uses Mantis.

2.1.  Setup

In order to execute and evaluate test cases, you will have to create the test cases itself and also all related test artifacts (e.g. the test environments in which the test cases will be executed) in Klaros-Testmanagement. In this chapter we will create all artifacts which are necessary for the execution of a single test case.

2.1.1.  Creating a Project

Projects are the base test artifacts in Klaros-Testmanagement. All test-related artifacts, e.g. test cases or test results, are associated with a single project. A project must therefore be selected in order to engage in any test-related activities. When you first log in to Klaros-Testmanagement there will be no projects available so you will have to create one.

  1. Press the New button to create a new project.

    The Projects page

    Figure 2.1.  The Projects page


  2. Enter Printer as the project description.

  3. Press the Save button.

    Select the newly created project by clicking on the radio button next to its id. You will notice that more options have become available here in the Define section, and that some of the buttons in the topbar are no longer grayed out. For now however, we want to edit the project that we have just created.

2.1.1.1.  Assigning Issue Management Systems

  1. Press the icon to go to the Project Details page.

  2. Click on the Integration and then on the Issue Management tab.

  3. Select the issue management system you want to add by clicking on it, and then click on the arrow pointing left.

    The Properties tab in the Project page

    Figure 2.2.  The Properties tab in the Project page


  4. Press the Save button.

2.1.1.2.  Creating User-Defined Properties

Now is a good time to create some user defined properties for the project to allow for more accurate searching of elements in the project. The process of creating user defined properties is explained in Section 3.3, “ User Defined Properties.

Since the SUTs in our example are printers, there are a number of properties that will make searching through them easier. One of these is the firmware version, an alpha-numeric value which is changed relatively often.

  1. Select the User Defined tab.

  2. Click the New button.

    Adding User Defined Properties

    Figure 2.3.  Adding User Defined Properties


  3. Select System Under Test in the Object column.

  4. Select Text in the Type column.

  5. Enter Firmware Versionin the Name text field.

  6. Press the Save button.

  7. A second property we can use to search through our SUTs is the model of printerhead used in the printer. Since our company has only two different printerhead models, it makes sense to make this an enumeration property.

  8. Click the New button.

  9. Select System Under Test in the Object column.

  10. Select Enumeration ind the Typecolumn.

  11. Enter Printerhead Model in the Name text field.

  12. Press the icon in the Type column to add enumeration values.

  13. Enter Model 1 in the Entry text field and press the

  14. Enter Model 2 in the Entry field and press the icon.

  15. Press the Confirm button.

    Press the Save button.

2.1.2.  Creating Test Environments

The next step in setting up a Klaros-Testmanagement project is to create some test environments to test in. In Klaros-Testmanagement, a test environment is a description of the extrinsic settings that may influence the test result. This could be the operating system used with the printer or even the physical environment used for the test.

For this tutorial, we will create two software-related and two hardware-related test environments.

  1. Press the Test Environments link in the sidebar.

  2. Press the New button.

    The Test Environment page

    Figure 2.4.  The Test Environment page


  3. Enter Ubuntu 11.4 in the Description text field.

  4. Press the Save button.

  5. Next, create three more Test Environments with the following values in the Description text field:

    • Windows 7
    • Average Room temperature
    • Maximum Operating Temperature

  6. Press the Save button.

  7. Press the Save button.

2.1.2.1.  Assigning Test Environments to Categories

Now is a good time to use the categorization feature at this stage. See Section 3.2, “ Categorization.

  1. Press the Categories label to expand the category creation and ???

  2. Press the icon.

  3. Press the icon to create a new category group.

    Creating Categories

    Figure 2.5.  Creating Categories


  4. Press the icon on the newly created ROOT category (this is the root category of this category group).

  5. Enter Hardware in the text field of the new category.

  6. Press the icon on the ROOT category again.

  7. Enter Software in the text field of the new category.

  8. Press the Save button.

  9. Switch to the tree view by clicking on the icon.

  10. Select the checkboxes beside each of the software-related test environments ( Windows 7 and Ubuntu 10.4). .

  11. Press the icon.

  12. Press the Software entry in the popup.

    Assigning Test Environments to Categories

    Figure 2.6.  Assigning Test Environments to Categories


  13. Press the Assign button.

  14. Select the checkbox beside each of the hardware-related test environments.

  15. Press the icon.

  16. Press the Hardware entry in the popup.

  17. Press the Assign button.

The Test Environment Categories

Figure 2.7.  The Test Environment Categories


From now on, all test environments can be viewed as normal if the category panel is closed, and opening the category panel allows for selective viewing of the particular categories of test environments.

2.1.2.2.  Creating Systems under Test

Next we should create some systems under test. In Klaros-Testmanagement, systems under test represent the versions of the product or software system to be tested. In our example, these will be various printers.

  1. Press the Systems under Test menu entry in the sidebar.

  2. Press the New button.

    The System under Test page

    Figure 2.8.  The System under Test page


  3. Enter the text Printer Model 1 in the Version field.

  4. Press the Save button.

  5. Repeat the process for three more systems under test:

    Versions

    • Printer Model 2
    • Printer Model 3
    • Printer Model 4

2.1.2.2.1.  Assigning User Defined Property Values

Please refer to Section 3.3, “ User Defined Properties how to create user defined properties and create a String property Firmware Version and an enumeration property Printerhead Model with the values Model 1 and Model 2 for systems under test. Then you can set values for them.

  1. Press the icon for Printer Model 1.

  2. Press the User Defined tab.

  3. Select Model 1 in the Printerhead Model dropdown list.

  4. Enter V23.41.06 in the Firmware Version field.

  5. Press the Save button.

    The System under Test page

    Figure 2.9.  The System under Test page


  6. Press the Save button.

  7. Repeat the process for the other three systems under test:

    Version Firmware Version Printerhead Model
    Printer Model 2 V23.41.07B Model 2
    Printer Model 3 V23.41.07B Model 1
    Printer Model 4 V23.41.05 Model 2

2.1.2.3.  Creating Test Cases

Now it is time to create some test cases. In Klaros-Testmanagement, test cases represent individual tests to be carried out. We will create test cases for each of the hardware and software teams. First we will create a few hardware test cases. The first test is a verification that the printer upholds our claims about its minimum pages per minute rate.

  1. Press the Test Cases menu entry in the sidebar.

  2. Press the New button.

    The Test Cases page

    Figure 2.10.  The Test Cases page


  3. Enter Test if the printer prints at least 10 page per minute in the Name field.

  4. Select Manual in the Execution field.

  5. Press the Save button.

  6. Press the edit icon on the newly created test case.

  7. Select the Steps tab.

    The Test Case Step tab in the Test Cases page

    Figure 2.11.  The Test Case Step tab in the Test Cases page


  8. Create the following Steps:

    Description

    Expected Result

    Start printing the test document

    Start the timer when the first page lands in the tray

    Stop timer when the last page lands in the tray

     
  9. Press the Save button.

  10. Next, create the following test cases (each with one test case step):

    Name

    Execution

    Step Description

    Step Expected Result

    Prints test page

    Manual

    Print the test page using the OS UI

    Page prints

    Detects empty

    Manuel

    Insert empty

    Printer display shows "Cartridge empty" warning

Now you should have three test cases.

2.1.2.4.  Creating Test Suites

The final step in preparation for testing with Klaros-Testmanagement is the creation of test suites. In Klaros-Testmanagement, test suites represent groups of tests to be carried out in sequence. A test suite contains one or more test cases and can be executed as a unit, which allows test results to be grouped together.

[Note] Note

A test suite can contain the same test case multiple times.

  1. Press the Test Suites link in the sidebar.

  2. Press the New button.

    The Test Suites page

    Figure 2.12.  The Test Suites page


  3. Enter Tutorial Hardware Suite in the Name field.

  4. Press the Save button.

  5. Press the icon.

  6. Click on the Properties tab.

  7. Press the icon on the Detects empty and the Test if the printer prints at least 10 pages per minute test cases.

    The Test Suite page

    Figure 2.13.  The Test Suite page


  8. Press the Save button

Now our project is set up and we can begin testing!

2.1.3.  Executing Tests

Now that we have created some test cases and a test suite, we are ready for some testing. Log out of Klaros-Testmanagement and log in as a tester. This is a more limited account which can execute tests and only data linked to the account.

2.1.3.1.  Executing Single Test Cases

In this section, we will execute a single test case multiple times with different parameters.

  1. If not already selected, select the Printer project.

  2. Press Execute in the topbar.

  3. Click on Run TestCase in the sidebar.

  4. The Run Test Case screen should now be shown. This screen displays the available test cases along with an execute icon ( ) for each. The icon is blue if the test case can be executed in Klaros-Testmanagement, i.e. if Execution is set to Manual, if the test case has at least one step and its State is either Draft or Approved.

    The Run TestCase page

    Figure 2.14.  The Run TestCase page


    Press the icon on the Test if the printer prints at least 10 pages per minute test case

  5. On the next screen, select Average Room Temperature as the Test Environment

    The Run Test Case page

    Figure 2.15.  The Run Test Case page


  6. Select Printer Model 1 as the System Under Test.

  7. Press the Execute button.

  8. A popup will appear (if it doesn't, be sure to disable the popup blocker in your browser or add the Klaros-Testmanagement address to its exceptions). This is the manual test runner, which guides testers through the testing process. You will see an overview of the test case on the first page of the manual test runner.

    The Test Case Runner

    Figure 2.16.  The Test Case Runner


  9. The manual test runner will now show the first step. Action shows what we as a tester are supposed to do. Let's assume our printer will start printing the test document with no problems, so the first step is passed.

    Press the Passed button.

  10. The second step will now be shown. Mark the rest of the steps as passed.

  11. Now the Test Run overview will be displayed. Since all steps were passed without complication, there is no need to comment or create an issue.

    Please confirm the following dialog with Yes.

    Press the Finish button.

    The Results Overview in the Manual Test Runner

    Figure 2.17.  The Results Overview in the Manual Test Runner


  12. Press Run Test Case in the sidebar.

  13. Now we will execute the same test case using a different system under test and test environment.

    Press the icon on the Test if the printer prints at least 10 pages per minute test case.

  14. On the next screen, select Maximum Operating Temperature as the Test Environment.

  15. Select Printer Model 2 as the System Under Test.

  16. Press the Execute button.

  17. Press the Start button.

  18. Press the Passed button.

  19. Press the Passed button.

  20. Printer Model 2 uses the Model 2 printerheads, which have an overheating problem, so this test step will fail in an environment with a high ambient temperature.

    Press the Failure button.

  21. Enter Too many pause cycles due to overheating in the Summary field.

    These comments will help reproducing the failure.

  22. Press the Finish button.

  23. If you have set up an issue management system, you can create or link an issue from this screen. The process is described in Section 3.6, “ Issues.

  24. Confirm the following dialog by clicking the Yes button.

  25. Press the Finish button.

2.1.3.2.  Executing Test Suites

Next we will execute our test suite. The process is very similar to executing a test case, with an additional overview screen at the beginning.

  1. Press Run Test Suite in the sidebar.

  2. Press the icon for Tutorial Hardware suite.

    The Run Test Suite page

    Figure 2.18.  The Run Test Suite page


  3. Select Average Room Temperature as the Test Environment

    The Run Test Suite page

    Figure 2.19.  The Run Test Suite page


  4. Select Printer Model 1 as the System under Test.

  5. Press the Execute button.

  6. Press the Start button in the manual test runner.

    The test suite runner

    Figure 2.20.  The test suite runner


  7. Press the passed icon for all steps.

  8. Confirm the following dialog by clicking the Yes button.

  9. Repeat for the second test case.

  10. Press the Finish button.

2.1.4.  Results and Reports

Now it's time to view the test results and reports. Klaros-Testmanagement contains a feature-rich test evaluation section which is best viewed using a manager account.

  1. Log into Klaros-Testmanagement using a manager account.

  2. Select the Printer project if it is not already selected.

  3. Press Evaluate in the topbar.

  4. Now the dashboard should be displayed, showing some of the default reports for the Printer project. These show relevant details like the number of test cases and test suites in the Project, the overall numbers of passed and failed test runs, and the testing activity in the last 30 days.

    The Dashboard

    Figure 2.21.  The Dashboard


  5. The Latest Success Rate report can be changed by clicking on the Icon. Then you can select the test system and the test environment to be displayed.

  6. You can also view individual test results for test cases and test suites in the Evaluate section.

    Press the Test Case Results menu entry in the sidebar.

  7. Here you will see the test cases which have been executed in this project, along with a count of test runs with their results.

    The Test Case Results page

    Figure 2.22.  The Test Case Results page


  8. Press the icon for the Test if the printer prints at least 10 pages per minute test case.

  9. You will now see a screen summarizing each of the test runs for this test case.

    Press the icon for one of the test runs.

    The Test Case Result page

    Figure 2.23.  The Test Case Result page


  10. This screen shows a breakdown of the results of each step in the test case, as well as the summary and description the tester has entered for each of them.

    Press Test Results - Test Suite Results in the sidebar.

    The Test Run page

    Figure 2.24.  The Test Run page


    This page shows results of all test cases which have been run in a similar style to the Test Case Results page. Have a look at the results of the Tutorial Hardware suite.

This rounds up our quick start guide. The following chapter contains in-depth how-tos for most of the available actions in Klaros-Testmanagement.