Version 3.0.2
Publication date July 26 2010
Abstract
This document serves as the reference documentation for the Klaros-Testmanagement application. It gives a
detailed description of the user interface and the provided functionality.
Legal Notice. Copyright 2009-2010 verit Informationssysteme GmbH, Europaallee 10, 67657 Kaiserslautern, Germany. All rights re-
served. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and
decompilation. No part of this product or documentation may be reproduced in any form by any means without prior written authoriza-
tion of verit Informationssysteme GmbH and its licensors, if any.
Trademarks
Java™ and Solaris™ are trademarks of Sun Microsystems.
Windows® is a registered trademark of Microsoft Corporation in the United States and other countries.
OTN License Agreement ( OTN) . This application contains Oracle JDBC Driver. Please read http://www.oracle.com/
technology/index.html for more details on JDBC Driver License agreement. JDBC Driver and all associated intellectual
property rights are retained by Oracle Corporation and/or its licensors. To use JDBC Driver included this application, you
need to agree with Oracle Technology Network Development and Distribution License Terms. If you don't, you can't use
this application.
• JasperReports
This product uses software available under the Apache Software License ( ASL 2.0 ) .
This product uses icons from the Tango Desktop Project ( http://tango.freedesktop.org/ ) which are released to the
Public Domain. We thank the authors for their worthwhile efforts .
This product uses icons from the Fugue Icon Set ( http://www.pinvoke.com/ ) which are available under a Creative
Commons Attribution 3.0 license .
Table of Contents
1. Key Features .................................................................................................................... 1
1.1. Klaros-Testmanagement Community Edition Features ................................................. 1
1.2. Klaros-Testmanagement Enterprise Edition Features ................................................... 2
2. Introduction ..................................................................................................................... 3
2.1. Overview ............................................................................................................. 3
2.2. Roles .................................................................................................................... 6
3. Installation ....................................................................................................................... 7
3.1. Prerequisites .......................................................................................................... 7
3.1.1. Client Prerequisites ...................................................................................... 7
3.1.2. Server Prerequisites ...................................................................................... 7
3.2. Installation Process ................................................................................................. 9
3.2.1. Step 1: Welcome .......................................................................................... 9
3.2.2. Step 2: Information ..................................................................................... 10
3.2.3. Step 3: Licensing Agreements ...................................................................... 10
3.2.4. Step 4: Target Path ..................................................................................... 11
3.2.5. Step 5: Select Installation Packages ............................................................... 12
3.2.6. Step 6: User Data ....................................................................................... 13
3.2.7. Step 7: Installation ...................................................................................... 14
3.2.8. Step 8: Perform External Processes ................................................................ 16
3.2.9. Step 9: Setup Shortcuts ............................................................................... 16
3.2.10. Step 10: Installation Finished ...................................................................... 17
3.3. Update Process .................................................................................................... 18
3.3.1. Database Migration .................................................................................... 18
3.4. Running Klaros-Testmanagement ........................................................................... 19
3.5. Changing the Database ......................................................................................... 19
3.6. Configuring External Issue Management Systems ...................................................... 20
3.6.1. Bugzilla Configuration ................................................................................ 20
3.6.2. JIRA Configuration ..................................................................................... 20
3.6.3. Redmine Configuration .............................................................................. 20
3.6.4. Trac Configuration ..................................................................................... 21
4. Functional Overview ....................................................................................................... 22
4.1. Login ................................................................................................................. 22
4.2. Main Functions .................................................................................................... 23
5. Define ........................................................................................................................... 24
5.1. Defining a Project ......................................................................................... 24
5.1.1. Select a Project .................................................................................. 24
5.1.2. Maintaining a Project .......................................................................... 26
5.2. Test Environments ........................................................................................ 30
5.2.1. Maintaining Test Environments ............................................................. 30
5.3. Maintaining Systems Under Test ...................................................................... 33
5.3.1. Maintain Systems Under Test ................................................................ 33
5.4. Test Cases .................................................................................................... 35
5.4.1. Maintain Test Cases ............................................................................ 36
5.5. Test Suites ................................................................................................... 43
5.5.1. Maintain Test Suites ............................................................................ 43
6. Execute ......................................................................................................................... 49
6.1. Start New Run .............................................................................................. 49
6.1.1. Run Single Test Case ........................................................................... 49
6.1.2. Run Test Suite .................................................................................... 54
6.2. Continue Run ...................................................................................................... 57
iii
Klaros-Testmanagement User Manual
iv
Klaros-Testmanagement User Manual
v
Klaros-Testmanagement User Manual
vi
List of Figures
2.1. Klaros-Testmanagement Overview Diagram ....................................................................... 4
2.2. Artifact Relation Diagram ................................................................................................ 5
2.3. Test Cases and Test Suites Relation Diagram ..................................................................... 5
2.4. Klaros-Testmanagement Follow Up Diagram ..................................................................... 6
3.1. Setting the JAVA_HOME environment variable ................................................................... 8
3.2. Welcome Screen ........................................................................................................... 9
3.3. Information Screen ...................................................................................................... 10
3.4. Licensing Agreement Screen ......................................................................................... 11
3.5. Target Path Screen ...................................................................................................... 12
3.6. Select Installation Packages Screen ................................................................................ 13
3.7. User Data Screen ......................................................................................................... 14
3.8. Installation in Progress Screen ....................................................................................... 15
3.9. Installation Finished Screen ........................................................................................... 15
3.10. Perform External Processes Screen ............................................................................... 16
3.11. Setup Shortcuts Screen ............................................................................................... 17
3.12. Installation Finished Screen ......................................................................................... 18
3.13. Database Migration .................................................................................................... 19
4.1. Login Screen ............................................................................................................... 22
4.2. Maintain a Project Screen ............................................................................................. 23
5.1. The Project Selection Screen .......................................................................................... 24
5.2. The Maintain Projects Screen ......................................................................................... 26
5.3. The Project Issue Management System Selection Page ....................................................... 28
5.4. The Project User Defined Properties Page ........................................................................ 29
5.5. Editing the values of an enumeration .............................................................................. 30
5.6. The Maintain Test Environments Screen ........................................................................... 30
5.7. The Maintain Test Environments Screen ........................................................................... 31
5.8. The Maintain Systems Under Test Screen ......................................................................... 33
5.9. The Maintain Test Environments Screen ........................................................................... 34
5.10. The Maintain Test Cases Screen .................................................................................... 36
5.11. The Maintain Test Environments Screen ......................................................................... 37
5.12. The Edit Test Cases Screen ........................................................................................... 40
5.13. The Edit Test Steps Screen ........................................................................................... 41
5.14. The Assign Attachments Screen .................................................................................... 42
5.15. The Revisions Screen ................................................................................................... 42
5.16. The Maintain Test Suites Screen .................................................................................... 43
5.17. The Edit Test Suite Screen ............................................................................................ 45
5.18. The Maintain Test Environments Screen ......................................................................... 46
5.19. The Revisions Screen ................................................................................................... 48
6.1. The Run Single Test Case Screen ..................................................................................... 50
6.2. The Detailed Information about the Test Case Screen ........................................................ 51
6.3. The Overview Screen .................................................................................................... 52
6.4. The Step By Step Instructions Screen ............................................................................... 52
6.5. The Error or Failure Detected Screen ............................................................................... 53
6.6. The Test Case Results Screen .......................................................................................... 54
6.7. The Run Test Suite Screen ............................................................................................. 56
6.8. The Detailed Information about the Test Suite Screen ........................................................ 56
6.9. The Test Suite Results Screen ......................................................................................... 57
6.10. The Continue Test Suite Screen .................................................................................... 59
6.11. Jira Issue Page ............................................................................................................ 61
6.12. Trac Issue Page ........................................................................................................... 62
6.13. Redmine Issue Page .................................................................................................... 63
6.14. Bugzilla Issue Page ...................................................................................................... 63
7.1. The Dashboard Screen .................................................................................................. 65
7.2. The Test Environment Overview Report Layout ................................................................. 66
7.3. The SUT Overview Report Layout .................................................................................... 67
vii
Klaros-Testmanagement User Manual
viii
List of Tables
3.1. Supported Browser ......................................................................................................... 7
3.2. Supported Databases ...................................................................................................... 7
A.1. Role Permission Overview Table ................................................................................... 119
A.2. Role Permission Overview Table - Enterprise Edition ........................................................ 119
C.1. Element summary ...................................................................................................... 201
C.2. <configurationList> elements ...................................................................................... 204
C.3. <configuration> attributes .......................................................................................... 204
C.4. <configuration> elements ........................................................................................... 204
C.5. <value> attributes ..................................................................................................... 205
C.6. <value> elements ...................................................................................................... 205
C.7. <entry> elements ...................................................................................................... 205
C.8. <classStates> attributes .............................................................................................. 205
C.9. <classStates> elements .............................................................................................. 205
C.10. <envs> attributes .................................................................................................... 205
C.11. <envs> elements ..................................................................................................... 206
C.12. <propertyDefs> attributes ......................................................................................... 206
C.13. <propertyDefs> elements ......................................................................................... 206
C.14. <suts> attributes ..................................................................................................... 206
C.15. <suts> elements ...................................................................................................... 206
C.16. <testCases> attributes .............................................................................................. 207
C.17. <testCases> elements ............................................................................................... 207
C.18. <testRuns> attributes ............................................................................................... 208
C.19. <testRuns> elements ................................................................................................ 208
C.20. <testSuites> attributes ............................................................................................. 208
C.21. <testSuites> elements .............................................................................................. 209
C.22. <executables> attributes .......................................................................................... 209
C.23. <executables> elements ........................................................................................... 209
C.24. <testCaseStepFragments> elements ........................................................................... 209
C.25. <testCaseStep> attributes ......................................................................................... 210
C.26. <testCaseStep> elements .......................................................................................... 210
C.27. <testCaseResults> attributes ...................................................................................... 210
C.28. <testCaseResults> elements ...................................................................................... 210
C.29. <testSuiteResult> attributes ...................................................................................... 211
C.30. <testSuiteResult> elements ....................................................................................... 211
C.31. <propertiesOwner> attributes ................................................................................... 211
C.32. <propertiesOwner> elements .................................................................................... 211
C.33. <stringProperties> attributes ..................................................................................... 212
C.34. <stringProperties> elements ...................................................................................... 212
D.1. Context Variables ....................................................................................................... 219
ix
List of Examples
10.1. QF-Test import URL sample ........................................................................................ 112
x
Chapter 1. Key Features
1.1. Klaros-Testmanagement Community Edition Features
The key features of Klaros-Testmanagement Community Edition are:
Management of Test Related Arti- Klaros-Testmanagement allows to manage tests cases, test suites,
facts test environments, systems under test, test runs and their results.
Grouping Test Cases to Test Klaros-Testmanagement allows to group test cases to test suites.
Suites Test suites are the common unit of test execution and may be as-
signed to individual systems under tests.
Version Control of Test Cases and Klaros-Testmanagement supports the version control of test cas-
Test Suites es and test suites. Different versions can be applied to individual
systems under test and test environments with full traceability to
their results.
Support for Binary Attachments Klaros-Testmanagement allows to store binary attachments of any
kind (text documents, graphics, screenshots etc.) along with test
cases and test results.
Report File Export The report files can be exported into various file formats, as PDF,
HTML, CSV, RTF, TXT and XML.
Guided manual test execution Klaros-Testmanagement supports the tester in executing manual
tests. Using a web based client the tester is guided through the
test execution, giving him the possibility to take notes during the
test execution and automatically recording the test results with
Klaros-Testmanagement.
Interoperability with Continuous A Hudson plug-in enables to transfer the results of the automated
Integration Systems (Hudson) tests generated by the Hudson Continuous Integration System to
Klaros-Testmanagement.
Interoperability with Issue Track- The connection to the JIRA, Trac, Bugzilla or Redmine issue man-
ing Systems agement systems allows to directly link test artifacts with issues in
the issue tracker.
Import Interfaces for QFTest™ Test results generated by other test automation software can eas-
and JUnit Test Results ily be imported and merged with manual test results.
Backup and Restore Complete test projects can be backed up and restored. The restore
interface can be used to import foreign data via XML.
1
Key Features
User Defined Custom Fields Klaros-Testmanagement Enterprise Edition allows the definition
and usage of custom fields for test cases, test suites, test environ-
ments and systems under test.
User Defined PDF Reports Klaros-Testmanagement Enterprise Edition supports the defini-
tion and generation of arbitrary PDF reports using a simple yet
powerful programming interface.
LDAP Support for User Authenti- Klaros-Testmanagement Enterprise Edition allows to authenticate
cation users against an external LDAP Directory Server which holds the
passwords of Klaros-Testmanagement users.
Excel Export of Data Tables Klaros-Testmanagement Enterprise Edition allows the direct ex-
port of data tables to Excel Format for further analysis.
2
Chapter 2. Introduction
Klaros-Testmanagement is an easy to use web based application which helps to organize test projects.
Klaros-Testmanagement manages test cases, test suites, information about tested systems and the test
environments in which a test have been run. When a test case or plan has been executed its result in-
cluding the information about the tested system and its test environment, is stored in a database. This
enables a full traceability of all test runs. Multiple reports enable an detailed overview of the progress
of the test project at any time.
2.1. Overview
This section gives a short overview of Klaros-Testmanagement. It describes the structure and the relation
of the components and features used in the application ( Figure 2.1 ).
• Project
A project is the main unit that contains all artifacts that are needed for the test project.
• Test Environment
A test environment represents the extrinsic setting that may influence the test result. Examples for
parts of an test environment would be the operation system or an application server.
A SUT represents a particular version of the component, system, or product that is tested.
• Test Case
The test case is the basic unit of a test process. A test case can be related to many test environments
and SUTs thus it is possible to execute the same test cases and get different results.
After a test case has been executed, it has a result. This result can be Passed, Failed or Error. Klaros-
Testmanagement enriches this information with the combination of system under test and test envi-
ronment for which the test has been run and many other information that can be gathered from the
execution, like time of execution of the test.
• Test Suite
The test suite is a list of test cases. With test suites, the test cases can be grouped to test suites. A test
case can be part of more then one test suite.
The test suite result is an aggregation of the result of the test cases that are included in the test suite.
The result of a test suite can be Passed, Failed or Error. Additionally the test suite result gets additional
information as the system under test, and the test environment in which the plan has been run, its
execution time, the person who executed the test suite and much more. The execution of a test suite
can be suspended at any time and its execution can be continued later.
There are three Roles for users defined in Klaros-Testmanagement: Administrator, Manager and Tester.
These roles are described more detailed in ( Section 2.2, “Roles” ). Figure 2.1 is an overview of Klaros-
Testmanagement and displays the user roles and the relation between the artifacts.
3
Introduction
After a project has been created, test cases can be added. Test cases can be grouped to test suites. Before
running the test cases or test plans, at least one system under test, and at least one test environment
has to be defined for the project.
When all necessary artifacts are defined, a test case can be executed by performing a single test case
which will generate a test case result, or a group of tests can be performed by executing a test suite.
The outcome of the test case or test suite will be stored in a test case result or a test suite result which
contains the individual test case results of that test run.
Besides the test case results and test suite results, Klaros-Testmanagement generates reports that are
available to export to five different types of documents (PDF, HTML, CSV, RTF, XML).
Important
The report generation is not available for all roles. To learn more about the role system see
( Section 2.2, “Roles” ).
4
Introduction
The test case/plan run, test environment and SUT are directly related to a project, so their existence is
essential. To run a test case/plan it is mandatory to have a test environment and a SUT configured.
Figure 2.3 shows the relation between test cases and test plans.
5
Introduction
Klaros-Testmanagement supports the reuse of test cases. A test case can be part of multiple test suites.
The sharing of test cases is only possible inside the same project.
Figure 2.4 shows a workflow for Klaros-Testmanagement and the artifacts created.
As a first step all the objects like test environment and system under test (SUT), must be defined. Sub-
sequently test cases and test suites can be created. The statistics of the project are updated for each
object added in Klaros-Testmanagement. The reports can be generated after a test execution.
2.2. Roles
Klaros-Testmanagement defines three roles that a user can be assigned to: Administrator, Manager
and Tester. An administrator is able to create other users of the role Administrator, Manager and Tester.
A manager is able to create other users with the role Tester. A tester user cannot create any other user.
The Administrator has access to all functionalities available in Klaros-Testmanagement and is the only
user that can edit preferences such as e-mail settings, issue management server locations, status mes-
sage preferences and general parameters, as described in Chapter 8, Configure.
The Manager has access to all functionalities except editing the preferences mentioned above. He is able
to create, edit, delete and search for artifacts, show results, run test cases and test suites and generate
reports. The artifacts are the projects, test environments, systems under test, test cases and test suites.
The Tester has less permissions than the manager. He is only able to search for objects, inspect results
and execute test cases and test suites.
For a detailed view of the permissions please consult the permission matrix in Appendix A, Role Permis-
sion Overview.
6
Chapter 3. Installation
Klaros-Testmanagement is equipped with an installer for the Microsoft Windows and Linux based oper-
ating systems. TODO!!! (engl.)The installer will install all the necessary programs to run Klaros-Testman-
agement, including a file based database (Apache Derby) and the Apache Tomcat application server.
Warning
The installer installs a version of Klaros-Testmanagement that uses the Apache Derby
database for persistence. For production systems, it is strongly recommended to use a
database like MySQL, PostgreSQL or Oracle which will provide a significantly better perfor-
mance. After running the initial installation process, the database can be changed. How
this is done is described in Section 3.5, “Changing the Database”
3.1. Prerequisites
Since Klaros-Testmanagement is a web application the installation prerequisites for the client and the
server side are different. These are explained in detail in the next sections.
3.1.1. Client Prerequisites
To access Klaros-Testmanagement a modern web browser supporting JavaScript is required.
Name Version
Microsoft Internet Explorer Version 7 and above
Mozilla Firefox Version 3.5 and above
Google Chrome Version 4 and above
Safari Version 4 and above
Table 3.1. Supported Browser
Please note that due to its current state Konqueror is currently not a supported browser.
3.1.2. Server Prerequisites
To run the Klaros-Testmanagement server a Microsoft Windows or Linux operating system running Java
5 or later is required.
For optimal performance a separate database installation is recommended. This database is not required
to run on the same physical machine as the Klaros-Testmanagement server.
Name Description
Apache Derby Version 10.5.0.3 and above (already configured)
MySQL Version 5.1 and above
PostgreSQL Version 8.4 and above
Oracle Version 10g, 11g
Table 3.2. Supported Databases
7
Installation
Windows users will find an option to set this in their computer control panel. The location
where to reach this varies with different versions of windows, an example is shown below.
Linux users should set the variables in their startup scripts.
3.1.2.1. Microsoft Windows
To run Klaros-Testmanagement on Microsoft Windows operating system the following requirements
have to be met:
• Minimum requirements
• Recommended requirements
• Operating system
3.1.2.2. Linux
To run Klaros-Testmanagement on Linux operating system the following requirements have to be met:
8
Installation
• Minimum requirements
• Recommended requirements
• Operating system
Linux IA32 (Intel 32 bit architecture) distribution containing Version 2.2.1 or better of the GTK+ widget
toolkit and associated libraries
3.2. Installation Process
In Windows the installer is invoked by clicking Klaros-Setup.exe .
In Linux the installer can be started by entering java -jar Klaros-Setup.jar in a user shell.
3.2.1. Step 1: Welcome
The initial step shows a welcome screen to the user ( Figure 3.2 ).
The installation may be aborted by clicking the Quit button. Clicking Next proceeds with the installation.
9
Installation
3.2.2. Step 2: Information
The second step shows information about the product and the revision history, listing the fixed issues
an the newly added features ( Figure 3.3 ).
The installation may be aborted by clicking the Quit button. Clicking Previous goes back to the "Wel-
come" step and clicking Next proceeds with the installation.
10
Installation
The installation may be aborted by clicking the Quit button. Clicking Previous goes back to the "Infor-
mation" step and clicking Next proceeds with the installation.
Important
TODO!!! (engl.)For Windows Vista the install path should not be the Programs folder. To in-
stall Klaros-Testmanagement in the Programs folder, the User Account Control (UAC) must
be disabled.
11
Installation
The installation may be aborted by clicking the Quit button. Clicking Previous goes back to the "Licens-
ing Agreement" dialog and clicking Next proceeds with the installation.
12
Installation
The installation may be aborted by clicking the Quit button. Clicking Previous goes back to the "Target
Path" dialog, clicking Next proceeds with the installation.
13
Installation
It is possible to set the ports used by Tomcat, Server-Port, HTTP-Port, HTTPS-Port and AJP/1.3-Port, the
minimum and maximum amount of memory available to the Tomcat process as well as the user name
and password of the Tomcat administrator.
The installation may be aborted by clicking the Quit button. Clicking Previous button goes back to the
"Select Installation Packages" step and clicking Next button proceeds with the installation.
3.2.7. Step 7: Installation
The seventh step starts the installation of Klaros-Testmanagement and shows its progress. The following
screen shots show the installation in progress and the installation finished ( Figure 3.8 ).
14
Installation
The installation may be aborted by clicking the Quit button. Clicking Next proceeds with the installation.
15
Installation
The installation may be aborted by clicking the Quit button. Clicking Next proceeds with the installation.
16
Installation
This step looks different on Linux installation but has the same functionality.
The installation may be aborted by clicking the Quit button. Clicking Previous goes back to the "Perform
External Processes" step and clicking Next proceeds with the installation.
17
Installation
The Generate an automatic installation script button saves a complete script of the installation with the
given user choices, so that the same installation could be repeated unattended or on other machines.
3.3. Update Process
If Klaros-Testmanagement is already installed it is possible to update it to a newer version. The installer
will update all files automtically. Further information of the installation process can be found in the sec-
tion Section 3.2, “Installation Process” . The Klaros-Testmanagement home folder remains untouched so
all settings, database connections and the content repository gets not affected from the update process.
Note
Please create a backup of your database before starting the Klaros-Testmanagement up-
date process.
3.3.1. Database Migration
After updating Klaros-Testmanagement to a newer version it is possible that a database migration is
necessary. If so, Klaros-Testmanagement will show the following screen on startup. To start the migar-
tion an administrator account is needed. Figure 3.13
18
Installation
3.3.1.1. Migration to 3.0.0
In order to update Klaros-Testmanagement to the version 3.0.0 it is necessary to have an installed Klaros-
Testmanagement 2.6.2. An older version needs to be updated to version 2.6.2 including the database
migration.
The first time Klaros-Testmanagement is executed, it will create a .klaros folder containing Klaros-Test-
management and database property files. The .klaros folder is created in the home directory of the cur-
rent user. For Microsoft Windows users it is located in C:\Documents and Settings\username and for Linux
users in user home directory .
To change the database, Klaros-Testmanagement must be stopped, and the hibernate properties of
Klaros-Testmanagement located in <userhome>/.klaros/hibernate.properties must be
changed.
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/klaros
hibernate.connection.username=root
hibernate.connection.password=root
hibernate.connection.driver_class = org.postgresql.Driver
hibernate.connection.url = jdbc:postgresql://localhost/klaros
hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect
hibernate.connection.username=root
19
Installation
hibernate.connection.password=root
An exhaustive list of all parameters can be found in the Hibernate Core Manual (see Hibernate Core
Manual ).
Tip
Klaros-Testmanagement will neither automatically create the database instance ( klaros
in the above example) nor the database user (user root with password root) on the
database server. Creating a database instance and adding a user is described in the corre-
sponding database manual and will not be covered here. The database user needs permis-
sions to create, drop and alter tables to properly bootstrap the Klaros-Testmanagement
database instance.
3.6.1. Bugzilla Configuration
3.6.1.1. Supported versions
The Klaros-Testmanagement Bugzilla Integration currently supports Bugzilla version 3.0 and later.
3.6.2. JIRA Configuration
3.6.2.1. Supported versions
The Klaros-Testmanagement JIRA Integration currently supports JIRA 3.7 and later.
3.6.3. Redmine Configuration
3.6.3.1. Supported versions
The Klaros-Testmanagement Redmine Integration currently supports Redmine 0.8.7stable and 0.9.4sta-
ble.
20
Installation
3.6.4. Trac Configuration
3.6.4.1. Supported versions
The Klaros-Testmanagement Trac Integration currently supports Trac 0.10 and later.
21
Chapter 4. Functional Overview
This chapter gives a coarse overview of the usage of the application.
4.1. Login
Figure 4.1 shows the login screen of Klaros-Testmanagement. To login just enter the user name in the
User name field, the associated password into the Password field.
The Klaros-Testmanagement database predefines three default users accounts with different roles:
• Administrator
• Manager
• Tester
For a description of the users roles and the permissions associated with each role please refer to Ap-
pendix A, Role Permission Overview .
Klaros-Testmanagement is multilingual
By default Klaros-Testmanagement uses the language that is selected by the web browser
. If you want to choose a different language please select the corresponding flag at the top
right corner of the screen. The language changes immediately.
22
Functional Overview
4.2. Main Functions
After a successful login the main screen of Klaros-Testmanagement is presented to the user ( Figure 4.2 ).
Klaros-Testmanagement uses a horizontal menu on the top of the screen. These categories resemble
activities in the testing project. The function categories presented in the main screen are:
The Configure menu is used for administrative tasks, eg. the user
Configure management or the import and export of testing projects is done
here.
23
Chapter 5. Define
This section describes how to define the main artifacts of Klaros-Testmanagement: the projects, envi-
ronments, systems under test, test cases and test suites. These artifacts are managed in the define sec-
tion of the main menu. For each artifact a menu entry on the left hand side is provided.
When accessing Klaros-Testmanagement for the first time it is necessary to create a project to work with.
To create a new project select the menu entry Maintain Projects ( Figure 5.2 ) and follow Section 5.1.2.1,
“ Creating a Project ” .
But usually a user would just select one of the already defined projects, which is described in the fol-
lowing section.
To continue operating the user is required to select a project. To select a project the user must click on
the check box of the desired project.
24
Define
contains two tables. The left table contains the filtering parameters, the right table contains the sorting
parameters.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all projects.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the project selection page are two fields that can be filtered: ID and Description.
• The Type column denotes the operator that is used for the criterion. In the project selection page there
the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
25
Define
• The Order By column denotes the field in the results table that the sorting applies to. The fields that
can be sorted for in the select projects screen are ID and Description.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all projects.
26
Define
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain projects page are two fields that can be filtered: ID and Description.
• The Type column denotes the operator that is used for the criterion. In the maintain project page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that
can be sorted for in the maintain projects screen are ID and Description.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
5.1.2.3. Deleting a Project
By clicking on the Delete icon the project will be removed from the list of selectable projects.
27
Define
5.1.2.4. Restoring a Project
By clicking on the Restore icon a previously deleted project can be restored to the list of selectable
projects. Only an administrator is able to restore a deleted project.
5.1.2.5. Purging a Project
By clicking on the Purge icon a previously deleted project can be finally purged from the database.
Only an administrator is able to purge a deleted project. This operation can not be undone.
The issue management systems that are used in the project can be edited by pressing the Edit( ) icon.
The issue management properties page shows two tables: The upper table contains the configured issue
management systems that are already used in the project, the lower table shows all issue management
systems that are configured and not used by the project. To add a issue management system to the
project press the add button ( ) at the issue management system. The issue management system will
be removed from the lower table and added to the upper table. A screen shot of the page for editing
the assigned issue management system is shown in Figure 5.3, “The Project Issue Management System
Selection Page”
Press Save to save the changes and Cancel to cancel the changes.
For the configuration of issue management systems see Section 8.5.4, “ Issue Management ” .
28
Define
The user defined properties can be used to customize the Systems Under Test, Test Environments, Test
Cases and Test Suites by adding additional fields to them.
To New button ca be used to add a new user defined property. After adding a new property it is possible
to choose the entity and property type. There are four possible entities: Figure 5.4, “The Project User
Defined Properties Page”
• Test Environment
• Test Case
• Test Suite
Enumeration The property will be a drop down box to select a single entry from a predefined list
of values
After the new property was saved the entity and type can not be changes anymore. The name of the
property and the list of enumeration values can always be changed.
Press Save to save the changes and Cancel to cancel the changes. After saving new user defined prop-
erties they can used immediately.
29
Define
5.1.2.8.1. Enumerations
The Edit button beside the enumeration name opens the menu to edit the values of this enumeration.
Figure 5.5, “Editing the values of an enumeration”
30
Define
The Maintain Test Environments screen shows a table with all the test environments defined for the cur-
rent project. Each row of the table represents a test environment, each column the attributes of the test
environment. By clicking into the table fields, the attributes can be edited directly.
Press the Save button to submit the changes that have been made or the Cancel button to discard.
By clicking on the Delete icon the test environment will be removed from Klaros-Testmanagement
database.
Test Environments that are referenced by test runs cannot be deleted, so their Delete
icon is disabled.
By clicking on the Edit icon the details page of the test environment will be displayed.
If there user defined properties for test environments configured, they can be edited on this tab. Figure
5.7 )
Note
The tab is disabled if no user defined properties for test environments exist. How to main-
tain the user defined properties is decribed in section Section 5.1.2.8, “Editing the user de-
fined properties of a project” .
31
Define
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test environments.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain environments page the following fields can be filtered: ID and Description .
• The Type column denotes the operator that is used for the criterion. In the maintain test environment
page the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
32
Define
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that can
be sorted for in the maintain test environments screen are ID, Operating System, Custom 1, Custom
2 and Custom 3.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
The table shows all defined systems under test. Each row in the table represents a system under test.
The version of the system under test can be changed by clicking into the fields and editing it directly.
To submit the changes press the Save button, to discard the changes press Cancel.
By clicking on the Delete icon the SUT will be removed from Klaros-Testmanagement database.
By clicking on the Edit icon the details page of the system under test will be displayed.
33
Define
Klaros-Testmanagement. The project is the current selected project. Press the Save button to confirm
the creation or the Cancel button to discard the changes. The user can create and save more than one
SUT at time.
If there user defined properties for systems under test configured, they can be edited on this tab. Figure
5.9 )
Note
The tab is disabled if no user defined properties for systems under test exist. How to main-
tain the user defined properties is decribed in section Section 5.1.2.8, “Editing the user de-
fined properties of a project” .
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all Systems Under Test.
34
Define
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain SUTs page are two fields that can be filtered: ID and Version.
• The Type column denotes the operator that is used for the criterion. In the maintain SUTs page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of Systems Under Test can be sorted. The criteria for the sorting are
specified in the right table in the Filter / Sort panel. It is possible to specify more than one sorting option. If
there are more than one sorting options the uppermost sorting criterion has the highest priority, lowest
row in the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that
can be sorted for in the maintain SUTs screen are ID and Version.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
35
Define
By clicking into of the fields of the table the most important values of a test case ( Name , Traceability
, Priority , State and Execution) can be edited directly by clicking in the input field in the table. More
attributes of a test case and its steps can be edited in a detailed page by clicking on the Edit icon
( Section 5.4.1.4, “Edit Test Case” ). Press the Save button to submit the changes that have been made
or the Cancel button to discard.
By clicking on the New button the user is able to create a new test case ( Figure 5.10 ) . An empty row is
added at the beginning of the table. The fields Name , Traceability , Priority , State and Execution of the
test case can be specified. The test case ID is automatically assigned by Klaros-Testmanagement. The
project is the current selected project. To set more properties the user may click on the Edit icon
( Section 5.4.1.4, “Edit Test Case”). To create a copy of the test case press the clone icon. Press the
Save button to confirm the creation or the Cancel button to discard the changes. The user can create
and save more than one test case at time.
If there user defined properties for test cases configured, they can be edited on this tab. Figure 5.11 )
36
Define
Note
The tab is disabled if no user defined properties for test cases exist. How to maintain the us-
er defined properties is decribed in section Section 5.1.2.8, “Editing the user defined prop-
erties of a project” .
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test cases.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain test cases page are eighteen fields that can be filtered: ID, Name, Description, Trace-
ability, Priority, State, Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Eval-
uation, Precondition and Postcondition.
37
Define
• The Type column denotes the operator that is used for the criterion. In the maintain test cases page
the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that can
be sorted for in the maintain test cases screen are ID, Name, Description, Traceability, Priority, State,
Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Evaluation, Precondition
and Postcondition.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking the Edit icon the view will change ( Figure 5.12 ) and offers the possibility to change the
following attributes:
• ID
Assigned automatically
• Revision
38
Define
• Team
• Name
• Description
• Precondition
The preconditions of the test case means everything that is necessary to execute a test case, e.g. "It
is necessary to have a database with valid data.".
• Postcondition
The postcondition defines the criteria that must be fulfilled after the test case has been executed, e.g.
the postcondition of a successful login test case is that the user is authenticated and the home page
of the application appears.
• Area
• Design Technique
• Variety
• Level
The test stage(s) of the test case, for example unit tests or system test
• Priority
• Docbase
Reference to the document base of the test case, which contains the requirements of the test case
• Note
An additional note for the test case, contains outside information of the test case that maybe useful
for users to know
• Dependency
• Evaluation
• Execution
39
Define
• Traceability
• State
Only test cases with the state Draft are editable. To edit a test case you have to change and save the
state to Draft first. A Locked test case is not executable and a Skip test case is not shown in any reports.
If the test case is approved then set the state to Approved .
Press the New button to get an empty form for a new test case. All the data changed in the previous
form is discarded.
Press the Save button to submit the changes that have been made or the Cancel button to discard the
changes.
By clicking on the Delete icon the test case will be removed from Klaros-Testmanagement database.
Warning
Only test cases that are not referenced by results or test suites can be deleted.
40
Define
• Precondition
Condition that must be fulfilled before the execution of the test case, e.g. "The user is not yet logged
in."
• Action
The test action, e.g. "Enter name and password, and click button Login."
• Postcondition
Condition that must be fulfilled after the execution of the test case, e.g. "The user is authenticated
and has access to the system."
Press the New button to create a new test step, the Back button to return to the test cases view or the
Cancel button to discard the changes.
By clicking on the Delete icon the test step will be removed from Klaros-Testmanagement database
when the user save the test case changes clicking on the Save button in Figure 5.12 .
5.4.1.4.2. Assign Attachments
By clicking on the Attachments tab a page will be shown that offers the possibility to add attachments
to the test case. the Browse button opens the "open file dialog". The Upload button uploads the file to
Klaros-Testmanagement.
41
Define
After the attachment is saved to the test case, it is possible to download the file by clicking on the
icon.
By clicking on the icon the attachment will be removed from Klaros-Testmanagement database
when the user saves the test case changes clicking on the Save button.
5.4.1.4.3. Revisions
By clicking on the Revisions tab a page will be shown that shows the revisions history of the test case.
Warning
The tab is only enabled if the test case has a revisions history to show.
42
Define
By clicking on the name link of the test cases, it is possible to browse and compare the revisions.
By clicking on the field and editing the value directly user is able to change the current value of the test
suite description. ( Figure 5.16 ). The column Test Cases shows the amount of test cases contained in
the test suite.
Press the Save button to submit the changes that have been made or the Cancel button to discard.
43
Define
Sort panel contains two tables. The left table contains the filtering parameters, the right table contains
the sorting parameters.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test suites.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain test suites page are two fields that can be filtered: ID and Description.
• The Type column denotes the operator that is used for the criterion. In the maintain test suites page
the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
44
Define
• The Order By column denotes the field in the results table that the sorting applies to. The fields that
can be sorted for in the maintain test suites screen are ID and Description.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking the Edit icon the Edit Test Suite page will be opened. The page allows to edit the test test
cases that are involved in the test suite, changing their order, changing the test suites description and
changing its system under test. The page is shown in Figure 5.17 . The input box in the upper left corner
can be used to change the description of the test suite, the drop-down right aside of it allows to alter
the assigned system under test.
By clicking the Add icon the test case is added to the test suite. By clicking the Remove icon the
test case is removed from the test suite. To change the order of the test cases press the or icons.
45
Define
Press the Save button to submit the changes that have been made or the Cancel button to discard the
changes.
If there user defined properties for test suites configured, they can be edited on this tab. Figure 5.18 )
Note
The tab is disabled if no user defined properties for test suites exist. How to maintain the us-
er defined properties is decribed in section Section 5.1.2.8, “Editing the user defined prop-
erties of a project” .
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test cases.
Each line in the filter table represents a criterion that restricts the result set that is displayed in the table
below, i.e. the set of all test cases is filtered for the conjunction of all criteria listed in the filtering table.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
46
Define
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain test cases page are eighteen fields that can be filtered: ID, Name, Description, Trace-
ability, Priority, State, Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Eval-
uation, Precondition and Postcondition.
• The Type column denotes the operator that is used for the criterion. In the maintain test cases page
the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of test cases can be sorted. The criteria for the sorting are specified in
the right table in the Filter / Sort panel. It is possible to specify more than one sorting option. If there are
more than one sorting options the uppermost sorting criterion has the highest priority, lowest row in
the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that can
be sorted for in the maintain test cases screen are ID, Name, Description, Traceability, Priority, State,
Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Evaluation, Precondition
and Postcondition.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
5.5.1.3.3. Revisions
By clicking on the Revisions a page will be shown that shows the revisions history of the test suite.
Warning
The button is only enabled if the test suite has a revision history to show.
47
Define
By clicking on the name link of the test suites, it is possible to browse and compare the revisions.
48
Chapter 6. Execute
This chapter describes how to execute test cases and test suites, how to continue unfinished test suite
executions and finally how to create issues for tests that failed.
The Run a Single Test Case page shows all test cases in a list. To get a better overview about the available
test cases the sorting and searching functionality of the Filter / Sort panel can be used.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test cases.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the Run A Single Test Case page are eighteen fields that can be filtered: ID, Name, Description,
Traceability, Priority, State, Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note,
Evaluation, Precondition and Postcondition.
• The Type column denotes the operator that is used for the criterion. In the Run A Single Test Cases
page the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
49
Execute
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Run Single Test Case screen are ID, Name, Description, Traceability, Priority, State,
Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Evaluation, Precondition
and Postcondition.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
To execute a test case click on the Action icon of the test case ( Figure 6.1 ).
50
Execute
Warning
Only test cases with the states Draft , Approved and Skip can be executed.
A detailed information screen about the test case will be shown ( Figure 6.2 ). Press the icon on the
right side of the screen, for more details about the test case.
Before a test run can be started, the test environment the test is run in and the SUT itself has to be
defined.
Press the Execute button to run the test case. Klaros-Testmanagement will show the following screen
( Figure 6.3 ).
51
Execute
The screen shows the test case overview and the attachments of the test case. The attachments can be
downloaded by clicking on the icon.
To begin the manual test run the Start button must be pressed.
The screen shows the Precondition , Action and Expected values of the test case. Depending on the
values the user can choose and press the following buttons:
52
Execute
• Passed
• Error
• Failure
A failure of the system under test was detected during test execution
• Skip
The current step can be skipped without changing the result of the test
• Back
The same process has to be applied for each step of the test case.
For each error or failure, or at end of the test execution, Klaros-Testmanagement will show the following
screen ( Figure 6.5 ).
53
Execute
Tip
The description and summary are common for all the steps.
Press the Next Step button to continue the test even if an error or failure occurred, or press the End Test
button to finish the test execution .
By clicking on the Finish button, Klaros-Testmanagement will show the test run result of the test case
( Figure 6.6 ).
Note
If there are any issue management systems configured for this project, the Create Issue
will be enabled. For details about creating an issue with Klaros-Testmanagement see Sec-
tion 6.3, “ Creating an issue ” .
The Run a Test Suite page shows all test suites of a project in a list. To get a better overview about the
available test suites the sorting and searching functionality of the Filter / Sort panel can be used.
54
Execute
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test suites.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the run test suite page are two fields that can be filtered: ID and Description.
• The Type column denotes the operator that is used for the criterion. In the run test plan page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
55
Execute
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the run test suite screen are ID and Description.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
To execute a test suite click on the Action icon of the test suite in Figure 6.7 .
Warning
Test cases with the state Locked or without any steps will be skipped when executing the
test suite..
A detailed information screen about each test suite will be shown in ( Figure 6.8 ). Press the icon, on
the right side of the screen, for more details about the test suite.
56
Execute
Before a test run is started, a test environment and a SUT must be chosen.
Before a test run is started, for each test case of the test suite the same actions described in Section 6.1.1,
“ Run Single Test Case ” can be applied to execute a test suite.
Tip
To execute an older revision, choose the revision from the Choose revision drop down box
and press the Switch button.
By clicking on the Finish button, Klaros-Testmanagement will show the test result of each test case that
has been executed in the test suite ( Figure 6.9 ).
Note
If there are any issue management systems configured for this project, the Create Issue
will be enabled. For details about creating an issue with Klaros-Testmanagement see Sec-
tion 6.3, “ Creating an issue ” .
6.2. Continue Run
The Continue a Test Run page lists all test suites runs of a project that have not been finished. To get a
better overview about the available interrupted test suite runs the sorting and searching functionality
of the Filter / Sort panel can be used.
57
Execute
6.2.1.1. Searching and Sorting discontinued Test Suites in the Continue Test Run page
It is possible to search for discontinued runs of test suites and sort the results of the search with the
filtering and sorting options. The filtering and sorting options become visible by opening the Filter / Sort
panel. The Filter / Sort panel contains two tables. The left table contains the filtering parameters, the
right table contains the sorting parameters.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all discontinued runs of test suites.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the Continue Test Run page are six fields that can be filtered: ID, Description, Last Executor, Operat-
ing System, Version and Timestamp.
• The Type column denotes the operator that is used for the criterion. In the Continue Test Run page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
58
Execute
there are more than one sorting options the uppermost sorting criterion has the highest priority, lowest
row in the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Continue Test Run screen are ID, Description, Last Executor, Operating System, Ver-
sion and Timestamp.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
To continue the execution of a stopped/suspended test suite click on the Action icon of the test
suite in Figure 6.10 . To finish a suspended test suite click on the icon of the test suite.
For each test case of the test suite the same actions as described in Section 6.1.1, “ Run Single Test
Case ” can be applied to execute the test suite. The new test results are merged automatically with the
suspended test suite execution results.
The execution of a test case is described in Section 6.1.1, “ Run Single Test Case ” and the execution
of a test suite is described in Section 6.1.2, “ Run Test Suite ” .
59
Execute
To create a new issue, click on the Create Issue button on the results page, that is displayed after the
execution of a test case or test plan.
By default the system uses the credentials entered at the login screen to authenticate the user against
the issue management system. If the credentials entered at login does not suffice and the issue man-
agement system has not yet been used during the session, Klaros-Testmanagement will request new
authentication information in a dialog window. Otherwise, the user is directed directly to the issue cre-
ation page.
The content of the issue management page is mostly dependent on the used issue management system
and its capabilities, but all pages for the different issue management systems have some elements in
common:
Issue Management System When there are more than one issue management systems are con-
figured for the project, the issue management system where the
new issue is created can be selected in the issue management sys-
tem drop-down field.
Save The Save button creates or updates an issue in the selected issue
management system.
Cancel The Cancel discards unsaved changes and goes back to the Execute
a Single Test Case , or the Execute a Test Suite page.
New After an issue has been saved an additional New button is provided
to allow to create more than one issue.
For the JIRA issue tracker additionally the following fields are available:
Components The components of the system that are affected, multiple selections are al-
lowed here.
Affected Versions The version of the system in which the issue appeared, multiple selections
are allowed here.
Fixed Versions The version of the system in which the issue has been fixed. Multiple selec-
tions are allowed here.
Test Environment A description of the test environment in which the issue occurred.
60
Execute
For the Trac issue tracker the following fields are available:
61
Execute
For the Redmine issue tracker the following fields are available:
Estimated time [hours] The estimated time in hours for the issue.
62
Execute
For the Bugzilla issue tracker the following fields are available:
63
Execute
Tip
To change the state of the related test case just activate the Update Test Case State? and
choose the new state from the drop down box.
For a more detailed information about each field please consult the documentation of the respective
issue management system.
The created issues can be inspected in the Issues section in the Evaluate section see Section 7.3, “Issues”
for more details.
64
Chapter 7. Evaluate
This chapter describes how Klaros-Testmanagement can be used to gather information about the test-
ing project, and evaluate the data about it.
7.1. Reports
The reports section provides a dashboard, a page for inspecting single test runs and a page for gener-
ating a test run history report.
7.1.1. Dashboard
The dashboard shows basic statistics about the active project and provides the links to the overview
reports. An example of a dashboard is shown in Figure 7.1 .
65
Evaluate
The Test Environment Overview report shows the test runs that have been executed in each test envi-
ronment containing the execution date and quantity of success, failure or error result. An example of
the report is shown in Figure 7.2 .
• SUT Overview
The SUT Overview report shows the test runs that have been executed for a SUT containing the exe-
cution date and quantity of success, failure or error result. An example of the report is is shown in
Figure 7.3 .
66
Evaluate
The Test Suite Overview report shows the test plans containing its test cases, description and and
how many times it was executed. An example report is shown in Figure 7.4 .
67
Evaluate
• HTML
• CSV
• RTF
• XML
By clicking on an icon of a file type, the report will be generated in the selected format.
The configured dashboard can be persisted by clicking the Save button in the upper right corner of
the dashboard, if the Cancel button is pressed, the changes in the configuration of the dashboard are
discarded.
68
Evaluate
All reports are showing the data of the correctly selected project.
• A boolean value indicating that this report always uses the active project (Klaros-Testmanagement
Enterprise Edition only).
69
Evaluate
• A boolean value indicating that this report always uses the active project (Klaros-Testmanagement
Enterprise Edition only).
• A boolean value indicating that this report always uses the active project.
70
Evaluate
• A boolean value indicating that this report always uses the active project
• A boolean value indicating that this report always uses the active project.
71
Evaluate
The Report Templates screen allows to generate the reports to PDF. The icon starts the generation
and opens (if necessary) a new window to enter the needed parameters. How to create user defined
reports is explained in the section Section 8.2, “ Report Templates ” .
If the user defined report is parameterized, all needed parameters must be entered to start the gener-
ation of the report.
72
Evaluate
Note
The Generate button gets visible after entering all needed parameters.
The Single Test Run Report page lists all test runs that have been made in the active project. To get a
better overview about the test runs the sorting and searching functionality of the Filter / Sort panel can
be used.
73
Evaluate
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all reports of single test runs.
7.1.3.1.1. Specifying Search Criteria for Reports of Single Test Runs in the Single Test
Run Reports page
Each line in the filter table represents a criterion that restricts the result set that is displayed in the table
below, i.e. the set of all Reports of Single Test Runs is filtered for the conjunction of all criteria listed in
the filtering table.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the Single Test Run Reports page are four fields that can be filtered: ID, Test Environment, System
Under Test and Timestamp.
• The Type column denotes the operator that is used for the criterion. In the Single Test Run Reports
page the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
74
Evaluate
more than one sorting options the uppermost sorting criterion has the highest priority, lowest row in
the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Single Test Run Reports screen are ID, Test Environment and System under Test.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
The report is generated in PDF format and its layout is shown in Figure 7.14 : The report details: the date
of creation of test run and its result, specifying the number of test cases executed with success, failure
and error. Additionaly a pie chart is shown summarizing the result.
75
Evaluate
76
Evaluate
Klaros-Testmanagement can export these test run report in five different types:
• HTML
• CSV
• RTF
• XML
The type can be selected in field Choose File Type . The start date and end date can be selected using
the calendar component in Figure 7.15 .
The test run history can be generated by clicking the Generate button.
The report is generated and its layout is shown in Figure 7.16 . The report details the date of creation
of each test run and its results, specifying the number of test cases executed with success, failure and
error. Two line charts visualize these results.
77
Evaluate
78
Evaluate
The screen displays an overview of the test cases for the project. To narrow the search, the filtering and
sorting functionality of the page can be used.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test cases in the project.
7.2.1.1.1. Specifying Search Criteria for test cases in the test case report page
Each line in the filter table represents a criterion that restricts the result set that is displayed in the table
below, i.e. the set of all test cases is filtered for the conjunction of all criteria listed in the filtering table.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the test case results page are eighteen fields that can be filtered: ID, Name, Description, Traceability,
Priority, State, Execution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Evaluation,
Precondition and Postcondition.
• The Type column denotes the operator that is used for the criterion. In the Test Case Results page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
79
Evaluate
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of test results can be sorted. The criteria for the sorting are specified in
the right table in the Filter / Sort panel. It is possible to specify more than one sorting option. If there are
more than one sorting options the uppermost sorting criterion has the highest priority, lowest row in
the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Test Case Results screen are ID, Name, Description, Traceability, Priority, State, Exe-
cution, Team, Type, Area, Level, Variety, Docbase, Dependency, Note, Evaluation, Precondition and
Postcondition.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking on Action icon Klaros-Testmanagement offers the user the possibility to visualize more
details of the test case and its results ( Figure 7.18 ).
80
Evaluate
The test case details panel in the page shows all details of the selectet test case.
The table shows all results of each run of the test case in particular. The result of the test cases run is
illustrated by the following icons:
To provide a better survey over the table with the test runs, Klaros-Testmanagement allows to filter and
sort the content of the test case result table.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all results of a test case.
Each line in the filter table represents a criterion that restricts the result set that is displayed in the table
below, i.e. the set of all Reports of Single Test Runs is filtered for the conjunction of all criteria listed in
the filtering table.
81
Evaluate
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the test case results page are four fields that can be filtered: ID, Operating System, Version and
Timestamp.
• The Type column denotes the operator that is used for the criterion. In the test case result details page
the following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of test cases with results can be sorted. The criteria for the sorting are
specified in the right table in the Filter / Sort panel. It is possible to specify more than one sorting option. If
there are more than one sorting options the uppermost sorting criterion has the highest priority, lowest
row in the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Test Case Results Details screen are ID, Test Environment, System under Test and
Timestamp.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking on the Back button the screen changes to Figure 7.17 and the user is able to choose another
test case.
82
Evaluate
The screen gives an overview of the test suites of the project. To gain more overview, the Filtering and
Sorting functionality of the page can be used.
It is possible to search in the test suites and sort the results of the search with the filtering and sorting
options. The filtering and sorting options become visible by opening the Filter / Sort panel. The Filter /
Sort panel contains two tables. The left table contains the filtering parameters, the right table contains
the sorting parameters.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all test suites that have results.
7.2.2.1.1. Specifying Search Criteria of a test suites in the test suite results page
Each line in the filter table represents a criterion that restricts the result set that is displayed in the table
below, i.e. the set of all Reports of Single Test Runs is filtered for the conjunction of all criteria listed in
the filtering table.
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the main test suite result page are two fields that can be filtered: ID and Description.
• The Type column denotes the operator that is used for the criterion. In the test case result details page
the following operators are available:
83
Evaluate
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of test suites with results runs can be sorted. The criteria for the sorting are
specified in the right table in the Filter / Sort panel. It is possible to specify more than one sorting option. If
there are more than one sorting options the uppermost sorting criterion has the highest priority, lowest
row in the sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that is sorted for. The fields that can be
sorted for in the Test Suite Results screen are ID and Description.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking on Action icon Klaros-Testmanagement shows the test suite result, the timestamp, test
environment and SUT that the test suite was executed ( Figure 7.20 ).
84
Evaluate
The detailed testplan results can be searched and sorted for ID, Operating System and Version.
By clicking on Action icon again, Klaros-Testmanagement offers the user the possibility to visualize
the result of each test case of the selected test suite. ( Figure 7.21 ).
The result of the test suites and test cases is illustrated by the following icons:
The detailed test case results can be searched and sorted for ID, Operating System and Version.
7.3. Issues
The issues section allows to inspect the issues that are attached to results of test cases.
85
Evaluate
When the button is pressed, the issues that are attached to a test case are shown listed in a table. The
table has seven columns, that show the id of the issue in the issue management system, the name of the
issue management system, the summary of the issue, the date when the issue was created, the creator,
the priority and the status of an issue. The table with the issues for a test case is shown in Figure 7.23,
“The Issues By Test Case Screen” .
By clicking the link on the issue id, the user is directly redirected to the page of the issue in the issue
management system.
86
Evaluate
87
Chapter 8. Configure
The Configure section enables to change the application settings, such as create or edit users, e-mail
settings, JIRA settings, logging settings and backup and recovery of projects.
The first page shown is the System Information page. The System Information page contains informa-
tion about the operating system, Java environment, memory usage and some other information about
the system ( Figure 8.1 ).
On the Report Templates pages it is possible to create, edit, delete and generate user defined reports.
A click on the icon starts the generation of the related report to the PDf format.
88
Configure
If the user defined report is parameterized, all needed paremeters must be entered to start the gener-
ation of the report.
Note
The Generate button gets visible after entering all needed parameters.
89
Configure
To create a new report press the New button. A new report gets created and the Report Details page is
shown. To edit an existing report press the icon. By pressing the icon the related report gets
removed from the content reporsitory.
8.2.1. Report Details
On the Report Details it is possible to set the name and description of the report. There must also be a
valid script and report template in order to save the user defined report. It is possible to edit the script
and template in the text area or upload them directly from an external file. By pressing the Save button
Klaros-Testmanagement tries to save the report to the content repository.
Note
The report is only saved if the script and template are valid and free of errors.
Figure 8.4. Report Details
Further information about creating user defined reports is available in the section Section 9.1, “ Create
A New Report Template ” .
90
Configure
• Full Name
• User Name
• E-Mail Address
• System account
If this flag is set the user is not able to login at the login page and interactively control the application.
Still his credentials can may used for automated tasks like importing test results.
• Password
• Retype Password
• User Role
Press the Save button to confirm the creation of the user or the Cancel button to discard.
91
Configure
Important
Only users with administrator or manager privileges are able to create new users.
The Filter / Sort panel allows to search for users and sort them for arbitrary criteria.
Apply The Apply button applies the filter and sorting criteria specified in
the two tables above and presents the filtered and sorted result in
the table below.
Reset The Reset button clears the tables with the filter and sorting crite-
ria and displays all users.
92
Configure
By clicking the button, a new and empty row for a filter criterion is appended to the table. The table
with the filtering criteria has four columns:
• The Field column denotes the field in the table that the criterion is filtering for. In the Filter / Sort panel
of the maintain users page are five fields that can be filtered: Full Name , User Name , E-Mail Address
, Role and the SystemAccount predicate.
• The Type column denotes the operator that is used for the criterion. In the search users page the
following operators are available:
Equals Only the items that exactly match the value of the criterion are
shown.
Not equals The items that do not equal the value of the criterion are shown in
the result table.
Greater than or equals Items that are greater than or equal the value of the criterion are
shown.
Less than or equals Items that are less than or equal the value of the criterion are
shown.
Greater than Items that are greater than the value of the criterion are shown.
Less than Items that are less than the value of the criterion are shown.
Like Items that have a part that matches value of the criterion are
shown.
• The Value column defines the value for the filtering criterion.
• The Action column contains a button ( ) for deleting the criterion in the current line.
The table that contains the list of users can be sorted. The criteria for the sorting are specified in the right
table in the Filter / Sort panel. It is possible to specify more than one sorting option. If there are more
than one sorting options the uppermost sorting criterion has the highest priority, the lowest row in the
sorting criterion table has the lowest priority.
When the button is clicked, a new empty row for a sorting criterion is appended at the bottom of
the sorting options table. Each row in the sorting options table has in the Action column a Delete button
( ). By pressing this button the row with the sorting criterion can be removed.
• The Order By column denotes the field in the results table that the sorting applies to. The fields that
can be sorted after are Full Name , User Name , E-Mail Address , Role and the SystemAccount predicate.
• The Type column defines the direction of the sorting sequence, i.e. descending or ascending.
• The Action column contains a button for deleting the sorting criterion.
By clicking the Edit icon the view will change and offers the possibility to change the user name, e-
mail address, user role and password of the user ( Figure 8.7 ).
93
Configure
8.3.2.3. Deleting a User
By clicking on the Delete icon on the Search User Screen ( Figure 8.6 ) the user will be removed from
Klaros-Testmanagement database. Be sure to use that function only when you are really sure to discard
that user.
8.4. Authentication
Klaros-Testmanagement Enterprise Edition Feature
This feature is only available in the Klaros-Testmanagement Enterprise Edition.
The authentication section allows to configure external authentication systems to be used with Klaros-
Testmanagement.
By using an external authentication system the administrator is no longer required to manually create
user accounts and provide the users with default passwords. Instead an external system like an existing
LDAP dictionary can be used to authenticate users.
Only a user with the administrator role is able to edit the system parameters below.
8.4.1. LDAP
For accessing an LDAP server a rather large set of configuration parameters are required. Your local
system administrator should be able to provide you with the correct values.
94
Configure
• Server Address
The internet address under which the LDAP server resides (e.g. ldap.acme.com ).
• Server Port
• Bind DN
• Bind Credentials
• User Context DN
• User DN Prefix
The distinguished name prefix used to locate user accounts (e.g. uid= ).
• User DN Suffix
The distinguished name suffix used to locate user accounts (e.g. ,ou=Users,dc=acme,dc=com
). When locating user accounts the prefix, the account id and the suffix are concatenated to form the
distinguished name of the user account.
95
Configure
A comma separated list of the LDAP object classes of the user account entries (e.g. person,posix-
Account )
The LDAP user name attribute which corresponds to the Klaros-Testmanagement account name (e.g.
uid ).
The LDAP password attribute which corresponds to the Klaros-Testmanagement account password
(e.g. userPassword ).
The LDAP user first name attribute which corresponds to the Klaros-Testmanagement account name
(e.g. givenName ).
The LDAP user last name attribute which will form up the Klaros-Testmanagement account name (e.g.
sn ).
• Enabled Attribute
The LDAP user attribute used for enabling/disabling this user for Klaros-Testmanagement.
When the Use as default checkmark is activated, the login screen will default to LDAP authentication
for all users. Yet it is still possible for existing users to authenticate against the Klaros user database if
selected in the login screen.
Press the link Test LDAP access to test if the fields are filled in properly. If successful the number of users
found in the LDAP directory is shown in the message area.
Press the Save button to submit your changes or the Cancel button to discard them.
8.5.1. E-Mail
In the E-Mail configuration page it is possible to change the some e-mail settings of the application. The
following image shows all the attributes that can be edited ( Figure 8.9 ).
96
Configure
Press the link Send Test Email to test if the fields are filled in properly.
Press the Save button to submit your changes or the Cancel button to discard them.
8.5.2. Logging
In the Logging configuration page it is possible to change the console and database log level of the
application. The log level is the message level of severity that will be displayed or saved in the database
( Figure 8.10 ):
97
Configure
Both Console Log Level and DB Log Level have the same options:
• DEBUG
The DEBUG level designates informational events that are most useful to debug an application.
• INFO
The INFO level designates informational messages that highlight the progress of the application.
• WARNING
• ERROR
The ERROR level designates error events that might still allow the application to continue running.
• FATAL
The FATAL level designates very severe error events that will presumably lead the application to abort.
Press the Save button to submit the changes that have been made or the Cancel button to discard the
changes.
Tip
The log is shown at the bottom of the page. The user can expand the messages to view
all or hide all.
98
Configure
Press the link Check Application URL to test if the URL was entered correctly.
Tip
Here it is also possible to overwrite the default session timeout of the underlying tomcat.
A negative value will disable the session timeout.
The Message of the day text allows to configure a message of the day. This message is displayed on the
login screen of Klaros-Testmanagement. Alternatively to a static message, a random message can be
displayed by checking the Use random quote of the day check box.
The Rows per table page combo box selects the default nuber of rows a data table will have. This value can
also be overridden on each table for each user individually and will be stored permanantly for each user.
When activated the Authentication required for import button will require authentication credentials
when test results are imported (e.g. by the Hudson plugin). See also Section 10.3.1, “Hudson Plugin for
Klaros-Testmanagement ” .
Press the Save button to submit the changes that have been made or the Cancel button to discard the
changes.
Klaros-Testmanagement is capable of creating issue entries in an issue management system and assign-
ing them to failed test runs. It is possible to configure multiple issue management systems. At the mo-
ment Klaros-Testmanagement is supporting the issue management systems JIRA (a commercial issue
management system produced by Atlassian Pty Ltd. see http://www.atlassian.com/ for more
information) and Trac (an open source issue management system, see http://trac.edgewall.
org/ for more information).
Note
To use the Trac issue management system with Klaros-Testmanagement Trac must have
installed the XML-RPC Plug-in and the users must have the access rights for the plug-in. For
99
Configure
The issue management systems are configured in the Issue Management section in the define menu.
The issue management page is shown in Figure 8.12, “The Issue Management Configuration Screen”
The issue management systems sections shows all the configured issue management systems in one
table. It is possible to change the properties of each entry by editing the fields of the table directly and
pressing the save button afterwards.
ID The internal id of the issue management system. This property is assigned automat-
ically and cannot be altered by the user. If the deleting of an issue management sys-
tem is prohibited, e.g. there are already test case results assigned to issues in the issue
tracker, the ID has additionally a lock icon attached.
System The system column indicates which issue management system is used. Currently
Klaros-Testmanagement supports JIRA, Trac, Redmine, and Bugzilla.
Project If the issue management system organizes issues in projects, it is possible to specify
the project where the new issues should be created in the issue management system.
Only JIRA Redmine and Bugzilla manages its issues in different projects, for Trac the
URL is used to select different projects.
Description In the description field a description of the issue management system can be entered.
URL In the URL field the link to the issue management system is specified. To check if the
URL is valid, the Validate the URL button on the right of the URL field can be pressed.
If the URL to the issue management system is configured correctly, a confirmation
message will be displayed in the message area.
Action The action column contains a button that can be used to delete an issue management
system from the configuration. If the issue management system is unused, i.e. it is
not used in any project, the configuration of the issue management system can be
deleted.
100
Configure
8.6. Backup/Recovery
To move data between different database installations or to selectivly import data Klaros-Testmanage-
ment provides the functionality to import and export database content via XML files. The format of these
files is explained in Appendix C, Dump File Specification
Press the Export button to export the selected projects to an XML formatted output file or the Cancel
button to discard the selection.
101
Configure
Press the Import button to import the data of the projects selected or the Cancel button to discard the
restore.
Note
The Import action will not overwrite existing projects or other existing artifacts.
102
Chapter 9. Reports
With the Enterprise Edition of Klaros-Testmanagement it is possible to define custom Reports. Though
Klaros-Testmanagement already provides several Reports, it might be helpful to design new Reports
that suite your and your customer's needs. Figure 9.1, “The Report Generation Process” gives an
overview of the Report generation process. As the Report definition process is based on a Groovy script
and SeamPDF, basic knowledge in Java programming and XML are helpful for a Report Designer.
The reporting process involves two roles, the Report Designer and the Report User. While the Re-
port Designer provides the outlook of the Report and prepares the Report data, the Report User ap-
103
Reports
plies the Reports to the data collected in Klaros-Testmanagement. The Report Designer has to pro-
vide two scripts to build a Report. One script prepares the data and is implemented in Groovy, while
the second script describes the layout of the Report and is called the report template. The Groovy
script taking care of data retrieval and preparation is provided by a Java class that implements the
Section D.2, “KlarosScript Interface”. This interface defines one method called execute and takes a
de.verit.klaros.scripting.KlarosContext object as input parameter.
To retrieve the data from Klaros-Testmanagement the designer can access the
de.verit.klaros.core.model via HQL. The main task of the class is to provide and prepare
the data for the Report. The data for the report template must then be stored in the
de.verit.klaros.scripting.KlarosContext object passed to the execute method. To make Reports more flex-
ible for Report Users, it is possible to pass parameters to the Groovy script. The parameters are stored in
the context and can be accessed from the Groovy script and the report template.
Note
The de.verit.klaros.scripting.KlarosContext object already contains predefined objects. For
a list please refer to Section D.1, “Context Variables”.
The report template must be implemented using SeamPDF. Section Section 9.3, “ Example Report ”
provides an example on how to define a custom Report.
To create a new Report click on the New button on the Report Templates page. Then provide the basic
data for the Report by entering a name in the Name field and a short description in the Description field.
104
Reports
To enter the Groovy script, which retrieves the data use the Groovy Script text area. To unfold the Tem-
plate text area click on the Edit the Template link next to the Template label. The Report's Template code
can then be entered into the unfolding text area. To unfold the Groovy script text area again click on
the Edit the script link.
Note
It might be helpful to use a Java IDE e.g. eclipse, to develop the Groovy script and a XML
editor to provide the report template. The created files can then be uploaded into Klaros-
Testmanagement. To avoid errors in the Groovy script just add the Klaros model libraries
to the build path of your eclipse project.
Instead of manually entering the code for each text area, the code can be imported from a file. Specify
the file to use by clicking on the Browse Button and select the file from the file system. Click OK in the
file dialog and afterwards click Upload to import the selected file into the text area.
This page provides three actions to be executed. To test the code click on the Preview button to gen-
erate a Report. The Save button stores the Report into Klaros repository in the file system. The changes
can be discarded by pressing the Back button.
Note
The generated Report is opened automatically in a new browser window. If this does not
work for you, please check if you have a pop-up blocker active.
To provide a certain degree of freedom to the Report User and to make the Reports more flexible, it is
possible to pass parameters to the Groovy script. This mechanism can for example be used to pass a
timespan to the Groovy script, so that only data for this timespan is retrieved from Klaros-Testmanage-
ment.
To pass arguments to the Report select the The script has parameters checkbox.
105
Reports
A new section as shown in Figure 9.4, “Adding Parameters to the Script” is displayed, which enables the
addition of parameters. By clicking on the button a parameter can be added to the parameter list.
Figure 9.5. Specifying Parameters
By clicking the icon the parameter is removed from the list. The type of the parameters can be
specified by the combo box. Supported types are Text, Number, and Date.
The passed parameters can be accessed by the Groovy script by either calling the getParame-
terValue(String name) or the getParameter(String name) method. The methods will
return null, if no parameter with the specified name can be found.
The parameters can be accessed from the report template by their name, e.g.
<p:text value="#{reportname}"/>
106
Reports
By clicking on the icon of a Report Template, a PDF Report is rendered. If the Groovy script was
defined with parameters, a pop-up window will prompt the user to enter the defined parameters before
the Report is generated.
Figure 9.7. Enter Parameter
107
Reports
import de.verit.klaros.scripting.*;
import de.verit.klaros.core.model.*;
import java.util.*;
public class TestScript implements KlarosScript {
public void execute(KlarosContext context) {
...
}
}
The next step in the data retrieval process is to actually get the required data. The following code snippet
shows how to build a query string and how to get the data.
StringBuffer query = new StringBuffer();
query.append("select tcr from KlarosTestCaseResult tcr");
List<?> tcr = context.executeQuery(query.toString());
The data is returned in a List object that must be stored in the context so that it can later be accessed
from the report template. The code snippet below shows how to store the list in the context. For more
information on building queries please consult the HQL documentation.
context.add("results", tcr);
The List object is stored in the context with the name "results" and can be accessed from the report
template by this name. If more data is required, execute more queries to retrieve the data or process the
already retrieved data and store the processed data in the context with a different name.
Note
It is possible to store more than one object in the context. Just use a different name for
each object.
The following snippet shows how to build the frame for the report template. Inside this frame all other
Report details can be described and grouped in chapters and sections.
<p:document xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://jboss.com/products/seam/pdf" title="Klaros-Testmanagement Test Plan Report"
marginMirroring="true" author="#{user.name}" creator="#{user.name}" pageSize="A4">
...
</p:document>
Note the usage of the de.verit.klaros.core.model.KlarosUser parameter from the context, #{user.
name}.
108
Reports
The next code snippet shows how to define headers and footers for all pages in the Report. This snippet
makes use of the date and the de.verit.klaros.core.model.KlarosUser object in the context.
<f:facet name="header">
<p:font size="8">
<p:header borderWidthBottom="0.1" borderColorBottom="black" borderWidthTop="0" alignment="center">
<p:text value="Example report - generated #{date} by #{user.name}"/>
</p:header>
<p:footer borderWidthTop="0.1" borderColorTop="black" borderWidthBottom="0" alignment="center">
<p:text value="Page " />
<p:pageNumber />
</p:footer>
</p:font>
</f:facet>
Next the front page for the Report should be defined to provide a short summary of the Report. To
keep this example short only a fragment is presented. For the complete script please see Section D.3,
“Example report template”.
<p:font style="bold" size="16">
<p:paragraph alignment="center" spacingAfter="5">
<p:text value="#{user.name} (#{user.email})"/>
</p:paragraph>
</p:font>
The snippet shows how to insert the user's email address which opens the email client when clicked.
9.3.3. Creating a Chart
To provide a graphical overview it is sometimes necessary to add a chart to the Report. The required
data can be prepared by the Groovy script and stored in the context. Then the report template can pass
the data to the charting component of SeamPDF. This section explains how to create a chart as shown
in Figure 9.8, “A Pie Chart Example”
109
Reports
List<KlarosTestCaseResult> error = new ArrayList<KlarosTestCaseResult>();
List<KlarosTestCaseResult> failure = new ArrayList<KlarosTestCaseResult>();
List<KlarosTestCaseResult> success = new ArrayList<KlarosTestCaseResult>();
// Iterate over the results and retrieve the status
Iterator<KlarosTestCaseResult> iter = (Iterator<KlarosTestCaseResult>) tcr.iterator();
while (iter.hasNext()) {
KlarosTestCaseResult result = iter.next();
if (result.isError()) error.add(result);
else if (result.isFailure()) failure.add(result);
else if (result.isPassed()) success.add(result);
}
context.add("error", error);
context.add("failure", failure);
context.add("success", success);
The de.verit.klaros.core.model.KlarosTestCaseResult are split into three lists depending on the test case
result. These lists can then be accessed from the context by their corresponding key.
<p:paragraph horizontalAlignment="center">
<p:piechart title="Testresults" direction="anticlockwise" circular="true"
startAngle="30" labelGap="0.1" labelLinkPaint="black" plotBackgroundPaint="white"
labelBackgroundPaint="white" is3D="true">
<p:series key="results">
<p:data key="Error [#{error.size}]" value="#{error.size}" sectionPaint="#FF0A0A" />
<p:data key="Success [#{success.size}]" value="#{success.size}" sectionPaint="#33CC00"/>
<p:data key="Failure [#{failure.size}]" value="#{failure.size}" sectionPaint="#FFCC00"/>
</p:series>
</p:piechart>
</p:paragraph>
The piechart element builds the frame for the chart by defining the main outlook of the chart. For
detailed information on different charts please check the SeamPDF documentation. For a pie chart a
series of data is required. The data is retrieved from the lists stored in the context by the Groovy script.
<p:data key="Error [#{error.size}]" value="#{error.size}" sectionPaint="#FF0A0A" />
This code retrieves the list containing the error results from the context and calls its size() method
to determine the amount of erroneous test cases. The pie chart is then rendered from the three data
sections, as seen in Figure 9.8, “A Pie Chart Example”.
9.3.4. Including Images
This section shows how to include an image into a Report. Since the Report is rendered by Seam, the
image to be included must be accessible from Seam. This can either be achieved by storing the image
in a .jar file and storing this file in the .klaros/resources folder of the user running Klaros-Test-
management, or by providing the image on a web server, from where it can be included by using HTML
code in the report template.
When storing the image in a .jar file it can be easily accessed by the following code snippet.
<p:image value="images/image.png"/>
The value attribute defines the image filename and the folder of the image location.
When providing an image via a web server it can be accessed by the following code snippet.
<p:html>
<img src="http://www.verit.de/images/logo-klaros-160.png" />
</p:html>
In this case the src attribute defines the URL of the image location.
110
Chapter 10. Import/Export
Klaros-Testmanagement has several interfaces to import results from other tools and export its data to
several formats.
Klaros-Testmanagement has the possibility to export the content of all tables to an Excel file. The current
filter and sort settings will be considered. You have the choice if you want to export all elements from
the list to Excel, or just the elements on the current page of the table.
10.2. Backup/Recovery
To move data between different database installations or to selectively import data Klaros-Testmanage-
ment provides the functionality to import and export database content via XML files. The format of these
files is explained in Appendix C, Dump File Specification , Section 8.6, “ Backup/Recovery ” explains
the import and export functionality.
111
Import/Export
tent will be transferred via a HTTP PUT request using the above URL and various URL Query parameter.
The following parameters are supported:
config The ID of the project to import the results into (e.g. P0001)
env The ID of the test environment in which the tests have been run
(e.g. ENV00001). Please make sure that this test environment al-
ready exists in the project before starting the import.
sut The ID of the system under test in which the tests have been run
(e.g. SUT00001). Please make sure that this system under test al-
ready exists in the project before starting the import.
type The type of the import format. Currently this is either qftest for
QF-Test or junit for JUnit XML result files.
time The time of the import. Please make sure the format of the time is
"dd.MM.yyyy_HH:mm".
user name (since plugin version The user name for the import. If Klaros-Testmanagement is config-
1.1) ured to use authentication for the import a valid user name must
be passed to the importer.
password (since plugin version The password for the import. If Klaros-Testmanagement is config-
1.1) ured to use authentication for the import a valid password must
be passed to the importer.
A complete example for a QF-Test import URL would look like this:
http://localhost:18080/klaros-web/importer?
config=P00001&env=ENV00001&sut=SUT00001&type=qftest&time=01.01.1970_12:00&username=validUser&password=validPassword
112
Glossary
A
Administrator User role that has access to all functionalities in Klaros-Testmanagement.
D
Database A database is a collection of information organized into interrelated tables
of data and specifications of data objects.
E
E-Mail Electronic mail, often abbreviated as e-mail, is any method of creating,
transmitting, or storing primarily text-based communications with digital
communications systems.
I
Issue The term issue is a unit of work to accomplish an improvement in a system.
An issue could be a bug, a requested feature, task, missing documentation,
and so forth.
J
JIRA JIRA is a bug tracking, issue tracking, and project management system by
Atlassian Software .
JUnit JUnit is a unit testing framework for the Java programming language.
M
Manager User role that has access to create, edit, delete and search for objects, run
test cases and test suites, show results and generate reports.
O
Operating System An operating system (commonly abbreviated to either OS or O/S) is an in-
terface between hardware and applications. It is responsible for the man-
agement and coordination of activities and the sharing of the limited re-
sources of the computer. Common contemporary operating systems in-
clude Microsoft Windows, Mac OS, Linux, BSD and Solaris.
P
Postcondition Environmental and state conditions that must be fulfilled before the com-
ponent or system can be executed with a particular test or test procedure.
Precondition Environmental and state conditions that must be fulfilled after the execu-
tion of a test or test procedure.
113
Glossary
Q
QFTest QF-Test is a professional tool for automated testing of Java and Web appli-
cations with a graphical user interface from Quality First Software .
R
Redmine Redmine is an open source bug tracking, issue tracking, and project man-
agement system.
T
Test Case A test case is a set of input values, execution preconditions, expected re-
sults and execution post-conditions, developed for a particular objective or
test condition, such as determine whether an application or software sys-
tem meets specifications.
Tester User role that has access to search for objects, run test cases and test suites
and show results.
Test Execution The process of running a test by the component or system under test, pro-
ducing actual result(s).
Test Suite A test suite is a set of test cases and the test cases can be executed in groups.
The test suite will be used to verify and ensure that a product or system
meets its design specifications and other requirements.
Trac Trac is an open source bug tracking and issue tracking system.
U
URL Uniform Resource Locator (URL) specifies where an identified resource is
available and the mechanism for retrieving it.
W
Web browser Web browser is a software application which enables a user to display and
interact with text, images and other information typically located on a Web
page at a Web site on the World Wide Web or a local area network.
114
Index getActiveProject, 195, 198
getAllTestRequirements, 126, 163
getArea, 135, 172
A getAssignee, 149, 188
add, 194, 197 getAttachments, 143, 180
addParameter, 194, 197 getBranches, 128, 167, 173, 184, 188
getBranchRoot, 129, 167, 173, 184, 189
B getChildren, 127, 163
Back, 53 getConfiguration, 131, 135, 146, 147, 149,
167, 173, 184, 185, 189
getCoverage, 127, 163
C getCoveringHeadTestCases, 146, 184
Classes
getCoveringTestCases, 146, 184
KlarosAttachment, 153
getCovers, 135, 173
KlarosConfiguration, 153
getCreated, 135, 149, 173, 189
KlarosContext, 193
getCreatedString, 136, 173
KlarosExternalImplementation, 156
getCreator, 131, 136, 144, 147, 150, 167,
KlarosIssue, 157
173, 182, 186, 189
KlarosNamedEntity, 158
getDate, 122, 156
KlarosObjectFactory, 161
getDependency, 136, 173
KlarosProject, 161
getDepth, 127, 163
KlarosQueryFactory, 195
getDescendants, 127, 164
KlarosRequirementGroup, 162
getDescription, 121, 124, 136, 140, 154,
KlarosRevision, 164
157, 173, 177
KlarosStatusMessage, 168
getDesignTechnique, 136, 173
KlarosSUTImplementation, 166
getDetectedIssues, 136, 174
KlarosTag, 169
getDocbase, 136, 174
KlarosTestCase, 170
getDynaClass, 159
KlarosTestCaseResult, 176
getEmail, 152, 192
KlarosTestCaseState, 178
getEnv, 147, 186
KlarosTestCaseStep, 180
getEnvs, 121, 154
KlarosTestEnvironment, 181
getEvaluation, 137, 174
KlarosTestExecutable, 182
getExecution, 137, 174
KlarosTestRequirement, 183
getExecutionTime, 140, 177
KlarosTestRun, 184
getFamily, 127, 164
KlarosTestSuite, 187
getGroup, 146, 184
KlarosTestSuiteResult, 190
getImplementation, 137, 174
KlarosUser, 191
getImplementationOf, 123, 156
ParameterContext, 198
getInstance, 161
ParameterType, 199
getLastEditor, 150, 189
compareTo, 154, 167, 172, 177, 181, 185,
getLastUpdated, 150, 189
191, 192
getLevel, 137, 174
contains, 159
getLocale, 195, 198
getMappedClass, 161
E getMessage, 132, 169
equals, 154, 167, 172, 177, 181, 185, getName, 121, 124, 150, 155, 159, 189
191, 192 getNote, 137, 174
Error, 53 getNumberCoveredRequirements, 127, 164
execute, 196, 196, 196 getNumberErrors, 147, 186
executeParameterizedQuery, 194, 197 getNumberFailures, 147, 186
executeQuery, 194, 197 getNumberPassed, 148, 186
getNumberRequirements, 127, 164
F getNumberStates, 131, 167
Failure, 53 getParameter, 195, 198
getParameters, 199
G getParameterValue, 195, 198
get, 159, 159, 159 getParent, 128, 164
getAction, 143, 180 getPostcondition, 137, 143, 174, 180
115
Index
I J
IKlarosAttachment, 120
JUnit, 112
IKlarosConfiguration, 120
IKlarosContext, 196
116
Index
117
Index
P
ParameterContext, 198, 199, 199, 199
ParameterType, 199
Passed, 53
Postcondition, 39, 41
118
Appendix A. Role Permission Overview
Actions/Roles Administrator Manager Tester
Create, Edit and Delete users with role 'Admin'
Create, Edit and Delete users with role 'Manager'
Create, Edit and Delete users with role 'Tester'
Search users
Edit own user
Edit preferences: E-Mail, Logging, General and Is-
sue Management
Backup and Recovery
Create, Edit and Delete objects
Search objects
Execute objects
Show results
Generate reports
119
Appendix B. Model API Reference
B.1. Klaros-Core API Reference
B.1. Klaros-Core API Reference
B.1.1. Package de.verit.klaros.core.model
B.1.1.1. Interface IKlarosAttachment
This interface provides access to a binary attachment.
B.1.1.1.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosAttachment {
// Public Methods
public java.lang.String getUuid();
B.1.1.1.2. getUuid()
public java.lang.String getUuid();
Parameters
return The uuid of this attachment.
B.1.1.2. Interface IKlarosConfiguration
This interface provides access to data of a project's configuration.
B.1.1.2.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosConfiguration {
// Public Methods
public java.lang.String getDescription();
public java.util.Set<de.verit.klaros.core.model.KlarosTestEnvironment> getEnvs();
public java.lang.String getName();
public java.util.Set<de.verit.klaros.core.model.KlarosSUTImplementation> getSuts();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRun> getTestRuns();
public java.util.Set<de.verit.klaros.core.model.KlarosTestSuite> getTestSuites();
public java.lang.Boolean isEnabled();
120
Model API Reference
B.1.1.2.2. getDescription()
public java.lang.String getDescription();
Parameters
return The description of the project.
B.1.1.2.3. getEnvs()
public java.util.Set<de.verit.klaros.core.model.KlarosTestEnvironment> getEnvs();
Parameters
return Set containing the test environments of the project.
B.1.1.2.4. getName()
public java.lang.String getName();
Parameters
return The name of the project.
B.1.1.2.5. getSuts()
public java.util.Set<de.verit.klaros.core.model.KlarosSUTImplementation> getSuts();
Parameters
return KlarosSet containing the SUT objects of the project.
B.1.1.2.6. getTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
Parameters
return Set containing the test case objects of the project.
B.1.1.2.7. getTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
Parameters
return Set containing the test requirement objects of the project.
121
Model API Reference
B.1.1.2.8. getTestRuns()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRun> getTestRuns();
Parameters
return Set containing the test run objects of the project.
B.1.1.2.9. getTestSuites()
public java.util.Set<de.verit.klaros.core.model.KlarosTestSuite> getTestSuites();
Parameters
return Set containing the test suite objects of the project.
B.1.1.2.10. isEnabled()
public java.lang.Boolean isEnabled();
Parameters
return true if this project is enabled and active, false if not.
B.1.1.3. Interface IKlarosExternalImplementation
This interface provides access to the information about the implementation of a test case.
B.1.1.3.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosExternalImplementation
extends, de.verit.klaros.core.model.IKlarosExternalLink {
// Public Methods
public java.lang.String getDate();
public de.verit.klaros.core.model.KlarosTestCase getImplementationOf();
B.1.1.3.2. getDate()
public java.lang.String getDate();
get date.
Parameters
122
Model API Reference
B.1.1.3.3. getImplementationOf()
public de.verit.klaros.core.model.KlarosTestCase getImplementationOf();
Parameters
return The test case for which this is an implementation.
B.1.1.4. Interface IKlarosExternalLink
This interface provides access to externally stored information about an object.
B.1.1.4.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosExternalLink {
// Public Methods
public java.lang.String getReference();
B.1.1.4.2. getReference()
public java.lang.String getReference();
Parameters
return The reference to the information.
B.1.1.5. Interface IKlarosIssue
This interface provides access to a software issue.
B.1.1.5.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosIssue {
// Public Methods
public java.lang.String getDescription();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseState> getStates();
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
123
Model API Reference
B.1.1.5.2. getDescription()
public java.lang.String getDescription();
Parameters
return The description of this issue.
B.1.1.5.3. getStates()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseState> getStates();
Parameters
return Set of test cases states which exists because this issue is 'active' (created
but not solved).
B.1.1.5.4. getTestCases()
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
Parameters
return List of test cases which have detected this issue.
B.1.1.6. Interface IKlarosNamedEntity
This interface provides access to data of a properties owner.
B.1.1.6.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public java.lang.String getName();
public java.util.List<java.lang.String> getPropertyAsList(java.lang.String name);
public java.lang.String getPropertyAsString(java.lang.String name);
public boolean isDefinedProperty(java.lang.String propertyName);
B.1.1.6.2. getName()
public java.lang.String getName();
Get name.
Parameters
return The name of the properties owner.
124
Model API Reference
B.1.1.6.3. getPropertyAsList(String)
public java.util.List<java.lang.String> getPropertyAsList(java.lang.String name);
Parameters
name The property's name.
return The property's value in a list.
B.1.1.6.4. getPropertyAsString(String)
public java.lang.String getPropertyAsString(java.lang.String name);
Parameters
name The property's name.
return The property's value in a single string.
B.1.1.6.5. isDefinedProperty(String)
public boolean isDefinedProperty(java.lang.String propertyName);
Parameters
propertyName The name of the property to check.
return true if the identified property is a defined property, false else.
B.1.1.7. Interface IKlarosProject
This interface provides access to data of a test project.
B.1.1.7.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosProject
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public boolean isDefinedProperty(java.lang.String propertyName);
B.1.1.7.2. isDefinedProperty(String)
public boolean isDefinedProperty(java.lang.String propertyName);
125
Model API Reference
Parameters
propertyName The name of the property to check.
return true if the identified property is a defined property, false else.
B.1.1.8. Interface IKlarosRequirementGroup
The interface to retrieve the information about a requirement group.
B.1.1.8.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosRequirementGroup
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getAllTestRequirements();
public java.util.Set<de.verit.klaros.core.model.KlarosRequirementGroup> getChildren();
public double getCoverage();
public java.lang.Integer getDepth();
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getDescendants();
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getFamily();
public int getNumberCoveredRequirements();
public int getNumberRequirements();
public de.verit.klaros.core.model.KlarosRequirementGroup getParent();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
B.1.1.8.2. getAllTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getAllTestRequirements();
Parameters
return List containing own test requirements and all test requirements of
groups which are descendants of this group.
126
Model API Reference
B.1.1.8.3. getChildren()
public java.util.Set<de.verit.klaros.core.model.KlarosRequirementGroup> getChildren();
Parameters
return Set containing the requirement groups that are children of this require-
ment group.
B.1.1.8.4. getCoverage()
public double getCoverage();
Parameters
return the coverage in percent. If no requirements are found, 1.0 is returned.
B.1.1.8.5. getDepth()
public java.lang.Integer getDepth();
Parameters
return The depth in the tree
B.1.1.8.6. getDescendants()
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getDescendants();
Parameters
return List containing all groups which are descendants of this group.
B.1.1.8.7. getFamily()
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getFamily();
Parameters
return List containing this group and all of its descendants.
B.1.1.8.8. getNumberCoveredRequirements()
public int getNumberCoveredRequirements();
Parameters
return The number of covered test requirements.
B.1.1.8.9. getNumberRequirements()
public int getNumberRequirements();
Parameters
return The number of overall test requirements.
127
Model API Reference
B.1.1.8.10. getParent()
public de.verit.klaros.core.model.KlarosRequirementGroup getParent();
Parameters
return The parent requirement group, or null.
B.1.1.8.11. getTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
Parameters
return Set containing the test requirements which belong to this requirement
group.
B.1.1.9. Interface IKlarosRevision
This interface provides access to a revisionable klaros object.
B.1.1.9.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosRevision
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public de.verit.klaros.core.model.KlarosRevision<?, ?> getBranchRoot();
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
public de.verit.klaros.core.model.KlarosRevision<?, ?> getPredecessor();
public java.lang.String getRevisionComment();
public java.lang.String getRevisionId();
public de.verit.klaros.core.model.KlarosRevision<?, ?> getRoot();
public de.verit.klaros.core.model.KlarosRevision<?, ?> getSuccessor();
public java.util.Set<de.verit.klaros.core.model.KlarosTag> getTags();
public de.verit.klaros.core.model.KlarosRevision<?, ?> getTrunkRoot();
B.1.1.9.2. getBranches()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
128
Model API Reference
Parameters
return Set containing all revision objects which have been created as first revision
of a branch (trunk root) and habe been created using this revision.
B.1.1.9.3. getBranchRoot()
public de.verit.klaros.core.model.KlarosRevision<?, ?> getBranchRoot();
Parameters
return The revision object that has been used to create a new branch.
B.1.1.9.4. getPredecessor()
public de.verit.klaros.core.model.KlarosRevision<?, ?> getPredecessor();
Parameters
return The revision object that is the predecessor of this revision.
B.1.1.9.5. getRevisionComment()
public java.lang.String getRevisionComment();
Get comment.
Parameters
return The comment of the revision.
B.1.1.9.6. getRevisionId()
public java.lang.String getRevisionId();
Parameters
return The revision id.
B.1.1.9.7. getRoot()
public de.verit.klaros.core.model.KlarosRevision<?, ?> getRoot();
Parameters
return The root revision object.
B.1.1.9.8. getSuccessor()
public de.verit.klaros.core.model.KlarosRevision<?, ?> getSuccessor();
Parameters
return The revision object that is the successor of this revision.
B.1.1.9.9. getTags()
public java.util.Set<de.verit.klaros.core.model.KlarosTag> getTags();
129
Model API Reference
Parameters
return Set containing all tags this revision belongs to.
B.1.1.9.10. getTrunkRoot()
public de.verit.klaros.core.model.KlarosRevision<?, ?> getTrunkRoot();
Parameters
return the revision which is the first revision of the branch to which this revision
belongs.
B.1.1.10. Interface IKlarosSUTImplementation
This interface provides access to data of a system under test version.
B.1.1.10.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosSUTImplementation
extends, de.verit.klaros.core.model.IKlarosRevision {
// Public Methods
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.lang.String getCreator();
public int getNumberStates(java.lang.String name);
public java.lang.String getProductversion();
public java.util.Set<?> getTestCaseStates();
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseState> getTestCaseStates(java.lang.String name);
public java.util.Set<?> getTestRuns();
public java.lang.Boolean isEnabled();
130
Model API Reference
B.1.1.10.2. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
Parameters
return The related configuration.
B.1.1.10.3. getCreator()
public java.lang.String getCreator();
Parameters
return The name of the creator.
B.1.1.10.4. getNumberStates(String)
public int getNumberStates(java.lang.String name);
Get number of test case states which are related to this revision and have the given name.
Parameters
name The name of the states to look for
return number of states with given name and relation to this SUT object
B.1.1.10.5. getProductversion()
public java.lang.String getProductversion();
Parameters
return The version id of the system under test.
B.1.1.10.6. getTestCaseStates()
public java.util.Set<?> getTestCaseStates();
Parameters
return Set of test case states related to the SUT version.
B.1.1.10.7. getTestCaseStates(String)
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseState> getTestCaseStates(java.lang.String name);
Get test case states which are related to this revision and have the given name.
Parameters
name The name of the states to look for
return Set of the states with given name
B.1.1.10.8. getTestRuns()
public java.util.Set<?> getTestRuns();
131
Model API Reference
Parameters
return Set of test runs performed for this SUT version.
B.1.1.10.9. isEnabled()
public java.lang.Boolean isEnabled();
Check if enabled.
Parameters
return true if enabled
B.1.1.11. Interface IKlarosStatusMessage
This class provides access to data of a test case.
B.1.1.11.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosStatusMessage {
// Public Methods
public java.lang.String getMessage();
public java.lang.String getStatus();
public java.util.Date getTimestamp();
public de.verit.klaros.core.persistent.User getUser();
B.1.1.11.2. getMessage()
public java.lang.String getMessage();
Parameters
return String of the message of the status message.
B.1.1.11.3. getStatus()
public java.lang.String getStatus();
Parameters
return String of the status of the status message.
B.1.1.11.4. getTimestamp()
public java.util.Date getTimestamp();
132
Model API Reference
Parameters
return timestamp of the status message.
B.1.1.11.5. getUser()
public de.verit.klaros.core.persistent.User getUser();
Parameters
return User of the status message.
B.1.1.12. Interface IKlarosTag
This interface provides access to the data of a tag.
B.1.1.12.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTag {
// Public Methods
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getRevisions();
public java.lang.String getTagId();
public java.util.Date getTimestamp();
B.1.1.12.2. getRevisions()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getRevisions();
Parameters
return Collection of revision objects which are related to this tag.
B.1.1.12.3. getTagId()
public java.lang.String getTagId();
Parameters
return The id of the tag.
B.1.1.12.4. getTimestamp()
public java.util.Date getTimestamp();
133
Model API Reference
Get timestamp.
Parameters
return The time of the creation of the tag as a Date object.
B.1.1.13. Interface IKlarosTestCase
This class provides access to data of a test case.
B.1.1.13.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestCase
extends, de.verit.klaros.core.model.IKlarosRevision {
// Public Methods
public de.verit.klaros.core.types.TestAreatopic getArea();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getCovers();
public java.util.Date getCreated();
public java.lang.String getCreatedString(java.util.Locale locale);
public de.verit.klaros.core.model.KlarosUser getCreator();
public java.lang.String getDependency();
public java.lang.String getDescription();
public de.verit.klaros.core.types.TestDesignTechnique getDesignTechnique();
public java.util.List<de.verit.klaros.core.model.KlarosIssue> getDetectedIssues();
public java.lang.String getDocbase();
public java.lang.String getEvaluation();
public de.verit.klaros.core.types.TestExecutionMethod getExecution();
public de.verit.klaros.core.model.KlarosExternalImplementation getImplementation();
public de.verit.klaros.core.types.TestLevel getLevel();
public java.lang.String getNote();
public java.lang.String getPostcondition();
public java.lang.String getPrecondition();
public de.verit.klaros.core.types.TestPriority getPriority();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
public java.lang.String getShortname();
public java.lang.String getState();
public java.lang.String getStateName(de.verit.klaros.core.model.KlarosSUTImplementation sut);
public java.util.Map<de.verit.klaros.core.model.KlarosSUTImplementation, de.verit.klaros.core.model.KlarosTestCaseState> getStates();
public java.lang.String getTeam();
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseStep> getTestCaseSteps();
public java.lang.String getTraceability();
public de.verit.klaros.core.types.TestVariety getVariety();
134
Model API Reference
B.1.1.13.2. getArea()
public de.verit.klaros.core.types.TestAreatopic getArea();
Parameters
return The area.
B.1.1.13.3. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
Parameters
return The related configuration.
B.1.1.13.4. getCovers()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getCovers();
Parameters
return Set of test requirements which are covered by this test case revision.
B.1.1.13.5. getCreated()
public java.util.Date getCreated();
Parameters
135
Model API Reference
B.1.1.13.6. getCreatedString(Locale)
public java.lang.String getCreatedString(java.util.Locale locale);
Parameters
locale The locale.
return The formated date string.
B.1.1.13.7. getCreator()
public de.verit.klaros.core.model.KlarosUser getCreator();
Parameters
return The creator of this test case.
B.1.1.13.8. getDependency()
public java.lang.String getDependency();
Parameters
return The dependency.
B.1.1.13.9. getDescription()
public java.lang.String getDescription();
Parameters
return The description.
B.1.1.13.10. getDesignTechnique()
public de.verit.klaros.core.types.TestDesignTechnique getDesignTechnique();
Parameters
return The type.
B.1.1.13.11. getDetectedIssues()
public java.util.List<de.verit.klaros.core.model.KlarosIssue> getDetectedIssues();
Parameters
return List of issues which have been detected by this test case revision.
B.1.1.13.12. getDocbase()
public java.lang.String getDocbase();
136
Model API Reference
Parameters
return The docbase.
B.1.1.13.13. getEvaluation()
public java.lang.String getEvaluation();
Parameters
return The evaluation.
B.1.1.13.14. getExecution()
public de.verit.klaros.core.types.TestExecutionMethod getExecution();
Parameters
return The execution method.
B.1.1.13.15. getImplementation()
public de.verit.klaros.core.model.KlarosExternalImplementation getImplementation();
Get implementation.
Parameters
return The object describing the location of the implementation of this test case
revision.
B.1.1.13.16. getLevel()
public de.verit.klaros.core.types.TestLevel getLevel();
Parameters
return The level.
B.1.1.13.17. getNote()
public java.lang.String getNote();
Parameters
return The note.
B.1.1.13.18. getPostcondition()
public java.lang.String getPostcondition();
Parameters
137
Model API Reference
B.1.1.13.19. getPrecondition()
public java.lang.String getPrecondition();
Parameters
return The precondition.
B.1.1.13.20. getPriority()
public de.verit.klaros.core.types.TestPriority getPriority();
Parameters
return The priority.
B.1.1.13.21. getResults()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
Parameters
return Set of results of executions of this test case revision.
B.1.1.13.22. getShortname()
public java.lang.String getShortname();
Parameters
return The short name.
B.1.1.13.23. getState()
public java.lang.String getState();
Parameters
return The type.
B.1.1.13.24. getStateName(KlarosSUTImplementation)
public java.lang.String getStateName(de.verit.klaros.core.model.KlarosSUTImplementation sut);
Parameters
sut The related SUT implementation
return The name of the state
138
Model API Reference
B.1.1.13.25. getStates()
public java.util.Map<de.verit.klaros.core.model.KlarosSUTImplementation, de.verit.klaros.core.model.KlarosTestCaseState> getStates();
Parameters
return Collection of the states of this test case revision in relation to the dif-
ferent SUT versions..
B.1.1.13.26. getTeam()
public java.lang.String getTeam();
Parameters
return The team.
B.1.1.13.27. getTestCaseSteps()
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseStep> getTestCaseSteps();
Parameters
return list of steps of this test case revision.
B.1.1.13.28. getTraceability()
public java.lang.String getTraceability();
Parameters
return The traceability.
B.1.1.13.29. getVariety()
public de.verit.klaros.core.types.TestVariety getVariety();
Parameters
return The variety.
B.1.1.14. Interface IKlarosTestCaseResult
This interface provides access to data of a test case result.
B.1.1.14.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestCaseResult
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public java.lang.String getDescription();
public long getExecutionTime();
public java.lang.String getSummary();
139
Model API Reference
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
public boolean isError();
public boolean isFailure();
public boolean isPassed();
B.1.1.14.2. getDescription()
public java.lang.String getDescription();
Get the test result description. This is usually set for failed/error status results.
Parameters
return The test result description.
B.1.1.14.3. getExecutionTime()
public long getExecutionTime();
Parameters
return The test execution time.
B.1.1.14.4. getSummary()
public java.lang.String getSummary();
Get the test result summary. This is usually set for failed/error status results.
Parameters
return The test result summary.
B.1.1.14.5. getTestCase()
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
Parameters
140
Model API Reference
return The test case that has been executed to get this result.
B.1.1.14.6. getTestRun()
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
Parameters
return The test run that created this result.
B.1.1.14.7. isError()
public boolean isError();
It is assumed, that error results have a property 'type' with the value 'E' or 'error'.
Parameters
return true if this results represents an error.
B.1.1.14.8. isFailure()
public boolean isFailure();
It is assumed, that failure results have a property 'type' with the value 'F' or 'failure'.
Parameters
return true if this results represents a failure.
B.1.1.14.9. isPassed()
public boolean isPassed();
It is assumed, that passed results have a property 'testCasePassed' with value 'true'.
Parameters
return true if this results represents an error.
B.1.1.15. Interface IKlarosTestCaseState
This interface provides access to data of a test case state.
B.1.1.15.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestCaseState {
// Public Methods
public java.lang.String getStateDescription();
public java.lang.String getStateName();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
141
Model API Reference
B.1.1.15.2. getStateDescription()
public java.lang.String getStateDescription();
Parameters
return The description of this state.
B.1.1.15.3. getStateName()
public java.lang.String getStateName();
Parameters
return The name of this state.
B.1.1.15.4. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
Parameters
return The related SUT version.
B.1.1.15.5. getTestCase()
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
Parameters
return The test case whose state is defined by this state object.
B.1.1.16. Interface IKlarosTestCaseStep
This interface provides access to a software issue.
B.1.1.16.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestCaseStep {
// Public Methods
public java.lang.String getAction();
public java.util.List<de.verit.klaros.core.model.KlarosAttachment> getAttachments();
public java.lang.String getPostcondition();
public java.lang.String getPrecondition();
142
Model API Reference
B.1.1.16.2. getAction()
public java.lang.String getAction();
Parameters
return The action of this test case step.
B.1.1.16.3. getAttachments()
public java.util.List<de.verit.klaros.core.model.KlarosAttachment> getAttachments();
Parameters
return The attachments of this test case step.
B.1.1.16.4. getPostcondition()
public java.lang.String getPostcondition();
Parameters
return The post condition of this test case step.
B.1.1.16.5. getPrecondition()
public java.lang.String getPrecondition();
Parameters
return The pre condition of this test case step.
B.1.1.17. Interface IKlarosTestEnvironment
This interface provides access to data of a test environment.
B.1.1.17.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestEnvironment
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public java.lang.String getCreator();
public java.lang.String getShortname();
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
public boolean isDefinedProperty(java.lang.String propertyName);
143
Model API Reference
public java.lang.Boolean isEnabled();
B.1.1.17.2. getCreator()
public java.lang.String getCreator();
Parameters
return The name of the creator.
B.1.1.17.3. getShortname()
public java.lang.String getShortname();
Parameters
return The description.
B.1.1.17.4. getTestRuns()
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
Parameters
return Collection of test runs executed in the environment.
B.1.1.17.5. isDefinedProperty(String)
public boolean isDefinedProperty(java.lang.String propertyName);
Parameters
propertyName The name of the property to check.
return true if the identified property is a defined property, false else.
B.1.1.17.6. isEnabled()
public java.lang.Boolean isEnabled();
Check if enabled.
144
Model API Reference
Parameters
return true, if enabled
B.1.1.18. Interface IKlarosTestExecutable
This class provides access to data of a test case.
B.1.1.18.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestExecutable {
}
B.1.1.19. Interface IKlarosTestRequirement
This interface provides access to data of a test requirement.
B.1.1.19.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestRequirement
extends, de.verit.klaros.core.model.IKlarosRevision {
// Public Methods
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringHeadTestCases();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringTestCases();
public de.verit.klaros.core.model.KlarosRequirementGroup getGroup();
145
Model API Reference
B.1.1.19.2. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
Parameters
return The related configuration.
B.1.1.19.3. getCoveringHeadTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringHeadTestCases();
Parameters
return Set of test cases
B.1.1.19.4. getCoveringTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringTestCases();
Parameters
return Set of test cases which cover this test requirement.
B.1.1.19.5. getGroup()
public de.verit.klaros.core.model.KlarosRequirementGroup getGroup();
Parameters
return The requirement group the test requirement belongs to.
B.1.1.20. Interface IKlarosTestRun
This interface provides access to data of a test run.
B.1.1.20.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestRun {
// Public Methods
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.lang.String getCreator();
public de.verit.klaros.core.model.KlarosTestEnvironment getEnv();
public int getNumberErrors();
public int getNumberFailures();
public int getNumberPassed();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
public java.lang.String getRunId();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
146
Model API Reference
public java.util.Date getTimestamp();
public java.lang.String getTimestampString(java.util.Locale locale);
B.1.1.20.2. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
Parameters
return The related configuration.
B.1.1.20.3. getCreator()
public java.lang.String getCreator();
Parameters
return The name of the creator.
B.1.1.20.4. getEnv()
public de.verit.klaros.core.model.KlarosTestEnvironment getEnv();
Parameters
return The test environment in which the test cases have benn executed.
B.1.1.20.5. getNumberErrors()
public int getNumberErrors();
Get number of test cases with errors of this test run. It is assumed, that error results have a property
'type' with the value 'E'.
Parameters
return The number of passed test cases.
B.1.1.20.6. getNumberFailures()
public int getNumberFailures();
Get number of failed test cases of this test run. It is assumed, that failed results have a property 'type'
with the value 'F'.
Parameters
return The number of passed test cases.
147
Model API Reference
B.1.1.20.7. getNumberPassed()
public int getNumberPassed();
Get number of passed test cases of this test run. It is assumed, that passed results have a property 'test-
CasePassed' with value 'true'.
Parameters
return The number of passed test cases.
B.1.1.20.8. getResults()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
Get results.
Parameters
return Set of results of test case executions.
B.1.1.20.9. getRunId()
public java.lang.String getRunId();
Parameters
return The id of the test run.
B.1.1.20.10. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
Parameters
return The SUT version which has been tested.
B.1.1.20.11. getTimestamp()
public java.util.Date getTimestamp();
Get timestamp.
Parameters
return The time the test run has been executed as Date object.
B.1.1.20.12. getTimestampString(Locale)
public java.lang.String getTimestampString(java.util.Locale locale);
Parameters
locale The locale to use for the format.
return The time the test run has been executed as formated String.
B.1.1.21. Interface IKlarosTestSuite
148
Model API Reference
B.1.1.21.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestSuite {
// Public Methods
public de.verit.klaros.core.model.KlarosUser getAssignee();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Date getCreated();
public de.verit.klaros.core.model.KlarosUser getCreator();
public de.verit.klaros.core.model.KlarosUser getLastEditor();
public java.util.Date getLastUpdated();
public java.lang.String getName();
public java.util.List<de.verit.klaros.core.model.KlarosTestSuiteResult> getResults();
public java.lang.String getShortname();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
public java.lang.Integer getTestSuiteResultCount();
public java.lang.Boolean isEnabled();
B.1.1.21.2. getAssignee()
public de.verit.klaros.core.model.KlarosUser getAssignee();
Parameters
return The user to whom this test suite is assigned.
B.1.1.21.3. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
Parameters
return The related configuration.
B.1.1.21.4. getCreated()
public java.util.Date getCreated();
Parameters
149
Model API Reference
B.1.1.21.5. getCreator()
public de.verit.klaros.core.model.KlarosUser getCreator();
Parameters
return The user who created the test suite.
B.1.1.21.6. getLastEditor()
public de.verit.klaros.core.model.KlarosUser getLastEditor();
Parameters
return The user who last edited the test suite.
B.1.1.21.7. getLastUpdated()
public java.util.Date getLastUpdated();
Parameters
return The date when the last update was done.
B.1.1.21.8. getName()
public java.lang.String getName();
Parameters
return String of the name of the test suite.
B.1.1.21.9. getResults()
public java.util.List<de.verit.klaros.core.model.KlarosTestSuiteResult> getResults();
Parameters
return Set of results of executions of this test suite.
B.1.1.21.10. getShortname()
public java.lang.String getShortname();
Parameters
return String of the description of the test suite.
B.1.1.21.11. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
Parameters
150
Model API Reference
B.1.1.21.12. getTestCases()
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
Parameters
return Set of test cases of this test suite.
B.1.1.21.13. getTestSuiteResultCount()
public java.lang.Integer getTestSuiteResultCount();
Parameters
return The number of test suite results in this test suite.
B.1.1.21.14. isEnabled()
public java.lang.Boolean isEnabled();
Parameters
return true if the test suite is enabled, else false
B.1.1.22. Interface IKlarosTestSuiteResult
This interface provides access to data of a test case result.
B.1.1.22.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosTestSuiteResult
extends, de.verit.klaros.core.model.IKlarosNamedEntity {
// Public Methods
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
public de.verit.klaros.core.model.KlarosTestSuite getTestSuite();
B.1.1.22.2. getTestRun()
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
151
Model API Reference
Parameters
return the test run
B.1.1.22.3. getTestSuite()
public de.verit.klaros.core.model.KlarosTestSuite getTestSuite();
Parameters
return The test case that has been executed to get this result.
B.1.1.23. Interface IKlarosUser
The user object.
B.1.1.23.1. Synopsis
public interface de.verit.klaros.core.model.IKlarosUser {
// Public Methods
public java.lang.String getEmail();
public java.lang.String getRole();
public java.lang.String getUsername();
B.1.1.23.2. getEmail()
public java.lang.String getEmail();
Parameters
return the email address
B.1.1.23.3. getRole()
public java.lang.String getRole();
Parameters
return the role name
B.1.1.23.4. getUsername()
public java.lang.String getUsername();
152
Model API Reference
Parameters
return the user name
B.1.1.24. Class KlarosAttachment
This class provides access to attachments.
B.1.1.24.1. Synopsis
public final class de.verit.klaros.core.model.KlarosAttachment
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosAttachment, de.verit.klaros.core.persistent.Attachm
implements, de.verit.klaros.core.model.IKlarosAttachment {
// Public Constructors
public KlarosAttachment();
// Public Methods
public java.lang.String getUuid();
B.1.1.24.2. getUuid()
public java.lang.String getUuid();
B.1.1.25. Class KlarosConfiguration
This class provides access to the information stored for project's configuration.
B.1.1.25.1. Synopsis
public class de.verit.klaros.core.model.KlarosConfiguration
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosConfiguration, de.verit.klaros.core.persistent.Conf
implements, de.verit.klaros.core.model.IKlarosConfiguration, java.lang.Comparable<de.verit.klaros.core.model.KlarosConfiguration> {
// Public Methods
153
Model API Reference
public int compareTo(de.verit.klaros.core.model.KlarosConfiguration o);
public boolean equals(java.lang.Object o);
public java.lang.String getDescription();
public java.util.Set<de.verit.klaros.core.model.KlarosTestEnvironment> getEnvs();
public java.lang.String getName();
public java.util.Set<de.verit.klaros.core.model.KlarosSUTImplementation> getSuts();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRun> getTestRuns();
public java.util.Set<de.verit.klaros.core.model.KlarosTestSuite> getTestSuites();
public int hashCode();
public java.lang.Boolean isEnabled();
B.1.1.25.2. compareTo(KlarosConfiguration)
public int compareTo(de.verit.klaros.core.model.KlarosConfiguration o);
B.1.1.25.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.25.4. getDescription()
public java.lang.String getDescription();
B.1.1.25.5. getEnvs()
public java.util.Set<de.verit.klaros.core.model.KlarosTestEnvironment> getEnvs();
154
Model API Reference
B.1.1.25.6. getName()
public java.lang.String getName();
B.1.1.25.7. getSuts()
public java.util.Set<de.verit.klaros.core.model.KlarosSUTImplementation> getSuts();
B.1.1.25.8. getTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
B.1.1.25.9. getTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
B.1.1.25.10. getTestRuns()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRun> getTestRuns();
B.1.1.25.11. getTestSuites()
public java.util.Set<de.verit.klaros.core.model.KlarosTestSuite> getTestSuites();
B.1.1.25.12. hashCode()
public int hashCode();
155
Model API Reference
B.1.1.25.13. isEnabled()
public java.lang.Boolean isEnabled();
B.1.1.26. Class KlarosExternalImplementation
This class encapsulates external implementation data of a test case.
B.1.1.26.1. Synopsis
public final class de.verit.klaros.core.model.KlarosExternalImplementation
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosExternalImplementation, de.verit.klaros.core.persis
implements, de.verit.klaros.core.model.IKlarosExternalImplementation {
// Public Methods
public java.lang.String getDate();
public de.verit.klaros.core.model.KlarosTestCase getImplementationOf();
public java.lang.String getReference();
B.1.1.26.2. getDate()
public java.lang.String getDate();
get date.
B.1.1.26.3. getImplementationOf()
public de.verit.klaros.core.model.KlarosTestCase getImplementationOf();
156
Model API Reference
B.1.1.26.4. getReference()
public java.lang.String getReference();
B.1.1.27. Class KlarosIssue
This class provides access to the information stored for detected issues.
B.1.1.27.1. Synopsis
public final class de.verit.klaros.core.model.KlarosIssue
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosIssue, de.verit.klaros.core.persistent.Issue>
implements, de.verit.klaros.core.model.IKlarosIssue {
// Public Methods
public java.lang.String getDescription();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseState> getStates();
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
B.1.1.27.2. getDescription()
public java.lang.String getDescription();
B.1.1.27.3. getStates()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseState> getStates();
157
Model API Reference
B.1.1.27.4. getTestCases()
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
B.1.1.28. Class KlarosNamedEntity
This class encapsulates the (dynamic) properties of a klaros object.
B.1.1.28.1. Synopsis
public abstract class de.verit.klaros.core.model.KlarosNamedEntity<T,S extends de.verit.klaros.core.persistent.NamedEntity>
extends, de.verit.klaros.core.model.KlarosWrapper<T, S>
implements, de.verit.klaros.core.model.IKlarosNamedEntity, org.apache.commons.beanutils.DynaBean {
// Public Methods
public boolean contains(java.lang.String name,
java.lang.String key);
public java.lang.Object get(java.lang.String name);
public java.lang.Object get(java.lang.String name,
int index);
public java.lang.Object get(java.lang.String name,
java.lang.String key);
public org.apache.commons.beanutils.DynaClass getDynaClass();
public java.lang.String getName();
public java.util.List<java.lang.String> getPropertyAsList(java.lang.String name);
public java.lang.String getPropertyAsString(java.lang.String name);
public boolean isDefinedProperty(java.lang.String propertyName);
public void remove(java.lang.String name,
java.lang.String key);
public void set(java.lang.String name,
int index,
java.lang.Object value);
public void set(java.lang.String name,
java.lang.Object value);
public void set(java.lang.String name,
java.lang.String key,
java.lang.Object value);
158
Model API Reference
B.1.1.28.2. contains(String, String)
public boolean contains(java.lang.String name,
java.lang.String key);
B.1.1.28.3. get(String)
public java.lang.Object get(java.lang.String name);
B.1.1.28.4. get(String, int)
public java.lang.Object get(java.lang.String name,
int index);
B.1.1.28.5. get(String, String)
public java.lang.Object get(java.lang.String name,
java.lang.String key);
B.1.1.28.6. getDynaClass()
public org.apache.commons.beanutils.DynaClass getDynaClass();
B.1.1.28.7. getName()
public java.lang.String getName();
159
Model API Reference
Get name.
B.1.1.28.8. getPropertyAsList(String)
public java.util.List<java.lang.String> getPropertyAsList(java.lang.String name);
B.1.1.28.9. getPropertyAsString(String)
public java.lang.String getPropertyAsString(java.lang.String name);
B.1.1.28.10. isDefinedProperty(String)
public boolean isDefinedProperty(java.lang.String propertyName);
B.1.1.28.11. remove(String, String)
public void remove(java.lang.String name,
java.lang.String key);
B.1.1.28.13. set(String, Object)
public void set(java.lang.String name,
java.lang.Object value);
160
Model API Reference
java.lang.String key,
java.lang.Object value);
B.1.1.29. Class KlarosObjectFactory
Factory for klaros objects.
B.1.1.29.1. Synopsis
public final class de.verit.klaros.core.model.KlarosObjectFactory {
// Public Static Methods
public static java.lang.Object getInstance(java.lang.Object wrapped);
public static java.lang.Class<?> getMappedClass(java.lang.Class<?> clazz);
B.1.1.29.2. getInstance(Object)
public static java.lang.Object getInstance(java.lang.Object wrapped);
Parameters
wrapped The data object wrapped by this class.
return An instance wrapping the given object or the original data object, if no
wrapper has to be created.
B.1.1.29.3. getMappedClass(Class<?>)
public static java.lang.Class<?> getMappedClass(java.lang.Class<?> clazz);
Parameters
clazz The class to get the mapped class for.
return The mapped class.
B.1.1.30. Class KlarosProject
This class provides access to the information stored for test environments.
161
Model API Reference
B.1.1.30.1. Synopsis
public final class de.verit.klaros.core.model.KlarosProject
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosProject, de.verit.klaros.core.persistent.Projec
implements, de.verit.klaros.core.model.IKlarosProject {
}
B.1.1.31. Class KlarosRequirementGroup
This class realizes the grouping of test requirements.
B.1.1.31.1. Synopsis
public final class de.verit.klaros.core.model.KlarosRequirementGroup
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosRequirementGroup, de.verit.klaros.core.persiste
implements, de.verit.klaros.core.model.IKlarosRequirementGroup {
// Public Methods
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getAllTestRequirements();
public java.util.Set<de.verit.klaros.core.model.KlarosRequirementGroup> getChildren();
public double getCoverage();
public java.lang.Integer getDepth();
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getDescendants();
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getFamily();
public int getNumberCoveredRequirements();
public int getNumberRequirements();
public de.verit.klaros.core.model.KlarosRequirementGroup getParent();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
162
Model API Reference
B.1.1.31.2. getAllTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getAllTestRequirements();
B.1.1.31.3. getChildren()
public java.util.Set<de.verit.klaros.core.model.KlarosRequirementGroup> getChildren();
B.1.1.31.4. getCoverage()
public double getCoverage();
B.1.1.31.5. getDepth()
public java.lang.Integer getDepth();
163
Model API Reference
B.1.1.31.6. getDescendants()
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getDescendants();
B.1.1.31.7. getFamily()
public java.util.List<de.verit.klaros.core.model.KlarosRequirementGroup> getFamily();
B.1.1.31.8. getNumberCoveredRequirements()
public int getNumberCoveredRequirements();
B.1.1.31.9. getNumberRequirements()
public int getNumberRequirements();
B.1.1.31.10. getParent()
public de.verit.klaros.core.model.KlarosRequirementGroup getParent();
B.1.1.31.11. getTestRequirements()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getTestRequirements();
B.1.1.32. Class KlarosRevision
This class encapsulates the revision related information of a revisionable klaros object.
B.1.1.32.1. Synopsis
public abstract class de.verit.klaros.core.model.KlarosRevision<T,S extends de.verit.klaros.core.persistent.Revision>
164
Model API Reference
public final java.lang.String getRevisionComment();
public final java.lang.String getRevisionId();
public final java.util.Set<de.verit.klaros.core.model.KlarosTag> getTags();
B.1.1.32.2. getRevisionComment()
public final java.lang.String getRevisionComment();
Get comment.
B.1.1.32.3. getRevisionId()
public final java.lang.String getRevisionId();
165
Model API Reference
B.1.1.32.4. getTags()
public final java.util.Set<de.verit.klaros.core.model.KlarosTag> getTags();
B.1.1.33. Class KlarosSUTImplementation
This class provides access to the information stored for systems under tests (SUT).
B.1.1.33.1. Synopsis
public final class de.verit.klaros.core.model.KlarosSUTImplementation
extends, de.verit.klaros.core.model.KlarosRevision<de.verit.klaros.core.model.KlarosSUTImplementation, de.verit.klaros.core.persistent
implements, de.verit.klaros.core.model.IKlarosSUTImplementation, java.lang.Comparable<de.verit.klaros.core.model.KlarosSUTImplementati
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosSUTImplementation o);
public boolean equals(java.lang.Object o);
public de.verit.klaros.core.model.KlarosSUTImplementation getBranchRoot();
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.lang.String getCreator();
public int getNumberStates(java.lang.String name);
public de.verit.klaros.core.model.KlarosSUTImplementation getPredecessor();
public java.lang.String getProductversion();
public de.verit.klaros.core.model.KlarosSUTImplementation getRoot();
public de.verit.klaros.core.model.KlarosSUTImplementation getSuccessor();
public java.util.Set<de.verit.klaros.core.persistent.TestCaseState> getTestCaseStates();
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseState> getTestCaseStates(java.lang.String name);
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
public de.verit.klaros.core.model.KlarosSUTImplementation getTrunkRoot();
public int hashCode();
public java.lang.Boolean isEnabled();
166
Model API Reference
B.1.1.33.2. compareTo(KlarosSUTImplementation)
public int compareTo(de.verit.klaros.core.model.KlarosSUTImplementation o);
B.1.1.33.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.33.4. getBranches()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
B.1.1.33.5. getBranchRoot()
public de.verit.klaros.core.model.KlarosSUTImplementation getBranchRoot();
B.1.1.33.6. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
B.1.1.33.7. getCreator()
public java.lang.String getCreator();
B.1.1.33.8. getNumberStates(String)
public int getNumberStates(java.lang.String name);
Get number of test case states which are related to this revision and have the given name.
B.1.1.33.9. getPredecessor()
public de.verit.klaros.core.model.KlarosSUTImplementation getPredecessor();
B.1.1.33.10. getProductversion()
public java.lang.String getProductversion();
167
Model API Reference
B.1.1.33.11. getRoot()
public de.verit.klaros.core.model.KlarosSUTImplementation getRoot();
B.1.1.33.12. getSuccessor()
public de.verit.klaros.core.model.KlarosSUTImplementation getSuccessor();
B.1.1.33.13. getTestCaseStates()
public java.util.Set<de.verit.klaros.core.persistent.TestCaseState> getTestCaseStates();
B.1.1.33.14. getTestCaseStates(String)
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseState> getTestCaseStates(java.lang.String name);
Get test case states which are related to this revision and have the given name.
B.1.1.33.15. getTestRuns()
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
B.1.1.33.16. getTrunkRoot()
public de.verit.klaros.core.model.KlarosSUTImplementation getTrunkRoot();
B.1.1.33.17. hashCode()
public int hashCode();
B.1.1.33.18. isEnabled()
public java.lang.Boolean isEnabled();
Check if enabled.
B.1.1.34. Class KlarosStatusMessage
This class provides access to the information stored in a logged status message.
B.1.1.34.1. Synopsis
public final class de.verit.klaros.core.model.KlarosStatusMessage
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosStatusMessage, de.verit.klaros.core.persistent.Stat
implements, de.verit.klaros.core.model.IKlarosStatusMessage {
// Public Methods
public java.lang.String getMessage();
public java.lang.String getStatus();
public java.util.Date getTimestamp();
168
Model API Reference
public de.verit.klaros.core.persistent.User getUser();
B.1.1.34.2. getMessage()
public java.lang.String getMessage();
B.1.1.34.3. getStatus()
public java.lang.String getStatus();
B.1.1.34.4. getTimestamp()
public java.util.Date getTimestamp();
B.1.1.34.5. getUser()
public de.verit.klaros.core.persistent.User getUser();
B.1.1.35. Class KlarosTag
This class encapsulates the tag information of a taggable klaros object.
B.1.1.35.1. Synopsis
public class de.verit.klaros.core.model.KlarosTag
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosTag, de.verit.klaros.core.persistent.Tag>
169
Model API Reference
implements, de.verit.klaros.core.model.IKlarosTag {
// Public Constructors
public KlarosTag();
// Public Methods
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getRevisions();
public java.lang.String getTagId();
public java.util.Date getTimestamp();
B.1.1.35.2. getRevisions()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getRevisions();
B.1.1.35.3. getTagId()
public java.lang.String getTagId();
B.1.1.35.4. getTimestamp()
public java.util.Date getTimestamp();
Get timestamp.
B.1.1.36. Class KlarosTestCase
This class provides access to the information stored for test cases.
170
Model API Reference
B.1.1.36.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestCase
extends, de.verit.klaros.core.model.KlarosRevision<de.verit.klaros.core.model.KlarosTestCase, de.verit.klaros.core.persistent.TestCase
implements, de.verit.klaros.core.model.IKlarosTestCase, java.lang.Comparable<de.verit.klaros.core.model.KlarosTestCase> {
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosTestCase o);
public boolean equals(java.lang.Object o);
public de.verit.klaros.core.types.TestAreatopic getArea();
public de.verit.klaros.core.model.KlarosTestCase getBranchRoot();
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getCovers();
public java.util.Date getCreated();
public java.lang.String getCreatedString(java.util.Locale locale);
public de.verit.klaros.core.model.KlarosUser getCreator();
public java.lang.String getDependency();
public java.lang.String getDescription();
public de.verit.klaros.core.types.TestDesignTechnique getDesignTechnique();
public java.util.List<de.verit.klaros.core.model.KlarosIssue> getDetectedIssues();
public java.lang.String getDocbase();
public java.lang.String getEvaluation();
public de.verit.klaros.core.types.TestExecutionMethod getExecution();
public de.verit.klaros.core.model.KlarosExternalImplementation getImplementation();
public de.verit.klaros.core.types.TestLevel getLevel();
public java.lang.String getNote();
public java.lang.String getPostcondition();
public java.lang.String getPrecondition();
public de.verit.klaros.core.model.KlarosTestCase getPredecessor();
public de.verit.klaros.core.types.TestPriority getPriority();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
public de.verit.klaros.core.model.KlarosTestCase getRoot();
public java.lang.String getShortname();
public java.lang.String getState();
public java.lang.String getStateName(de.verit.klaros.core.model.KlarosSUTImplementation sut);
public java.util.Map<de.verit.klaros.core.model.KlarosSUTImplementation, de.verit.klaros.core.model.KlarosTestCaseState> getStates();
public de.verit.klaros.core.model.KlarosTestCase getSuccessor();
public java.lang.String getTeam();
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseStep> getTestCaseSteps();
public java.lang.String getTraceability();
171
Model API Reference
public de.verit.klaros.core.model.KlarosTestCase getTrunkRoot();
public de.verit.klaros.core.types.TestVariety getVariety();
public int hashCode();
B.1.1.36.2. compareTo(KlarosTestCase)
public int compareTo(de.verit.klaros.core.model.KlarosTestCase o);
Parameters
o the other object
return the comparison result
B.1.1.36.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.36.4. getArea()
public de.verit.klaros.core.types.TestAreatopic getArea();
172
Model API Reference
B.1.1.36.5. getBranches()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
B.1.1.36.6. getBranchRoot()
public de.verit.klaros.core.model.KlarosTestCase getBranchRoot();
B.1.1.36.7. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
B.1.1.36.8. getCovers()
public java.util.Set<de.verit.klaros.core.model.KlarosTestRequirement> getCovers();
B.1.1.36.9. getCreated()
public java.util.Date getCreated();
B.1.1.36.10. getCreatedString(Locale)
public java.lang.String getCreatedString(java.util.Locale locale);
B.1.1.36.11. getCreator()
public de.verit.klaros.core.model.KlarosUser getCreator();
B.1.1.36.12. getDependency()
public java.lang.String getDependency();
B.1.1.36.13. getDescription()
public java.lang.String getDescription();
B.1.1.36.14. getDesignTechnique()
public de.verit.klaros.core.types.TestDesignTechnique getDesignTechnique();
173
Model API Reference
B.1.1.36.15. getDetectedIssues()
public java.util.List<de.verit.klaros.core.model.KlarosIssue> getDetectedIssues();
B.1.1.36.16. getDocbase()
public java.lang.String getDocbase();
B.1.1.36.17. getEvaluation()
public java.lang.String getEvaluation();
B.1.1.36.18. getExecution()
public de.verit.klaros.core.types.TestExecutionMethod getExecution();
B.1.1.36.19. getImplementation()
public de.verit.klaros.core.model.KlarosExternalImplementation getImplementation();
Get implementation.
B.1.1.36.20. getLevel()
public de.verit.klaros.core.types.TestLevel getLevel();
B.1.1.36.21. getNote()
public java.lang.String getNote();
B.1.1.36.22. getPostcondition()
public java.lang.String getPostcondition();
174
Model API Reference
B.1.1.36.23. getPrecondition()
public java.lang.String getPrecondition();
B.1.1.36.24. getPredecessor()
public de.verit.klaros.core.model.KlarosTestCase getPredecessor();
B.1.1.36.25. getPriority()
public de.verit.klaros.core.types.TestPriority getPriority();
B.1.1.36.26. getResults()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
B.1.1.36.27. getRoot()
public de.verit.klaros.core.model.KlarosTestCase getRoot();
B.1.1.36.28. getShortname()
public java.lang.String getShortname();
B.1.1.36.29. getState()
public java.lang.String getState();
B.1.1.36.30. getStateName(KlarosSUTImplementation)
public java.lang.String getStateName(de.verit.klaros.core.model.KlarosSUTImplementation sut);
B.1.1.36.31. getStates()
public java.util.Map<de.verit.klaros.core.model.KlarosSUTImplementation, de.verit.klaros.core.model.KlarosTestCaseState> getStates();
B.1.1.36.32. getSuccessor()
public de.verit.klaros.core.model.KlarosTestCase getSuccessor();
175
Model API Reference
B.1.1.36.33. getTeam()
public java.lang.String getTeam();
B.1.1.36.34. getTestCaseSteps()
public java.util.List<de.verit.klaros.core.model.KlarosTestCaseStep> getTestCaseSteps();
B.1.1.36.35. getTraceability()
public java.lang.String getTraceability();
B.1.1.36.36. getTrunkRoot()
public de.verit.klaros.core.model.KlarosTestCase getTrunkRoot();
B.1.1.36.37. getVariety()
public de.verit.klaros.core.types.TestVariety getVariety();
B.1.1.36.38. hashCode()
public int hashCode();
B.1.1.37. Class KlarosTestCaseResult
This class provides access to the information stored for test case results.
B.1.1.37.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestCaseResult
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosTestCaseResult, de.verit.klaros.core.persistent
implements, de.verit.klaros.core.model.IKlarosTestCaseResult, java.lang.Comparable<de.verit.klaros.core.model.KlarosTestCaseResult> {
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosTestCaseResult o);
public boolean equals(java.lang.Object o);
public java.lang.String getDescription();
public long getExecutionTime();
public java.lang.String getSummary();
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
public int hashCode();
public boolean isError();
public boolean isFailure();
176
Model API Reference
public boolean isPassed();
B.1.1.37.2. compareTo(KlarosTestCaseResult)
public int compareTo(de.verit.klaros.core.model.KlarosTestCaseResult o);
B.1.1.37.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.37.4. getDescription()
public java.lang.String getDescription();
Get the test result description. This is usually set for failed/error status results.
B.1.1.37.5. getExecutionTime()
public long getExecutionTime();
B.1.1.37.6. getSummary()
public java.lang.String getSummary();
Get the test result summary. This is usually set for failed/error status results.
B.1.1.37.7. getTestCase()
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
177
Model API Reference
B.1.1.37.8. getTestRun()
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
B.1.1.37.9. hashCode()
public int hashCode();
B.1.1.37.10. isError()
public boolean isError();
It is assumed, that error results have a property 'type' with the value 'E' or 'error'.
B.1.1.37.11. isFailure()
public boolean isFailure();
It is assumed, that failure results have a property 'type' with the value 'F' or 'failure'.
B.1.1.37.12. isPassed()
public boolean isPassed();
It is assumed, that passed results have a property 'testCasePassed' with value 'true'.
B.1.1.38. Class KlarosTestCaseState
This class provides access to the information stored for test case states.
B.1.1.38.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestCaseState
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosTestCaseState, de.verit.klaros.core.persistent.Test
implements, de.verit.klaros.core.model.IKlarosTestCaseState {
// Public Methods
public java.lang.String getStateDescription();
public java.lang.String getStateName();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
178
Model API Reference
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
B.1.1.38.2. getStateDescription()
public java.lang.String getStateDescription();
B.1.1.38.3. getStateName()
public java.lang.String getStateName();
B.1.1.38.4. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
B.1.1.38.5. getTestCase()
public de.verit.klaros.core.model.KlarosTestCase getTestCase();
179
Model API Reference
B.1.1.39. Class KlarosTestCaseStep
This class provides access to the information stored for detected issues.
B.1.1.39.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestCaseStep
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosTestCaseStep, de.verit.klaros.core.persistent.TestC
implements, de.verit.klaros.core.model.IKlarosTestCaseStep {
// Public Methods
public java.lang.String getAction();
public java.util.List<de.verit.klaros.core.model.KlarosAttachment> getAttachments();
public java.lang.String getPostcondition();
public java.lang.String getPrecondition();
B.1.1.39.2. getAction()
public java.lang.String getAction();
B.1.1.39.3. getAttachments()
public java.util.List<de.verit.klaros.core.model.KlarosAttachment> getAttachments();
B.1.1.39.4. getPostcondition()
public java.lang.String getPostcondition();
180
Model API Reference
B.1.1.39.5. getPrecondition()
public java.lang.String getPrecondition();
B.1.1.40. Class KlarosTestEnvironment
This class provides access to the information stored for test environments.
B.1.1.40.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestEnvironment
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosTestEnvironment, de.verit.klaros.core.persisten
implements, de.verit.klaros.core.model.IKlarosTestEnvironment, java.lang.Comparable<de.verit.klaros.core.model.KlarosTestEnvironment>
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosTestEnvironment o);
public boolean equals(java.lang.Object o);
public java.lang.String getCreator();
public java.lang.String getShortname();
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
public int hashCode();
public java.lang.Boolean isEnabled();
B.1.1.40.2. compareTo(KlarosTestEnvironment)
public int compareTo(de.verit.klaros.core.model.KlarosTestEnvironment o);
B.1.1.40.3. equals(Object)
public boolean equals(java.lang.Object o);
181
Model API Reference
B.1.1.40.4. getCreator()
public java.lang.String getCreator();
B.1.1.40.5. getShortname()
public java.lang.String getShortname();
B.1.1.40.6. getTestRuns()
public java.util.Set<de.verit.klaros.core.persistent.TestRun> getTestRuns();
B.1.1.40.7. hashCode()
public int hashCode();
B.1.1.40.8. isEnabled()
public java.lang.Boolean isEnabled();
Check if enabled.
B.1.1.41. Class KlarosTestExecutable
This class provides access to the information stored for test cases.
B.1.1.41.1. Synopsis
public class de.verit.klaros.core.model.KlarosTestExecutable
extends, de.verit.klaros.core.model.KlarosWrapper<de.verit.klaros.core.model.KlarosTestExecutable, de.verit.klaros.core.persistent.Tes
implements, de.verit.klaros.core.model.IKlarosTestExecutable {
}
182
Model API Reference
B.1.1.42. Class KlarosTestRequirement
This class provides access to the information stored for test requirements.
B.1.1.42.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestRequirement
extends, de.verit.klaros.core.model.KlarosRevision<de.verit.klaros.core.model.KlarosTestRequirement, de.verit.klaros.core.persistent.T
implements, de.verit.klaros.core.model.IKlarosTestRequirement {
// Public Methods
public de.verit.klaros.core.model.KlarosTestRequirement getBranchRoot();
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringHeadTestCases();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringTestCases();
public de.verit.klaros.core.model.KlarosRequirementGroup getGroup();
public de.verit.klaros.core.model.KlarosTestRequirement getPredecessor();
public de.verit.klaros.core.model.KlarosTestRequirement getRoot();
public de.verit.klaros.core.model.KlarosTestRequirement getSuccessor();
public de.verit.klaros.core.model.KlarosTestRequirement getTrunkRoot();
183
Model API Reference
B.1.1.42.2. getBranches()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
B.1.1.42.3. getBranchRoot()
public de.verit.klaros.core.model.KlarosTestRequirement getBranchRoot();
B.1.1.42.4. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
B.1.1.42.5. getCoveringHeadTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringHeadTestCases();
B.1.1.42.6. getCoveringTestCases()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCase> getCoveringTestCases();
B.1.1.42.7. getGroup()
public de.verit.klaros.core.model.KlarosRequirementGroup getGroup();
B.1.1.42.8. getPredecessor()
public de.verit.klaros.core.model.KlarosTestRequirement getPredecessor();
B.1.1.42.9. getRoot()
public de.verit.klaros.core.model.KlarosTestRequirement getRoot();
B.1.1.42.10. getSuccessor()
public de.verit.klaros.core.model.KlarosTestRequirement getSuccessor();
B.1.1.42.11. getTrunkRoot()
public de.verit.klaros.core.model.KlarosTestRequirement getTrunkRoot();
B.1.1.43. Class KlarosTestRun
This class provides access to the information stored for test runs.
B.1.1.43.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestRun
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosTestRun, de.verit.klaros.core.persistent.TestRu
implements, de.verit.klaros.core.model.IKlarosTestRun, java.lang.Comparable<de.verit.klaros.core.model.KlarosTestRun> {
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosTestRun o);
public boolean equals(java.lang.Object o);
184
Model API Reference
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.lang.String getCreator();
public de.verit.klaros.core.model.KlarosTestEnvironment getEnv();
public int getNumberErrors();
public int getNumberFailures();
public int getNumberPassed();
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
public java.lang.String getRunId();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
public java.util.Date getTimestamp();
public java.lang.String getTimestampString(java.util.Locale locale);
public int hashCode();
B.1.1.43.2. compareTo(KlarosTestRun)
public int compareTo(de.verit.klaros.core.model.KlarosTestRun o);
B.1.1.43.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.43.4. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
185
Model API Reference
B.1.1.43.5. getCreator()
public java.lang.String getCreator();
B.1.1.43.6. getEnv()
public de.verit.klaros.core.model.KlarosTestEnvironment getEnv();
B.1.1.43.7. getNumberErrors()
public int getNumberErrors();
Get number of test cases with errors of this test run. It is assumed, that error results have a property
'type' with the value 'E'.
B.1.1.43.8. getNumberFailures()
public int getNumberFailures();
Get number of failed test cases of this test run. It is assumed, that failed results have a property 'type'
with the value 'F'.
B.1.1.43.9. getNumberPassed()
public int getNumberPassed();
Get number of passed test cases of this test run. It is assumed, that passed results have a property 'test-
CasePassed' with value 'true'.
B.1.1.43.10. getResults()
public java.util.Set<de.verit.klaros.core.model.KlarosTestCaseResult> getResults();
Get results.
B.1.1.43.11. getRunId()
public java.lang.String getRunId();
186
Model API Reference
B.1.1.43.12. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
B.1.1.43.13. getTimestamp()
public java.util.Date getTimestamp();
Get timestamp.
B.1.1.43.14. getTimestampString(Locale)
public java.lang.String getTimestampString(java.util.Locale locale);
B.1.1.43.15. hashCode()
public int hashCode();
B.1.1.44. Class KlarosTestSuite
This class provides access to the information stored for test suites.
B.1.1.44.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestSuite
extends, de.verit.klaros.core.model.KlarosRevision<de.verit.klaros.core.model.KlarosTestSuite, de.verit.klaros.core.persistent.TestSui
implements, de.verit.klaros.core.model.IKlarosTestSuite {
// Public Methods
public de.verit.klaros.core.model.KlarosUser getAssignee();
public de.verit.klaros.core.model.KlarosTestSuite getBranchRoot();
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
public java.util.Date getCreated();
public de.verit.klaros.core.model.KlarosUser getCreator();
public de.verit.klaros.core.model.KlarosUser getLastEditor();
public java.util.Date getLastUpdated();
public java.lang.String getName();
public de.verit.klaros.core.model.KlarosTestSuite getPredecessor();
187
Model API Reference
public java.util.List<de.verit.klaros.core.model.KlarosTestSuiteResult> getResults();
public de.verit.klaros.core.model.KlarosTestSuite getRoot();
public java.lang.String getShortname();
public de.verit.klaros.core.model.KlarosTestSuite getSuccessor();
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
public java.lang.Integer getTestSuiteResultCount();
public de.verit.klaros.core.model.KlarosTestSuite getTrunkRoot();
public java.lang.Boolean isEnabled();
B.1.1.44.2. getAssignee()
public de.verit.klaros.core.model.KlarosUser getAssignee();
B.1.1.44.3. getBranches()
public java.util.Set<de.verit.klaros.core.model.KlarosRevision<?, ?>> getBranches();
188
Model API Reference
B.1.1.44.4. getBranchRoot()
public de.verit.klaros.core.model.KlarosTestSuite getBranchRoot();
B.1.1.44.5. getConfiguration()
public de.verit.klaros.core.model.KlarosConfiguration getConfiguration();
Get configuration.
B.1.1.44.6. getCreated()
public java.util.Date getCreated();
B.1.1.44.7. getCreator()
public de.verit.klaros.core.model.KlarosUser getCreator();
B.1.1.44.8. getLastEditor()
public de.verit.klaros.core.model.KlarosUser getLastEditor();
B.1.1.44.9. getLastUpdated()
public java.util.Date getLastUpdated();
B.1.1.44.10. getName()
public java.lang.String getName();
B.1.1.44.11. getPredecessor()
public de.verit.klaros.core.model.KlarosTestSuite getPredecessor();
B.1.1.44.12. getResults()
public java.util.List<de.verit.klaros.core.model.KlarosTestSuiteResult> getResults();
B.1.1.44.13. getRoot()
public de.verit.klaros.core.model.KlarosTestSuite getRoot();
B.1.1.44.14. getShortname()
public java.lang.String getShortname();
189
Model API Reference
B.1.1.44.15. getSuccessor()
public de.verit.klaros.core.model.KlarosTestSuite getSuccessor();
B.1.1.44.16. getSut()
public de.verit.klaros.core.model.KlarosSUTImplementation getSut();
B.1.1.44.17. getTestCases()
public java.util.List<de.verit.klaros.core.model.KlarosTestCase> getTestCases();
B.1.1.44.18. getTestSuiteResultCount()
public java.lang.Integer getTestSuiteResultCount();
B.1.1.44.19. getTrunkRoot()
public de.verit.klaros.core.model.KlarosTestSuite getTrunkRoot();
B.1.1.44.20. isEnabled()
public java.lang.Boolean isEnabled();
B.1.1.45. Class KlarosTestSuiteResult
This class provides access to the information stored for test series results.
B.1.1.45.1. Synopsis
public final class de.verit.klaros.core.model.KlarosTestSuiteResult
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosTestSuiteResult, de.verit.klaros.core.persisten
implements, de.verit.klaros.core.model.IKlarosTestSuiteResult, java.lang.Comparable<de.verit.klaros.core.model.KlarosTestSuiteResult>
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosTestSuiteResult o);
public boolean equals(java.lang.Object o);
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
public de.verit.klaros.core.model.KlarosTestSuite getTestSuite();
public int hashCode();
190
Model API Reference
B.1.1.45.2. compareTo(KlarosTestSuiteResult)
public int compareTo(de.verit.klaros.core.model.KlarosTestSuiteResult o);
B.1.1.45.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.45.4. getTestRun()
public de.verit.klaros.core.model.KlarosTestRun getTestRun();
B.1.1.45.5. getTestSuite()
public de.verit.klaros.core.model.KlarosTestSuite getTestSuite();
B.1.1.45.6. hashCode()
public int hashCode();
B.1.1.46. Class KlarosUser
The user object.
B.1.1.46.1. Synopsis
public class de.verit.klaros.core.model.KlarosUser
extends, de.verit.klaros.core.model.KlarosNamedEntity<de.verit.klaros.core.model.KlarosUser, de.verit.klaros.core.persistent.User>
implements, de.verit.klaros.core.model.IKlarosUser, java.lang.Comparable<de.verit.klaros.core.model.KlarosUser> {
// Public Methods
public int compareTo(de.verit.klaros.core.model.KlarosUser o);
public boolean equals(java.lang.Object o);
public java.lang.String getEmail();
public java.lang.String getRole();
public java.lang.String getUsername();
public int hashCode();
191
Model API Reference
B.1.1.46.2. compareTo(KlarosUser)
public int compareTo(de.verit.klaros.core.model.KlarosUser o);
B.1.1.46.3. equals(Object)
public boolean equals(java.lang.Object o);
B.1.1.46.4. getEmail()
public java.lang.String getEmail();
B.1.1.46.5. getRole()
public java.lang.String getRole();
B.1.1.46.6. getUsername()
public java.lang.String getUsername();
B.1.1.46.7. hashCode()
public int hashCode();
192
Model API Reference
B.2.1.1.1. Synopsis
public class de.verit.klaros.scripting.KlarosContext
implements, de.verit.klaros.scripting.context.IKlarosContext {
// Public Constructors
public KlarosContext(org.jboss.seam.contexts.Context context,
de.verit.klaros.core.persistent.Configuration activeProject,
de.verit.klaros.scripting.KlarosQueryFactory factory,
de.verit.klaros.scripting.model.ParameterContext parameters);
public KlarosContext(org.jboss.seam.contexts.Context context,
de.verit.klaros.core.persistent.Configuration activeProject,
de.verit.klaros.scripting.KlarosQueryFactory factory,
de.verit.klaros.scripting.model.ParameterContext parameters,
java.util.Locale locale);
// Public Methods
public void add(java.lang.String name,
java.lang.Object value);
public void addParameter(java.lang.String name,
java.lang.Object value,
de.verit.klaros.scripting.model.ParameterType type);
public java.util.List<?> executeParameterizedQuery(java.lang.String query)
throws OdaException, HibernateException;
public java.util.List<?> executeQuery(java.lang.String query)
throws OdaException, HibernateException;
public de.verit.klaros.core.model.KlarosConfiguration getActiveProject();
public java.util.Locale getLocale();
public de.verit.klaros.contentrepository.parameter.Parameter getParameter(java.lang.String name);
public java.lang.Object getParameterValue(java.lang.String name);
public void setLocale(java.util.Locale locale);
193
Model API Reference
Create a KlarosContext.
Parameters
context Gets passed by the relating servlet.
activeProject The active project if available.
Create a KlarosContext.
Parameters
context Gets passed by the relating servlet.
activeProject The active project if available.
B.2.1.1.4. add(String, Object)
public void add(java.lang.String name,
java.lang.Object value);
Add a new object with the give key to the event context.
B.2.1.1.6. executeParameterizedQuery(String)
public java.util.List<?> executeParameterizedQuery(java.lang.String query)
throws OdaException, HibernateException;
Execute the given query with the Parameters from the ParameterContext.
B.2.1.1.7. executeQuery(String)
public java.util.List<?> executeQuery(java.lang.String query)
throws OdaException, HibernateException;
194
Model API Reference
B.2.1.1.8. getActiveProject()
public de.verit.klaros.core.model.KlarosConfiguration getActiveProject();
B.2.1.1.9. getLocale()
public java.util.Locale getLocale();
B.2.1.1.10. getParameter(String)
public de.verit.klaros.contentrepository.parameter.Parameter getParameter(java.lang.String name);
B.2.1.1.11. getParameterValue(String)
public java.lang.Object getParameterValue(java.lang.String name);
B.2.1.1.12. setLocale(Locale)
public void setLocale(java.util.Locale locale);
B.2.1.2. Class KlarosQueryFactory
This factory lets the user execute queries.
B.2.1.2.1. Synopsis
public class de.verit.klaros.scripting.KlarosQueryFactory {
// Public Constructors
public KlarosQueryFactory(org.hibernate.Session session);
// Public Methods
public java.util.List<?> execute(java.lang.String query)
throws OdaException, HibernateException;
public java.util.List<?> execute(java.lang.String query,
de.verit.klaros.scripting.model.ParameterContext params)
throws OdaException, HibernateException;
195
Model API Reference
B.2.1.2.2. KlarosQueryFactory(Session)
public KlarosQueryFactory(org.hibernate.Session session);
Create a KlarosQueryFactory.
Parameters
session Passed by the relating servlet.
B.2.1.2.3. execute(String)
public java.util.List<?> execute(java.lang.String query)
throws OdaException, HibernateException;
Prepares the given query string with our KlarosOdaQuery and returns a KlarosList with the results of the
query.
B.2.1.2.4. execute(String, ParameterContext)
public java.util.List<?> execute(java.lang.String query,
de.verit.klaros.scripting.model.ParameterContext params)
throws OdaException, HibernateException;
Prepares the given query string with our KlarosOdaQuery and returns a KlarosList with the results of the
query.
B.2.1.3. Interface KlarosScript
Public interface that all seam-pdf template scripts must implement be work properly.
B.2.1.3.1. Synopsis
public interface de.verit.klaros.scripting.KlarosScript {
// Public Methods
public void execute(de.verit.klaros.scripting.KlarosContext context);
B.2.1.3.2. execute(KlarosContext)
public void execute(de.verit.klaros.scripting.KlarosContext context);
This functions gets called by the seam-pdf servlet to execute the script.
Parameters
context The event context to provide all needed functions, properties and objects.
B.2.2. Package de.verit.klaros.scripting.context
B.2.2.1. Interface IKlarosContext
public interface de.verit.klaros.scripting.context.IKlarosContext {
// Public Methods
public void add(java.lang.String name,
java.lang.Object value);
196
Model API Reference
public void addParameter(java.lang.String name,
java.lang.Object value,
de.verit.klaros.scripting.model.ParameterType type);
public java.util.List<?> executeParameterizedQuery(java.lang.String query)
throws OdaException, HibernateException;
public java.util.List<?> executeQuery(java.lang.String query)
throws OdaException, HibernateException;
public de.verit.klaros.core.model.KlarosConfiguration getActiveProject();
public java.util.Locale getLocale();
public de.verit.klaros.contentrepository.parameter.Parameter getParameter(java.lang.String name);
public java.lang.Object getParameterValue(java.lang.String name);
public void setLocale(java.util.Locale locale);
B.2.2.1.1. add(String, Object)
public void add(java.lang.String name,
java.lang.Object value);
Add a new object with the give key to the event context.
Parameters
name The name of the parameter.
value The value of the parameter.
type The type of the parameter. E.g.: String, Integer or Date
B.2.2.1.3. executeParameterizedQuery(String)
public java.util.List<?> executeParameterizedQuery(java.lang.String query)
throws OdaException, HibernateException;
Execute the given query with the Parameters from the ParameterContext.
Parameters
query The HQL query to execute.
return A KlarosList of the selected objects.
B.2.2.1.4. executeQuery(String)
public java.util.List<?> executeQuery(java.lang.String query)
throws OdaException, HibernateException;
197
Model API Reference
Parameters
query The HQL query to execute.
return A KlarosList of the selected objects.
B.2.2.1.5. getActiveProject()
public de.verit.klaros.core.model.KlarosConfiguration getActiveProject();
Parameters
return Returns the activeProject.
B.2.2.1.6. getLocale()
public java.util.Locale getLocale();
Parameters
return Returns the locale.
B.2.2.1.7. getParameter(String)
public de.verit.klaros.contentrepository.parameter.Parameter getParameter(java.lang.String name);
Parameters
return The parameter with the given name or null.
B.2.2.1.8. getParameterValue(String)
public java.lang.Object getParameterValue(java.lang.String name);
Parameters
return The value of the parameter with the given name or null.
B.2.2.1.9. setLocale(Locale)
public void setLocale(java.util.Locale locale);
Parameters
locale The locale to set.
B.2.3. Package de.verit.klaros.scripting.model
B.2.3.1. Class ParameterContext
The context for script parameters.
B.2.3.1.1. Synopsis
public class de.verit.klaros.scripting.model.ParameterContext {
// Public Constructors
public ParameterContext();
public ParameterContext(java.util.List<de.verit.klaros.contentrepository.parameter.Parameter> parameters);
public ParameterContext(java.util.Map<java.lang.String, de.verit.klaros.contentrepository.parameter.Parameter> parameters);
// Public Methods
198
Model API Reference
public java.util.Map<java.lang.String, de.verit.klaros.contentrepository.parameter.Parameter> getParameters();
B.2.3.1.2. ParameterContext()
public ParameterContext();
Create a ParameterContext.
B.2.3.1.3. ParameterContext(List<Parameter>)
public ParameterContext(java.util.List<de.verit.klaros.contentrepository.parameter.Parameter> parameters);
Create a ParameterContext.
B.2.3.1.4. ParameterContext(Map<String, Parameter>)
public ParameterContext(java.util.Map<java.lang.String, de.verit.klaros.contentrepository.parameter.Parameter> parameters);
Create a ParameterContext.
B.2.3.1.5. getParameters()
public java.util.Map<java.lang.String, de.verit.klaros.contentrepository.parameter.Parameter> getParameters();
Parameters
return Returns the map parameters.
B.2.3.2. Class ParameterType
The supported types of parameters.
B.2.3.2.1. Synopsis
public final class de.verit.klaros.scripting.model.ParameterType
extends, java.lang.Enum<de.verit.klaros.scripting.model.ParameterType> {
// Public Static Fields// Public Static Methods
public static de.verit.klaros.scripting.model.ParameterType valueOf(java.lang.String name);
public static de.verit.klaros.scripting.model.ParameterType[] values();
199
Model API Reference
200
Appendix C. Dump File Specification
The following table gives a short overview of the available elements:
Name Description
<action> The action to be taken in a test case step.
<areatopic> The area of this test case.
<classInitialStates> This element contains the initial class state definitions.
<classStates> The condition of the classStates.
<configuration> A project configuration.
<configurationList> The container element for project configurations.
<configurationRefer- A reference to a configuration.
ence>
<created> The creation date of this object.
<currentTestCase> The current test case being executed.
<cut> The cut of this test case.
<depends> The dependency of this test case.
<description> The description.
<docbase> The docbase of this test case.
<enabled> Enabled or disabled state of this object.
<entry> An initial class state entry.
<env> The test environment reference.
<envs> The environment section contains a test environment definition.
<equiclass> The equivalence class of this test case.
<evalutation> The evalutation of this test case.
<executables> A wrapper for a list of test executables (either test cases or test series).
<execution> The execution type of this test case.
<executionTime> The execution time in ms.
<expectedResult> The expected result.
<generalState> The general state.
<inputvalues> The input values of this test case.
<key> The initial class state entry key contains the name of the affected class.
<lastUpdated> The date of last update.
<level> The level of this test case.
<mandatory> Indicates that the property is mandatory.
<mappedToClass> Associated classes.
<message> The message of this test case.
<method> The method of this test case.
<name> The name of this element.
<namedEntity> The related named entity.
<note> The note of this test case.
<postcondition> The postcondition / expected result.
<precondition> The precondition.
201
Dump File Specification
Name Description
<predecessor> The predecessor of this version.
<priority> The priority of this test case.
<productversion> The version string of the SUT.
<propertiesOwner> Container for generic properties.
<propertyDefRefer- A reference to a property definition.
ence>
<propertyDefs> The property Definitions.
<propertyDisplay- The displayable name of a property.
Name>
<propertyName> The name of a property.
<propertyOwnerRef- A reference to a property owner.
erence>
<propertyType> The type of a property.
<propertyValue> The value of a property.
<relatedClass> The related class of this class state.
<resultReference> The related result identifiers.
<revisionComment> The comment added while creating this revision.
<revisionId> The revision id.
<root> The root revision of this object.
<runId> The test run id.
<running> Indicates that execution has not yet finished.
<shortname> The short name / code of this object.
<sortorder> The sort order of this property when displayed.
<stringProperties> Container for string properties.
<successor> The successor of this version.
<summary> The overview.
<sut> A reference to a system under test.
<suts> A SUT (System Under Test) represents a particular version of the product that
is tested.
<team> The team this test case is assigned to.
<testCasePassed> True, if this test case has passed, false otherwise.
<testCaseReference> A reference to a test case.
<testCaseResults> After a test case has been executed, it has a result.
<testCases> The test case is the basic unit of a test process.
<testCaseStep> A test case step.
<testCaseStepFrag- A reference to a test case step fragment.
ments>
<testMethod> The test method of this test case.
<testResultRefer- A reference to a test series result.
ence>
<testRunReference> A reference to a test run.
<testRuns> The test runs.
202
Dump File Specification
Name Description
<testSuitePassed> Indicates the successful completion of the series.
<testSuiteReference> A reference to a test series.
<testSuiteResult> The result of the test series.
<testSuiteResultRefer- A reference to a test series result.
ence>
<testSuites> The respective testSuite.
<timestamp> The time stamp where this completed.
<traceability> The traceability of this test case.
<trunkRoot> The trunk root revision of this object.
<type> The result type (P=passed, E=error, F=failed, S=skipped).
<userDefined> User defined.
<uuid> The uuid identifies a persistent object.
<value> The initial class state entry value describes the inital state value.
<variety> The variety of this test case.
203
Dump File Specification
C.1. <configurationList>
The container element for project configurations.
Table C.2. <configurationList> elements
C.2. <configuration>
A project configuration.
This element may occur inside the following elements: <configurationList> , <value> , <classStates> ,
<envs> , <suts> , <testCases> , <testRuns> , <testSuites> , <testCaseResults> , <testSuiteResult> .
Table C.3. <configuration> attributes
Table C.4. <configuration> elements
C.3. <classInitialStates>
This element contains the initial class state definitions.
C.4. <value>
The initial class state entry value describes the inital state value.
204
Dump File Specification
This element may occur inside the following elements: <entry> , <stringProperties> .
Table C.5. <value> attributes
Table C.6. <value> elements
C.5. <entry>
An initial class state entry.
Table C.7. <entry> elements
C.6. <classStates>
The condition of the classStates.
Table C.8. <classStates> attributes
Table C.9. <classStates> elements
C.7. <envs>
The environment section contains a test environment definition.
Table C.10. <envs> attributes
205
Dump File Specification
Table C.11. <envs> elements
C.8. <propertyDefs>
The property Definitions.
Table C.12. <propertyDefs> attributes
Table C.13. <propertyDefs> elements
C.9. <suts>
A SUT (System Under Test) represents a particular version of the product that is tested.
Table C.14. <suts> attributes
206
Dump File Specification
Table C.15. <suts> elements
C.10. <testCases>
The test case is the basic unit of a test process. A test case can be related to many environments and
SUTs (System Under Test) thus it is possible to execute the same test cases and get different results.
Table C.16. <testCases> attributes
207
Dump File Specification
Table C.17. <testCases> elements
C.11. <testRuns>
The test runs.
Table C.18. <testRuns> attributes
Table C.19. <testRuns> elements
C.12. <testSuites>
The respective testSuite.
Table C.20. <testSuites> attributes
208
Dump File Specification
Table C.21. <testSuites> elements
C.13. <executables>
A wrapper for a list of test executables (either test cases or test series).
Table C.22. <executables> attributes
Table C.23. <executables> elements
C.14. <testCaseStepFragments>
A reference to a test case step fragment.
Table C.24. <testCaseStepFragments> elements
209
Dump File Specification
C.15. <testCaseStep>
A test case step.
Table C.25. <testCaseStep> attributes
Table C.26. <testCaseStep> elements
C.16. <testCaseResults>
After a test case has been executed, it has a result. This result can be Passed, Failed, Error or Skipped.
Klaros- Testmanagement enriches this information with the combination of system under test and en-
vironment for which the test has been run and many other information that can be gathered from the
execution, like time of execution of the test.
Table C.27. <testCaseResults> attributes
Table C.28. <testCaseResults> elements
210
Dump File Specification
C.17. <testSuiteResult>
The result of the test series.
Table C.29. <testSuiteResult> attributes
Table C.30. <testSuiteResult> elements
C.18. <propertiesOwner>
Container for generic properties.
This element may occur inside the following elements: <envs> , <suts> , <testCases> , <testRuns> ,
<testSuites> , <testCaseResults> , <testSuiteResult> .
Table C.31. <propertiesOwner> attributes
Table C.32. <propertiesOwner> elements
C.19. <stringProperties>
Container for string properties.
211
Dump File Specification
Table C.33. <stringProperties> attributes
Table C.34. <stringProperties> elements
C.20. <relatedClass>
The related class of this class state.
This element may occur inside the following elements: <value> , <classStates> .
C.21. <namedEntity>
The related named entity.
C.22. <resultReference>
The related result identifiers.
C.23. <key>
The initial class state entry key contains the name of the affected class.
C.24. <created>
The creation date of this object.
This element may occur inside the following elements: <envs> , <suts> , <testCases> , <testRuns> ,
<testSuites> , <testCaseResults> , <testSuiteResult> .
C.25. <enabled>
Enabled or disabled state of this object.
This element may occur inside the following elements: <configuration> , <envs> , <suts> , <testCases>
, <testRuns> , <testSuites> , <testCaseResults> , <testSuiteResult> .
C.26. <lastUpdated>
The date of last update.
212
Dump File Specification
This element may occur inside the following elements: <envs> , <suts> , <testCases> , <testRuns> ,
<testSuites> , <testCaseResults> , <testSuiteResult> .
C.27. <description>
The description.
This element may occur inside the following elements: <configuration> , <testCases> , <testCaseRe-
sults> .
C.28. <mappedToClass>
Associated classes.
C.29. <userDefined>
User defined.
C.30. <mandatory>
Indicates that the property is mandatory.
C.31. <productversion>
The version string of the SUT.
C.32. <revisionId>
The revision id.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.33. <root>
The root revision of this object.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.34. <trunkRoot>
The trunk root revision of this object.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.35. <areatopic>
The area of this test case.
213
Dump File Specification
C.36. <cut>
The cut of this test case.
C.37. <depends>
The dependency of this test case.
C.38. <docbase>
The docbase of this test case.
C.39. <equiclass>
The equivalence class of this test case.
C.40. <evalutation>
The evalutation of this test case.
C.41. <execution>
The execution type of this test case.
C.42. <expectedResult>
The expected result.
C.43. <generalState>
The general state.
C.44. <inputvalues>
The input values of this test case.
C.45. <level>
The level of this test case.
214
Dump File Specification
C.46. <message>
The message of this test case..
C.47. <method>
The method of this test case..
C.48. <note>
The note of this test case..
C.49. <postcondition>
The postcondition / expected result.
This element may occur inside the following elements: <testCases> , <testCaseStep> .
C.50. <precondition>
The precondition.
This element may occur inside the following elements: <testCases> , <testCaseStep> .
C.51. <predecessor>
The predecessor of this version.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.52. <priority>
The priority of this test case.
C.53. <shortname>
The short name / code of this object.
This element may occur inside the following elements: <envs> , <testCases> , <testSuites> .
C.54. <successor>
The successor of this version.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.55. <team>
The team this test case is assigned to.
215
Dump File Specification
C.56. <traceability>
The traceability of this test case.
C.57. <variety>
The variety of this test case.
C.58. <testMethod>
The test method of this test case.
C.59. <env>
The test environment reference.
C.60. <runId>
The test run id.
C.61. <sut>
A reference to a system under test.
This element may occur inside the following elements: <testRuns> , <testSuites> .
C.62. <timestamp>
The time stamp where this completed.
C.63. <revisionComment>
The comment added while creating this revision.
This element may occur inside the following elements: <testCases> , <testSuites> .
C.64. <summary>
The overview.
C.65. <type>
The result type (P=passed, E=error, F=failed, S=skipped).
216
Dump File Specification
This element may occur inside the following elements: <testCaseResults> , <testSuiteResult> .
C.66. <running>
Indicates that execution has not yet finished.
C.67. <testSuitePassed>
Indicates the successful completion of the series.
C.68. <currentTestCase>
The current test case being executed.
C.69. <executionTime>
The execution time in ms.
This element may occur inside the following elements: <testCaseResults> , <testSuiteResult> .
C.70. <action>
The action to be taken in a test case step.
C.71. <propertyType>
The type of a property.
C.72. <propertyOwnerReference>
A reference to a property owner.
C.73. <propertyDefReference>
A reference to a property definition.
C.74. <testCasePassed>
True, if this test case has passed, false otherwise.
C.75. <propertyName>
The name of a property.
217
Dump File Specification
C.76. <propertyValue>
The value of a property.
C.77. <propertyDisplayName>
The displayable name of a property.
C.78. <sortorder>
The sort order of this property when displayed.
This element may occur inside the following elements: <propertyDefs> , <stringProperties> .
C.79. <configurationReference>
A reference to a configuration.
C.80. <testCaseReference>
A reference to a test case.
C.81. <testRunReference>
A reference to a test run.
C.82. <testResultReference>
A reference to a test series result.
C.83. <testSuiteReference>
A reference to a test series.
C.84. <testSuiteResultReference>
A reference to a test series result.
C.85. <name>
The name of this element.
This element may occur inside the following elements: <configuration> , <value> , <classStates> , <en-
vs> , <suts> , <testCases> , <testRuns> , <testSuites> , <testCaseResults> , <testSuiteResult> , <string-
Properties> .
C.86. <uuid>
The uuid identifies a persistent object.
218
Appendix D. Reporting Resources
D.1. Context Variables
Name Description
date The current date.
locale The current locale set in the web frontend.
activeProject The currently selected KlarosProject. If no project is selected this vari-
able contains the null object.
user A KlarosUser object representing the active user.
Table D.1. Context Variables
<p:text value="#{date}" />
Note
#{user.name} and #{user.username} contain different values. The first provides the user's
real name, while the latter provides the name the user is logged in with.
D.2. KlarosScript Interface
package de.verit.klaros.scripting;
/**
* Public interface that all seam-pdf template scripts must implement be work
* properly.
*/
public interface KlarosScript {
/**
* This functions gets called by the seam-pdf servlet to execute the script.
*
* @param context
* The event context to provide all needed functions, properties
* and objects.
*/
void execute(KlarosContext context);
}
219
Reporting Resources
<p:paragraph alignment="center" spacingAfter="5">
<p:text value="#{user.name} (#{user.email})"/>
</p:paragraph>
</p:font>
<p:font style="normal" size="12">
<p:paragraph alignment="center" spacingAfter="5">
<p:text value="at" />
</p:paragraph>
</p:font>
<p:font style="bold" size="16">
<p:paragraph alignment="center" spacingAfter="75">
<p:text value="#{date}" />
</p:paragraph>
</p:font>
<p:newPage/>
<ui:fragment rendered="#{results != null}">
<p:font style="normal" size="12">
<p:paragraph alignment="left" spacingAfter="10">
<p:text value="The testresults for " />
</p:paragraph>
</p:font>
</ui:fragment>
<!-- Testresult table -->
<p:table columns="4" widths="1 1 3 3">
<!-- create the headline with bold characters -->
<p:font size="10" style="bold">
<p:cell horizontalAlignment="center" verticalAlignment="top">
<p:paragraph>
<p:text value="Name" />
</p:paragraph>
</p:cell>
<p:cell horizontalAlignment="center" verticalAlignment="top">
<p:paragraph>
<p:text value="Result" />
</p:paragraph>
</p:cell>
<p:cell horizontalAlignment="center" verticalAlignment="top">
<p:paragraph>
<p:text value="Testrun description" />
</p:paragraph>
</p:cell>
<p:cell horizontalAlignment="center" verticalAlignment="top">
<p:paragraph>
<p:text value="Summary" />
</p:paragraph>
</p:cell>
</p:font>
<!-- display the attributes of the test results -->
<p:font size="8">
<ui:repeat value="#{results}" var="tcr">
<p:cell verticalAlignment="top" horizontalAlignment="left">
<p:paragraph>
<p:text value="#{tcr.testCase.name}" />
</p:paragraph>
</p:cell>
<!-- decide which color has to be displayed, based on the testresult -->
<ui:fragment rendered="#{tcr.error}">
<p:cell backgroundColor="rgb(255,0,0)" verticalAlignment="top" horizontalAlignment="center">
<p:paragraph>
<p:text value="error" />
</p:paragraph>
</p:cell>
</ui:fragment>
<ui:fragment rendered="#{tcr.failure}">
<p:cell backgroundColor="rgb(255,215,0)" verticalAlignment="top" horizontalAlignment="center">
<p:paragraph>
<p:text value="failure" />
</p:paragraph>
</p:cell>
</ui:fragment>
<ui:fragment rendered="#{tcr.passed}">
<p:cell backgroundColor="rgb(0,255,0)" verticalAlignment="top" horizontalAlignment="center">
<p:paragraph>
<p:text value="passed" />
</p:paragraph>
</p:cell>
</ui:fragment>
<p:cell verticalAlignment="top" horizontalAlignment="left">
<p:paragraph>
<p:text value="#{tcr.description}" />
</p:paragraph>
</p:cell>
<p:cell verticalAlignment="top" horizontalAlignment="left">
<p:paragraph>
<p:text value="#{tcr.summary}" />
</p:paragraph>
</p:cell>
<!-- print the testcase description below the result row. to differ from the next row use a bigger border
for the bottom-->
<p:cell colspan="4" verticalAlignment="top" horizontalAlignment="left" borderWidthBottom="1"
paddingBottom="3">
<p:paragraph>
<p:font size="6" style="bold">
<p:text value="Testcase description:" />
</p:font>
<p:font size="6">
220
Reporting Resources
<p:text value="#{tcr.testCase.description}" />
</p:font>
</p:paragraph>
</p:cell>
</ui:repeat>
</p:font>
</p:table>
</p:document>
221