Yesterday I show you how to invoke a java method which take in no arguments. Today let see how we call a java method that take in one String argument.
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.
Automate the unix session
13 years ago
No comments:
Post a Comment