Professional Documents
Culture Documents
This paper will briefly review the challenges of testing Windows Forms
applications and review the functionality of Mercury QuickTest
Professional and its .NET add-in capabilities. The paper will then introduce
Infragistics TestAdvantage custom libraries and the Infragistics
NetAdvantage presentation layer toolset, and conclude by presenting the
benefits of using Mercury QuickTest Professional and TestAdvantage to
automatically test the presentation layer of Windows Forms applications.
TABLE OF CONTENTS
Executive Summary …………………………………………………………………2 Testing with Mercury QuickTest Professional and TestAdvantage ……………5
Presentation Layer Testing Challenges ……………………………………………3 Advanced DLL-Based Customization of TestAdvantage Libraries ………6
Current Testing Alternatives ……………………………………………………3 Benefits of Using Mercury QuickTest Professional with TestAdvantage ……6
Functional and Regression Testing with Mercury QuickTest Professional……3 About Mercury ………………………………………………………………………6
TestAdvantage Custom Libraries for Testing .NET Controls ……………………4 About Infragistics ……………………………………………………………………7
Today’s application presentation layers are being built using a wide variety of reusable development
tools that provide the essential functionality to drive the application. Testing these user interfaces with
traditional tools can be quite difficult, due to the limited knowledge of the specific development tool’s
object model by the automated testing tools. As a result, many developers have been faced with the
choice of undertaking a time-consuming process of writing custom code to test their applications – or
not testing the presentation layer at all.
The presentation layer is one of the most important parts of an application, due to the fact that it
presents innumerable scenarios of how an end user might interact with the application. If an application
is launched without any regression testing or even basic user interface testing, it introduces a
significant risk that the application might perform poorly or even fail in production.
Automated testing solutions are not prone to human error, can be run unattended (e.g., overnight), and
can dramatically lower personnel costs, in that a single person can run multiple simultaneous tests. The
initial investment in testing software is quickly and easily offset by the many significant benefits of
automated testing, including the reduction in testing expenses and the elimination of the potentially
devastating effects of releasing sub-standard software.
Mercury QuickTest Professional works hand-in-hand with Mercury Business Process Testing™ to bring
non-technical subject matter experts into the quality process in a meaningful way. Mercury Business
Process Testing empowers the entire testing team to create sophisticated test suites earlier in the QA
process with minimal training.
WWW.MERCURY.COM 3
APPLICATION DELIVERY
In addition to its core functionality, the Mercury QuickTest Professional .NET add-in capability enables
developers to provide high-level support for third-party and custom .NET controls, including Windows
Forms elements. This add-in extensibility was the framework used for developing the Infragistics
TestAdvantage custom libraries.
Infragistics had already chosen Mercury QuickTest Professional for internal use with its functional and
regression testing process. So the decision to partner with Mercury to develop the custom libraries for
testing NetAdvantage implementations was a logical move.
By using TestAdvantage’s custom libraries, Mercury QuickTest Professional quickly records and replays
script commands for testing the presentation layer, instead of using generic mouse coordinates. Its fast
playback capabilities enable more test scripts to run in a given amount of time, providing better test
coverage and ultimately producing higher quality software.
Windows Forms applications developed using Infragistics NetAdvantage Presentation Layer toolset.
WWW.MERCURY.COM 4
APPLICATION DELIVERY
Before automated testing commences, the application is placed in “Record” mode through Mercury
QuickTest Professional. The tester then manually runs through the application test just one time. During
this manual run, the test script is automatically recorded as the user moves through all of the functions
that need to be tested. The application is then placed in “Run” mode. The test is then automatically re-
run according to the pre-recorded test script, and the results of each action are documented in
detailed reports.
The testing process using Mercury QuickTest Professional with Infragistics TestAdvantage custom libraries.
WWW.MERCURY.COM 5
APPLICATION DELIVERY
Mercury QuickTest Professional and the TestAdvantage custom libraries provide very fast playback
capabilities, enabling application developers and QA teams to test more of their applications, test more
thoroughly, and ultimately produce higher quality software.
• Thoroughly test the application’s presentation layer prior to release and after any modifications.
• Produce more accurate test results, since automated testing of the presentation layer is not prone to
human-error-like manual processes.
• Dramatically lower personnel costs by providing the ability to run tests unattended.
• Enable more test scripts to run in a given amount of time, providing better test coverage.
All of these advantages enable enterprises to ultimately produce complex Windows Forms applications
faster and with higher quality, eliminating the potentially devastating effects of releasing low-quality
software.
About Mercury
Mercury, the global leader in business technology optimization (BTO), is committed to helping
customers optimize the business value of information technology. Founded in 1989, Mercury conducts
business worldwide and is one of the fastest-growing enterprise software companies today.
Mercury provides software and services to govern the priorities, processes, and people of IT; deliver
and manage applications; and integrate IT strategy and execution. Customers worldwide rely on
Mercury offerings to improve quality and performance of applications and manage IT costs, risks, and
compliance. Mercury BTO offerings are complemented by technologies and services from global
business partners. For more information on Mercury products and services, please visit
www.mercury.com.
WWW.MERCURY.COM 6
APPLICATION DELIVERY
• WinExplorerBar
• WinListBar
• WinSchedule: WinCalendarCombo,
WinDayView, WinMonthViewMulti,
WinMonthViewSingle, WinWeekView
• WinTree
WWW.MERCURY.COM 7
Mercury is the global leader in business technology optimization (BTO). We are committed to helping customers optimize the business value of IT.
WWW.MERCURY.COM
© 2005 Mercury Interactive Corporation. Patents pending. All rights reserved. Mercury Interactive, the Mercury logo, Mercury Business Process Testing, and Mercury QuickTest Professional are trademarks or registered trademarks of
Mercury Interactive Corporation in the United States and/or other foreign countries. All other company, brand, and product names are marks of their respective holders. WP-1339-0405