Service Virtualization

  • 1.  How do I register a VS transaction with custom TPH?

    Broadcom Employee
    Posted Jul 19, 2017 11:02 AM

    I wrote a custom transport protocol to support AS2 virtualization.  It works beautifully except that when the VS services a request, the transaction count doesn't increase in Portal.

     

    I presume the transaction count must be bumped by some API that I'm not calling.  Can someone tell me what it is?

     

    Thanks!



  • 2.  Re: How do I register a VS transaction with custom TPH?

    Posted Jul 20, 2017 11:32 AM

    Are you extending BaseListenStep and BaseRespondStep?

    Are you using "respondLater" in the respond() method of your Respond step?



  • 3.  Re: How do I register a VS transaction with custom TPH?

    Broadcom Employee
    Posted Jul 20, 2017 11:51 AM

    BaseListenStep and BaseRespondStep - Yes.

     

    respondLater() - Nope.  Would using this method address my problem?

     

    Thanks.

     

    --Mike



  • 4.  Re: How do I register a VS transaction with custom TPH?

    Posted Jul 20, 2017 11:54 AM

    Yes, I believe so.  I think we moved some of the metric calculations into that method which includes sending the event the Portal transaction count is based on.

     

    In general, you should always use respondLater, since otherwise you'll consume a thread if you have think time.



  • 5.  Re: How do I register a VS transaction with custom TPH?

    Broadcom Employee
    Posted Jul 20, 2017 02:02 PM

    Great tip on respondLater() regarding think time.

     

    However, after implementing that, "Transaction Count" in Portal still doesn't budge.

     

    --Mike



  • 6.  Re: How do I register a VS transaction with custom TPH?
    Best Answer

    Posted Jul 20, 2017 02:59 PM

    Are you calling setRequest in your listen step?

    Is anything clearing out test exec?  You should have a value "lisa.vse.stateful.request.received" in TestExec after the listen step finishes up and it should be there until you loop back to the beginning of the VSM.



  • 7.  Re: How do I register a VS transaction with custom TPH?

    Broadcom Employee
    Posted Jul 20, 2017 06:33 PM

    I'm in business!  Thanks a million.  It was the call to setRequest() that did the trick.  FWIW, I'm still not seeing "lisa.vse.stateful.request.received" but that doesn't seem to be causing me any problems.

     

    --Mike