Cover image for Effective GUI Testing Automation : Developing an Automated GUI Testing Tool.
Effective GUI Testing Automation : Developing an Automated GUI Testing Tool.
Title:
Effective GUI Testing Automation : Developing an Automated GUI Testing Tool.
Author:
Li, Kanglin.
ISBN:
9780782150674
Personal Author:
Edition:
1st ed.
Physical Description:
1 online resource (464 pages)
Contents:
Effective GUI Test Automation: Developing an Automated GUI Testing Tool -- Frontmatter -- Acknowledgments -- Contents at a Glance -- Contents -- Introduction -- Chapter 1: GUI Testing: An Overview -- Unique Features of GUI Testing -- Developing an Automated GUI Testing Tool -- Expectation of Automated Testing -- Automated Test Teams -- How to Automate GUI Testing -- GUI Testing and Script Languages -- Using C# for Automation -- Test Scripts -- Summary -- Chapter 2: Available GUI Testing Tools vs. the Proposed Tool -- Current GUI Testing Infrastructures -- Capture/Playback Is Not Automatic -- Test Monkeys -- Intelligent Automation -- Automatic GUI Testing Tools in the Marketplace -- CompuWare TestPartner -- IBM Rational Test Tools -- Mercury Interactive Tools -- Segue's SilkTest -- Open Source GUI Test Tools -- Advantages and Disadvantages of the Commercial Testing Tools -- Computer-Assisted GUI Testing -- The Common Features of Capture/Playback -- Editing the Recorded Test Script -- Implementing Testability Hooks -- Reusability for Regression Testing -- The Proposed GUI Testing Approach -- Active GUI Test Approach -- Generating Testing Data First -- Data-Driven Test Scripts -- Summary -- Chapter 3: C# Win32 API Programming and Test Monkeys -- Understanding the Custom DLLs -- C# API Programming -- PInvoke Basics -- The Marshal Class and the DllImport Attribute -- Data Type Presentation -- A Simple C# API Example -- C# API Text Viewer -- A Base Class -- An API Utility Class -- ConstantViewer Class -- DllImportViewer Class -- StructViewer Class -- GUI of the C# API Text Viewer -- Starting with a Test Monkey -- A Dumb Test Monkey -- A Smarter Monkey -- Summary -- Chapter 4: Developing a GUI Test Library -- GUI Test and the Custom User32.dll -- Exploring the User32.dll -- Dumpbin.exe -- Dependency Walker.

Building a Dynamic Linking Library for GUI Testing -- The Spy++ Tool -- Functions from the User32.dll for GUI Testing -- Expanding the Testing Capabilities -- A GUI Test Application -- Summary -- Chapter 5: .NET Programming and GUI Testing -- XML Programming -- Writing XML Files -- Reading XML Files -- XPathNavigator Class -- XmlDocument Class -- Object Serialization -- Binary Serialization -- SOAP Serialization -- XML Serialization -- NET System.Collections Namespace -- Type Class -- NET System.Reflection Namespace -- Late Binding -- NET System.Threading Namespace -- Summary -- Chapter 6: Testing a Windows Form in General -- Overview of Software Architecture -- Presentation Layer -- Business Layer -- Data Layer -- GUI Components on the Presentation Layer -- Buttons -- ComboBoxes -- DialogBoxes -- Labels -- Menus -- TextBoxes -- Other Controls -- Expanding the GUI Test Library -- Methods for XML Accessibility and XML Serialization -- Methods for Late Binding -- Two Helper Classes -- Building a General Basis of a GUI Test Script -- Starting the Test Script Project -- Implementing the Command Buttons -- Coding the Timer Controls to Trigger GUI Events -- Visualizing the GUI Event Outcomes -- A Semi-Automatic Way of Verifying the Test Script -- Summary -- Chapter 7: Architecture and Implementation of the Automatic GUI Test Tool -- Meeting Current and Future GUI Test Requirements -- The General Architecture of the Improved GUI Testing Tool -- Starting the AutomatedGUITest Project -- The Startup Form of the AutomatedGUITest Tool -- An Interface to Specify the Form of the Application under Test -- The Implementation of a GUISurveyClass -- Adding an Interface for Testing Data Confirmation -- Developing a General-Purpose GUI Test Script -- Putting Together the AutomatedGUITest Tool -- Starting the Application under Test -- Conducting a GUI Survey.

