Service Virtualization
Service Virtualization in SimplifyQA allows testers to simulate APIs and services that may be unavailable, expensive, or difficult to access during testing. By creating mock services, users can continue validating test scenarios without relying on live systems.
Enabling Service Virtualization
Service Virtualization must first be enabled by the Admin:
Log in amd switch to Admin.
Navigate to Project Settings → Roles and Services.
Under Test Management, locate Service Virtualization.
Enable the required privileges.
Save the enabled privileges.

Switch back to the User account.
A new topic Service Virtualization will now be visible under Test Management.

Creating a Mock Service
Go to Test Management → Service Virtualization.
Click +Mock Service to create a new service.
Enter the following details:
Mock API Name – A unique name for the mock service.
Request Type – Select HTTP method (GET, POST, PUT, DELETE).
Endpoint URL – Paste the target endpoint to be mocked.
Add Responses:
Click the Add (+) icon to create one or more responses for the API.
Add Rules (optional):
Define rules to simulate different conditions or behaviors.
Click Save to create the mock service.

Using Mock APIs in Test Cases
Create a new API test case or open an existing one.
Replace the endpoint with the Mock API URL.
In the Headers section, add:
Key:
x-mock-token
Value:
Navigate to Settings → Security → Create & Manage API Token.
Click Generate Token, name your token, and click Save.
Copy the generated API key and paste it into the field.
Save the test case.
Run the test case to execute against the mock service.
Key Benefits
Unblocks testing early – no need to wait for dependent services.
Cost-efficient – avoids hitting paid or rate-limited APIs.
Flexible simulation – supports multiple responses and rules.
Seamless integration – works with both new and existing API test cases.
Conclusion
Service Virtualization in SimplifyQA empowers teams to test faster and with fewer dependencies by simulating APIs and services. Whether services are unavailable, costly, or under development, mock services provide a reliable way to validate functionality. With support for multiple responses, rules, and seamless integration into test cases, Service Virtualization ensures robust and flexible API testing.
Last updated