search cancel

SV: CVS Monitor not executing external command

book

Article ID: 188766

calendar_today

Updated On:

Products

CA Application Test

Issue/Introduction

I created a test which would hit live service and based on assertion it would execute the external command (batch file to execute automation script). The external command work when i execute the test locally. However, when I deployed the test as monitor, the assertions are working fine but the external command is not triggered. Hence I specified machine name in the command line but its throwing error


Cause

You can run Simulator as Service, but you wouldn't be able to interact with desktop. If you wish to have your test case launch something that needs desktop interaction, then running Simulator from command prompt is the only way.

Environment

Release : 10.6

Component : CA Service Virtualization

Resolution

Please follow the steps below to facilitate the test case execution to launch browser;

1. Ensure that the option 'Spawn Process' is selected for the 'Execute External Command' step
2. Stop Simulator Service
3. Open command prompt as administrator
4. Go to LISA_HOME/bin folder and run the command 'Simulator.exe'

NOTE: If you have defined any runtime options using SimulatorService.vmoptions file, then replicate the same options in the file Simulator.vmoptions

With these changes, you should be able to achieve the desired result.