Application Lifecycle Management Module 8
Application Lifecycle Management Module 8
HP SPRINTER 12.0
Page |1
Students learn how to work with the Desktop client and the new Web client. In
addition, using the HP Sprinter and its new features are discussed, including:
Objectives:
After completing this module, you should be able to:
Use Sprinter
Author tests
Define storyboarding
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |2
So, what are we waiting for? Let us now explore the Lifecycle
Management of Application
Introduction
Introducing HP Sprinter
Sprinter Overview
Integration with UFT – When working in Power mode, you can save
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |4
manual Sprinter can import the XML file and convert it to an automated
GUI test.
Performance Improvements – Performance improvements have been
made in many areas of the product, such as opening, loading, and running
tests.
Manual Mapping tests as XML files which are compatible with HP Unified
Functional Testing (UFT). In UFT you – In Data Injection, you can
manually map fields in your application to columns in your data set.
Mobile Application Testing – You can now test Web or Native
applications using a cloud mobile provider (Perfecto Mobile).
Expanded View – You can now view screen captures, in the Step tab, as
full images in Run mode.
Link to existing defects – You can now link a test run to an existing defect
ALM Reporting Capabilities Improvements – You can now see the run
steps of manual tests executed with Sprinter in ALM reports.
Welcome dialog box options let you open or create a test or business
component. To access the Welcome dialog box, do one of the following:
Start Sprinter.
In the main window, select Welcome Screen from the drop-down menu
next to the Help button.
When you select the Show on startup option, Sprinter displays the Welcome
dialog box each time it is launched. You can configure Sprinter to bypass the
Welcome dialog box in the General Settings pane (Settings dialog box) or you
can just de-select the Show on Start-up checkbox.
There are two ways to open a test in Sprinter: either select a test in ALM‘s Test
Lab module and launch Sprinter from there, or you can open Sprinter on your
desktop, connect to ALM, and open the test from ALM’s Test Lab module.
To launch HP Sprinter from the desktop, complete the following steps:
1. Click the Sprinter shortcut on the desktop. HP Sprinter opens showing
the Open a Test window. Close the Open a Test window.
2. Double-click the HP ALM connection button.
3. Enter the address, user name, and password and click the Authenticate
button.
4. Enter the domain and project and check the Reconnect on Startup check
box since you typically work on the same HP ALM server.
5. Click the Login button. Sprinter connects to HP ALM and the Open dialog
box appears.
General Settings
Select your General Settings choices.
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |5
The main Sprinter window enables you to manage your test and
components, set test and component definitions, view test results, and configure
Sprinter settings.
Test and Component Authoring Overview
Sprinter’s Plan mode enables you to create and edit tests or components
directly in Sprinter and save them to ALM. You can create and edit steps
manually in the Steps tab, or use Steps Capture to automatically generate steps
based on your user actions. You can then add screen captures or attachments to
steps. You can define input parameters for each step, and also output
parameters for components.
Developing a clear and concise test plan is fundamental to successful
application testing. A good test plan enables you to assess the quality of your
application at any point in the application management process. It allows you to
outline a strategy for achieving your requirements, as defined in the
Requirements module.
Considerations for Planning Application Testing
How should you test your application? – Which testing techniques will
you use (stress tests, security tests, performance and load tests)?
How will you handle defects (severity classification, authorization to open and
close defects)?
What resources do you require? – What resources do you require to test
(personnel, hardware, and so forth)? When will the various tasks be completed?
As an example, consider a flight reservation application that lets you manage
flight scheduling, passenger bookings, and ticket sales. Testing requires
designing both manual and automated tests. You could assign testing personnel
with programming experience the task of designing automated tests, while non-
programmers could design manual tests.
To access the Plan area, complete the following steps:
1. Start Sprinter and close the Welcome window, if open.
2. Select Plan from the main toolbar.
3. Click the New button in the Tests and Components list to create a new
test.
4. In the Test tab, in the Details pane, provide information for the test, such
as description and comments.
5. Add an attachment and Parameters that will be used for the test.
New Button
You use the New button to create a new test or component and add it to
the Tests and Components list.
Drop-down options:
New HP ALM Test – Adds a new blank test to the Tests and Components
list.
New HP ALM Business Component – Adds a new component to the Tests
and Components list.
Open Button
You use the Open button to add an existing test or component to the Tests and
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |6
Components list.
Drop-down options:
Open HP ALM Test (Default) – Displays the Open ALM Test dialog box.
The tests you select are added to the Tests and Components list.
Open HP ALM Business Component – Displays the Open ALM Business
Component dialog box. The components you select are added to the Tests
and Components list.
Save Button
You use the Save button to display the Save/Save As dialog box, which
enables you to save the selected tests or components in the Tests and
Components list.
Drop-down options:
Save – Saves the selected test or component.
Save As – Saves a copy of the selected test or component to the specified
location.
Note: The save options are disabled when more than one test or component is
selected.
Sprinter's Plan mode enables you to create and edit tests or components
directly in Sprinter and save them to the Application Lifecycle Management. You
can create and edit steps manually in the Steps tab, or use Steps Capture to
automatically generate steps based on your user actions. You can then add
screen captures or attachments to steps. You can define input parameters for
each step, and also output parameters for components.
Creating a New Test
To create a new test, click the New button in the Plan area. The new test
is added to the Tests and Components list. To create a new business component,
select New →New HP ALM Business Component. The new business component
is added to the Tests and Components list.
The New HP ALM Test button opens the Authoring pane and adds a new test
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |7
entry to the Tests and Components list. If you are not connected to ALM, the
ALM Connection dialog box opens to enable you to connect to ALM.
Steps Tab
Use the Steps tab to:
Add, edit, move, and delete test or component steps
Import steps from Excel or CSV files
Format steps using rich text editing capabilities
Add screen captures and attachments to steps
Insert calls to an external ALM test
Insert parameters to steps
Find Section
The ribbon’s Find section lets you search the text associated with the steps.
The UI elements include:
UI Elements Description <search text> – You can search for text in the
Name, Description, or Expected Results fields, or in any user-defined
field.
Search Down/Up – You can choose the direction of the search.
Match whole word – This instructs the search engine to find a whole
word.
The ribbon’s Step section lets you manage steps of the test or component.
The UI elements include:
– Move Step Up/Down. Moves the selected step up or down the steps grid.
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
Page |8
– Insert Parameter. Opens the Insert Parameter dialog box that enables
you to insert a parameter at the cursor’s location in the Description or Expected
Results fields.
– Add Attachment. Adds a file from the file system as an attachment to the
selected step (tests only).
You must first identify the application that you will be using. Then you
use the Steps Capture feature to automatically generate test steps based on your
user actions. The actions that you perform on the application during the test are
captured and saved as steps. You have the option to save each single action as a
new step or to group actions into a step.
Sprinter enables you to run steps that you manually add to your test or
those that you imported from an external file.
When you run your test, the steps are displayed in the Steps sidebar. From the
Steps sidebar you can:
Navigate your steps
Mark the status of your steps
Modify the actual results of your steps ␣ Add attachments to steps
Add screen captures to the actual results of your steps
Edit the details of your steps
Submit defects
Search in your steps
View the parameters in your steps (Business Process Testing only)
The Steps sidebar also provides a Subtitles mode, which displays your step
descriptions and enables you to navigate and mark your steps in a one-line
subtitle, while providing more screen real estate for your application.
When you finish your run, Sprinter saves your changes to the run results for
your run. If you made changes to the details of your steps, Sprinter prompts you
to save your changes to the Test Plan module in Application Lifecycle
Management.
If your test is checked-in, Sprinter automatically checks it out, saves your
changes, and checks it back in. If your test is checked-out to another user,
Sprinter warns you that your changes cannot be saved.
Running a Basic Test
You perform the user interactions as specified in the Steps window,
evaluate the expected results, pass or fail the step, and make annotations for the
actual results as necessary.
To execute the test, complete the following steps:
1. Ensure that the Steps sidebar opens automatically. If not, click the Steps
tab.
2. Follow the instructions for the first test step. In this example, you enter
the Agent Name.
3. Evaluate whether the application is responding as expected and then
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 10
2. Select the Submitted Defects node to view a list of the defects you
submitted during your test. Click Defect ID Number to open the HP ALM
Defect Details dialog box for that defect.
3. Select the Defect Reminders node to view a list of the defect reminders
created during the test. You can select a reminder and click Submit Defect
to submit the defect to ALM.
4. Select the User Actions node and view a list of the user actions performed
during the run. This list of user actions can be exported to an Excel
spreadsheet.
Exploratory Testing
With Power mode enabled, you can navigate your application without
the need to follow predefined steps. While you navigate your application,
Sprinter captures each user action that you perform. You can then export these
user actions to a new manual test or to an Excel file.
If your test does not have steps, you can begin your test run and perform
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 12
You can navigate your application without predefined steps and Sprinter
automatically logs all user actions performed during the test and creates a user
log of those actions. You can then export these actions to a new manual test, to
a UFT, or to an Excel file.
Mirroring lets you run the same test scenario on different configurations.
With mirroring, every user action you perform in your application on your
primary machine is replicated on the defined secondary machines.
To work with mirroring, complete the following steps:
1. Select the mirroring node in the Power Mode group.
2. Click the Add button to add a new machine for your application.
3. In the General tab, provide a name, description, and machine name or IP
address for the machine being used as the secondary machine.
4. In the Run Configuration tab, choose an option for configuring how
Sprinter would launch the application on the machine and choose a
browser.
5. If you want to open a remote desktop connection to the machine during
the test, in the Remote Desktop Connection tab, enter the domain name,
user name, and password and click OK.
During the testing process, parts of your test might require you to
perform a series of user actions that you want Sprinter to perform for you. You
might also have parts of your test that involve performing the same set of
actions in multiple areas of your application. Having Sprinter perform the set of
actions can save testing time and reduce errors.
A macro is a series of actions that you can save and run as a single command.
Sprinter can perform these actions for you when you create and run macros. For
example, you might want to use macros to:
Automate a login procedure
Perform a series of introductory steps to set up your application for
testing
Sprinter only saves a macro if it contains at least one user action. Your user
actions are only recorded after they are completed. For edit boxes and combo
boxes, the action is not complete, and will not be recorded until you move the
focus off the box.
Recording a Macro
To record a macro, complete the following steps:
1. Click the Macros sidebar.
2. Click the Record Macro button.
3. Perform the steps that you want to record in the macro.
4. Click the Macros sidebar again.
5. Click the Stop Recording button. The Macro Details dialog box opens.
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 14
During the testing process, you might want to check that different
aspects of your application behave or display correctly. You can select which
scanners to use both prior to the run session and during the run session. After
each scan is completed, you can see the scan results in the Scan Results Viewer.
In the Scan Results Viewer, you can perform several actions, such as creating
smart defects and defect reminders.
Sprinter includes the following scanners:
Broken links scanner – This scanner, relevant only for web applications,
checks your application for broken hyperlinks and missing referenced
content. You can set the threshold time. This is the time in seconds after
which the link is considered broken.
Localization scanner – This scanner checks your application for errors
resulting from translating the application’s UI into different languages.
You can scan for the following issues:
Incomplete strings – Suppose that after translating the user
interface strings in your application, the main title of the page is
too long to be displayed within the title bar. When this option is
selected, the Localization scanner identifies the string as
incomplete. Make sure to set the target language, as the scanner
performs a check against this language during the scan.
Untranslated strings – Suppose that after translating the UI
strings of your application, you want to verify that all of the
strings were translated from the source language to the target
language. When this option is selected, the Localization scanner
compares any string that is not spelled correctly with both the
target dictionary and the source dictionary. If the string is found
in the source dictionary, the scanner identifies the string as an
untranslated.eral action, such as creating smart defects and defect
reminders.
Spell check scanner – This scanner checks your application for spelling
errors. You can define up to two dictionaries for the scanner to use. This
enables you to check spelling for applications that contain strings in
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 15
Scanner Configuration
To use scanners, you must first enable Power mode and configure an
application for your test.
Configuring Scanner Settings
To configure scanner settings, complete the following steps:
1. Before the run session begins, use the Scanners pane (Power Mode
group) to turn on the relevant scanners.
2. During the run session, in the Scanners sidebar, click the Scanner
Settings button. The Scanner Settings dialog opens. This dialog box
contains all of the available settings that the Scanners pane (Power Mode
group) contains.
Scanning Your Application During a Run Session
In the Scanners sidebar, click the Start Scan button. The progress
window opens, displaying the status of each scanner.
Analyzing Scan Results
After the scan ends, click Continue in the Scan Progress window, to open
the Scan Results Viewer. Handle the results for each scanner by creating a defect
or a defect reminder, or performing a custom action. For example, for spell
check scan results, add the word to a dictionary.
Tip: If you closed the Scan Results Viewer, click the Last Scan Results button in
the Scanners sidebar to display the results of the last scan.
To access the Scan Progress window, during a run session, click the Start
Scan button on the Scanners Sidebar tab.
By default, only summary information is displayed. You can expand the
window to view detailed information about each scanner. If all scans run
successfully and results are found, this window closes after the scan is
completed, and the Scan Results Viewer opens. If one or more scans fail, the
failure reason is displayed in a tooltip when you hover over the scanner name.
The UI elements include (unlabelled elements are shown in angle brackets):
<Scan status> – The overall progress of the scan
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 16
Potential defects found – The total number of scan results, which might
indicate defects in the application
<Scan status details> – The scanner name, potential defects, and status
for each scanner that you selected to use
Details – Shows or hides the scan status details
After each scan completes, the scan results display in the Scan Results
Viewer. In the Scan Results Viewer, you can perform several actions, such as
creating smart defects and defect reminders.
The Scan Results Viewer also enables you to address the results by
submitting defects to ALM based on the results. You can also create defect
reminders to be submitted after the run session ends.
The Scan Results Viewer displays results only from the last scan that you
performed. The Scan Results Viewer is available only during the run session.
UI elements include (unlabelled elements are shown in angle brackets):
The Scanners pane and the Scanner Settings dialog box enable you to
select which scanners to use during a run session. You can also configure
settings for each scanner.
The example in the slide shows a Spell Check failure. Departing From and
Service Classes have errors. Spell check runs using the default dictionary. You
can add dictionaries.
Storyboarding
Sprinter software gives you the ability to test web or native applications
using a cloud mobile provider.
The solution:
Testing is done using real devices all over the world.
Devices are launched over the cloud with zero setup time and zero time
to maintain.
The cloud can be either private or public.
Key Benefits:
Accelerate and improve the efficiency of moblie manual testing
Expand and minimize floating sidebars, as needed, to maximize real
estate
Accelerate defect remediation
Capture and record images of test actions and results
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 19
This is the screen presented after you choose a device and start a test.
Steps, Annotation Tools, and Run Control are the Sprinter main capabilities tabs
that are available during your test run.
The Centered box is the handset itself, a real one, and when you perform
actions, those actions are being executed on the device. You can test on a variety
of smart phones and tables from inside Sprinter.
Complete testing information, including active screenshots and video
recordings, is embedded into the Sprinter report.
CS-6302 APPLICATION LIFECYCLE MGT
HP SPRINTER 12.0
P a g e | 20