Capturing the virtual service matched transaction ID
search cancel

Capturing the virtual service matched transaction ID

book

Article ID: 377129

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Need to know which transaction is matched in the VSI without going to the DevTest Portal.

Environment

All supported DevTest releases.

Resolution

Transaction Id can be found in DevTest Portal-->Inspection View and the knowledge article Find matching transaction id details in DevTest Portal will provide more information.

If anyone is trying to capture the Transaction Id into a property then they can use the below code in Execute Script step.
------------------------
import com.itko.lisa.vse.stateful.model.TransientResponse;
import com.itko.util.ParameterList;
import java.util.List;
testExec.setStateValue("transactionId",lisa_vse_matched_transaction.getId());
----------------------------

The above code will create a property transactionId which has the matched Transaction Id from VSI. 

Instead of the Execute Script step, Scripted Assertion can also be created in VS Image Response Selection step with the above code but make sure the assertion is executed to capture the  matched Transaction Id.

 

Additional Information

Look at the documentation on Execute Script Step and Scripted Assertion for more information in DevTest Techdocs.