| || |
Calling non-GUI Java methods from SilkTest
Hello to the vast and valuable SilkTest knowledge base!
1)Can SilkTest directly call methods of a non-GUI java class?
2)Do I use InvokeJava, InvokeMethods for this or are they for java GUI controls?
3)How could 4Test pass-in or receive a return value from Java other than a STRING type?
BTW: I searched the forum archive for this topic and found nothing conclusive.
Several forum threads mentioned SilkBean for this kind of thing. This would not be an option here unless it comes free with a SilkTest license!
Thanks in advance for your responses!
Re: Calling non-GUI Java methods from SilkTest
If you have Silk(Which you obviously do) you already have the bean.
As to your other question, I'm taking a risk here of being dead wrong, but my understanding is that any java class you interrogate has to be tied in some way to a piece of your GUI. In the past, I've had developers draw a minute "decorative" box down in the corner of a "nothing GUI" just so I'd have something to tie certain Java classes to. Once that was done, I could call MyLittleBoxGui.ThisClass.ThisExposedMethod.DoSomet hing()
If I'm mistaken on this, please correct me...