
Virtual Service creation from Scratch-MounteBank Part-01
Install MountrBank
First of all, you will need to install Node.js to use mountebank. After installation is complete, run the following command:
$ npm install -g mountebank
Then run:
$ mb

Creating Your First Imposters and Stubs-HelloWorld. Bellow is the sample imposter. The imposter is the most integral part of a mountebank. An imposter is associated with a port number and a protocol. It contains within itself the response we want to return and other related information.
Open another terminal, just run the above code as follow.

Now on the terminal where mb is running, you can see an imposter is created and waiting at port 3000.

Hitting at the port 3000, respond you “Hello World”

As always, if you get stuck, ask for help.
Similarly, if you are looking to create XPath, Script, and Analysis of the existing automation scripts instantly you can use the web extension tool TruePath.
About author Sumit: QA for 15 years and passionate about Test Automation, Service Virtualization, Web service, DevOps & ETL-BI Testing. Currently working for a leading telecom company CenturyLink as an offshore Automation COE lead. Please connect with him on LinkedIn.