Service Virtualization

 View Only
  • 1.  Custom Step not executed

    Posted Mar 09, 2018 09:33 AM



    I want to create a custom step to generate a JWT token. In order to learn the process of creating and integrating a custom step into a virtual service, I firstly tried to just create a custom step printing some logs.

    Here it is :

    public class CustomJWTStep implements CustJavaNodeInterface{

        private static final Log LOGGER = LogFactory
        public Object executeNodeLogic(TestExec testExec, Map arguments) throws TestRunException {
            Response responseLive= new Response();
            TransientResponse response=responseLive.createTransientCopy();
            return response;

        public ParameterList getParameters() {
            ParameterList pl = new ParameterList( "param1=&param2=&" );
            return pl;

        public void initialize(TestCase arg0, Element arg1) throws TestDefException {

    With the file lisaextension containing the path to my class :

    As told in the documentation. The custom step is integrated into a classical virtual service, just answering some json datas when requested.

    The log "INITIALIZATION" always displays properly, but even when the service is called and answers, the "TEST" log is never printed, and I can't figure why...


    Can someone help out ?

  • 2.  Re: Custom Step not executed

    Broadcom Employee
    Posted Mar 09, 2018 09:52 AM

    The first thing I'd try is to inspect vse.log at the time the service was invoked.  Do you see any exceptions in there?  It's possible a failure is occurring before your step can be executed.



  • 3.  Re: Custom Step not executed

    Posted Mar 12, 2018 04:48 AM

    Unfortunately, there are not any exceptions in the logs... Everything seems to work as expected.