Highlighted
Absent Member.. Absent Member..
Absent Member..
92 views

Object Title Property Changes During Run

Hello,

 

Hopefully someone can assist me with an issue I am having.  I currently have an OracleFormWindow object in a shared repository named "EOD_Payment", which has a title property of "XXX - Payment.*" as an expression.  When I do a .Exist on the EOD_Payment object, it works the first time, then it sets the title property to whatever the title was on the last EOD_Payment window it detected.

 

For example:

1st Pass - "XXX - Payment.*" is title property of EOD_Payment

Detects OracleFormWindow with title "XXX - Payment Wind. 1 [Last, First]"

Then, it sets the title property for EOD_Payment to "XXX - Payment Wind. 1 [Last, First]"

2nd Pass - It does not detect EOD_Payment object as the expression for the title has been set to the above.

 

Thanks!

Cody-

0 Likes
4 Replies
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Object Title Property Changes During Run

Hello Cody,

 

Can you please send us the code you are trying on your test?

 

Regards,

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Object Title Property Changes During Run

I can't send you everything, but here is the snippet that loops through:

 

blnPaymentWindowExists = OracleFormWindow("EOD_Payment").Exist(3) 'Check if payment window exists
If blnPaymentWindowExists = True Then
Do
OracleFormWindow("EOD_Payment").OracleTextField("Payment Code").Enter "95000000" 'Enter Cash as payment method
OracleFormWindow("EOD_Payment").OracleButton("Post").Click 'Click Post
intPaymentsProcessed = intPaymentsProcessed + 1
Print "Payment Processed"
Reporter.ReportEvent micPass, "Payment Processed", "Payment Processed"
bln8300NotificationExists = OracleNotification("8300RequiredNotification").Exist(2) 'Check if 8300 form required
If bln8300NotificationExists = True Then
OracleNotification("8300RequiredNotification").Approve
OracleFormWindow("EOD_8300").OracleButton("OK").Click 'CLick OK on 8300 form
OracleNotification("8300RequiredNotification").OracleButton("Yes").Click 'Yes to override 8300
OracleFormWindow("EOD_8300_Overide").OracleTextField("Please enter a reason").Enter "Test Purposes" 
OracleFormWindow("EOD_8300_Overide").OracleButton("OK").Click 
int8300Forms = int8300Forms + 1
Print "8300 Override"
Reporter.ReportEvent micPass, "8300 Override", "8300 Override"
End If
blnPaymentWindowExists = OracleFormWindow("EOD_Payment").Exist(1)
Loop Until blnPaymentWindowExists = False 'Loop until all payment windows processed

0 Likes
Highlighted
Micro Focus Contributor
Micro Focus Contributor

Re: Object Title Property Changes During Run

Cody,

 

Can you please confirm if this behavior is reproducible on other machines? Are the changes perceptible on the application and the object repository?

 

I would suggest to perform a repair of UFT and if the issue persists then perform a clean uninstall:

 

Repair:

 

Go to run, type Regedit and then press enter.

 

Rename the following key registries :

 

HKEY_CURRENT_USER\Software\Mercury Interactive

 

To:

 

HKEY_CURRENT_USER\Software\Mercury Interactive.dat

 

  1. Now go to run again and type %appdata%\HP.
  2. Delete the folders API Testing, QuickTest Professional and Service Test

Now follow below steps to repair QTP/UFT:

  1. Go to run again, and type control and then press enter.
  2. Select UFT/QTP and click on Repair button.
  3. Once repair is done, reboot and try again to reproduce the issue.

 

Clean Uninstall:

https://softwaresupport.hp.com/group/softwaresupport/search-result/-/facetsearch/document/KM00319750

 

Finally, in case that the issue remains, I would recommend to open a case with our support team because this case will need further investigation.

 

Regards,

 

0 Likes
Highlighted
Absent Member.. Absent Member..
Absent Member..

Re: Object Title Property Changes During Run

Looks like the repair fixed the issue, strange..  

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.