NOTICE: Significant community changes coming soon
The header menu and the home page on our community will be changing soon. Get more information HERE.
Highlighted
Absent Member.. Absent Member..
Absent Member..
507 views

How to disable option "Disable smart identification during the run session" programmatically

Jump to solution

How to disable option File --> Settings --> Run --> "Disable smart identification during the run session" through Action code?

0 Likes
1 Solution

Accepted Solutions
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hi Bonda

Hope you are doing well.

searching information about this i found below document which explain how to disable smart identification using code (within script)

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM779246

Note: It is not supported to use AOM statements within script. For more information, see Document ID KM192315 - Can Automation Object Model (AOM) statements be executed within a script?

Disable smart identification

    • Built-in Setting to use within script:
      Setting("DisableReplayUsingAlgorithm") = 1
       
    • AOM code:
      CreateObject("QuickTest.Application").Test.Settings.Run.DisableSmartIdentification = True
       

Enable smart identification

    • Built-in Setting to use within script:
      Setting("DisableReplayUsingAlgorithm") = 0
       
    • AOM Code:
      CreateObject("QuickTest.Application").Test.Settings.Run.DisableSmartIdentification = False

The code above should be added to an associated library file so that it can apply to the whole test

 
Also just to document for other user the normal way to do this is following below document:
 
How to enable or disable Smart Identification:
 
Hope you will find well this information.
 
Regards,
” If you find this or any post useful to resolve the issue, please mark this thread as correct answer and other members can benefit with the information given”
Ruddy Alvarez H.
Customer Support Engineer

If you find thst aat this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the pond show your appreciation.

View solution in original post

1 Reply
Highlighted
Outstanding Contributor.
Outstanding Contributor.

Hi Bonda

Hope you are doing well.

searching information about this i found below document which explain how to disable smart identification using code (within script)

https://softwaresupport.hpe.com/group/softwaresupport/search-result/-/facetsearch/document/KM779246

Note: It is not supported to use AOM statements within script. For more information, see Document ID KM192315 - Can Automation Object Model (AOM) statements be executed within a script?

Disable smart identification

    • Built-in Setting to use within script:
      Setting("DisableReplayUsingAlgorithm") = 1
       
    • AOM code:
      CreateObject("QuickTest.Application").Test.Settings.Run.DisableSmartIdentification = True
       

Enable smart identification

    • Built-in Setting to use within script:
      Setting("DisableReplayUsingAlgorithm") = 0
       
    • AOM Code:
      CreateObject("QuickTest.Application").Test.Settings.Run.DisableSmartIdentification = False

The code above should be added to an associated library file so that it can apply to the whole test

 
Also just to document for other user the normal way to do this is following below document:
 
How to enable or disable Smart Identification:
 
Hope you will find well this information.
 
Regards,
” If you find this or any post useful to resolve the issue, please mark this thread as correct answer and other members can benefit with the information given”
Ruddy Alvarez H.
Customer Support Engineer

If you find thst aat this or any other post resolves your issue, please be sure to mark it as an accepted solution.
If you are satisfied with anyone’s response please remember to give them a KUDOS by clicking on the STAR at the bottom left of the pond show your appreciation.

View solution in original post

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.