Thursday, 22 December 2011

JXImagePanel & Java Questions


Question:
When we test java application that use JXImagePanel, although i am using Java Add-in but still my Controls did not recognized.

Answer:
JXImagePanel is one of the nightmare in QTP Testing. You need to add XML files created inside your Java Add-in file so that your JXImagePanel files get recognized. The JXImagePanel will then be added in your QTP as Sub add-in of Java and you can record & play back on Java application

Question:
I've a recorded script on Machine A and now running the Same Script on Machine B & my QTP is not recoganizing my Controls

Ans:

JXImagePanel recorded script is basically a x,y coordinates clicks so u need exactly the same Graphic Card on both machines in order to run the script ( i know it sucks but u have no other option)

Question:
I'm running a batch and some of my scripts use Java Add-in and some did not require Java Add-in. How to encounter that.

Ans:

You need to write a script that reloads QTP before the script that change add-in and then execute the script that is Created from File-->Settings-->Generate Script (This will automatically load the add-ins that are loaded when the script was generated)

No comments:

Post a Comment