Use the
LEARNING tab of the
SERVICE VIRTUALIZATION user interface to learn which data is transmitted through selected endpoints in a web application.
-
Click the drop-down arrow next to the
Silk Test toolbar icon
and choose
Service Virtualization.
The
Service Virtualization user interface appears.
-
Select the
LEARNING tab.
-
Type a name for the new scenario into the
Scenario Name field.
For example, type
ChangePopularProdutName.
Silk4J saves new scenarios in the
Scenarios subfolder of the project.
Tip: In addition to the capabilities provided in the
Silk4J UI, you can use the
svlab.properties file to configure some settings for service virtualization, for example the outbound proxy server that is used to connect
to the web. The file is located in the
Silk Test application data directory, under
%APPDATA%/Silk/SilkTest/conf/.
-
Select at least one endpoint from the
Endpoints field or manually add an endpoint by typing it into the
Add Endpoint field.
-
Click
LEARN.
Silk4J starts the proxy that is displayed in the
PROXY URL field.
-
Open the browser against which you want to test the AUT.
For example, open
Mozilla Firefox.
-
Ensure that the proxy that is displayed in the
Proxy URL field is configured for the browser.
-
Ensure that the browser has not cached any data about the AUT.
-
Perform some actions in the AUT to ensure data is saved to the scenario.
For example, click
POPULAR ITEMS in the demo application (http://www.advantageonlineshopping.com).
-
Click
SIMULATE to continue simulating the data that is transmitted through the selected endpoints.
For additional information, see
Simulating Data for Selected Endpoints.