let modify our java method
public void greeting(String name)
{
System.out.println("Hello " + name + " !");
}
to call this method we pass in a String to JavaObject.invoke function

JavaObject.invoke "greeting", Array("QTP")

As you can see we can easily debug with eclipse when java method get called by QTP.
No comments:
Post a Comment