Simulating Data for Selected Endpoints

Use the SIMULATE tab of the SERVICE VIRTUALIZATION user interface to simulate data that is transmitted through selected endpoints in a web application.

Before you can simulate data that is transmitted through an endpoint, learn which data is transmitted through the endpoint. For additional information, see Learning which Data is Transmitted Through an Endpoint.

Note: With Silk4J, you can simulate up to three endpoints at the same time. If you require additional endpoints, you have to use an SV Lab license. You can specify a license server for SV Lab by setting the SVLicenseServerUrl property in the svlab.properties file. The file is located in the Silk Test application data directory, under %APPDATA%/Silk/SilkTest/conf/.
  1. Click the drop-down arrow next to the Silk Test toolbar icon Toolbar icon and choose Service Virtualization. The Service Virtualization user interface appears.
  2. Select the SIMULATION tab.
  3. Change the data for the endpoint in the JavaScript file of the endpoint to the new data that you want to simulate. Silk4J saves new scenarios in the Scenarios subfolder of the project. The JavaScript file has the suffix jsonModel and is located in a subfolder of the Scenarios folder with the name of the scenario.
  4. Select the scenario from the Scenarios list.
  5. Click SIMULATE. You can specify the proxy port that is used while simulating the data in the file sv-lab.json, which is located in the scenario folder. By default, this is the same port as the one that is used for learning.
  6. Ensure that the browser has not cached any data about the AUT.
  7. Perform an action in the AUT that will cause the changed data to be transmitted through the endpoint.
  8. If the simulation was successful, click STOP.