| || |
How to access classes in external jar in QTP
We have created a simple user defined class which has a member function ( eg. String getTreeNodeText (org.eclipse.swt.widgets.TreeItem ti) ) which accepts TreeItem object as a parameter and returns its text as a String object. eclipse control jar file with us, which is also present in application's plug-in folder.
Set obj1 = JavaWindow("JFrameObject").createObject("rcaf_test 1.TCTreeTester")
Set obj1 = nothing
If we set path of eclipse jar along with user defined jar in "_JAVA_OPTIONS" environmental variable. QTP stops recognizing application's objects. [img]/images/graemlins/frown.gif[/img]
If we set only user defined jar file's path in "_JAVA_OPTIONS" environmental variable, QTP can recognize application's object. and I can create object of my class but can not call any function. [img]/images/graemlins/frown.gif[/img] [img]/images/graemlins/frown.gif[/img]
Can anybody help ?
Re: How to access classes in external jar in QTP
I've gone through few posts to solve my issue but it didn work out..