Specifying Data for the GUI Test -- Running the Test -- Conducting the First Automatic GUI Testing -- Summary -- Chapter 8: Methods of GUI Test Verification -- Verification Requirements -- Front-end Actions and Back-end Business Functions -- Verifying Changes of an Application under Test -- Verifications Based on the Users' Interest -- Automated Verifications -- Simple Object Verification -- Specific Object Verification -- Lump Sum Verification -- Best Practice Verification -- Enhancing the AutomatedGUITest Tool -- Updating the GUITestDataCollector Interface -- Building a GUI Test Verification Class -- Updating the AutomatedGUITest Startup Form -- Updating the GUITestScript Class -- Adding the XML Document Viewer for Result Presentation -- Conducting a Fully Automated GUI Test -- Summary -- Chapter 9: Testing Label and Cosmetic GUI Controls -- How to Test Label and Other Cosmetic Controls -- Upgrading the AutomatedGUITest Tool -- Adding a Method to the GUITestVerification Class -- Expanding the Testing Capability of the GUITestScript Class -- Updating the GUITestActions class -- Testing Cosmetic GUI Properties -- Collecting Testing Data -- Editing and Rerunning the Data Store -- Summary -- Chapter 10: Testing a TextBox Control with Input from a Keyboard -- The SendKeys Class of the .NET Framework -- Code for Special Keys Using the SendKeys Class -- Methods of the SendKeys Class -- An Example to Connect to Your FTP Server -- Updating the Tool for Testing TextBox Controls -- Adding a Field to the GUIInfo Structure -- Modifying the Control Handling Methods in the GUITestActions Class -- Revising the Late Binding Method in the AutomatedGUITest.GUITestScript Class -- Adding a TextBox to the GUITestDataCollector Form -- Adding a Step to Send Keystrokes to a GUI Component -- Testing the C# API Text Viewer with the Updated Capabilities -- Summary.

Chapter 11: Testing RadioButton and CheckBox Controls -- Characteristics of RadioButton and CheckBox Controls -- Updating the AutomatedGUITest Project -- Overloading a Method in the GUITestUtility Class -- Adding Code to the TestExpectation Class -- Enhancing the Testing Scope of the GUITestScript Class -- Testing RadionButton Controls -- Summary -- Chapter 12: Menu Clicking for GUI Test Automation -- Characteristics of Menu Testing -- Window Handle and Menu Handle -- Menu and Submenu -- Class Name of Menu Windows -- Updating the GUITestAction Class with API Programming -- Marshaling a Few More Win32 Functions -- Adding Methods to Identify Menu Items -- Navigating a Menu Click Pathway -- Performing a Click on a Menu Item -- Updating the GUITestActionLib. xml Document -- Enabling Menu Survey Capability -- Enabling the AutomatedGUITest Tool for Menu Survey -- Invoking the Menu Survey Method -- Handling a Possible Error -- Updating the GUITestScript Class -- A Menu Testing Example -- Summary -- Chapter 13: User-Defined and COM-Based Controls -- Basics of User-Defined GUI Controls -- Custom .NET GUI Controls -- ActiveX Component from Microsoft Visual Studio 6 -- Needed Components for Testing User-Defined Controls -- Preparing a Testing Bench for Customized GUI Controls -- A New Method for the GUITestUtility Class -- Invoking the Test Bench from the AutomatedGUITest Tool -- Handling Exceptions in the GUITestScript Class -- Two More Examples -- Testing a Customized .NET GUI Control -- Testing an ActiveX GUI Control -- Summary -- Chapter 14: Testing Issues for Non .NET Applications -- Adding a Method to Start Traditional Applications -- An Overview of the System.Diagnostics Namespace -- Updating the GUITestUtility Class -- Making the AutomatedGUITest Tool Probe the GUI Interface -- Adding a PictureBox Control as a GUI Probe.

Coding the Three Events for the GUI Probe -- Invoking a Non .NET Application for GUI Survey -- Updating the GUITestScript Class -- Putting the New Methods into Action -- Summary -- Selected Bibliography -- Index -- A -- B -- C -- D -- E -- F -- G -- H -- I -- J -- K -- L -- M -- N -- O -- P -- Q -- R -- S -- T -- U -- V -- W -- X -- Z.
Abstract:
Have you tried using an "automated" GUI testing tool, only to find that you spent most of your time configuring, adjusting, and directing it? This book presents a sensible and highly effective alternative: it teaches you to build and use your own truly automated tool. The procedure you'll learn is suitable for virtually any development environment, and the tool allows you to store your test data and verification standard separately, so you can build it once and use it for other GUIs. Most, if not all, of your work can be done without test scripts, because the tool itself can easily be made to conduct an automatic GUI survey, collect test data, and generate test cases. You'll spend virtually none of your time playing with the tool or application under test. Code-intensive examples support all of the book's instruction, which includes these key topics: Building a C# API text viewer Building a test monkey Developing an XML viewer using xPath and other XML-related classes Building complex, serializable classes for GUI test verification Automatically testing executable GUI applications and user-defined GUI controls Testing managed (.NET) and unmanaged GUI applications Automatically testing different GUI controls, including Label, TextBox, Button, CheckBox, RadioButton, Menu Verifying test results Effective GUI Test Automation is the perfect complement to Li and Wu's previous book, Effective Software Test Automation: Developing an Automated Software Testing Tool. Together, they provide programmers, testers, designers, and managers with a complete and cohesive way to create a smoother, swifter development process-and, as a result, software that is as bug-free as possible.
Local Note:
Electronic reproduction. Ann Arbor, Michigan : ProQuest Ebook Central, 2017. Available via World Wide Web. Access may be limited to ProQuest Ebook Central affiliated libraries.
Added Author:
Electronic Access:
Click to View
Holds: Copies: