• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
How to simplify .NET testing
 White paper
Table of contents
Executive summary
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Presentation layer testing challenges
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Current testing alternatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .2
Functional and regression testing with HP QuickTest Professional
. . . . . . . . . . . . . . . . . . . . . . . . . . .2
Infragistics TestAdvantage custom libraries for testing .NET controls
. . . . . . . . . . . . . . . . . . . . . . .
2The Infragistics NetAdvantage toolset
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3
Testing with HP QuickTest Professional and Infragistics TestAdvantage
. . . . . . . . . . . . . . . . . . . .3
 Advanced DLL-based customization of Infragistics TestAdvantage libraries
. . . . . . . . . . . . .3
Benefits of using HP QuickTest Professional with Infragistics TestAdvantage
. . . . . . . . . . . . . .3
Infragistics TestAdvantage Windows Forms elements
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
 About HP
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
 About Infragistics
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4
 
Executive summary
HP QuickTest Professional software is a powerful tool forfunctional test and regression test automation. InfragisticsTestAdvantage is a collection of custom libraries that extendsHP QuickTest Professional to enable automated testing ofthe presentation layer in Windows
®
Forms applications. Thecombined solution allows you to test and deploy higher-quality Windows Forms applications faster, at lower costand with less risk.This paper will briefly review the challenges of testing Windows Forms applications and review the functionalityof HP QuickTest Professional and its .NET add-in capabilities. We will then introduce you to the Infragistics TestAdvantagecustom libraries and the Infragistics NetAdvantagepresentation layer toolset, and conclude by showing youthe benefits of using HP QuickTest Professional andInfragistics TestAdvantage to automatically test thepresentation layer of Windows Forms applications.
Presentation layer testing challenges
 Automated testing tools have been available for manyaspects and stages of application development.However, developers working with the presentationlayer of applications have not had access to the caliberof tools necessary to achieve peak performance of theuser interface (UI). Application developers and qualityassurance (QA) teams need to test the quality andpredictability of outcomes across the entire applicationdevelopment lifecycle, including the presentation layer.Today’s application presentation layers are built using awide variety of reusable development tools that providefunctionality to drive the application. However, testing theseuser interfaces with traditional tools can be challengingbecause of the limited knowledge of the specificdevelopment tool’s object model by the automated testingtools. As a result, many developers must choose betweenthe time-consuming process of writing custom code to testtheir applications or not testing the presentation layer at all.The presentation layer presents a myriad of scenarios ofhow an end user might interact with the application,which makes it one of the most important parts of anapplication. If an application is launched without anyregression testing or even basic UI testing, the applicationmight perform poorly or even fail in production.
Current testing alternatives
 Application developers and QA teams can choose betweendeveloping manual solutions or adopting automatedtesting solutions. Both solutions have advantages anddisadvantages. Manual testing solutions do not requireupfront investments for testing software, but these processesare prone to human error, expensive and slow to implement. Automated testing solutions are not prone to humanerror, can be run unattended (e.g., overnight) and candramatically lower personnel costs by allowing one personto run multiple tests simultaneously. Although automatedtesting requires an initial investment in testing software, it isquickly and easily offset by its many benefits, includingreducing testing expenses and the potentially devastatingeffects of releasing sub-standard software.
Functional and regression testingwith HP QuickTest Professional
HP QuickTest Professional provides a powerful solution forfunctional test and regression test automation. It addressesevery major software application and environment andsatisfies the needs of both technical and non-technicalusers. It also enables you to deploy higher-qualityapplications faster, cheaper and with less risk.HP QuickTest Professional works together with HPBusiness Process Testing software to bring non-technicalsubject-matter experts into the quality process in ameaningful way. HP Business Process Testing empowersyour entire testing team to create sophisticated testsuites earlier in the QA process with minimal training. With the additional capacity of HP QuickTest Professionalfor .NET, you can provide high-level support for third-party and custom .NET controls, including WindowsForms elements. This add-in capacity was also used todevelop the Infragistics TestAdvantage custom libraries.
Infragistics TestAdvantage customlibraries for testing .NET controls
To address the many challenges of testing enterpriseapplications, Infragistics and HP have developed an out-of-the-box tool that automates testing of the presentationlayer. Infragistics TestAdvantage provides a complete setof custom libraries that accelerate the testing of WindowsForms applications with HP QuickTest Professional. Thiscombined offering enables you to extend the testingmodel to thoroughly test the presentation layer in Windows Forms applications.Infragistics already chose HP QuickTest Professional forinternal use with its functional and regression testingprocess. So, its decision to form a partnership with HPto develop the custom libraries for testing InfragisticsNetAdvantage implementations was a logical move.By using the Infragistics TestAdvantage custom libraries,HP QuickTest Professional quickly records and replaysscript commands for testing the presentation layer, insteadof using generic mouse coordinates. It provides better testcoverage and higher-quality software byenablingmoretestscriptsto run in a given time period.
2
 
The Infragistics NetAdvantage toolset
Infragistics NetAdvantage is a comprehensive presentationlayer toolset for developing commercial-class userinterfaces for Windows Forms, ASP.NET, Tablet PC andCOM applications. Infragistics NetAdvantage containsall major interface elements, including grids, scheduling,charting, toolbars, menus, listbars, trees, tabs, explorerbars, UIs, editors and more. HP QuickTest Professionaland Infragistics TestAdvantage custom libraries nowenable you to test all Windows Forms applications builtwith Infragistics NetAdvantage.
Testing with HP QuickTest Professionaland Infragistics TestAdvantage
Before Infragistics TestAdvantage custom libraries, youcould only see third-party presentation layer componentsas single objects. You could not test individual functions ofany component, such as expanding rows in a hierarchicalgrid. This is insufficient for testing complex WindowsForms elements. You need the ability to drill down intothese intricate elements to identify bottlenecks andtroubleshoot performance or usability issues.Now, by using HP QuickTest Professional with the InfragisticsTestAdvantage custom libraries, you can see into all of the Windows Forms elements developed using the InfragisticsNetAdvantage toolset.The combined HP and Infragistics offering is extremely easyto learn and intuitive to use. HP QuickTest Professional withInfragistics TestAdvantage simplifies the testing process byquickly recording and replaying script commands for Windows Forms applications. Other testing tools requirethat programmers use generic mouse coordinates to testtheir UIs, which can lead to error-prone and time-consumingtesting processes.Before automated testing begins, you place theapplication in “record” mode through HP QuickTestProfessional, and then manually run through theapplication test once. During this manual run, the testscript is automatically recorded as you move through allof the functions that need to be tested. Next, you placethe application in “run” mode. The software then rerunsthe test according to the pre-recorded test script anddocuments the results of each action in detailed reports.HP QuickTest Professional and the Infragistics TestAdvantagecustom libraries provide very fast playback capabilities,enabling you to test more applications, test more thoroughlyand ultimately produce higher-quality software.
 Advanced DLL-based customization of InfragisticsTestAdvantage libraries
Infragistics TestAdvantage provides unlimited access toall custom libraries by providing the source code. Whenyou extend Infragistics NetAdvantage elements, you canautomate testing to cover any changes made to theircode base. Test teams with basic C# programming skillscan easily extend existing libraries to meet their needs orcreate additional libraries.
Benefits of using HP QuickTestProfessional with InfragisticsTestAdvantage
HP QuickTest Professional and Infragistics TestAdvantageextend best practices in the application developmentlifecycle all the way to the presentation layer. By usingInfragistics TestAdvantage custom libraries, you can:Thoroughly test the application’s presentation layerprior to release and after any modificationsProvide an accelerated time-to-market for new Windows Forms applications
3
Figure 1.
 Windows Forms applications developed using InfragisticsNetAdvantage presentation layer toolset
Figure 2.
 An HP QuickTest Professional test recorded againstInfragistics TestAdvantage
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...

Thanks. Great tutorial mate... Here's the Video Tutorial: http://bit.ly/cXQPGN - If you prefer video like myself. Don't get me wrong, I still like ur tutorial!

You must be to leave a comment.
Submit
Characters: ...