Move to next iteration fails. UFT
Question ID: 108191

I am trying to have my test move to a different iteration if a condition fails within a function. Instead of moving to the next iteration it is exiting the test. Please see example below:

Function check_errorMessage(PropertyType,PropertyValue1)

Dim myp1,myo1

Set myo1 = description.Create()


Set myp1 = Browser("").Page("*").WebElement(myo1)

If myp1.Exist(30) Then
check_errorMessage = "Pass"
Html_Report micFail, "Error Message: " & PropertyValue1 , " Is displayed"
’Close Browser
check_errorMessage = "Fail"
Html_Report micPass, "Error Messsage: " & PropertyValue1 , " Is not displayed"

End If

Set myo1 = nothing
Set myp1 = nothing

End Function

Please advise me on what needs to be changed.

Marked as spam
Posted by (Questions: 22, Answers: 6)
Asked on March 1, 2018 1:22 pm
Answers (2)
Private answer

I had an issue where it was traced to the code dealing with a CaptureBitmap. I found Micro Focus change request [QCCR1J66665]( where states there could be a problem with the Capture driver. Can you try the work around as suggested in this document?

From the attched document.

Screen Capture/Capture Driver and ReportEvents FeedbackIn order to fix the problem Screen Recorder Capture Driver should be uninstalled. To uninstall the driver please follow the steps:

1. Open UFT and navigate to Tools->Options-> GUI Testing-> Screen Capture
2. Click Uninstall
3. Restart the machine - reboot of the system is required in order to complete the uninstall

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on March 1, 2018 1:25 pm
Private answer


Could you please elaborate on this
**html_report**... mechanism that you have there .

Is it something that comes with UFT?

Thank you.,Hello.

Could you please explain what is this:
'' Html_Report micPass, ''Error Messsage:.... ''

What exactly is this html_report mechanism?

Is it something that comes with UFT?
If not, is it something you can share with us?

Thank you.

Marked as spam
Posted by (Questions: 1, Answers: 1)
Answered on March 2, 2018 12:32 am

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

Scroll to Top