Micro Focus QTP (UFT) Forums
QTP fails while using Eclipse based application - 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: QTP fails while using Eclipse based application (/Thread-QTP-fails-while-using-Eclipse-based-application)



QTP fails while using Eclipse based application - deeptisk - 01-18-2008

Hi,
I'm trying to use QTP along with a product created by our company.
This is an Eclipse based Java product that allows designing, creating and editing of business rules. It provides a Dockable Windows Interface.It comprises of a few wizards (for ex: To create a project, to add java classes to a project etc.,). It has two types of child windows : Explorer Windows and Editing Windows
The tool captures all the steps but the test fails during the run when it encounters edit boxes or context menus etc., mostly when Editing Windows pop up.

Some of the snippets where the test fails:
Case 1:
Code:
Window("<Company_Application>").WinObject("Description :").Click 26,8
        Window("<Company_Application>").WinEditor("Description :").SetCaretPos 0,0
Case 2:
Code:
Window("<Company_Application>").Dialog("Create New Rule").WinEdit("Name of the Rule").Set "testRule"

Here "Name of the Rule" is actually the lable of the text box where we provide he name "testRule". Error message displays "Verify that this object's properties match an object currently displayed in your application".

Can you please let me know if there are any plugins for eclipse based applications.
PS: I'm Recording the test with Windows Application option.
Thanks.
Regards,
Deepti


RE: QTP fails while using Eclipse based application - Rajashekar Gouda - 01-18-2008

Hi Deepti,

I guess ur using "Low level Recording" to record the action which u performed on ur application.

Since the "Name of the Rule" dialog box is displaying once after u click on the name of the dialog box which is there under menu.

As I explained in topic “how to recognize menu options in dp in qtp” QTp is not is unable to recognize the dialog boxes which are listed its name in Menu.

The temporary solution for this is please use the “Analog Recording” of “Record Relative to the screen”.

I am sure that that it will work. Please let me know the result.

Regards
Raj
rhotur@gmail.com


RE: QTP fails while using Eclipse based application - Ankur - 01-18-2008

Action on pop-ups will not be recorded unless its parent has "visible" property as "mandatory".

Try to include the "visible" property in mandatory field under the parent and then let us know the result.


RE: QTP fails while using Eclipse based application - deeptisk - 01-21-2008

Hi Raj,
Thanks for the reply.
The method you suggested is working only for some scenarios.
For example it does not work in cases where an item is being selected from a drop down list. It is selecting the wrong item while running the test.
Please do let me know if there is any other setting that can record the test and run it more accurately.
Regards,
Deepti


RE: QTP fails while using Eclipse based application - deeptisk - 01-21-2008

Hi Ankur,
I'm sorry i did not quite follow as to how i'm supposed to set the property for the parent. Does this require and kind of scripting?
Please do help.
Thanks.
Regards,
Deepti.
PS: Am I supposed to use Java Addins for this Eclipse based Application that i have mentioned?