HP Unified Functional Testing SoftwareVersion:12.53 Add-ins Guide DocumentRelease Date:June 2016 |Software Release Date:June 2016 Add-insGuide Legal Notices Warranty TheonlywarrantiesforHewlettPackardEnterpriseDevelopmentLPproductsandservicesaresetforthin theexpresswarrantystatementsaccompanyingsuchproductsandservices.Nothinghereinshouldbe construedasconstitutinganadditionalwarranty.HPEshallnotbeliablefortechnicaloreditorialerrorsor omissionscontainedherein. Theinformationcontainedhereinissubjecttochangewithoutnotice. RestrictedRights Legend Confidentialcomputersoftware.ValidlicensefromHPErequiredforpossession,useorcopying.Consistent withFAR12.211and12.212,CommercialComputerSoftware,ComputerSoftwareDocumentation,and TechnicalDataforCommercialItemsarelicensedtotheU.S.Governmentundervendor'sstandard commerciallicense. Copyright Notice ©Copyright1992-2016HewlettPackardEnterpriseDevelopmentLP Trademark Notices Adobe®andAcrobat®aretrademarksofAdobeSystemsIncorporated. Google™andGoogleMaps™aretrademarksofGoogleInc Intel®andPentium®aretrademarksofIntelCorporationintheU.S.andothercountries. Microsoft®,Windows®,Windows®XP,andWindowsVista®areU.S.registeredtrademarksofMicrosoft Corporation. OracleandJavaareregisteredtrademarksofOracleand/oritsaffiliates. Documentation Updates Thetitlepageofthisdocumentcontainsthefollowingidentifyinginformation: SoftwareVersionnumber,whichindicatesthesoftwareversion. l DocumentReleaseDate,whichchangeseachtimethedocumentisupdated. l SoftwareReleaseDate,whichindicatesthereleasedateofthisversionofthesoftware. l Tocheckforrecentupdatesortoverifythatyouareusingthemostrecenteditionofadocument,goto: https://softwaresupport.hpe.com. ThissiterequiresthatyouregisterforanHPEPassportandsignin.ToregisterforanHPEPassportID,goto https://softwaresupport.hpe.comandclickRegister. Support VisittheHPESoftwareSupportOnlinewebsiteat:https://softwaresupport.hpe.com HP Unified Functional Testing (12.53) Page 2 of369 Add-insGuide Thiswebsiteprovidescontactinformationanddetailsabouttheproducts,services,andsupportthatHPE Softwareoffers. HPESoftwareonlinesupportprovidescustomerself-solvecapabilities.Itprovidesafastandefficientwayto accessinteractivetechnicalsupporttoolsneededtomanageyourbusiness.Asavaluedsupportcustomer, youcanbenefitbyusingthesupportwebsiteto: Searchforknowledgedocumentsofinterest l Submitandtracksupportcasesandenhancementrequests l Downloadsoftwarepatches l Managesupportcontracts l LookupHPEsupportcontacts l Reviewinformationaboutavailableservices l Enterintodiscussionswithothersoftwarecustomers l Researchandregisterforsoftwaretraining l MostofthesupportareasrequirethatyouregisterasanHPEPassportuserandsignin.Manyalsorequirea supportcontract.ToregisterforanHPEPassportID,goto:https://softwaresupport.hpe.comandclickRegister. Tofindmoreinformationaboutaccesslevels,goto: https://softwaresupport.hpe.com/web/softwaresupport/access-levels. HPESoftwareSolutions & Integrations andBest Practices VisitHPESoftwareSolutionsNowathttps://softwaresupport.hpe.com/group/softwaresupport/search-result/- /facetsearch/document/KM01702710toexplorehowtheproductsintheHPE Softwarecatalogwork together,exchangeinformation,andsolvebusinessneeds. VisittheCrossPortfolioBestPracticesLibraryathttps://hpln.hpe.com/group/best-practices-hpswtoaccessa widevarietyofbestpracticedocumentsandmaterials. HP Unified Functional Testing (12.53) Page 3 of369 Add-insGuide Contents HP Unified Functional Testing 1 Welcome to the Add-insGuide 14 Part1:Working with UFT Add-ins 16 UFTAdd-ins 17 Recordandrunsettingsforadd-ins 17 Environmentvariablesforrecordandrunsettings 19 UFTadd-inextensibility 19 ManageUFTadd-ins 20 Loadorremoveadd-insfromUFT 20 Matchloadedadd-inswithassociatedadd-ins 21 DefinerecordandrunsettingsforUFTadd-ins 21 Definerecordandrunsettingsforspecificadd-ins 21 Setrecordandrunenvironmentvariablesforadd-ins 22 Web-BasedApplicationSupport 23 RegisteringBrowserControls 23 Accessingpassword-protectedresourcesintheActiveScreen 24 Eventrecordingconfiguration 25 Advancedoperations 27 Webobjectidentifiers 29 Webobjectidentifiertypes 30 UseWebobjectidentifiers-exercise 32 Prerequisites 32 CreateasampleWebapplication 33 LearnthebuttonobjectsintheWebapplication 33 Removetheordinalidentifiersfromthebuttonobjects 33 AddaCSSidentifierbasedontheobject'sparentcontainer 34 AddanXPathidentifierbasedontheobject'sparentcontainer 34 AddanXPathidentifierbasedontheobject'ssiblingelement 34 Results 34 WebobjectrecognitionusingtheWebAccessibilitytoolkit 35 Modifyeventrecordingconfiguration 36 ModifyeventrecordingconfigurationXMLfilemanually 36 Modifyeventrecordingconfigurationusingsettings 36 ConfigureUFTtorecordmouseclicks 37 Exporttheconfigurationfile 37 OpentheXMLfileinatexteditor 38 HP Unified Functional Testing (12.53) Page 4 of369 Add-insGuide ModifytheXMLfiletoenablemouseclickrecording 38 LoadtheXMLfile 39 EnvironmentvariablesforaWeb-basedenvironment 39 Known Issues-Web-BasedApplicationSupport 42 Windows-BasedApplicationSupport 45 EnvironmentvariablesforWindows-basedapplications 46 AdvancedWindows-basedapplicationtesting 47 RecordandrunsettingsforWindows-basedadd-ins 48 Part2:.NET Add-in 51 .NETAdd-in 52 .NETSilverlightAdd-in 53 .NETSilverlightAdd-in -QuickReference 54 SilverlightAdd-inextensibility 55 KnownIssues - SilverlightAdd-in 57 .NETWebFormsAdd-in 59 .NETWebFormsAdd-in -Quick Reference 60 KnownIssues- .NETWebForms 61 .NETWindowsFormsAdd-in 66 .NETWindowsFormsSupport -Quick Reference 67 .NETAdd-inextensibility 68 .NETWindowsFormstablecheckpointsandoutputvalues 69 .NETWindowsFormsSpy 70 Usethe.NETWindowsFormsSpy 71 Spyonanobject 71 RemoveobjectsfromtheObjectspane 71 Viewvaluesofrun-timeobjectproperties 71 Viewpropertiesofembeddedobjects 72 Locateapropertybyitsvalue 72 Sortthepropertiesgrid 72 Modifyvaluesofrun-timeobjectproperties 73 Vieweventargumentsonanobject 73 Listentospecifiedeventsofanobject 73 Fireselectedeventsonanobject 74 RemovespecificeventsfromtheFiredEventslist 74 ClearalleventsfromtheFiredEventslist 75 KnownIssues - .NETWindowsForms 75 .NETWindowsPresentationFoundation(WPF)Add-in 77 .NETWindowsPresentationFoundation(WPF) Add-in -Quick Reference 78 WPFAdd-inExtensibility 79 UsingWPFobjects,methods,andproperties 79 HP Unified Functional Testing (12.53) Page 5 of369 Add-insGuide WPFUserInterfaceAutomation 80 KnownIssues - .NETWPF 82 Part3:ActiveX Add-in 84 ActiveXAdd-in -QuickReference 85 WorkingwiththeActiveXAdd-in 86 KnownIssues - ActiveXAdd-in 87 Part4:Delphi Add-in 91 DelphiAdd-in-Quick Reference 92 DelphiAdd-inextensibility 93 EnablecommunicationsbetweenUFTandyourDelphiapplication 94 KnownIssues-DelphiAdd-in 95 Part5:FlexAdd-in 96 FlexAdd-in -QuickReference 97 WorkingwiththeFlexAdd-in 99 EnablingUFTtoidentifyobjectsinyourFlexapplication 101 SetuptheAdobeFlashPlayerDebuggertoenableUFTGUItesting 102 EnsuretheAdobeFlashPlayerDebuggerisinstalled 103 SetupAdobeFlashPlayerDebuggertointegratewithUFT 103 OpenFlexapplicationsusingtheRuntimeLoader 104 Prerequisites 105 OpentheFlexWebapplicationusingtheRuntimeLoader 106 EmbedaFlexapplicationinaWebpagewiththeRuntimeLoader 107 Prerequisites 107 CreatetheWebpage 108 UpdatetheRuntimeLoaderlocationspecifiedintheWebpage 108 EmbedtheFlexapplicationintheWebpage 109 CompileFlexapplicationsforUFTtesting 109 PrepareaFlexapplicationforWeb 110 PrepareaFlexapplicationforAdobeAIRfortesting 110 PrepareahostedFlexapplication 111 PrepareaFlexapplicationwiththeFlexchartingorAdvancedDataGridclasses 111 WorkWithembeddedobjectsinFlexLists,Tables,orTree-Views 111 KnownIssues -FlexAdd-in 113 Part6:Java Add-in 115 JavaAdd-in -QuickReference 116 JavaAdd-inenvironments 117 JavaAdd-inextensibility 118 HP Unified Functional Testing (12.53) Page 6 of369 Add-insGuide Javaenvironmentvariablessettings 119 DisableDynamicTransformationsupport(Advanced) 121 Savethedynamicallytransformedclasses 121 Disabledynamictransformationsupport 122 RecordingstepsonJavaobjects 123 RecordingstepsonJtablecelleditors 124 ModifyoptionsforrecordingonJavatables 125 ModifydefaultJTablerecordingofSetCellDatamethods 125 Modifytablecellcontroloptions 125 FindthetoolkitclassofaJTablecelleditor 126 FindthetoolkitclassofaJTablecelleditor 126 Textcheckpoint/outputvaluestepsforJavaobjects 127 AdvancedJavatestobjectmethods 128 Javaapplicationtestingproblems 130 KnownIssues-JavaAdd-in 133 Part7:Mobile Add-in 141 MobileAdd-in 142 Part8:Oracle Add-in 143 OracleAdd-in -QuickReference 144 Oraclerecordandrunenvironmentvariables 145 SetOracleenvironmentvariables 146 SunPlug-in1.4.1andOracleJInitiator1.3.1.x 147 OracleJInitiator1.1.x 147 RecordingonOracleapplications 147 DynamicTransformationsupport 148 DisableDynamicTransformationsupport 148 Savethedynamicallytransformedclasses 148 Disabledynamictransformationsupport 149 VerifyorenabletheOracleServerUniqueNameattributes 150 Prerequisite 150 EnabletheOracleservertosupplyuniqueNameattributes 150 EnabletheOracleNameattribute 150 EnabletheNameattribute 150 EnabletheNameattributeusingHTMLtolaunchtheOracleapplication 151 EnabletheNameattributewhenusingthePersonalHomePages 151 KnownIssues - OracleAdd-in 152 Part9:PeopleSoftAdd-in 154 PeopleSoftAdd-in -Quick Reference 155 HP Unified Functional Testing (12.53) Page 7 of369 Add-insGuide WorkingwiththePeopleSoftAdd-in 156 KnownIssues - PeopleSoftAdd-in 156 Part10:PowerBuilderAdd-in 157 PowerBuilderAdd-in -QuickReference 158 WorkingwiththePowerBuilderAdd-in 159 KnownIssues - PowerBuilderAdd-in 160 Part11:QtAdd-in 161 QtAdd-in -Quick Reference 162 WorkingwiththeQtAdd-in 164 KnownIssues-QtAdd-in 164 Part12:Add-in forSAP Solutions 165 Add-inforSAP Solutions -Overview 166 Web-basedSAPSupport 167 Web-BasedSAPSupport -Quick Reference 168 KnownIssues - Web-basedSAP 170 Windows-basedSAPSupport 175 Windows-basedSAPSupport -Quick Reference 176 EnvironmentvariablesforWindows-basedSAPapplications 178 SAPGUIScriptingAPIandUFT 179 EnablesupportforSAPGUIforWindows 180 Prerequisite:MakesurethatSAPGUIScriptingisinstalled 180 EnablescriptingontheSAPapplication(server-side) 181 EnablescriptingontheSAPapplication(client-side) 182 ChecktheconnectionspeedontheSAPserver 182 SetF1Helptousethemodaldialogboxmode 182 SetF4Helptousethedialogdisplaymode 183 EnablescriptingontheSAPApplication(Server-Side) 183 Automaticallyparameterizingtableandgridcellvalues 186 HowUFTrecordsinAuto-parameterizemode 187 ParameterizedcellvaluesintheInputdatasheet 189 Datainrowsthatrequirescrolling 191 RecordonStandardWindowsControlsduringanSAPGUIforWindowsrecording session 192 KnownIssues - Windows-basedSAP 193 UFT-SAPSolutionManagerIntegration 199 ResourcefilesinSolutionManager 200 SolutionManagertestingmodes:StandaloneorIntegrated? 200 SAPStructuredParameters 203 HP Unified Functional Testing (12.53) Page 8 of369 Add-insGuide ConfigureSolutionManagertoworkwithUFT 204 Prerequisites 204 SetexternaltoolparametersintheECCUST_ETtable 204 ApplynecessaryrolesorprofilestoSolutionManager-UFTUsers 205 RegisterUFTtoworkwithSolutionManager 205 WorkwithtestsinSolutionManagerinStandaloneMode 206 Saveatestinstandalonemode 206 OpenatestfromSolutionManagerinstandalonemode 207 UploadexternalresourcefilestoSolutionManager 207 CreateanewsharedobjectrepositoryinSolutionManager 207 CopyorexportanobjectrepositorytoSolutionManager 208 CreateanewrecoveryfileinSolutionManager 208 RunateststoredinSolutionManager 209 Runatestinstandalone 209 RunatestfromSolutionManagerusingtheExecuteTestScriptoption 209 ViewresultsofaGUItestruninintegratedmode 210 DisplayoreditaGUITestfromSolutionManagerinIntegratedMode 210 DisplayoropenatestfromSolutionManager 211 CreateatestfromSolutionManager 211 TransferdatatoandfromGUItestsinIntegratedModeusingtestparameters 211 WorkwithSAPStructuredParameters 212 Createormodifythestructuredparametersofatest 212 Assignormodifythestructuredparametersforanaction 213 Usestructuredparametersinascript 214 Part13:Siebel Add-in 217 SiebelAdd-in -Quick Reference 218 Siebeltestobjectmodel 220 Siebel7.7.xorlater -TestAutomationModuleconfiguration 221 EnvironmentvariablesforSiebelapplications 222 SiebelTestExpress 224 UseSiebelTestExpresstogenerateorupdateasharedobjectrepository 224 Prerequisites 224 Createorupdateasharedobjectrepository 224 UsetheObjectRepositoryMergeTooltomergetheupdatedrepository 225 Savethesharedobjectrepository 225 KnownIssues -SiebelAdd-in 225 Part14:Standard WindowsTesting Support 231 StandardWindowsSupport -Quick Reference 232 KnownIssues - StandardWindows 234 HP Unified Functional Testing (12.53) Page 9 of369 Add-insGuide Part15:StingrayAdd-in 235 StingrayAdd-in-Quick Reference 236 SettingUpStingrayObjectSupport 238 SetUpYourStingrayprojectusingthePrecompiledAgentmode 239 Prerequisites 239 CopyStgAgentLib.handStgAgentLib.libfiles 240 Add#include"StgAgentLib.h"toa.cppfile 241 AddtheReleaseWRVC();functioncall 241 EnsurethePrecompiledAgentoptionisselected 241 Results 241 KnownIssues - StingrayAdd-in 241 Part16:Terminal EmulatorAdd-in 244 TerminalEmulatorAdd-in-Quick Reference 245 HowdoesUFTworkwithterminalemulators? 247 Runsessionsynchronizationforterminalemulators 248 Terminalemulatorrecoveryscenarios 248 ConfigureanemulatortoworkwithUFT 249 AttachmateEXTRA! 249 AttachmatemyEXTRA!TerminalViewer 249 AttachmateINFOConnect 250 HummingbirdHostExplorer 250 IBMPersonalCommunications(PCOM) 251 IBMWebSphereHostOn-Demand 251 NetManangeRUMBA 251 NetManageRUMBAWeb-to-Host 251 SeagullBlueZone 252 WRQReflection 252 ZephyrPassport 252 Manageterminalemulatorconfigurationsettings 253 Changeconfigurationsettings 253 Restoredefaultsettingsfortheselectedpreconfiguredemulator 253 Restoresettingsforauser-definedconfiguration 253 CheckthevalidityofaTerminalEmulatorconfiguration 254 Validatingaterminalemulatorpossibleerrorresponses 254 Copyexistingterminalemulatorconfigurations 256 Prerequisites 257 Copytheregistryfiletoyourcomputer 257 Registerthefile 257 Setthenewemulatorasthedefaultemulator-optional 257 Modifytheemulatorsettings-optional 257 HP Unified Functional Testing (12.53) Page 10 of369
Description: