DevOps Automation

DevOps Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#DevOps
 View Only

Virtualizing a web service with IBM DevOps Test Integrations and APIs

By Paranshah Vyas posted Tue August 13, 2024 12:25 PM

  

What is Virtualization? 

Virtualization is a technology that allows the creation and operation of virtual, rather than physical, versions of computer hardware, operating systems, storage devices, and network resources. This means that multiple virtual instances of these resources can run on a single physical machine, known as a host, simultaneously.
This blog discusses the process of virtualizing web services using the Phonebook REST API example provided with the IBM DevOps Test Virtualization Control Panel. If the Control Panel is installed on your machine, you can utilize this API. 

The REST API for the Phonebook can be accessed at the following URL: https://localhost:5443/RTCP/examples/phonebook/api 
 
For detailed instructions on creating a Web URL Service schema in Test Integrations and APIs, please refer to the accompanying blog "Creating Schema for Web URL with IBM DevOps Test Integration and APIs"
 
To virtualize your web service, follow these steps:
  1. Create a new stub Test Factory >> Right Click on Service Component >> New >> Stubs >> Stub

  2. Deploy it in your IBM DevOps Test Control Panel.


  3. Start the stub in Test Control Panel. 

  4. To implement service virtualization, incorporate the network recipient's hostname and port into your HTTP transport to effectively direct the traffic.


  5. Run the test and verify in the Test Virtualization Control Panel Dashboard for the received and virtualized calls. 

This example provides a fundamental overview of how to virtualize a service using IBM DevOps Test Integrations and APIs, as well as how to test the API functionality. If you encounter any challenges while creating the web URL schema or virtualizing the web service, feel free to open a support case with the DevOps Test team for assistance. 
0 comments
15 views

Permalink