Micro Focus QTP (UFT) Forums
Unspecified error displayed - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Unspecified error displayed (/Thread-Unspecified-error-displayed)



Unspecified error displayed - rmarkil - 09-25-2008

Hi all

am executing one of the script against Oracle application and observing "Unspecified error" when we click on

- One of the tab name "Line Items"
Usually clicking this tab should display "Line Items" form with in 10 secs, whereas sometimes it will take 2 or more mins to display "Line Items" form.This is where we are seeing the error.

Line of code which is erroring out.
Code:
"OracleFormWindow("Sales Orders").OracleTabbedRegion("LineItems").Select

Note : when Line Items form comes within 10 sec, no error is displayed.

Kindly provide your valuable inputs.

thanks
Ravi.


RE: Unspecified error displayed - Ankur - 09-29-2008

Is there any other tab within this tabbed region?


RE: Unspecified error displayed - sunny89 - 09-12-2013

HI Ankur,

I am getting an “unspecified error” for the below code.
Code:
OracleFormWindow(“@#$@#$”).OracleButton(“Search”).Click
The application executes this action, but hanging at line 10 and because of the application is too slow (may need more than 5 minutes to respond), QTP throw out an “Unspecified Error” after about 2-3 minutes.

Any Wait statement doesn’t work, because QTP have no chance to go to the next line.
It will stay at Line 10 until error come out. When the application is not slow, my script can pass successfully.

Please give any suggestion for my issue.


RE: Unspecified error displayed - pvadwala - 09-16-2013

Hi Sunny,

Try using Do.. While loop to force QTP to wait until next window exists.

Do While Not Window(xyz).Exist
Wait 1
Loop


RE: Unspecified error displayed - sunny89 - 09-16-2013

Hi pvadwala,

It will not work, as the control is hanging at the button click operation and not moving forward to the next step. Within 2 mins the script is failing because the control didn't execute the wait statement.