forked from ringcentral/jagger8
-
Notifications
You must be signed in to change notification settings - Fork 0
Custom invoker
nmusienko edited this page Mar 13, 2013
·
7 revisions
- Create class which implements interface "Invoker"
package test;
...
public class CustomInvoker implements Invoker<String, String, String> {
@Override
public String invoke(String path, String endpoint) throws InvocationException {
...
}
}- Create bean in XML file in the directory "suite/invokers/" with this class
<beans:bean id="customInvoker" class="test.CustomInvoker"/>- Create component "invoker" with type "invoker-class" and set attribute "class" with full class name of invoker
<scenario ...>
...
<invoker xsi:type="invoker-class" class="test.CustomInvoker"/>
</scenario>