You can connect Parasoft Virtualize Server and/or Parasoft SOAtest Server 9.8.3 or higher to CTP to enable service virtualization and/or API testing functionality through a browser-based interface.
Integrating Virtualize Server with CTP
Connecting Virtualize to CTP is required for:
- Making Virtualize service virtualization assets (including virtual assets, proxies, data groups, and performance profiles, and provisioning actions) available in CTP.
- Allowing these assets to be provisioned from CTP.
- Creating and managing service virtualization assets from CTP.
- Viewing Virtualize Server events in CTP.
A Service Enabled license is required to connect to CTP.
To connect a Virtualize Server to CTP:
- In your Virtualize Server, choose Parasoft> Preferences.
- Select CTP on the left, and enter the connection URL for your server. The protocol, machine name, and port are required. In addition, you need to enter any path parameters preceding /em. For example, if the CTP Server is located at http://mymachine.mycompany.com:8080/some/path/em, the Server URL field should contain http://mymachine.mycompany.com:8080/some/path (without the ‘em’ suffix).
- Enable Notify CTP of virtual asset deployment.
- If your CTP administrator has configured security for your CTP installation, you also need to enter a valid username and password (preferably with an admin role).
- Click the Test Connection button to verify correct settings.
- Click OK to save.
- If the Virtualize Server is not already running, start it now.
- Open CTP in a browser, then open the Service Virtualization module.
- Confirm that the Virtualize Server listed in the tree— without the Status of Offline or Error.
You can now manage the Virtualize Server with CTP. Whenever you deploy a new virtual asset, re-deploy an existing one, or modify a message proxy, Virtualize will update CTP.
Using CTP with a cluster of Virtualize servers behind a load balancer?
If you plan to use CTP with a cluster of Virtualize servers behind a load balancer, be sure to review the recommendations in the Virtualize User guide (Introduction> Setting Up a Cluster of Virtualize Servers Behind a Load Balancer).
Integrating SOAtest Server with CTP
Connecting SOAtest to CTP is required for:
- Making SOAtest test assets (including test scenarios, data groups, variables, etc.) available in CTP.
- Allowing SOAtest test assets to be executed during CTP provisioning or run for health checks.
- Creating and managing test assets from CTP.
- Creating and executing test jobs from CTP.
A SOAtest "Server API Enabled" license is required to connect to CTP.
To connect a SOAtest Server to CTP:
- In your SOAtest Server, choose Parasoft> Preferences.
- Select CTP on the left, and enter the connection URL for your server. The protocol, machine name, and port are required. In addition, you need any path parameters preceding /em. For example, if the CTP Server is located at http://mymachine.mycompany.com:8080/some/path/em, the Server URL field should contain http://mymachine.mycompany.com:8080/some/path (without the ‘em’ suffix).
- If your CTP administrator has configured security for your CTP installation, you also need to enter a valid username and password (preferably with an admin role).
- Click the Test Connection button to verify correct settings.
- Click OK to save.
- Start the server:
- From the cli: Run
soatestcli -startServer
- From the UI: Click the Start Server button in the SOAtest Server view.
If the Start Server button is grayed out and the red Stop Server button is enabled, this means that the server is running.
- From the cli: Run
- Open CTP in a browser, then open the API Testing module.
- Confirm that the SOAtest Server listed in the tree— without the Status of Offline or Error.
Before you can access the .tst files on this server from CTP, you need to add them to the TestAssets folder as follows (Test assets must be in this specific folder in order for CTP to access them):
- On the SOAtest Server that you just connected to CTP, create a project named TestAssets (if it does not already exist).
- Copy (or drag and drop) any test assets that are associated with the test scenarios you want to launch from CTP. This can include .tst files, data sources, keystores, and so on. .tst files should have already been configured so that test assets that are referenced via relative paths.
- To confirm that .tst files are accessible from CTP, open CTP and go to the API Testing module. You should see the test assets from your TestAssets folder.