HP Unified Functional Testing Software Version:12.52 Windows® operatingsystems Add-ins Guide DocumentReleaseDate:January2016 SoftwareReleaseDate:January2016 Add-insGuide Legal Notices Warranty TheonlywarrantiesforHPproductsandservicesaresetforthintheexpresswarrantystatementsaccompanyingsuch productsandservices.Nothinghereinshouldbeconstruedasconstitutinganadditionalwarranty.HPshallnotbeliable fortechnicaloreditorialerrorsoromissionscontainedherein. Theinformationcontainedhereinissubjecttochangewithoutnotice. Restricted RightsLegend Confidentialcomputersoftware.ValidlicensefromHPrequiredforpossession,useorcopying.ConsistentwithFAR 12.211and12.212,CommercialComputerSoftware,ComputerSoftwareDocumentation,andTechnicalDatafor CommercialItemsarelicensedtotheU.S.Governmentundervendor'sstandardcommerciallicense. Copyright Notice ©Copyright1992-2016Hewlett-PackardDevelopmentCompany,L.P. TrademarkNotices Adobe®andAcrobat®aretrademarksofAdobeSystemsIncorporated. Google™andGoogleMaps™aretrademarksofGoogleInc Intel®andPentium®aretrademarksofIntelCorporationintheU.S.andothercountries. Microsoft®,Windows®,Windows®XP,andWindowsVista®areU.S.registeredtrademarksofMicrosoftCorporation. OracleandJavaareregisteredtrademarksofOracleand/oritsaffiliates. Documentation Updates Thetitlepageofthisdocumentcontainsthefollowingidentifyinginformation: SoftwareVersionnumber,whichindicatesthesoftwareversion. l DocumentReleaseDate,whichchangeseachtimethedocumentisupdated. l SoftwareReleaseDate,whichindicatesthereleasedateofthisversionofthesoftware. l Tocheckforrecentupdatesortoverifythatyouareusingthemostrecenteditionofadocument,goto: https://softwaresupport.hp.com. ThissiterequiresthatyouregisterforanHPPassportandsignin.ToregisterforanHPPassportID,goto https://softwaresupport.hp.comandclickRegister. Support VisittheHPSoftwareSupportOnlinewebsiteat:https://softwaresupport.hp.com Thiswebsiteprovidescontactinformationanddetailsabouttheproducts,services,andsupportthatHPSoftware offers. HPUnifiedFunctionalTesting(12.52) Page2 Add-insGuide HPSoftwareonlinesupportprovidescustomerself-solvecapabilities.Itprovidesafastandefficientwaytoaccess interactivetechnicalsupporttoolsneededtomanageyourbusiness.Asavaluedsupportcustomer,youcanbenefitby usingthesupportwebsiteto: Searchforknowledgedocumentsofinterest l Submitandtracksupportcasesandenhancementrequests l Downloadsoftwarepatches l Managesupportcontracts l LookupHPsupportcontacts l Reviewinformationaboutavailableservices l Enterintodiscussionswithothersoftwarecustomers l Researchandregisterforsoftwaretraining l MostofthesupportareasrequirethatyouregisterasanHPPassportuserandsignin.Manyalsorequireasupport contract.ToregisterforanHPPassportID,goto:https://softwaresupport.hp.comandclickRegister. Tofindmoreinformationaboutaccesslevels,goto:https://softwaresupport.hp.com/web/softwaresupport/access- levels. HP Software Solutions& Integrationsand Best Practices VisitHPSoftwareSolutionsNowathttps://h20230.www2.hp.com/sc/solutions/index.jsptoexplorehowtheproducts intheHPSoftwarecatalogworktogether,exchangeinformation,andsolvebusinessneeds. VisittheCrossPortfolioBestPracticesLibraryathttps://hpln.hp.com/group/best-practices-hpswtoaccessawide varietyofbestpracticedocumentsandmaterials. HPUnifiedFunctionalTesting(12.52) Page3 Add-insGuide Contents Welcome tothe Add-insGuide 12 Part 1:WorkingwithUFTAdd-ins 13 UFTAdd-insOverview 14 UFTAdd-inSupport - Overview 15 LoadingUFTAdd-ins 16 Add-inLicenses 17 ConsiderationsforWorkingwithUFTAdd-ins 17 RecordandRunSettingsforAdd-ins - Overview 18 ConsiderationsforDefiningRecordandRunSettings 19 EnvironmentVariablesinRecordandRunSettings 20 UFTAdd-inExtensibility 21 HowtoManageUFTAdd-ins 22 HowtoDefineRecordandRunSettingsforUFTAdd-ins 23 Web-BasedApplicationSupport 25 Web-BasedApplicationSupport -Overview 26 Considerations -Web-BasedApplicationSupport 26 RegisteringBrowserControls 28 AccessingPassword-ProtectedResourcesintheActiveScreen 28 CheckpointsforWebPages 29 EventRecordingConfigurationforWeb-BasedApplications 30 WebEventRecordingConfigurationXMLFileStructure 31 AdvancedOperationsonWeb-BasedApplications 32 ActivatingmethodsassociatedwithaWeb-basedobjectusingtheObjectproperty 32 UsingprogrammaticdescriptionsfortheWebElementobject 33 WebObjectIdentifiers 33 WebObjectIdentifierTypes 34 CSSWebObjectIdentification 34 User-DefinedXPathWebObjectIdentification 34 AutomaticX-PathWebObjectIdentification 35 Attribute/*NotationWebObjectIdentification 35 Style/*NotationWebObjectIdentification 36 Considerations -WebObjectIdentifiers 39 HowtoUseWebObjectIdentifiers-Exercise 39 WebObjectRecognitionUsingtheWebAccessibilityToolkit 42 HowtoModifyEventRecordingConfigurationforWeb-BasedApplications 43 HowtoConfigureUFTtoRecordMouseClicks 44 HPUnifiedFunctionalTesting(12.52) Page4 Add-insGuide EnvironmentVariablesforaWeb-BasedEnvironment 46 TroubleshootingandLimitations -Web-BasedApplicationSupport 48 Windows-BasedApplicationSupport 52 Windows-BasedApplicationSupport - Overview 53 UFTConfigurationforWindows-BasedApplications 53 RecordandRunSettingsforWindows-BasedApplications 54 EnvironmentVariablesforWindows-basedApplications 55 ConsiderationsforAdvancedWindows-basedApplicationTesting 55 RecordandRunSettingGuidelinesforWindows-BasedAdd-ins 57 Part 2:.NETAdd-in 59 .NETAdd-in -Overview 60 .NETSilverlightAdd-in 61 .NETSilverlightAdd-in -QuickReference 62 SilverlightAdd-inExtensibility 64 KnownIssues - SilverlightAdd-in 65 .NETWebFormsAdd-in 67 .NETWebFormsAdd-in -Quick Reference 68 ConsiderationsforTesting.NETWebForms 69 AccessingInternalPropertiesandMethodsofRun-Time.NETWebFormsObjects 69 KnownIssues- .NETWebForms 69 .NETWindowsFormsAdd-in 73 .NETWindowsFormsSupport -Quick Reference 74 .NETWindowsFormsSupport -TestingandConfiguration 76 ConsiderationsforTesting.NETWindowsFormsApplications 77 .NETWindowsFormsObjects - CheckpointsandOutputValues 77 .NETAdd-inExtensibility 78 .NETWindowsFormsSpy 79 HowtoUsethe.NETWindowsFormsSpy 80 KnownIssues - .NETWindowsForms 83 .NETWindowsPresentationFoundation(WPF)Add-in 85 .NETWindowsPresentationFoundation(WPF) Add-in -Quick Reference 86 .NETWindowsPresentationFoundation(WPF)Add-in -TestingandConfiguration 88 ConsiderationsforWorkingwiththeWPFAdd-in 89 WPFObjects,Methods,andPropertiestoEnhanceYourTestorComponent 89 AboutWPFUserInterfaceAutomation 90 AutomationElements 90 ControlPatterns 90 WPFAdd-inExtensibility 91 KnownIssues - .NETWPF 91 HPUnifiedFunctionalTesting(12.52) Page5 Add-insGuide Part 3:ActiveX Add-in 93 ActiveXAdd-in -QuickReference 94 ConsiderationsforWorkingwiththeActiveXAdd-in 95 KnownIssues - ActiveXAdd-in 96 Part 4:Delphi Add-in 99 DelphiAdd-in-Quick Reference 100 DelphiAdd-inExtensibility 101 HowtoEnableCommunicationsBetweenUFTandYourDelphiApplication 102 KnownIssues-DelphiAdd-in 103 Part 5:Flex Add-in 104 FlexAdd-in -QuickReference 105 FlexAdd-in-TestingandConfiguration 106 EnablingUFTtoIdentifyObjectsinyourFlexApplication 106 Considerations forWorkingwiththeFlexAdd-in 109 HowtoSetUptheAdobeFlashPlayerDebuggertoEnableUFTGUITesting 110 HowtoOpenFlexApplicationsUsingtheRuntimeLoader 112 HowtoEmbedaFlexApplicationinaWebPagewiththeRuntimeLoader 114 HowtoCompileFlexApplicationsforUFTTesting 116 HowtoWorkWithEmbeddedObjectsinFlexLists,Tables,orTree-Views 118 KnownIssues -FlexAdd-in 120 Part 6:Java Add-in 122 JavaAdd-in -QuickReference 123 JavaAdd-in -TestingandConfiguration 125 JavaAdd-in -Overview 126 JavaAdd-inEnvironments 126 Considerations -JavaAdd-in 127 JavaAdd-inExtensibility 128 HowtoDisableDynamicTransformationSupport(Advanced) 129 JavaEnvironmentVariablesSettings 131 RecordandRunEnvironmentVariablesforJavaObjects 132 KnownIssues -JavaAdd-in 132 RunningAnotherJavaApplicationorAppletwiththeSameSettings 133 IdentifyingandSolvingCommonProblems 133 GeneralNotesandLimitations 135 JavaAdd-in-TestObjects 140 RecordingStepsonJavaObjects 141 RecordingStepsonJtableCellEditors 142 HPUnifiedFunctionalTesting(12.52) Page6 Add-insGuide TextCheckpointandTextOutputValueStepsforJavaObjects 142 FullObjectHierarchyViews 143 AdvancedJavaTestObjectMethods 143 CreateObjectMethod 144 GetStaticsMethod 144 FireEvent/FireEventExMethods 145 HowtoModifyOptionsforRecordingonJavaTables 146 Part 7:Mobile Add-in 149 MobileAdd-in-QuickReference 150 Part 8:Oracle Add-in 152 OracleAdd-in -QuickReference 153 OracleAdd-in -TestingandConfiguration 155 ConsiderationsforWorkingwiththeOracleAdd-in 156 RecordingTestsonOracleApplications 157 DynamicTransformationSupport 158 HowtoVerifyorEnabletheOracleServerUniqueNameAttributes 159 HowtoEnabletheOracleNameAttribute 159 HowtoSetOracleEnvironmentVariables 161 HowtoDisableDynamicTransformationSupport 161 OracleRecordandRunEnvironmentVariables 163 KnownIssues - OracleAdd-in 164 Part 9:PeopleSoft Add-in 166 PeopleSoftAdd-in -Quick Reference 167 ConsiderationsforWorkingwiththePeopleSoftAdd-in 168 KnownIssues - PeopleSoftAdd-in 169 Part 10:PowerBuilder Add-in 170 PowerBuilderAdd-in -QuickReference 171 ConsiderationsforWorkingwiththePowerBuilderAdd-in 172 KnownIssues - PowerBuilderAdd-in 173 Part 11:Qt Add-in 174 QtAdd-in -Quick Reference 175 Considerations - QtAdd-in 177 Part 12:Add-infor SAP Solutions 178 HPUnifiedFunctionalTesting(12.52) Page7 Add-insGuide Add-inforSAP Solutions -Overview 179 Web-basedSAPSupport 180 Web-BasedSAPSupport -Quick Reference 181 ConsiderationsforWorkingwithSAPGUIforHTML 183 KnownIssues - Web-basedSAP 185 Windows-basedSAPSupport 189 Windows-basedSAPSupport -Quick Reference 190 Windows-basedSAPSupport -Testing and Configuration 192 SAPGUIScriptingAPIandUFT 193 HowtoEnableSupportforSAPGUIforWindows 195 HowtoEnableScriptingontheSAPApplication(Server-Side) 197 Considerations -Windows-basedSAPAdd-inforSAP Solutions 200 EnvironmentVariablesforWindows-basedSAPApplications 201 PackageandPatchVersionsRequirements-SAPApplicationServerandSAPGUIfor Windows 201 KnownIssues - Windows-basedSAP 202 Windows-BasedSAPSupport-TestObjects 207 CheckpointsandOutputValuesinSAPGUIforWindows 208 UsingtheAuto-ParameterizeOptiontoParameterizeTableandGridCellValues 208 HowUFTRecordsinAuto-ParameterizeMode 209 ParameterizedCellValuesintheInputDataSheet 211 ConsiderationsforAuto-Parameterization 212 DatainRowsthatRequireScrolling 213 Low-LevelorAnalogModeRecordingonSAPGUIforWindows 214 SpoolingDatafromaTable 214 HowtoRecordonStandardWindowsControlsDuringanSAPGUIforWindows RecordingSession 215 UFT-SAPSolutionManagerIntegration 216 UFT-SAPSolutionManagerIntegration-Overview 217 TestManagementinSAPSolutionManager 217 ResourceFilesinSolutionManager 218 SolutionManagerTestingModes:StandaloneorIntegrated 218 StandaloneMode 219 IntegratedMode 220 SAPStructuredParameters 220 HowtoConfigureSolutionManagertoWorkwithUFT 221 HowtoWorkwithTestsinSolutionManagerinStandaloneMode 223 HowtoRunaTestStoredinSolutionManager 228 HowtoDisplayorEditaGUITestfromSolutionManagerinIntegratedMode 229 HowtoTransferDataToandFromGUITestsinIntegratedModeUsingTest Parameters 230 HowtoWorkwithSAPStructuredParameters 231 HPUnifiedFunctionalTesting(12.52) Page8 Add-insGuide Part 13:SiebelAdd-in 235 SiebelAdd-in -Quick Reference 236 SiebelAdd-in -Testing and Configuration 239 SiebelAdd-in - Overview 240 Considerations -SiebelAdd-in 240 SiebelTestObjectModel - Overview 241 RecordingStepsonSiebelObjects 242 NativeOperationsandPropertiesinSiebel7.0.xand7.5.xApplications 243 SiebelAdd-in -CheckpointsandOutputValues 243 SpoolingDatafromaSiebelTable 245 Siebel7.7.xorLater -TestAutomationModuleConfiguration 246 HowtoDefineEnvironmentVariablesforSiebelApplications 247 KnownIssues -SiebelAdd-in 248 Siebel 7.7.xorLater 249 Siebel 7.0.xand 7.5.x 250 SiebelTestExpress 252 UsingSiebelTestExpresstoGenerateorUpdateSharedObjectRepositories 253 HowtoUseSiebelTestExpresstoGenerateorUpdateaSharedObjectRepository 253 Part 14:StandardWindowsTestingSupport 255 StandardWindowsSupport -Quick Reference 256 KnownIssues - StandardWindows 258 Part 15:Stingray Add-in 259 StingrayAdd-in-Quick Reference 260 StingrayAdd-in - TestingandConfiguration 262 SettingUpStingrayObjectSupport 263 ConsiderationsforWorkingwiththeStingrayAdd-in 263 StingrayRun-timeAgent(AgentDLL) 263 StingrayPrecompiledAgentMode 264 RecordCellEditingOptions - Example 264 HowtoSetUpYourStingrayProjectUsingthePrecompiledAgentMode 265 KnownIssues - StingrayAdd-in 267 Part 16:TerminalEmulator Add-in 270 TerminalEmulatorAdd-in-Quick Reference 271 TerminalEmulatorAdd-in - TestingandConfiguration 273 TerminalEmulatorAdd-in-Overview 274 RecordingTestsandComponentsonTerminalEmulatorApplications 275 ConsiderationsforRecordingandRunningTestsandComponentsonTerminal 276 HPUnifiedFunctionalTesting(12.52) Page9 Add-insGuide Emulators RunSessionSynchronization 277 TerminalEmulatorRecoveryScenarios 277 HowtoConfigureanEmulatortoWorkwiththeTerminalEmulatorAdd-in 278 HowtoSetYourHLLAPITerminalEmulatortoWorkwithUFT 282 HowtoManageTerminalEmulatorConfigurationSettings 282 HowtoCopyExistingTerminalEmulatorConfigurations 283 HowtoChecktheValidityofaTerminalEmulatorConfiguration 285 ValidatingaTerminalEmulator-PossibleErrorResponses 285 InvalidHLLAPIDLL 285 Cannotdetectanopensession 286 Cannotlocatethemainwindowclass 286 Cannotdetecttheemulatorscreen 286 Cannotconnecttotheopensession 286 Cannotretrievesessiontext 287 Cannotdetectopensession,orCannotlocatethemainwindowclass 287 HLLAPIDLLnotfound 287 Morethanonesessionopen 287 Unknownerror 287 HowtoSynchronizeStepsonTerminalEmulators 288 CheckpointsandOutputValues-TerminalEmulators 290 KnownIssues -TerminalEmulator 291 Part 17:VisualAge Smalltalk Add-in 296 VisualAgeSmalltalkAdd-in-Quick Reference 297 HowtoConfiguretheVisualAgeSmalltalkAdd-in 299 Part 18:VisualBasic Add-in 300 VisualBasicAdd-in -Quick Reference 301 KnownIssues - VisualBasicAdd-in 303 Part 19:WebAdd-in 304 WebAdd-in -QuickReference 305 WebAdd-in -TestingandConfiguration 308 EventRecordingConfigurationforWebObjects - Overview 309 EventListeningandRecordingforWebObjects 310 Considerations -EventListeningandRecording 311 EventListeningandRecording-Use-caseScenario 311 WebAdd-inExtensibility 312 ExtensibilityAcceleratorforHPFunctionalTesting 313 HPUnifiedFunctionalTesting(12.52) Page10
Description: