User Manual
User Manual
BREDEX GmbH
BREDEX GmbH
Mauernstr. 33
38100 Braunschweig
Germany
Tel: +49-531 - 243 30 - 0
Fax: +49-531 - 243 30 - 99
www.bredex.de
Contents
1 Introduction 7
1.1 Comparison to other testing approaches . . . 7
1.2 How to read this manual . . . . . . . . . . . . 11
3 Tasks 21
3.1 Starting and connecting to the AUT Agent . . 21
3.2 Starting the Integrated Test Environment (ITE) . 25
3.3 Logging into and switching databases . . . . . 27
3.4 Migrating to newer versions . . . . . . . . . . 28
3.5 Working with Projects . . . . . . . . . . . . . . 29
3.6 Defining applications under test (AUT’s) . . . . 47
3.7 Starting and configuring AUT’s . . . . . . . . . 50
3.8 Working with browsers: renaming, deleting,
using IDs, multiple browsers . . . . . . . . . . 65
3.9 Working with editors: opening, adding/delet-
ing/renaming items, commenting, extracting and
replacing, reverting changes . . . . . . . . . . 68
3.10 Working with categories in the browsers and
editors . . . . . . . . . . . . . . . . . . . . . . 77
3.11 Working with Test Cases . . . . . . . . . . . . 80
3.12 Working with test data . . . . . . . . . . . . . 91
3.13 Working with component names . . . . . . . . 116
3.14 Working with Test Suites . . . . . . . . . . . . 125
3.15 Working with Test Jobs to test multiple AUT’s . 128
3.16 Information on Test Steps . . . . . . . . . . . . 132
3.17 Working with manual Test Cases . . . . . . . . 135
3.18 Object mapping . . . . . . . . . . . . . . . . . 137
3.19 Test execution . . . . . . . . . . . . . . . . . . 154
3.20 Working with test results . . . . . . . . . . . . 159
6 Concepts 309
6.1 Overview . . . . . . . . . . . . . . . . . . . . . 309
6.2 Testing . . . . . . . . . . . . . . . . . . . . . . 309
6.3 Architecture . . . . . . . . . . . . . . . . . . . 311
6.4 Database structure . . . . . . . . . . . . . . . 312
6.5 Approaches to testing . . . . . . . . . . . . . . 313
6.6 Test hierarchy . . . . . . . . . . . . . . . . . . 315
7 Glossary 325
8 Index 331
Chapter 1
Introduction
1.2.1 Layout
This manual is divided into the following chapters:
This is a warning.
This is a tip.
Chapter 2
If you want to use these AUT’s to try out your own tests,
you can find them under jubula/examples/AUTs.
1. Select:
Test → Import .
Once the Projects have been imported, open the samples Project.
Connect to the embedded AUT Agent ( → page 21) , and
start the AUT ( → page 154) .
When working on one machine, it is a good idea to automati-
cally minimize the ITE during test execution. This can be done
via :
Window → Preferences .
In the Test preferences. Alternatively, the client window can
be reduced so that both the client and the AUT can be seen.
Tests with the Simple Adder: This category contains the Test
Cases which test the Simple Adder program ( → page 15)
.
Tests with the DVD Tool: This category contains the Test Cases
which test the DVD Tool program ( → page 18) .
This category contains one Test Case. The Test Case contains
four Test Steps, which test an addition in the Simple Adder.
The parameter values in the Test Steps have been referenced,
and a data set has been added.
This is an example of a test written with Test Steps. However,
we recommend using the library of Test Cases to write tests,
as shown in the next examples.
This category contains one Test Case. The Test Case has ref-
erenced another Test Case, with four reused Test Cases, which
have been reused from the Project unbound_modules_concrete.
The Test Cases carry out the same steps as in the previous ex-
ample ( → page 15) . The differences here are:
• The steps to enter a value both reuse the same Test Case,
with different referenced parameters, and a different com-
ponent name.
Continue
The Event Handler in this test has the reentry property con-
tinue. When the error occurs, the Event Handler is activated.
Once the check has been carried out, the test continues, and
the reset is performed.
Exit
The Event Handler in this test has the reentry property exit.
When the error occurs, the Event Handler is activated. Once
the check has been carried out, the test finishes. The reset is
not performed.
Pause
The Event Handler in this test has the reentry property pause.
When the error occurs, the Event Handler is activated. Once
the check has been carried out, the test pauses. By un-pausing
the Test Suite in the client, the test continues.
Retry
The Event Handler in this test is different to the Event Handler
in the other tests. It contains the same steps as the test itself,
but the parameter references have been switched. This essen-
tially changes the order in which the numbers are entered into
the Simple Adder. The Event Handler has the reentry property
retry. When the error occurs, the Event Handler is activated.
The calculation is redone with the switched values. The failed
Test Step (i.e. the original check) is retried, and there is no
error. The test is marked as successful.
The test for the Simple Adder SWT reuses the test that uses
the actions from the library of unbound modules.
This test for the reuses the test that uses the actions from the
library of unbound modules.
The test for the Simple Adder JavaFX reuses the test that uses
the actions from the library of unbound modules.
Chapter 3
Tasks
-p: Port number. Enter the port number you wish to start
the AUT Agent on.
-l: Lenient mode. The lenient mode for the AUT Agent
allows AUT’s launched by other AUT’s to be tested ( →
page 129) . You can also change the mode of the cur-
rently running AUT Agent via the system tray. Right-click
the AUT Agent icon and (de)select Strict AUT Manage-
ment from the menu.
4. Select ”OK”.
3. Select the database you want to use and enter your user-
name and password.
5. Once you have opted to save your password, you can also
choose whether you want to perform an automatic login
to this database when you use this workspace. If you select
this option, then the next time you open the ITE and e.g.
select:
Test → Open
you will be automatically connected to this database with
the username and password you entered.
7. Select the toolkit your Project will use from the combo box.
The toolkit is the library used to create the GUI.
Toolkits for Projects
The default toolkit is concrete. Choose this if you want to
write Test Cases that can be used for different applications
(e.g. for Swing and for RCP).
Choose another toolkit if you want to write Test Cases just
for a Swing, SWT, RCP, iOS, Windows or HTML application.
10. You can now click ”Next” to define an AUT for this Project
( → page 47) .
If you want to define the AUT later, you can click ”Finish” to
create the Project as it is. You can define an AUT later via the
Project properties under Test → Properties .
You can also edit the Project details later in the Project prop-
erties dialog ( → page 32) .
The Project properties dialog lets you see and, in some cases,
edit information about:
3. Edit the toolkit used by the Project (see the following sec-
tion ( → page 33) for details on this).
6. See the Project version. This is useful if you have more than
one version of a Project.
8. Specify how often the full test result details ( → page 161)
should be automatically deleted from the database.
To see and edit your AUT’s for a Project, select ”AUTs” from
the tree on the left-hand side of the Project properties dialog.
In the screen that appears, you can see any AUT’s you have
already added to the Project (Figure 3.5 → page 34 ). You
can choose to edit them, delete them or add a new AUT.
Defining and editing AUT’s from here involves the same steps
as defining an AUT in the Project wizard ( → page 47) .
3. Click ”Duplicate”.
2. Select:
Test → Properties
and select Used Projects from the tree on the left of the
dialog that appears (Figure 3.6 → page 36 ).
5. Click ”OK”.
6. The Test Cases from the Project you chose to reuse will
appear in the Test Case Browser, under a category with
the same name as the reused Project. The Test Cases will
be colored blue to distinguish them from other Test Cases
in this Project.
You cannot edit these Test Cases here – but you can
reuse them in your Test Cases for this Project and
edit certain details (referenced parameters, component
names) when they are reused in other Test Cases.
7. You can change the version of the reused Project via the
Used Projects Properties dialog, by clicking on the ”change
used version” button ( → page 37) .
You can change the version of the reused Project you are using
in your tests. This is useful to update to a new version of the
unbound modules, for example.
2. Enter the new name for the Project in the dialog that ap-
pears.
Any test result summaries for the Project are not dupli-
cated in the new Project. Tests that ran for previous ver-
sions of the Project are, however, still in the database to
be used for long term analysis.
4. If you only want to import one Project, you can select the
option to open the Project once it has been imported.
2. Select:
Test → Export .
4. Click ”OK”.
1. Select:
Test → Export all .
3. Click ”OK”.
Any test result summaries for the Project are not dupli-
cated in the new version. Tests that ran for previous ver-
sions of the Project are, however, still in the database to
be used for long term analysis.
4. All data will be removed from the Project that were col-
lected for the change tracking.
2. Select the toolkit the AUT uses from the combo box.
If you will be starting your AUT from the ITE (i.e. via an
AUT configuration ( → page 50) ) then you do not need
to enter any IDs here.
6. If you want to start this AUT from the ITE, you can do so in
the Project properties ( → page 50) .
There are two options to start your Java AUT for testing:
The AUT configuration dialog for Java has three different lev-
els of detail: basic, advanced and expert.
See the sections below for information on the different levels.
1. Enter the JAR path (directory and file name) into the Exe-
cutable JAR File Name field.
This path can be relative (if you define a working directory
( → page 51) ), or absolute. This JAR file must contain a
manifest file which contains the main class and the class-
path.
2. If your AUT must be started with the class name, add the
main class name and the classpaths into their relative fields.
The paths can be relative (if you have defined a working
directory), or absolute.
Detail Parameter
-h -h
Gives parameter help
-w, --workingdir -w <directory>
Enter the working directory for the AUT
-a, --autagenthost -a <hostname>
Enter the hostname for the AUT Agent
-p, --autagentport -p <port number>
Enter the port number for the AUT Agent
-swing
If the AUT is a Swing AUT
-rcp
If the AUT is an RCP AUT
-swt
If the AUT is an SWT AUT
-k, --kblayout -k <en_US>
Enter the keyboard layout for SWT/RCP AUT’s
-i, --autid -i <ID>
Enter the ID to give to this AUT
-e, --exec -e <AUT.exe>
Enter the executable file for the AUT
This must be the last parameter in the command line
-g, --generatenames (optional) -g <true/false>
For RCP AUT’s, enter whether
to generate technical names. ( → page 47)
• Select:
Create AUT Definition
from the context menu.
You can use the basic setting to configure your AUT if it can
be started by an executable file (e.g. .bat, .exe, .cmd, .sh etc.).
If your AUT is a JAR, then you can also use the executable file
field to enter the Java executable (i.e. java or java.exe) and
then enter the path to the JAR in the AUT Arguments field in
the advanced configuration ( → page 58) .
You can use the expert dialog to configure more detailed in-
formation about how the AUT should be started.
Use the basic setting to specify the URL and Browser you wish
to start this AUT configuration on.
You can use the advanced dialog to enter the browser path
for your browser. This lets you use a specific version of the
browser (not available for Internet Explorer).
You can also specify whether you want to be able to use the
multi-window support in your tests for this AUT. If your AUT
has functions that open new windows, then deactivate the
Single Window Mode checkbox. Any AUT’s that are running
in multi-window mode show the Selenium console as well
as the AUT when the AUT is started. The Object Mapping
Editor for multi-window AUT’s has a button to allow switching
between multiple open windows for mapping components,
and there are actions in the HTML unbound modules to allow
you to switch between windows during the test.
For information on the expert properties for the HTML AUT
configuration, see the next section ( → page 59) .
• Enter the iOS Device Host: this is the address of the device
or simulator in the network that the AUT will run on. The
host will either be a hostname or an IP address.
• Enter the iOS Device Port: this is the port number that
is available for communication between the AUT and the
ITE. It is defined as a part of the setup of the AUT. If no
port number has been specified in the AUT, the default of
11022 will be used, and you should enter this number.
Unlike other AUT’s, iOS AUT’s are not started via the ITE, nor
by the testexec. Instead, the AUT must have been made
testable ( → page 276) , had component naming added (
→ page 279) and also be started on the simulator or device
that it will be tested on. Once these prerequisites have been
completed, you can connect to the AUT from the ITE by se-
lecting the AUT from the list in the ”Start AUT” button on the
toolbar. This does not start the AUT but connects to it.
2. Select:
Rename
from the context-sensitive menu.
When you rename a Test Case or Test Suite, you change its
specification name.
If you have reused this Test Case or Test Suite in other Test
Cases, Test Suites or Test Jobs, the name will also be changed
in the places where you have reused it but not renamed it.
1. Select the Test Case or Test Suite whose ID you want to use
from the Test Case Browser or Test Suite Browser.
2. Select:
Copy ID to clipboard
from the context-sensitive menu.
3. The task from the external repository will open in the ITE.
Test Cases :
Test Cases can be added to other Test Cases and Test
Suites by selecting the Test Case from the Test Case
Browser and dragging it into the editor.
Test Suites :
Test Suites can be referenced in Test Jobs by selecting
the Test Suite to reference from the Test Suite Browser
and dragging it into the Test Job Editor.
B For Test Cases, you can also use the Reference Existing
Test Case dialog. Using the context-sensitive menu in
the editor, select:
3. In the Properties View, enter the new name for the item in
the Reference Name field at the top of the Properties View.
The angled brackets from the item you just edited will dis-
appear from the name in the editor. This indicates that the
item has been renamed here. You will still see the original
item name behind the new name in brackets. In the pref-
erences, you can opt not to see the original name when
you have renamed an item ( → page 167) .
The original item in the browser still has its original name.
The referenced item you just renamed will keep its new
name even if you rename the original item.
If you want to reset the original specification name, empty
the Reference Name field and save the editor. The item will
redisplay the angled brackets and will have the same name
as the specification name.
1. Open the editor for the item you want to add comments
to.
You can see the comment for a Test Case when you
hover over it in the Test Case Browser or the Test Suite
Browser or in the search results view.
1. Open the editor for the item you want to add a task ID to.
5. The Test Cases you selected will be extracted into this new
Test Case.
7. The Test Case you just created is also visible in the Test Case
Browser.
Use this feature when you realize that you are planning
on reusing one or more Test Cases for the same or a
similar action again. You will save yourself time in test
creation and maintenance.
2. Browse to and select the Test Case you want to add to the
editor.
1. On the final page of the wizard, you can enter a Test Case
reference name and a comment for the new Test Case.
Once you have replaced the Test Case, you must manually
adapt the parameters for the new Test Case.
2. Select the Test Cases you want to save into the new Test
Case by single-clicking them. Use »CTRL« to select more
than one item.
6. The Test Case you just created is visible in the Test Case
Browser.
3. In the dialog that appears, enter the comment for this cat-
egoty and press ”OK”.
3. Click ”OK”.
4. This creates a new Test Case with that name in the Test
Case Browser Figure 3.20 → page 81 .
Next steps
The next step is to add Test Cases from the library of Test
Cases to this Test Case ( → page 82) .
You can also:
• Choosing the Test Cases from the library (or from your own
set of Test Cases) that you need to create these keywords.
To use the Test Cases from the library, you will first need to
create a Test Case of your own ( → page 80) .
3. You can add the Test Case by dragging and dropping from
the Test Case Browser to the Test Case Editor or you can
right click on the Test Case in the Test Case Editor and
select:
Reference Existing Test Case → to see a list of
all Test Cases that you can add to this Test Case.
You can filter in this dialog using the field at the top.
Use star * as a wild card.
4. Once you have added the Test Case, you will need to enter
a component name in the Component Names View ( →
page 117) and you will need to enter data for the Test
Case in the Properties View ( → page 91) .
• unbound_modules_concrete
• unbound_modules_web
• unbound_modules_swt
• unbound_modules_rcp
The names for these Test Cases all begin with ”ub”. This
means that they are unbound – they are not in any way
dependent on an AUT.
6. Each Test Case in the library contains one Test Step which
corresponds to the action in the Test Case name. The com-
ponent name is a placeholder, and the parameters have
been referenced so that you can enter your own data.
3.11.2.3 Tips and tricks for using the Test Case library
Abstract components
There are some actions which are executable on many differ-
Parameters
Different actions require different data. Some Test Cases in
the library have been pre-configured with data to make test
specification easier (look in the category Input via Keyboard-
/Application/Key Combination for a long list).
Some actions let you choose whether you want to enter data
using an indexpath or a textpath. We recommend using the
textpath so that you are not dependent on the order of e.g.
menu entries or tabbed panes.
To make text-based parameters more robust, you can of-
ten choose an operator. You can choose between equals,
matches, simple match, not equals. Using matches lets you
use regular expressions so that you don’t have to hard-code
the whole text parameter.
2. In the dialog, you can search for a Test Case or Test Cases
in the tree or using the filter ( → page 215) .
3. Select the Test Cases you want to add, and click ”OK”.
• add, edit or translate data for the Test Case ( → page 112)
.
1. Search for all places where the Test Case you want to re-
place is used e.g. Show where used ( → page 208) .
2. In the Search Result View, you will see all places where
the selected Test Case is reused in this Project, including
in other Test Cases, in Test Suites and anywhere you have
used the Test Case as an Event Handler. Select all entries,
or just the Test Case references you want to replace with a
new Test Case reference.
You can also enter data sets in the Data Sets View ( →
page 112) and you can create central data sets to be
reused throughout the Project ( → page 103) .
You can be very flexible with data, so you have a choice about
what to enter in the Properties View:
• Enter concrete values for things that you expect to stay the
same, like your choice of operator (i.e. matches, equals) or
the click count. Deciding which data not to parametrize is
an important decision is test creation.
Any concrete values you enter into a Test Case are valid
whenever you reuse this Test Case. If you change the
concrete values in the original Test Case, all of the places
you have reused it will change as well.
• You will be able to enter data for this parameter when you
reuse the Test Case.
2. In the dialog, you can see any parameters you have refer-
enced for this Test Case, and what type of parameters they
are.
3. From the dialog, you can add new parameters to the Test
Case, edit existing parameters, and delete parameters. You
can also change the order the parameters appear in.
4. Use the lock option to lock the parameters for this Test
Case. This means that you cannot delete them, rename
them or remove them in this Test Case.
You can store values read from the AUT to use as data in other
Test Cases.
You can also use the store value action on the applica-
tion component to store a value you enter.
TEST_UDV_<variablename>
To use the variable in your tests, enter the variable name (ev-
erything after the underscore) preceded by a dollar sign. Do
not enter the ”TEST_UDV_” part.
Date functions
modifyDate This function can add days (d), months (M), and
years (y) to a given date. The date must first be parsed (i.e.
Test functions
CUSTOMER_TYPE CUSTOMER_NAME
NormalUser Bob Normal
SuperUser Alice Super
SupportUser John Support
To select a customer name using the customer type, you
should enter:
?getCentralTestDataSetValue
(Customer,CUSTOMER_TYPE,SuperUser,CUSTOMER_NAME)
This will look in the central data set called Customer, locate
the value SuperUser in the CUSTOMER_TYPE column, and use
that line to choose the cell in the CUSTOMER_NAME column
– Alice Super.
Wrapped functions from other libraries
You can also use the following functions in your tests. For full
documentation on them, please refer to the respective library.
?formatDate(?modifyDate(?parseDate
(22.2.2012, dd.MM.yyyy),-1d),dd.MM.yy)
This function will parse the date 22.2.2012 into an in-
ternal format, subtract one day and then format it as a
dd.MM.yy, in this case: 21.2.12.
3. In the dialog that appears, enter a name for the new data
set and click ”OK”.
4. The new data set appears in the Central Test Data Editor.
You can now add parameters to the data set ( → page
104) .
6. You can categorize your central data sets using the Add
category function from the context-sensitive menu ( →
page 77) .
You can delete a central test data set if the data set has not
yet been reused (referenced) in a Test Case ( → page 105) .
1. Select:
Delete
from the context-sensitive menu or press »DELETE«.
2. A dialog will appear if the data set has been reused and
cannot be deleted.
3. You can use the search ( → page 210) to show where the
data set has been used.
Once you have created a central test data set ( → page 103) ,
you can add parameters to the data set using the Edit Param-
eters dialog.
1. Open the edit parameters dialog for the central data set
by double-clicking on the data set in the Central Test Data
Editor. You can also select Edit parameters from the
context-sensitive menu.
4. Enter a name for the parameter and select the type of pa-
rameter it should be (e.g. String, Integer, ...). The type of
parameter it should be will depend on which actions are
using it. A list of actions and their parameters (and types)
is available in the reference manual ((→Reference Manual
p. 21)).
5. You can also change the order the parameters appear in,
edit their types and names, and delete them completely
using this dialog.
Once you have created a central test data set ( → page 103)
and have added parameters to the central test data set ( →
page 104) then you can enter data for these parameters in
the Data Sets View.
To enter data sets for a central test data set:
2. In the editor, single-click the central test data set you want
to add data to.
6. Use the buttons in the Data Sets View to add more rows,
delete rows and insert rows above the currently selected
row.
You can reuse a central test data set in a Test Case to pro-
vide the concrete data for the parameters required by the Test
Case.
1. In the Properties View for the Test Case, enter the name of
the central test data set you want to use in the Central Test
Data Set field.
2. When you have entered a central test data set, then the
Properties View shows central test data set as the data
type. You will see the data from the central test data set in
read-only form in the Data Sets View.
If data is missing from the central test data set, you will
receive the error that test data is incomplete for any Test
Suites this Test Case is used in.
3. You can delete the central test data set used by removing
it from the central test data set field. The data type reverts
to local data. For more information on the data sources,
see the earlier section ( → page 102) .
If you have existing Excel files that you want to convert into
central test data, then you can import them via the Central
Test Data Editor:
3. Either select the whole directory (if it contains all Excel files)
on the left, or select the individual Excel files on the right.
If you have used a central test data set in multiple Test Cases
and later realize that you have two columns in the central
test data set that contain the same information, then you can
change all Test Cases that use this central test data set to just
use one column. Once you have done this, you can remove
the unnecessary column from the central test data set.
1. Search for all places where the central test data set whose
column usage you want to change is used. Use Show
where used on the central test data set to see all places
( → page 210) .
2. In the Search Result View, you will see all places where
the selected central test data set is reused in this Project,
including any original specifications of Test Cases that use
it, and any reused Test Cases that use it (as Test Cases or
as Event Handlers. We recommend selecting all entries to
perform the action, otherwise you may have incomplete
test data after only changing a subset.
• All the selected Test Cases use the same central test data
set.
• All the selected Test Cases have their original specifica-
tion in this Project, i.e. you do not have a Test Case from
a reused Project that uses the central test data set in this
Project.
1. Navigate to the Properties View for the Test Case you want
to add the Excel file to.
2. Enter the path to the Excel file in the Excel data file field.
The path to the Excel file can be absolute or relative (if you
have specified a data files path ( → page 167) ).
3. If you reuse this Test Case, the Excel file you enter will be
reused along with the Test Case. When you reuse the Test
Case, you can choose whether you leave this file or change
it for another one.
Please note that the Excel file is read at the start of the
test execution. Any changes to the file after this will
not affect the test data. For information on using the
date function in Excel, see the section later ( → page
111) .
You can create sheets for every language you need. Make
sure that each sheet is named with the language code.
The ITE reads the sheet which corresponds to the working
language when the test is being executed.
• Make sure that all the parameters for your Test Case have
a column.
• You can then fill in the values or formulae you want to use
for these parameters. Each row in the table represents one
set of data for the parameters used.
5. In the column for your data set, enter the following for-
mula:
=text(Sheet1!G4, ”dd.mm.yyyy”)
• Enter data sets for a central test data set ( → page 105) .
You can also create central test data sets for your Project
to reuse in Test Cases ( → page 103) .
You can also add references in the Data Sets View if you
want to specify the concrete values for your data sets
when you reuse this Test Case.
6. Use the buttons in the Data Sets View to add more rows,
delete rows (if no row is selected, the last row is deleted)
and insert rows above the currently selected row.
You can add data for other languages supported by your AUT
by changing the language in the combo box in the Data Sets
View.
The other combo boxes are there to help you see the Data
Sets View in different ways. You can see all the data for one
parameter, for one data set or for one language.
You can use this with the equals, matches or simple match
operators.
You can also use ’^$’ or ’^\s*$’ with the operator matches
to check that a text area is empty.
You can also use ’^$’ with the operator matches to check that
a text area is empty.
1. Single-click the reused Test Case in the editor for the Test
Case or Test Suite where you have reused it.
2. In the Properties View, you can see the parameters you ref-
erenced from in this Test Case. The data source for this Test
Case is shown as referenced Test Case to denote that the
data have not been changed after reusing the Test Case.
1. Once you have added a Test Case from the library of Test
Cases ( → page 82) , you will need to enter a component
name for the component you want to test.
2. In the Component Names View, you will see the old name
for this component, which was given in the Test Step con-
tained in the library Test Case. The old name is just a place-
holder and should be reassigned (Figure 3.22 → page 118
).
3. In the new name field, enter your name for this compo-
nent, e.g. MainWindow_NavigationTree_tre.
We recommend using naming conventions for component
names.
Abstract components
component types
1. Select:
New → New Test Suite
from the context-sensitive menu in the Test Suite Browser.
3. Click ”OK”.
4. The Test Suite you created will appear in the Test Suite
Browser under the category Test Suites.
You can filter in the Test Suite Browser using the field at
the top. Use star * as a wild card.
The step delay is the time left between each Test Step
during test execution. The default is 0 milliseconds ( →
page 158) .
• The AUT’s are either written with the same toolkit (e.g.
Swing) or,
• The first AUT can either be started using the autrun com-
mand ( → page 55) or via an AUT configuration ( → page
50) . Any other AUT’s required for the Test Job must have
been started with the autrun command.
To run Test Jobs from the test executor, all AUT’s for the
test run must already be started when the test execu-
tion begins. For unattended build and test processes,
this will mean that the AUT’s must be started with the
autrun command.
If your AUT starts other AUT’s which you also want to test,
then the following criteria must be met:
1. Select:
New → New Test Job
from the context-sensitive menu in the Test Suite Browser.
3. Click ”OK”.
4. The Test Job you created will appear in the Test Suite
Browser under the category Test Jobs.
4. The New Test Step (Figure 3.24 → page 133 ) dialog will
appear.
1. In the Test Step Name field, enter a name for the Test Step.
This name is just for recognition purposes, but should be
easily identifiable at a later point.
Component type
Component name
5. From the combo box, choose the action you want to exe-
cute on this component.
6. Click ”OK”.
You can see and edit the details of any selected Test Step
in the Properties View.
The next step is to add parameter values (data) for Test
Steps in the Properties View ( → page 91) .
4. You can also move the Test Step within the Test Case using
drag-and-drop.
2. Add the module for manual Test Case from the library of
Test Cases (category: Manual Test Step).
4. Once your manual Test Case is finished, then you can add
it to a Test Suite ( → page 68) to be executed ( → page
136) .
3. For each manual Test Step in the test, a dialog will appear
with the descriptions and data you entered for the action
to perform and the expected behavior.
5. Once the dialog has been closed, the next Test Step dialog
will appear.
6. At the end of the test, you can see the test result report
like any other automated test ( → page 160) .
The Object Mapping Editor for the AUT used by this Test
Suite will appear (see Figure 3.26 → page 151 ).
You can see the name of the AUT you are mapping in.
the tab of the editor
Name: The name of the object within the AUT code, as given
by the developer (if a name was given).
Strict: In this profile, the values for name, path and context
are the same as in the standard profile. The threshold is at
100%. This means that a component must exactly corre-
spond to the originally mapped component.
Custom: This profile lets you move the sliders yourself. You
can lock sliders to stop them being affected by other slid-
ers.
When you refresh the Object Mapping Editor, any new com-
ponent names which have been added to Test Suites for this
AUT are collected.
2. You can also select the item you want to delete and press
»DELETE«.
Over time, your Project will change, and these changes may
mean that component names you had previously used in Test
Suites, then mapped to technical names via the Object Map-
ping, are no longer used. This results in object mappings in
which the component name is no longer used in the test for
this AUT. Such component names can be recognized by the
fact that Show corresponding specification in the Object Map-
ping Editor ( → page 210) returns no search results in the
search result view (i.e. the component name is no longer used
in the test), or if the search result view shows only Test Cases
that are used in other AUT’s. If you perform Show where used
in the Component Name Browser ( → page 209) and the
only search result is a mapping, then this is also a component
name that is no longer used in the test.
You can delete any component names from the Object Map-
ping Editor that are unused in the Project for this AUT:
The status bar will show that the Object Mapping Mode is
active.
6. Collect all the names you need from the AUT and then click
the Stop Object Mapping Mode button on the toolbar. stop Object Mapping
Mode
7. You can now map (assign) the component names you used
in your Test Cases to the technical names you have col-
lected from the AUT ( → page 150) .
• Press »CTRL+SHIFT+Q«.
You can change the key combination for the object map-
ping in the object mapping preferences ( → page 170) .
This is a good idea if the current key combination has a
specific meaning in your AUT. You can also set the ob-
ject mapping combination to a mouse click if your AUT
does not accept key combinations.
• You will also need to use the HTML actions to switch be-
tween windows in your test.
When technical names are collected from the AUT, they ap-
pear in the Object Mapping Editor with a colored dot. The
color of the dot corresponds to the strength of the compo-
nent recognition for this component at the time of collecting.
A green dot signifies that the component can be found as
an exact match, and that only this component was above
the threshold ( → page 140) (i.e. only this component
was considered as possible.
A yellow dot means that the component can be found as an
exact match, but that other components were also above
the threshold, i.e. this was not the only component con-
sidered possible.
A red dot means that the component can not currently be
found if a test is executed. The recognition value for the
component is below the current threshold.
You can use this information to identify components that will
not be recognized in the current state of the AUT before run-
ning the test.
If your test does not run, a few simple steps will update it.
If you get a component not found error, or the wrong com-
ponent is selected during the test, remap the new component
from the AUT and assign it to your component name.
This updates this component for the whole test.
8. Start the AUT ( → page 154) (either from the ITE or using
the autrun command).
10. Make sure that your test data is complete in your Test
Cases.
• if you want to start your AUT from the ITE, and not using
the autrun option, then you must have configured an AUT
( → page 50)
You can only start AUT’s from the ITE which support
the current working language. Change the working lan-
guage if necessary by selecting a language from the list
next to the language button on the toolbar.
Once the AUT has been started, it will appear in the running
AUT’s view.
• have entered complete test data for your Test Suites, for
the language you want the test to run in.
Starting a Test Suite: You can start a Test Suite from the
Test Suite Browser or from the Running AUT’s View. Click
on the arrow next to the ”Start test execution” button and
select a Test Suite to start from the list.
Starting a Test Job: You can start a Test Job from the Test
Suite Browser. Click on the arrow next to the ”start test
execution” button and select a Test Job to start from the
list.
start test
The amount of Test Suites or Test Jobs in the list for the
”start test” button depends on your selection. In the
Running AUT’s View, only Test Suites for the currently
selected AUT will be shown. In the Test Suite Browser,
if you have selected a Test Suite or a Test Job, only the
selected item will be startable.
When a test is running, you can view the progress of the test
in the Progress View. This is especially useful if the ITE and
the AUT are running on different machines: you can see how
much longer the test will run without having to switch to the
machine the AUT is running on.
To stop the test at any point, click on the ”stop test execution”
stop test button on the toolbar. The test stops automatically when it
finishes or when an error occurs whose Event Handler has
exit as a reentry type.
Once you have analyzed the error in the AUT or in the test
specification, you have two options:
Continue with the Event Handler: Press the ”Pause test
execution” button on the toolbar ( → page 156) to con-
tinue with the test. This will result in a Event Handler (ei-
ther a default Event Handler or one of your own) being
activated.
Continue without Event Handler: Press the ”Continue
without Event Handler” button or »F8« to continue with
the test as if the failed Test Step had been successful. No
Event Handler is activated. This option is useful if the Event
Handler that would be activated would restart the AUT or
exit the test, but you are either able to ignore the error for
the moment or make changes in the AUT to ensure that
the test will be able to continue.
• You can clear the Test Result View by clicking the ”clear”
button in the tab of the view.
For preferences about the Test Result View, see the section on
the preference pages ( → page 171) .
You can see the test result summaries in the Functional Test
Reporting Perspective, in the Test Result Summary View.
1. If the full details for a test run are still available (the column
Details shows true), you can re-open the full test result by
double-clicking on the entry in the Test Result Summary
View or by clicking the button to open the report in the
top right-hand corner of the view.
2. In the test result, you can navigate through the test results
using the mouse or using the toolbar buttons to spring to
the next or previous error. In this way, you can view any
screenshots in the Image View and details about errors in
the Properties View.
In the test result preferences ( → page 171) you can alter the
amount of days that a test result summary is shown. The top
of the Test Result Summary View shows the amount of days
that test result summaries are being shown for. Any unshown
summaries are still present in the database and can be shown
by increasing the amount of days.
2. Select:
Toggle relevance
from the context-sensitive menu.
refresh view Use the ”Refresh” button at the top right hand corner of the
Test Result Summary View to refresh the view after tests have
been run.
Select one or more rows in the Test Result Summary View and
delete test runs use the ”Delete” button in the top right hand corner of the
view to delete these test runs.
• When you click ”Finish”, the result reports for the selected
test runs will be exported to the directory you entered.
• For each test run, an XML and an HTML file are created.
You can add a comment to a test run in the Test Result Sum-
mary View by:
• In the dialog that opens, enter a title for the comment and
a longer description in the details area.
You can also drag the Test Case you want to use straight
into the Event Handlers area of at the bottom of th the
Test Case Editor.
4. You can optionally add a name for the Event Handler that
will be used as the referenced name for this Event Handler.
For each Test Case you can only add one Event Handler
for each event type.
7. Click ”OK”.
Break The test execution leaves the Test Case in which the
error occurred and continues at the next Test Case or Test
Step.
Exit The test execution is stopped. Use this when the error is
so severe that the test cannot be continued.
Return The test execution leaves the Test Case in which the
activated Event Handler is nested. This could be the current
Test Case or one higher up in the hierarchy. This option is
useful if you have a use case, which contains Test Cases to
test a particular area or function. You can decide to leave
this part of the test, and carry on at the next use case.
Return will continue at the next Test Suite in a Test Job if
it is activated as a default Event Handler or if there are no
further steps in the current Test Suite.
3.22 Preferences
Open the preferences dialog (Figure 3.29 → page 167 ) by
selecting:
Window → Preferences .
In the preferences dialog, select Test from the tree on the left
hand side.
From this page, you can configure your preferences for:
This can help you to see and search for Test Cases you have
reused.
Test Step information: When this checkbox is activated,
you see the details about the Test Step (the component
name and type, and the action) in square brackets behind
the Test Step name. If you do not want to see these details,
you can deactivate this checkbox.
Show referenced children: When this option is not active,
you can only see referenced parent Test Cases in the Test
Case Browser. The referenced Test Cases contained in
these Test Cases are not displayed. This action can be use-
ful if you want to improve the speed of working with the
ITE.
Project auto load: If you have selected a Project to be au-
tomatically loaded ( → page 38) , then you can stop the
auto-loading by deactivating the checkbox.
Delay for content assist in the Component Names View:
Enter the amount of time in milliseconds you want to wait
after each character entry before displaying content assist
in the Component Names View. Increase the delay to see
the content assist less frequently. You can see the content
assist at any time by pressing »CTRL+SPACE«.
Switching to the Functional Test Execution Perspective:
When the test begins, the ITE can automatically change to
the Functional Test Execution Perspective. You can choose
to always be asked, to always change, or to never change.
Data files location: You can specify a location where ex-
ternal data files (e.g. Excel files) are held, or use the
workspace directory as the base location.
1. In the AUT Agent preference page, you can add, edit and
delete AUT Agents and port numbers.
2. The hostnames and port numbers you enter here are dis-
played in the drop-down list for the ”Connect to AUT
Agent” button on the toolbar. You will be able to con-
nect to these hostnames on these port numbers when you
have started an AUT Agent on them ( → page 21) .
1. Select:
File → Export
from the main menu in the ITE.
4. Click ”Finish”.
1. Select:
File → Import
from the main menu in the ITE.
• You can create tests without needing the AUT - you don’t
have to wait for each version of the AUT to begin test spec-
ification.
• Check while you are observing that the actions you carry
out are observed in the way you meant.
• start the AUT you want to observe from ( → page 154) (ei-
ther via a configuration ( → page 50) or using the autrun
command ( → page 55) ).
Once you have completed these steps, you can select the ”ob-
start observation serve Test Case” button on the main toolbar.
2. The status bar will show that you are in the observation
mode.
3. A Test Case Editor for the observed Test Case will appear.
If you have a Test Case open in the Test Case Editor, the
Test Steps will be observed into this open Test Case.
2. You can also see which actions have been recorded in the
console (Figure 3.35 → page 179 ).
If you are creating tests for SWT and RCP AUT’s, check
that you have set the keyboard layout correctly in the
Project properties ( → page 58) and that you have de-
fined the right toolkit for the Project ( → page 33) .
AUT when you observe Test Steps. If you have already cre-
ated and mapped a component name for a technical com-
ponent, this name will be used instead of creating a new
one.
4. Once you have recorded the actions you need, stop the
observation mode by clicking on the ”stop observing Test
stop observation Case” button on the main toolbar.
5. Save the Test Case editor containing the Test Steps you
have just observed.
6. From the dialog, select the check action you want to per-
form and enter any parameters the check action needs.
Many check actions have predefined parameters based on
the state of the AUT.
You can manually stop the check mode using the same
key combination as you used to start the check mode
(»CTRL+SHIFT+F11« by default).
8. The check action you specify will be added to the Test Case
Editor.
• Information information
• Errors error
• Warnings warning
4. You can also use the buttons ”Select All” and ”Deselect
All” to (de)select all the guidelines.
3. In the dialog (Figure 3.39 → page 188 ), you can see and
edit the values for any editable attributes for this guideline.
3. In the dialog (Figure 3.40 → page 191 ), you can see and
edit any available contexts for this guideline.
being upheld. You can use the Problem View to view the rule
that has been flouted and also to fix the problem using the
Quick Fix option.
1. Select the entry in the Problem View whose rule you want
to view.
3. The Quick Fix dialog Figure 3.41 → page 192 will appear
with the options available to fix the problem. The options
may range from opening an editor to automatically fixing
the problem.
4. Select the option(s) you want to carry out and click ”OK”.
Test Cases: How many individual Test Cases have been cre-
ated.
Test Suites: How many individual Test Suites have been cre-
ated.
Test Jobs: How many individual Test Jobs have been created.
Test Steps: How many individual Test Steps have been cre-
ated, plus how many Test Steps have been used from any
reused Projects. Test Steps are only counted once for the
place they are specified (or, in the case of Test Steps from
reused Projects, reused). They are not counted transitively
(i.e. if a Project contains a Test Case with one Test Step,
and this Test Case is reused four times, there is still only
one Test Step.
Test Case TC1 is reused twice in a Test Case TC2, then the
number of reuses for TC1 is two, regardless of how many
times TC2 is reused.
1. Select:
Window → Show View → Other
from the menu.
2. In the Mylyn section, select Task Repositories and click
”OK”. The Task Repositories View will appear. The Bugzilla
Repositories for GUIdancer and Jubula are pre-configured.
3. In the Task Repositories View, right click and select Add
Task Repository from the context menu.
4. In the dialog that appears, you will see the pre-defined
task repositories for the ITE. You can select one of these
or choose to install a different connector. Depending on
the connector you want to use, you may require additional
software from Tasktop, or the connector may incur license
fees. If you want to connect to a HP ALM repository, please
follow the instructions below ( → page 197) .
9. In the Mylyn section, select Task List and click ”OK”. The
Task List View will appear.
• In the Mylyn section, select Task List and click ”OK”. The
Task List View will appear.
• When you activate a task for the first time, the browsers
and editors will seem very empty. This is because nothing
is yet a part of the context for this task.
• View the test results for the relevant item in the dashboard
as a link from the task repository.
You can add a task ID to Test Cases and Test Suites in your
Project.
The task ID should be a valid ID in the repository that you
have specified as the repository for this Project ( → page 200)
. Adding the task ID to an item in your Project means that this
item is the relevant test for that task in your repository. You
will be able to report test results for this item as a comment to
the task in the repository. The comment will include a link to
the dashboard, in which the test result report can be viewed.
To add a task ID to a Test Case or Test Suite:
2. In the Properties View, in the cell for Task ID, enter the task
ID from the external repository. You can only enter task IDs
at the place of specification – you cannot overwrite them
when you reuse the item.
You should ensure that you add task IDs to the right
node-level to provide you with the relevant amount of
information for the tasks in your repository. This will
usually be at the level of Use Cases within a Test Suite.
If you run a test via the ITE which should report to ALM
systems, the reporting is triggered automatically once
the test has run. If the reporting for the test run encoun-
ters an error, then you will be able to manually trigger
the reporting later ( → page 203) . To report to ALM
systems after running a test via testexec, you must also
manually trigger the recording ( → page 203) .
• You can see the status of the ALM reporting in the console
view.
• Once a comment has been written, you can see the com-
ment in the external repository. From there, you can click
on the link provided to open the test result report in the
Dashboard that you specified for your Project. The Dash-
board must be already running for this action to succeed.
The test results must also still be present in the database (
→ page 161) .
• You can see the status of the reporting in the Test Result
Summary View ( → page 203) .
• Since tasks in HP ALM only have one comment field, the re-
sult information is appended to the comment field instead
of being added as a new comment each time.
By selecting:
Window → Preferences ,
you can choose to automatically change to the Functional
Test Execution Perspective when test execution starts, or to
be asked each time a Test Suite is started.
3.29 Searching
4. You can open the specified Test Case or Test Suite auto-
matically by selecting ”Open specification” or by pressing
»F3«. This also works on the original specification of Test
Cases, Test Suites and Test Jobs in the brosers.
Test Cases and Test Suites that are not visible due to ac-
tive filters in the browser are not displayed when show
specification is used. You can, however, use open speci-
fication to directly open a filtered Test Case or Test Suite.
2. All the places where you have used this component name
in this Project will be shown in the Search Result View ( →
page 213) . Both Test Cases and object mappings where
the component name was used will be shown.
2. All the places where you have used this component name
in this Project will be shown in the Search Result View ( →
page 213) .
1. Select the central data set you want to search for and se-
lect:
Show where used
from the context-sensitive menu. You can also press »F7«
to show the places where the data set has been used.
2. All the places where you have used this data set in this
Project will be shown in the ”Search Result View” ( →
page 213) .
3. If you want to change the Test Cases that use this central
test data set so that they use a different column from the
data set, then you can start this action from the Search
Result View ( → page 107) .
On the first tab of the search dialog, you can search for the
following based on their name:
• Test Steps
• Test Jobs
• Categories
Enter the term you wish to search for and select whether you
want the search term to be case sensitive or whether you will
be using regular expressions. You can also specify whether
you want to search in the whole Project, or just for the se-
lected nodes ( → page 213) .
Click ”Search” to start the search. The results are shown in
the Search Result View ( → page 213) .
On the second tab of the search dialog, you can search for
test data in the following:
• Test Steps
Enter the term you wish to search for and select whether you
want the search term to be case sensitive or whether you will
be using regular expressions. You can also specify whether
you want to search in the whole Project, or just for the se-
lected nodes ( → page 213) .
Click ”Search” to start the search. The results are shown in
the Search Result View ( → page 213) .
On the third tab of the search dialog, you can search for and
in files contained in your workspace.
Enter the term you wish to search for and click ”Search” to
start the search. The results are shown in the Search Result
View ( → page 213) .
In the search dialog, you can specify whether the search you
define should be performed on the whole Project, or just on
the node you have selected in a browser. If you select to just
search within the selected node, then you can define which
browser or browsers to search in (you may have more than
one active selection in your browsers):
All Test Case Browsers If you have more than one Test Case
Browser open ( → page 67) , then the selected nodes in
all of them will be searched.If you select the root node in
the Test Case Browser, then the whole Test Case Browser
will be searched.
• You can change the column of a central test data set used
by any Test Cases that use this central test data set ( →
page 107) .
The Test Case Browser, the Test Suite Browser, the Compo-
nent Name Browser and the Object Mapping Editor (in the
tree view) all contain a filter area at the top. You can enter
a filter text into this area to show matches to the text in the
browser or editor. Use star (*) as a wildcard.
In the Test Case Browser, the Component Name Browser and
the Test Suite Browser, the names of the items in the browser
are considered for the filter.
In the Object Mapping Editor, the names and types of the
components are considered for the filter.
In the Test Case Browser, you can also show any unused Test
Cases.
2. Enter testexec.exe.
This will run the executable testexec.exe.
Detail Parameter
Help -h
Gives parameter help
Project name -project <project name>
e.g. -project ”ExampleProject”
Project version -version <project version>
e.g. -version ”1.3”
Configuration -c <path to configuration file>
file
e.g. -c ”<pathToQADocs>/config.xml”
Use this instead of entering arguments
via the command line ( → page 222) .
Database URL -dburl <URL>
(optional)
e.g. -dburl ”db.example.de”
If you enter this parameter, you do not
need to enter the -data or -dbscheme param-
eter ( → page 220)
You can find the dburl in the database pref-
erences
If no URL is given, the default will be used.
Database user- -dbuser <username>
name
e.g. -dbuser ”username”
Database pass- -dbpw <password>
word
e.g. -dbpw ”password”
Server (optional) -server <AUT Agent hostname>
e.g. -server ”localhost”
This is optional if you want to use the
embedded AUT Agent ( → page 219) .
Port number -port <port number>
(optional)
e.g. -port ”60000”
This is optional if you are using the
embedded AUT Agent and want to use a dy-
namically
chosen port. If you are using the embedded
AUT Agent and want to specify the port
then you should still enter a port number.
If you are working with a separately started
Detail Parameter
AUT Agent, this argument is required ( →
page 219) .
Language -language <language code>
e.g. -language ”en_US”
A list of language codes is available in the
reference manual (→Reference Manual p.
387).
Test Suite -testsuite <testsuite name>
e.g. -testsuite ”suite1”
Use to start a Test Suite ( → page 220)
Only one Test Suite or Test Job can be started
Test Job -testjob <testjob name>
e.g. -testjob ”job1”
Use to start a Test Job ( → page 220)
Only one Test Suite or Test Job can be started
AUT configura- -autconfig <configuration name>
tion name
e.g. -autconfig ”localconfiguration”
Use when starting an AUT via a configuration
( → page 220) .
AUT ID -autid <ID>
e.g. -autid ”SimpleAdder1”
Use when AUT was started via autrun ( →
page 220) .
Data directory -datadir <path to external
test data directory>
e.g. -datadir ”<pathToQADocs>/data”
Result directory -resultdir <path to directory>
e.g. -resultdir ”<pathToQADocs>/results”
No run option -n
(optional)
e.g. -n
Checks if the Test Suite is startable.
Quiet option -q
(optional)
e.g. -q
Does not give out test information.
Timeout (op- -timeout <timeout in seconds>
tional)
e.g. -timeout ”3600”
Detail Parameter
Enter an optional timeout for testexec.
No screenshot -s
(optional)
no screenshots will be taken on errors.
No screenshots -sx
in HTML and
XML (optional)
screenshots will be taken on errors
and written to the database
but they will not appear in the
XML and HTML reports.
Test results -r
not relevant
(optional)
If you are working with Test Jobs, you must use a sepa-
rately started AUT Agent, because you will require the
AUT Agent to start the AUT via autrun.
– You can leave out both the parameters for the server
and the port number. This will result in an embedded
AUT Agent being started on a dynamically chosen port.
– You can leave out the server parameter, but still enter a
port number. This will result in an embedded AUT Agent
being started on the port you define.
• If you are starting a Test Job, you must make sure that
the first AUT you require is already started with the autrun
command. You must then enter the AUT ID as a parameter
for the testexec. Any other AUT’s required during the test
must either also be started already, or started as a part of
the test itself. When working with Test Jobs, you must
use a separately started AUT Agent. You cannot use the
embedded AUT Agent with testexec when you are starting
a Test Job.
2. The client will connect to the AUT Agent (either the de-
fined separate AUT Agent or it will start an embedded AUT
Agent then connect to it), connect to the database, open
the Project, start the AUT (for a Test Suite) or connect to it
(for Test Jobs) and then execute the Test Suite or Test Job
you specified.
3. Once the test has finished, the client will show an exit
code.
-dbuser sa
2. This saves you typing in the same details each time you
start a test.
2. Enter dbtool.exe.
This will run the executable dbtool.exe.
Detail Parameter
Help -h
Gives parameter help
Delete Project -delete <project-name
project-version>
e.g. -delete ”ExampleProject” 1.0 ( → page 225)
Delete All -deleteall
e.g. -deleteall ( → page 225)
Keep test result -keepsummary (optional)
summaries
e.g. -keepsummary ( → page 225)
Directory -directory <directory path>
e.g. -directory ”<pathToQADocs>/projects/”
The directory for imports and/or exports
The directory must already exist
Export Project -export <project-name
project-version>
e.g. -export ”ExampleProject” ”1.0”
Existing files with the same name will be overwrit-
ten
Export All -exportall
e.g. -exportall
The directory for the export all must be empty
The directory must already exist
Import Project -import <import-file>
e.g. -import <ExampleProject.xml>
Create Version -createVersion <project-name>
<old-version> <new-version>
e.g. -createVersion ”MyProject” ”1.0” ”1.1” ( →
page 225)
Workspace -data <path to workspace>
e.g. -data ”<pathToQADocs>/workspace”
The ITE workspace with the preference
settings for the database connection
Detail Parameter
This is optional if you enter the -dburl
parameter
Database -dbscheme <scheme>
scheme
e.g. -dbscheme ”Oracle”
This is optional if you enter the -dburl
parameter
Database user- -dbuser <username>
name
e.g. -dbuser ”username”
Use sa (without quotes) for
the embedded database.
Database pass- -dbpw <password>
word
e.g. -dbpw ”password”
Use <empty> (””
for the embedded database)
Database URL -dburl <URL>
(optional)
e.g. -dburl ”db.example.de”
If no URL is given, the default will be used.
If you enter this, you do not
need to enter the -data or -dbscheme parameter
You can find the dburl in the database preferences
org.eclipse.jubula.dashboard.
port=<PORTNUMBER>
org.eclipse.jubula.dashboard.
jdbc_driver=<JDBC_DRIVER>
org.eclipse.jubula.dashboard.
jdbc_url=<JDBC_URL>
org.eclipse.jubula.dashboard.
database_username=<DB_USERNAME>
org.eclipse.jubula.dashboard.
database_password=<DB_PASSWORD>
http://HOSTNAME:PORTNUMBER/dashboard
Once the application has loaded, you will see the Functional
Test Reporting Perspective and can use it to view and analyze
test results ( → page 230) .
• You can reopen the Test Result View for a test run whose
details are still in the database ( → page 161) .
• You can filter and sort in the Test Result Summary View (
→ page 161) .
• You can export test results as HTML and XML reports from
the Dashboard.
4. You can then enter the configuration details for the moni-
toring.
3.34.1 Intro
If you are using the the Eclipse Jubula Feature in your Eclipse
installation, you can start AUT’s from within Eclipse, similar
to the way in which you would debug an application using
Eclipse. This section describes how to start your AUT directly
from the IDE.
3.34.2 Requirements
The following Features need to be installed in order to start
Swing AUT’s:
1. Select:
Window → Customize Perspective...
from the main menu.
Once you have completed the steps listed above, the Start
AUT button should be visible in the main toolbar of the active
Perspective. Start AUT
The Keyboard Layout for the AUT can be defined in the Start
AUT Configurations dialog. The entered value must represent
a locale and must represent a defined keyboard layout.
3.35 Troubleshooting
• That you have used the right port number and that it is not
being used by any other program.
• Whether the computer on which the AUT Agent is installed
is switched on.
• That there are no network problems, and that all necessary
hardware is connected.
• That you are connecting the AUT Agent to the right port
number and AUT Agent hostname.
• That you are connecting to the right version of the AUT
Agent.
The AUT cannot be found: Make sure that the JAR or ex-
ecutable file for the AUT is correct, or that the classpaths
are correct ( → page 50) .
The main class has not been found: Make sure that the
JAR file or the classpaths you have entered contain the
main class ( → page 50) .
The JAR given as a classpath does not contain a distinct main class:
Check that you have entered a JAR which contains a main
class.
but cannot collect the component, this could mean the fol-
lowing:
• The Test Suite has complete data for the current language.
You can use the Test Suite Browser to click through the
Test Suite to see the exact places where data and object
maps are missing.
• Make sure that the Test Cases and Test Steps are in the
right order.
• Check that the Test Steps preceding the failed Test Step
were successful by looking at the state of the application.
1. Select:
Help → Create Support Information Package
4. Click ”OK”.
3.36 Finishing up
3. To stop the AUT manually, select the AUT you want to stop
from the Running AUT’s View and then click the Stop AUT
button. stop AUT
4. A dialog will appear to ask you if you are sure you want to
stop the AUT. Click ”yes”.
You can also stop the AUT Agent from the system tray.
Stopping the AUT Agent will stop any AUT’s that are
connected to this AUT Agent.
• The BIRT report viewer starts (the first time it starts it may
take some time).
• You can click through the report’s pages in the viewer and
also export the report as a PDF.
Using the BIRT report designer, you can create your own re-
ports which will display specific information from these tables.
In the installation directory, in:
plugins/com.bredexsw.guidancer.reporting.birt.viewer
there is the directory reports.
In this directory, the templates for the reports available in the
ITE are stored. There is also a library which uses the database
as a data source and contains data sets (SQL queries) to this
database. The following information is contained in the li-
brary:
Datasets: there are views to show details from the four ta-
bles for reporting in the database.
4. You can then enter the AUT installation directory and the
AUT source directory for the code coverage:
You can enter relative paths for the AUT installation and
AUT source directories. The paths are relative to the
working directory.
• If you use the restart action during a test, this does not
result in the code coverage value being reset.
1. In the Test Result Summary View, select the test run whose
code coverage you want to see and click the ”Open Profil-
ing Report” button at the top of the view.
2. In the editor that opens, you can see the details for the
code coverage for the test run.
Chapter 4
Toolkit-specific
information
• The AUT must use SWT version 3.1 or higher. For Mac
systems, the version of SWT used must be 3.6 or higher.
• Eclipse versions 3.1-3.x and 4.x (with and without the com-
patibility layer) are currently testable.
4. Start your AUT normally (i.e. not as an AUT. Close it, and
then start it again.
• org.eclipse.jubula.rc.rcp
• org.eclipse.jubula.rc.rcp.common
7. If you can see these plugins, then you can continue and
start your AUT via e.g. an AUT configuration ( → page 52)
or via autrun ( → page 55) .
If you do not follow these steps, the AUT Agent will not be
able to communicate with your AUT!
<RCPAUT>/plugins/org.eclipse.jubula.rc.rcp_<Version>/resources
myTableItemInstance.setData
("TEST_TESTABLE_TEXT_" + colIdx, text);
5. You can copy the textpath from the Inspector View via
the context-menu and paste it as a parameter in your Test
Cases.
You will need to activate the inspector for each item you
want to inspect
Lists: ListView lists are supported. Drag and drop of list items
is not supported.
Menu bars: are supported. Only single menu bars are cur-
rently supported. If your AUT has multiple menu bars, an
error will be thrown.
• If you close a HTML AUT by closing the browser, the ITE will
correctly notice the closure after 5 seconds (configurable)
and will remove the AUT from the running AUT’s view.
Tables: Our actions have been written for and tested on ta-
bles of type System.Windows.Forms.DataGridView. Since
the introduction of this component in .NET 2.0, the
older System.Windows.Forms.DataGrid is no longer rec-
ommended. System.Windows.Forms.DataGrid tables are
not supported.
Show Text
1. Select the project file for your app in the Project Navigator.
2. From there, CTRL+click the target for your app and select
the ”Duplicate” option. Xcode may ask you if you want
your copy to be for a different iOS device, which you don’t,
so choose ”Duplicate Only”.
4. You can also (optionally) rename the new target from the
default MyApp copy to something more meaningful e.g.
MyApp (GUIdancer or Jubula Tests) by selecting the ”Build
Settings” tab and searching for ”Product Name”, then
changing the value to a new name.
Now that you have a target for your tests, add the tests to
that target.
4. Then click ”Add other...” in the lower left corner and lo-
cate and select the library librc.mobile.ios.nativ.a and click
”Open”.
...
#if RUN_FUNCTIONAL_TESTS
#import "UIRemoteControl.h"
#endif
...
...
#if RUN_FUNCTIONAL_TESTS
[UIRemoteControl attach];
// alternatively you can
// allow the UIRemoteControl
// to use a specific port number
// on the iOS device
// by using:
//
// [UIRemoteControl attach:<portNo>];
//
// this is necessary
...
#if RUN_FUNCTIONAL_TESTS
@property(nonatomic, retain)
UIWindow *window
#endif
...
If you use custom UI views and cannot access the text con-
tained in them during a test, then you can implement the
UITestable protocol, which provides a method allowing the
remote control to read the text from such controls.
• Click (to tap the switch). Depending on the AUT, this will
toggle the state of the switch.
• You can, e.g. select items from the list, check their exis-
tence etc.
• You can select items from pickers that have only one col-
umn (Figure 4.5 → page 284 ) using the actions for
combo component in the concrete toolkit. You can also
check the existence of items in the picker, check their se-
lection etc.
• In the iOS toolkit, you will find swipe actions for many com-
ponents. You can use these actions to perform swipes in a
specific direction.
• This allows you to press any item on the screen (on the
keyboard or elsewhere) based on its accessibility label:
Non-supported components
The following components are not a part of the iOS toolkit,
and their actions from the concrete toolkit cannot be used in
iOS tests:
• Menus
• Tables
• Trees
• Context menus
Non-supported actions
The following actions are currently not supported:
Other information
[assembly: LinkWith
("librc.mobile.ios.nativ.a",
LinkTarget.Simulator | LinkTarget.ArmV6
| LinkTarget.ArmV7,
"-ObjC -all_load", ForceLoad = true,
Frameworks="CFNetwork")
Copy this DLL to your project for your AUT and add it as a
reference to a .NET Assembly.
When the library changes, we recommend to remove this ref-
erence and repeat the entire process.
[Export("window")]
UIWindow window { get; set; }
Chapter 5
User interface
Perspectives
A perspective is a collection of views, editors and browsers on
the screen.
Browsers
Browsers let you see the Test Cases and Test Suites you have
created in their hierarchical structures. There is also a browser
for component names.
Editors
Editors let you modify, add and delete items. You can open
editors by double-clicking on a node (e.g. Test Suite or Test
Case) in a browser.
Views
Views show details about the currently selected item. If you
single-click an item in a browser, the details in the views are
read-only. If you select an item from within an editor, you can
edit some of the values in the views.
You can change the way your user interface looks by moving
areas, changing the colors, and hiding/showing views ( →
page 206) .
To reset the default layout at any time, select:
Window → Reset Perspective .
5.1 Perspectives
• Navigator View
5.2 Browsers
There are three browsers in the ITE:
The Test Case Browser lets you create and manage your
Test Cases.
The Test Suite Browser lets you create and manage your
Test Suites.
You can filter in the Test Suite Browser using the field at
the top. Use star * as a wild card.
You can filter in the Test Case Browser using the field at
the top. Use star * as a wild card.
5.3 Editors
Editors appear in the editor area in the middle of the perspec-
tive when you double-click an item in one of the browsers or
in the Navigator View.
You can tell what sort of editor it is in two ways:
1. The tab for each editor shows an ID-code for what type of
editor it is:
The tab also shows the name of the item the editor is for.
• You can alter test data and component names for the Test
Case.
When you single-click items (Test Cases, Test Steps) in the Test
Case Editor, the support views (Properties View, Component
Names View and Data Sets View) show details about this item.
Using these views, you can edit the properties, test data and
component names for this item.
• You can alter the Test Suite properties (e.g. the AUT it uses,
the default Event Handlers).
• You can alter test data for the Test Cases shown.
In the Test Suite Editor, you can only alter details for the
top-level Test Cases for each subtree.
When you single-click Test Cases in the Test Suite Editor, the
support views (Properties View, Component Names View and
Data Sets View) show details about this Test Case. Using these
views, you can edit the properties, test data and component
names for this item.
• You can see all the component names you have used in the
Test Suite you selected, and any other Test Suites which use
the same AUT.
• You can see any technical names you have collected from
the AUT.
• You can see the component and technical names you have
assigned to each other to complete mapping.
• You can create, modify and delete central test data sets.
• You can search for places where central test data sets have
been used.
5.4 Views
The ITE has the following views:
• Properties View
• Problem View
• Navigator View
• Console
• Inspector View
• Image View
• Progress View
The first three views are support views. Their content changes
depending on the current selection – they show details corre-
sponding to the currently selected item.
Use Window → Show View → Other to see a full list of
views that can be opened in the ITE.
Chapter 6
Concepts
6.1 Overview
The ITE is based on the Eclipse development platform, a
platform-independent, open-source framework for develop-
ing applications.
With the ITE, you can specify, modify, execute and analyse
tests. The user interface offers various ways of working, so
that you can choose the way that suits you best. You can
alter the way the client looks, and the way it behaves. You
can work using the menu bar, the tool bar, context-sensitive
menus and shortcuts.
6.2 Testing
The information in this section help you to understand how
your application is tested, and how you can write tests for the
actions you want to test.
the creation of Test Cases easier and quicker, and makes them
more understandable.
For example, there are two actions to enter text into a text
field. The action Replace Text selects the whole text in the
component and then enters the text input. This effectively
overwrites any text which was already in the component. The
Input Text action clicks once in the component and then en-
ters the text, which means that any text previously in the com-
ponent remains.
Another example is the selection and navigation through trees
and menus. Like a human tester, the test execution works
using the path to the item to select, and doesn’t first have to
select the individual sub-items in the path.
High-level actions can be used on all standard components
without problems. However, if the behaviour or look-and-feel
or a component has been changed (e.g. double-click in a text
field brings up a dialog instead of selecting the word) then
some high-level actions may not work. In this case you will
have to combine the low-level actions. Often, there are many
ways of achieving the same effect in your test, and it may
just be a case of trying out a few different ones to see which
works for you and your AUT.
When writing tests, it helps to be aware of things that a hu-
man tester does implicitly. Often, these are things that have
to be explicitly stated in an automated test, like waiting for
the application to be ready, or selecting an item before open-
ing the context menu, or even pressing enter to close a cell
editor in a table.
6.3 Architecture
This is a client-server application. We refer to the client part
as the Integrated Test Environment or ITE, and the server com-
ponent as the AUT Agent.:
You can install the ITE and AUT Agent on different machines;
even on different platforms. This lets you specify and run your
tests on different machines, and means that you can run the
same test on different platforms.
6.3.1 ITE
The ITE is the interface between you and the AUT. It provides
you with browsers to see Test Cases and Test Suites, and edi-
tors to modify them.
In the client, you specify your tests without any program-
ming. You can write tests modularly, structure them to fit
your needs, and easily change them to follow developments
in the AUT.
6.4.2 Single-user
If you work on a single-user database, only one tester can
work on a specific Project at a time. This also applies to the
test executor – the ITE and the test executor cannot access a
single-user database at the same time.
This method reduces the complexity of the system and its con-
figuration, and should really only be used for demo purposes.
Project sharing remains possible, however, through import/ex-
port.
6.4.3 Multi-user
When using a multi-user database, multiple testers can work
on a single Project concurrently.
Within such a scenario, all testers currently working on a
Project may view and execute all parts of it. As soon as one
tester alters a part of the Project, a lock is placed on that unit
to disallow other users from making changes of their own.
They are, however, still able to view and execute a locked test
unit. Once the user with the lock has saved all changes, the
lock is removed, and the test unit is once again available for
editing.
This database scenario is well-suited for larger testing oper-
ations, allowing for tight collaboration among testers and
reducing the overall time needed to specify complex testing
projects.
A Test Case can contain any number of Test Steps and other
Test Cases nested to any depth. Test Cases are given user-
defined names.
Test Cases can be reused – in other Test Cases and in Test
Suites. There are no limits on how often a Test Case can be
reused, as long as no circular dependencies (infinite loops) are
created.
6.6.5 Projects
Tests are organized into Projects. A Project is the top-level con-
tainer. Projects contain runnable tests and the details about
the AUT’s to be tested (how to start them, in which language
etc.).
You can work jointly on Projects using the multi-user
database, and you can also share Projects using the import
and export functions.
6.7 Reusability
Test Cases are the reusable units. Test Cases can be referenced
in other Test Cases to create modularly built tests.
Being able to reuse Test Cases means that you should put
some thought into how to design them so that they are as
specific as they need to be while also being generic enough
to reuse in different situations.
You can improve the flexibility of a Test Case by:
also contains the click action, and has the advantage that the
Test Case can then be used on other components than but-
tons. If you want to select a cell from a table, however, you
will have to use the concrete component table, because this
is the highest level which offers this action.
The more abstract your specification, the more flexible your
Test Cases are.
You can reuse observed Test Cases in the same ways as you
can reuse specified Test Cases.
An Event Handler is a Test Case used with a special function. It Event Handler
is only executed when a certain type of error occurs. There are
four different types of error, and each Test Case can have an
Event Handler for each error type. You can specify different
reactions to each different error type, so that serious errors
can stop the test, but unimportant errors will not affect the
execution.
Because Event Handlers are normal Test Cases, they can also
contain Event Handlers, can do any of the things that a normal
Test Case can do. The only restriction is that you cannot add
a Test Case to itself as an Event Handler.
6.13 Extensibility
You can write extensions for various parts of the tool. This
requires somebody to implement the extension.
For information on how to do this, see the Extension Manual.
6.14 Summary
After reading this chapter, the structure and concepts of the
tool should be clear. You can specify reusable Test Cases to
make Test Suites in a Project. To enhance the reusability and
structure of test elements and the ease of use, there are var-
ious features supported by the program. To look at these
features in more detail and find out how to use them, see the
”Tasks” chapter ( → page 21) .
Chapter 7
Glossary
AUT The Application Under Test. The AUT is the entire pro-
gram that you wish to test.
• a name
• a type
• a value
• String
• Integer
• Boolean
Project A Project contains all the information for the test, in-
cluding Test Suites and Test Cases, AUT’s and data. Projects
are stored in the database.
Test Case Editor An editor area used to create and alter Test
Cases and Test Steps. The Test Case Editor is located by
default in the center of the perspective.
• a Component
• an Action
• a Parameter
Test Suite Browser The view containing the Test Suite tree,
where the Test Cases in a Test Suite can be seen. The Test
Suite Browser is situated by default in the top left-hand
corner of the perspective.
Chapter 8
Index
Parameters, 22
Preferences, 168
Quiet Mode, 22
Starting, 21
Stop, 245
AUT Configuration
Add, 50, 52, 57, 58, 60
Edit, 50, 52, 57, 58, 60
iOS, 60
AUT ID, 52, 57, 58, 60, 126, 236
autrun command
Define AUT, 55
Best Practices
RCP, 264
Break, 126, 165
Browser, 291
Component Name, 292
Test Case, 292, 299
Test Suite, 292, 299
Comments
Categories, 78
Component, 117, 132, 315
Names, 319
Delete, 122
Global, 117
Hierarchy, 123
Local, 117
Merge, 121
New, 116
Reassigning, 117
Rename, 119
View, 117, 292, 302
Type, 132
Component Name
Delete, 65
Renaming, 65
Component name
Show where used, 209
Component Name Browser, 292
Component not found, 126, 164, 165
Concatenation, 101
Concrete Value, 91
Configuration
AUT, 50, 52, 57, 58, 60
Test Suite, 126
Configuration error, 126, 164, 165
Connect
AUT Agent, 23
Console
View, 302
Continue, 126, 165
Continue without Event Handler, 157
Create
Project, 29
Data Sets View, 112, 292, 302
Database, 312
Change, 28
Log-in, 27
Preferences, 169
Select, 28
dbtool, 223, 224
Default
Language, 29
Default Event Handler, 126
JavaFX
Design For Testability, 267
Set ID, 267
JRE parameters, 95
Language
Default, 29
Languages
AUT, 319
Project, 29, 319
Working, 319
Launch Configurations, 234
Library of Test Cases, 82
Local Component Names, 117
Locked
Test Case, 243, 313
Log-in
Database, 27
Maintainability, 319
Merge Component Names, 121
Messages
Error, 183
Information, 183
Warning, 183
Names
Component, 319
Reassigning, 117
Technical, 319
Navigator View, 297, 302
New
Component Name, 116
Project, 29
Test Case, 80
Test Job, 130
Test Step, 132
Test Suite, 125
Categories, 77
Delete, 65
Edit, 69, 86
Editor, 301
Extracting, 72
Library, 82
Locked, 243, 313
New, 80
Renaming, 65
Replace, 73
Save As, 76
Show specification, 208
Show where used, 208
Test Case Browser
Opening multiple times, 67
Test data, 91
Editor, 302
Test execution
Speed, 158
Test Executor, 216, 222
Test Job, 128–130, 317
Categories, 77
Delete, 65
Edit, 69
Pause, 156
Renaming, 65
Start, 155
Stop, 156
Test Result
Preferences, 171
View, 294
Test Result Summary
View, 295
Test Result Summary View, 302
Test Step, 315
Delete, 69
Edit, 134
New, 132
Observe, 179
Test Suite, 125, 317
Add, 68
Browser, 292
Categories, 77
Configuration, 126
Delete, 65
Edit, 69
Editor, 125, 130, 301
Failed, 242
New, 125
not executable, 241
Pause, 156
Renaming, 65
Show specification, 208
Show where used, 208
Start, 155
Stop, 156
Translating data, 112
Troubleshooting, 238
Typesetting Conventions, 12
Unassigned names
Component, 139
Technical, 139
User Interface
Adapting, 206
Variables, 94
Environment, 95
Pre-defined, 96
Storing, 94
System, 95
Verify failed, 164
Versioning Projects, 43
View, 291, 302
Component Names, 117, 292, 302
Console, 302
Data Sets, 292, 302
Editor, 292, 302
Image, 302
Inspector, 302
Navigator, 302
Problem, 183, 292, 302
Progress, 302
Properties, 292, 302
Results, 159
Running AUT’s, 302
Search Result, 302
Show, 206
Test Result, 302
Test Result Summary, 302
Views
Navigator, 297
Test Result, 294
Test Result Summary, 295