HP UFT Add-ins Guide Software Version: 11.50 Enter the operating system(s), e.g. Windows ® For GUI Testing Document Release Date: December 2012 Software Release Date: December 2012 Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. Restricted Rights Legend Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. Copyright Notices © 1992 - 2012 Hewlett-Packard Development Company, L.P. Trademark Notices Adobe® and Acrobat® are trademarks of Adobe Systems Incorporated. Intel®, Pentium®, and Intel® Xeon™ are trademarks of Intel Corporation in the U.S. and other countries. Java™ is a US trademark of Sun Microsystems, Inc. Microsoft®, Windows®, Windows NT®, and Windows® XP are U.S registered trademarks of Microsoft Corporation. Oracle® is a registered US trademark of Oracle Corporation, Redwood City, California. Unix® is a registered trademark of The Open Group. SlickEdit® is a registered trademark of SlickEdit Inc. 2 Documentation Updates The title page of this document contains the following identifying information: (cid:129) Software Version number, which indicates the software version. (cid:129) Document Release Date, which changes each time the document is updated. (cid:129) Software Release Date, which indicates the release date of this version of the software. To check for recent updates, or to verify that you are using the most recent edition of a document, go to: http://h20230.www2.hp.com/selfsolve/manuals This site requires that you register for an HP Passport and sign-in. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html Or click the New users - please register link on the HP Passport login page. You will also receive updated or new editions if you subscribe to the appropriate product support service. Contact your HP sales representative for details. 3 Support Visit the HP Software Support web site at: http://www.hp.com/go/hpsoftwaresupport This web site provides contact information and details about the products, services, and support that HP Software offers. HP Software online support provides customer self-solve capabilities. It provides a fast and efficient way to access interactive technical support tools needed to manage your business. As a valued support customer, you can benefit by using the support web site to: (cid:129) Search for knowledge documents of interest (cid:129) Submit and track support cases and enhancement requests (cid:129) Download software patches (cid:129) Manage support contracts (cid:129) Look up HP support contacts (cid:129) Review information about available services (cid:129) Enter into discussions with other software customers (cid:129) Research and register for software training Most of the support areas require that you register as an HP Passport user and sign in. Many also require a support contract. To register for an HP Passport ID, go to: http://h20229.www2.hp.com/passport-registration.html To find more information about access levels, go to: http://h20230.www2.hp.com/new_access_levels.jsp 4 Table of Contents Welcome to the HPUnified Functional Testing Add-ins Guide ................................................................................17 HPUnified Functional Testing Add-ins Guide Overview...................17 Prerequisite Background......................................................................18 How Do I Find the Information That I Need?....................................19 Unified Functional Testing Help Contents.........................................21 Additional Online Resources...............................................................25 PART I: WORKING WITH UFT ADD-INS Chapter 1: UFT Add-ins Overview.......................................................29 Concepts UFT Add-in Support-Overview..........................................................30 Record and Run Settings for Add-ins-Overview................................35 UFT Add-in Extensibility.....................................................................38 Tasks How to Manage UFT Add-ins..............................................................40 How to Define Record and Run Settings for UFT Add-ins..................41 Reference Add-in Manager Dialog Box................................................................44 5 Table of Contents Chapter 2: Web-Based Application Support.......................................49 Concepts Web-Based Application Support- Overview.......................................51 Considerations- Web-Based Application Support..............................51 Registering Browser Controls..............................................................54 Accessing Password-Protected Resources in the Active Screen...........55 Checkpoints for Web Pages.................................................................57 Event Recording Configuration for Web-Based Applications.............58 Advanced Operations on Web-Based Applications.............................59 Web Object Identifiers........................................................................62 Tasks How to Define Record and Run Variables for a Web-Based Environment...................................................................................67 How to Modify Event Recording Configuration for Web-Based Applications....................................................................................69 How to Configure UFT to Record Mouse Clicks.................................71 How to Use Web Object Identifiers - Exercise....................................73 Reference Web Tab (Record and Run Settings Dialog Box).................................77 Web > General Pane (Options Dialog Box).........................................82 Web Pane (Test/BusinessComponent Settings Dialog Box / ApplicationArea - Additional Settings Pane)...............................101 Web Event Recording Configuration XML File Structure................106 Register Browser Control Utility.......................................................108 Active Screen Dialog Box...................................................................109 Chapter 3: Windows-Based Application Support.............................117 Concepts Windows-Based Application Support-Overview.............................118 Tasks How to Configure Options for Windows-Based Applications..........120 How to Define Record and Run Settings for Windows-Based Applications..................................................................................121 6 Table of Contents Reference Windows Applications Tab (Record and Run Settings Dialog Box).124 Windows Applications> General Pane (Options Dialog Box> GUITesting Tab)...........................................................................136 Windows Applications> Advanced Pane (Options Dialog Box> GUITesting Tab)...........................................................................139 PART II: .NET ADD-IN Chapter 4: .NET Add-in- Overview...................................................151 Chapter 5: .NET Web Forms Add-in- QuickReference....................153 Concepts Considerations for Testing .NET Web Forms....................................156 .NET Web Forms Objects and Outputting Values............................157 Reference Troubleshooting and Limitations-.NET Web Forms.......................158 Chapter 6: .NET Windows Forms Support- QuickReference..........163 Concepts Considerations for Testing .NET Windows Forms Applications......166 .NET Add-in Extensibility..................................................................166 Troubleshooting and Limitations-.NET Windows Forms...............167 Chapter 7: .NET Windows Forms Support- Testing and Configuration171 Concepts .NET Windows Forms Objects-Checkpoints and Output Values...172 .NET Windows Forms Spy.................................................................174 Tasks How to Use the .NET Windows Forms Spy.......................................176 Reference .NET Windows Forms Spy Dialog Box..............................................182 Chapter 8: .NET Silverlight Add-in- Quick Reference......................187 Concepts Silverlight Add-in Extensibility ........................................................191 7 Table of Contents References Troubleshooting and Limitations-Silverlight Add-in.....................193 Chapter 9: .NET Windows Presentation Foundation Add-in- QuickReference197 Concepts Considerations for Working with the WPF Add-in..........................200 WPF Add-in Extensibility..................................................................200 Reference Troubleshooting and Limitations-Windows Presentation F oundation.....................................................................................202 Chapter 10: .NET Windows Presentation Foundation Add-in- Testing and Configuration205 Concepts About WPF User Interface Automation............................................206 WPF Objects, Methods, and Properties to Enhance Your Test or Component...................................................................................208 PART III: ACTIVEX ADD-IN Chapter 11: ActiveX Add-in- Quick Reference.................................213 Concepts Considerations for Working with the ActiveX Add-in.....................216 Reference Troubleshooting and Limitations-ActiveX Add-in.........................218 PART IV: DELPHI ADD-IN Chapter 12: Delphi Add-in - QuickReference...................................225 Concepts Delphi Add-in Extensibility..............................................................228 Tasks How to Enable Communications Between UFT and Your Delphi Application....................................................................................230 8 Table of Contents PART V: FLEX ADD-IN Chapter 13: Flex Add-in- Quick Reference.......................................235 Concepts Considerations- Flex Add-in.............................................................237 Tasks How to Prepare Flex Applications for Testing..................................239 Reference Troubleshooting and Limitations- Flex Add-in...............................241 PART VI: JAVA ADD-IN Chapter 14: Java Add-in- Quick Reference.......................................245 Concepts Considerations- Java Add-in.............................................................248 Java Add-in Extensibility...................................................................250 Reference Troubleshooting and Limitations- Java Add-in...............................252 Chapter 15: Java Add-in- Testing and Configuration......................267 Concepts Java Add-in- Overview......................................................................268 Recording Steps on Java Objects.......................................................269 Advanced Java Test Object Methods.................................................272 Java Add-in Environments................................................................275 Tasks How to Record Steps on Java Table Objects......................................277 How to Define Record and Run Environment Variables for Java Objects..........................................................................................281 How to Optimize Settings for Other Record and Run Settings Dialog Box Tabs............................................................................282 How to Disable Dynamic Transformation Support (Advanced).......283 9 Table of Contents Reference Java Pane (Options Dialog Box> GUI Testing Tab)..........................286 Java Pane (Test/Business Component Settings Dialog Box / Application Area - Additional Settings Pane)...............................294 Java Tab (Record and Run Settings Dialog Box)...............................298 PART VII: ORACLE ADD-IN Chapter 16: Oracle Add-in- Quick Reference...................................305 Concepts Considerations for Working with the Oracle Add-in ......................308 Reference Troubleshooting and Limitations-Oracle Add-in............................310 Chapter 17: Oracle Add-in- Testing and Configuration..................315 Concepts Recording Tests on Oracle Applications...........................................316 Dynamic Transformation Support ..................................................318 Tasks How to Verify or Enable the Oracle Server Unique Name Attributes.......................................................................................320 How to Enable the Oracle Name Attribute.......................................321 How to Set Oracle Environment Variables.......................................323 How to Locate the Java Console.......................................................324 How to Disable Dynamic Transformation Support..........................325 Reference Oracle Tab (Record and Run Settings Dialog Box)............................327 Oracle Record and Run Environment Variables...............................330 PART VIII: PEOPLESOFT ADD-IN Chapter 18: PeopleSoft Add-in- QuickReference............................335 Concepts Considerations for Working with the PeopleSoft Add-in.................338 Reference Troubleshooting and Limitations-PeopleSoft Add-in.....................339 10
Description: