Skip to content
nmusienko edited this page Mar 13, 2013 · 7 revisions

Custom invoker

To add your custom invoker you need to do:

  1. 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 {
        ...
    }
}
  1. Create bean in XML file in the directory "suite/invokers/" with this class
    <beans:bean id="customInvoker" class="test.CustomInvoker"/>
  1. 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>

Clone this wiki locally