Date: Thu, 28 Mar 2024 19:56:30 +0000 (UTC)
Message-ID: <1415010221.10769.1711655790925@911f0a1bad02>
Subject: Exported From Confluence
MIME-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_10768_928708047.1711655790925"
------=_Part_10768_928708047.1711655790925
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Content-Location: file:///C:/exported.html
QF-test Documentation:
http://www.qfs.de/en/qftest/tutorial.html - html
http://www.qfs.de/qftest/tutorial_en.pdf&=
nbsp; - pdf
http://www.qfs.de/en/qftest/demos.html =
; - video
Before You Start
- Download QF-Test: download page
- Licensing : in the qftest install folder (
../qfs/qftest/
) =
copy these files: license, license.old, license.new
- On first startup of QF-Test and/or the System Under Test (SUT) via QF-T=
est you might get a security warning from the Windows firewall asking =
whether to block Java or not. As QF-Test communicates with the SUT by =
means of network protocols, this must not be blocked by the local fire=
wall in order to allow automated testing.
JRE Instrumentation
- make sure JRE is installed;
- instrumentation of the JRE on which the SUT will run is now the primary=
method of providing a way for QF-Test to interact with the SUT. Normally y=
ou don't need to instrument standard JREs because QF-Test passes the same i=
nformation to the SUT's JRE via environment variables. However, for special=
cases instrumentation may be required anyway
- in main menu select Extras > Manage Instrum=
entation > Instrument (if the path is not show=
n, click Search first and point to the jre install folder)=
- the State changes to: Instrumentation current
Ser=
voy
- Create/export the solution for testing - System Under Test (SUT)
- Start AppServer and import the SUT
Setu=
p
- Next step give a proper client name: for ex: 'svy_sample' - This name s=
erves as central reference to identify your client
- Next step: Start automatically is checked =E2=80=
=93 QF-Test will launch SmartClient
- Wait for the client to launch
- Save the script (File-Save) with a desired name
Main Window Description
- The left part of the main window contains the tree structure that repre=
sents the test-suite. The right side displays the details of a selected nod=
e. (In case you don't see the details view, you can switch it on with the V=
iew! Details menu option.) At the bottom of the main window you'll see the =
terminal output area, which displays stan-dard messages and communications =
in between your test-suite and the client applica-tion you are testing.
- The basic structure of a test-suite and thus the child nodes of theTest=
-suite root node is fixed. An arbitrary number of Test-set, Test-case or Te=
st nodes are followed by the Procedures, Extras and Windows and components nodes. The Proce=
dures node holds Packages and Procedures<=
/strong>.
Starting the Application
- If QF-Test is configured =E2=80=93 JRE instrumentation is done, jnlp pa=
th is added, select Setup node and hit Enter
- (When qf-test is run the first time, there is a check - Start a=
utomatically)
Our first step will be to examine the Setup node:
- Set variable: client=3D'client'
- Start SUT client: javaws [$(client)]- starts the application for the cl=
ient you will be testing, called the System Under Test (SUT).
- Wait for client to connect [$(client)]- waits until the new Java Virtua=
l Machine, in which your SUT will run, binds itself to QF-Test.
- If the jnlp path was correct, the solution will open in SmartClient and=
the QF-Test's buttons bar a couple of buttons will become enabled (like: <=
strong>Start Recording =E2=80=93 red circle, Recording che=
cks =E2=80=93 green check ...)
- In the first field, labeled Client is an ambiguous nam=
e for the SUT application. You can give the SUT any name you wish, but the =
same name will be used as a reference to the SUT in other nodes. In other w=
ords, this name must be used consistently.
Context Help
While working with various nodes in QF-Test you may, for example, requir=
e some asistance in remembering what purpose they are used for. To serve th=
is need, QF-Test comes with context-sensitive help, driven simply by your m=
ouse. Move the mouse pointer over an element you would like to have assista=
nce with, then click the right mouse-button. In the now appearing popup men=
u, you'll see an entry labeled 'What's this?' By selecting=
this option from the popup menu, the appropriate section in the user's man=
ual will be brought up and displayed in your standard browser.
Recording Events
- Click Record button
- Go to SC, do the actions needed, typing data / adding records / delete<=
/li>
- When done go to qf-test and hit Stop button
- A sequence is created which can be renamed properly-select seq.-hit F2 =
key-give it a name
- Multiple sequences can be packed in Procedures by multiple selecting se=
quences, right click, transform node into procedure
Recording Checks
- Click Record button
- Click green =E2=80=93 check button
- In SC left click the fields that you want checked in the desired order<=
/li>
- When finished, go back to qf-test main page and hit Stop recording-square button, the sequence was recorded
- Multiple sequences can be packed in procedures by multiple selecting se=
quences, right click, Transform node into - =
Procedure, which can be renamed properly-select proc.-hit F2 key-g=
ive it a name
- Procedures can be directly recorded by hitting Record =
button and then
Playback - Running the Script
- If only the Setup part of the script is tested, then select Set=
up node of the tree and hit Enter
- If only a sequence is tested, or multiple by shift-selecting, then sele=
ct that sequence and hit Enter
- If all the script is tested then select Extras node, a=
nd hit Enter
- TIP: for easier following of the test run, add a default delay: go to <=
strong>qf-test > main menu > edit=
strong> > options > replay > delays > default delays add somethi=
ng like 350 in the before and after fields.
Tip: use the links at the top for more detailed documentation and video =
tutorials.
------=_Part_10768_928708047.1711655790925--