Wednesday, March 27, 2019

How to parse special characters in Receive Headers in TOSCA- REST api

This is how we can parse the special characters in Receive headers in rest api in tosca.

"status:{""message"":""OK""}"

OSV TOSCA Tosca Orchestrated Service Virtualization

Introduction :
Tosca Orchestrated Service Virtualization (OSV) allows you to simulate synchronous and asynchronous message passing between several services and to analyze the message content.
You can define the order in which inbound and outbound messages are processed and the message content within a scenario. When you start a scenario, Tosca OSV detects and logs any faulty messages and messages that are not received in the order you specified.

TOSCA OSV is a standalone application so we have to install locally like TOSCA Commander to access TOSCA OSV.

Like TOSCA commander we need to set up the TOSCA OSV . Below are the details.

TOSCA OSV Installation:

TOSCA OSV requires valid license .
Tosca OSV Setup Wizard is available to help you with installation. Double click on the MSI installation file to start installation and follow the instructions on the screen.

To access TOSCA OSV we need to have user credentials to access OSV.

OSV Configuration :
  1. User creation
  2. Environment creation
  3. Service port creation
  4. Scenarios creation

User creation :
Steps to follow user creation:
  1. Launch TOSCA Commander.
  2. Login as a admin user
  3. Go to project root folder and check out
  4. Import OSVProject definition from the path "C:\Program Files (x86)\TRICENTIS\ToscaOSV\Config"
  5. Go to Usermanagement 
  6. Update the environment in OSV-[osv]-Admin like OSV-testProject-Admin
  7. Right click on ASV-testProject-Admin and select create user
  8. Enter user name .
  9. Right click on user name and select Password
  10. Enter password and save
  11. Right click on Project root folder and select OSV and select sync the users.
OSV Environment creation:
  1. Right click on Project root folder in TOSCA commander 
  2. Select OSV and select OSV Monitor
  3. Enter credentials which was created in usercreation
  4. Enter Environment name 
  5. Right click on tab and Select New Environment
  6. Enter Environment name
  7. Enter description
  8. Enter license in license server
  9. Select Database type 
  10. Enter server details
  11. Tap on OK
 OSV Workspace creation

Service port creation:
  1. Right click on created environment 
  2. Select New Service port
  3. Give the name of the service port
  4. Select type of the services
  5. Select request and response types
  6. Enter unused port number
  7. Enter real service URL
  8. Select Real Service based on requirement

Scenarios creation:


  1. Go to Environment and turn it on
  2. Go to Record and start recording
  3. Now run the test cases (Executed test cases will be recorded).
  4. Go to OSV record tab and select the recorded requests and responses
  5. Right click and select mark as import messages
  6. Go to Tosca Commander 
  7. Right click on Project root folder and select OSV
  8. Select Import marked messages

Saturday, January 19, 2019

MicroMax products needs BOX's for warranty ...

Can you believe it ... "Micromax power bank needs it's package box for warranty"  Here is my experience with MicroMax powerbank... I have bought MicroMax power bank through amazon which did not work more than one month. Since it had six months warranty i went to MicroMax service center with my purchase order . Shockingly i was asked for it's BOX (I wonder anyone keeps the boxes??). I told to the customer executive that i lost it. They reluctantly said without box they cannot be processed . When i called to the central customer care shamelessly customer executive told me ask the amazon for BOX. It's been more than 10 months still this issue has not been closed.

My advice to everyone if you go for micromax products you will end up with the regrets.