Beruflich Dokumente
Kultur Dokumente
The Debug Viewer pane assists you in debugging your tests or function libraries,
and contains the following tabs:
Tab Description
Watch: Displays the current value and type of any variable or VBScript expression
that you added to the Watch tab. You can also set or modify the values of the
variables and properties that are displayed.
Variables (Local Variable in UFT): Displays the current value and type of all
variables that were recognized up to the last step performed during the run
session that you are debugging. You can also set or modify the values of the
variables that are displayed.
Command (Console in UFT): Enables you to run lines of script to set or modify
the current value of a variable or VBScript object in your test or function library
(e.g: if a=hhhh then b=iii endif)
o
o
Breakpoint shortcut F9/ Step Into F11/ Step Over F10/ Step Out Shift+F11
Step Into: Runs only the current line of the script. If the current line calls a
method, the method is displayed in the view but is not performed (Takes to
the code and each line is executed sequentially)
Step over: Runs only the current line of the script. When the current line
calls a method, the method is performed in its entirety but is not displayed
in the view (Code is not displayed however code is run and output is
displayed i.e. it will execute the entire function instead of going line by
line)
Step Out: Runs to the end of the method when pauses the run session (It
is available only after running Step Into) (Takes to the code however only
output is displayed i.e. it executes all other functions at a time)
If a file is called using an ExecuteFile statement, you cannot debug the
file or any of the functions contained in the file
Process Guidance Description pane (shown on the right). Describes the tasks
that you need to perform for a selected activity
o
o
o
o
Test Object
Are QTP defined class
Stored in OR
For a specific environment can be viewed in
object identification config
Properties are created by QTP
Get To Property
o
o
o
o
Message Statements
You can generate messages in your test that are displayed in the Run Results
Viewer. You can also choose to display messages on screen while running your
test
You can send the following types of messages to the run results:
Test-specific messages. You can add notes run results to provide additional
information about the test run. For example, you can specify the application
version tested, the operating system used, languages, and so on. In the Run
Results Viewer, this information is displayed in the Executive Summary page.
You add a note by inserting a Reporter.ReportNote step in your test
Step-specific messages. You can define a message that QuickTest sends to your
run results. For example, suppose you want to check that a password edit box
exists in the Mercury Tours site. If the edit box exists, then a password is entered.
Otherwise, QuickTest sends a message to the run results indicating that the object
is absent. You send messages to the run results using the Insert Report dialog box.
When you add a report step, a Reporter.ReportEvent step is inserted.
o
o
Action Types:
Reusable action: An action that can be called multiple times by the test with
which it is stored (the local test), as well as by other tests. By default, new actions
are reusable. You can mark each action you create in a test as reusable or nonreusable. Only reusable actions can be called multiple times from the current test
or from another test. Inserting calls to reusable actions makes it easier to
maintain your tests, because when an object or procedure in your application
changes, it needs to be updated only one time, in the original action.
Non-reusable action: An action that can be called only in the test with which
it is stored, and can be called only once. You can store a copy of a non-reusable
action with your test and then insert a call to the copy, but you cannot directly
insert a call to a non-reusable action saved with another test.
External action: A reusable action stored with another test. External actions
are read-only in the calling test, but you can choose to use a local, editable copy
of the data table information for the external action