Highlighted
Absent Member.. vzamoraz Absent Member..
Absent Member..
207 views

QTP/UFT support tip: Max length for Object properties.

Each object property stored in Object Repository has a length limit when QTP/UFT read it to work with.

 

The max length of each property is 255 characters, so if you have for example a Web control which innerHTML property has more than 255 characters QTP will recognize the first 255 characters.

 

There is a way to increase this limit.

  1. Go to Start -> Run.
  2. Enter regedit into the Open field.
  3. Click <OK>. The Registry Editor window will appear.
  4. Navigate to the following key:

    HKEY_CURRENT_USER\SOFTWARE\Mercury Interactive\QuickTest Professional\MicTest\ObjectManager
  5. If it does not already exist, create a new DWORD value named MaxLogicalNameLen and specify the maximum length.
  6. With the ObjectManager key selected, go to Edit -> New -> DWORD value.
  7. Set the name of the value to MaxLogicalNameLen.
  8. Right-click on the new value and select "Modify" from the pop-up menu.
  9. Enter the desired length into the Value data field. The default value for MaxLogicalNameLen is 20.
  10. If it does not already exist, create a new DWORD value named MaxLogicalNameLenCutWord and specify the maximum length.
  11. With the ObjectManager key selected, go to Edit -> New -> DWORD value.
  12. Set the name of the value to MaxLogicalNameLenCutWord.
  13. Right-click on the new value and select "Modify" from the pop-up menu.
  14. Enter the desired length into the Value data field. The default value for MaxLogicalNameLenCutWord is 30.
  15. Close the Registry Editor.
  16. Restart QuickTest Professional for the changes to go into effect.

Note: Changing these values will not change the existing logical names or the descriptions of objects. Only the logical name of newly learned objects will be affected.

 

You can access this KB for more details:

http://support.openview.hp.com/selfsolve/document/KM180087

Labels (1)
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.