Enabling SAP GUI for HTML applications for functional testing
Objects in SAP GUI for HTML applications contain many dynamically-changing properties, for example .url, .href, and .id. While playing back functional test scripts against these applications, the value of one or more object recognition properties may change causing a high ScriptAssure score that results in script failure. HCL OneTest™ UI provides a mechanism to convert the recognition property value to a regular expression for those values that change dynamically. Finding each object's dynamic recognition property and converting it into a regular expression becomes cumbersome while testing SAP GUI for HTML applications.
Procedure
Perform the following tasks to make it easier for testing SAP GUI for HTML
applications:
-
Create a backup of the CustomObjectRecProp.rftop file available in the customization
folder.
The folder is available at C:\ProgramData\HCL\HOTUI\customization in Windows and at /etc/opt/HCL/HOTUI/customization in Linux.
- Rename the CustomObjectRecProp_MySAP.rftop file to CustomObjectRecProp.rftop in the customization folder.
-
Modify the ScriptAssure values to reduce the number of warnings and errors thrown during
script playback.
- Open the Preferences window in HCL OneTest™ UI. Click in the Eclipse IDE and in the Visual Studio IDE.
- Expand Functional Test, and expand Playback. Click Script Assure (TM) option and click Advanced.
- Set the Last chance recognition score to 30000 and Warn if accepted score is greater than to 20000
Notes:- If script execution still fails due to dynamically-changing recognition property values, use the regular expression mechanism to fix the issue. For more information, see the Regular expression topic.
- To test any other applications other than SAP GUI for HTML applications, use the backup copy of CustomObjectRecProp.rftop and use the default ScriptAssure values. For more information, see Using Script Assure topic