login vsi company logo login vsi company logo 250x40

console, silent mode: cant run in background

  • bwithaar
  • bwithaar's Avatar Topic Author
23 Jan 2012 13:29 #63

•VSI Version:3.5
•Test system: Microsoft RDS
•Operating system version target: Server2008R2 x64
•Operating system version launcher(s):Server2003 x86
•Office version target: Office 2010

...busy automating login vsi tests....

Questions concerning the Console, 'silent' mode:

1) I am only aware of one Console parameter: 'silent', this works, however
would it be possible to also specify the test configuration/profile?
This way it would be possible to automate a series of tests that have their own configuration,
like workload, username prefix, sessions and timeframe etc..

2) 'Silent mode' unfortunately still brings up a form.
This way it's not possible to run it in the background.
For example I tried using psexec:

a) First open a remote shell to the target system where to run the console
psexec \\computername cmd
b) Then issue the command to run the console to start a console at the remote computer:

C:\WINDOWS\system32>"g:\vsishare\software\launcher\Console\VSI Management Console.exe" silent "test3"

after a while following message shows up:

Unhandled Exception: System.InvalidOperationException: Showing a modal dialog box or form when the application is not running in UserInteractive mode is not a valid operation. Specify the ServiceNotification or DefaultDesktopOnly style to display a notification from a service application.
at System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
at System.Windows.Forms.Form.ShowDialog()
at VSI_Admin_Console.frmSilentRun.preScreen()
at VSI_Admin_Console.frmSilentRun..ctor(String name)
at VSI_Admin_Console.Program.Main(String[] args)

So this does not work.

Additionally, when a test already running, and issuing a new console silent, a popup shows up saying
'Could not start the test: an actve test is running".
In silent mode I would need to have these errors in a log file and output as errorlevel.

Any alternative way to start a test? Perhaps something like
- copying a new test folder into vsishare\_VSI_Logfiles
- copying a new test configuration into vsishare\_VSI_configuration\_CurrentTest

3) Cosmetic: The form appears to have 4 fields. Their default text shows "label1"


Please Log in to join the conversation.

24 Jan 2012 12:02 #64

Hi Bart,

1 + 2) We deliberately chose to make the MMC show forms even when running in silent mode. This is because from a launcher perspective its never possible to initiate remoting sessions (like real users do) without having a user logged on to the console. If i remember correctly you have the MMC running on launcher 1 so there should always be at least a console (autologon) or rdp session open.

Next to that i totally agree that we should give you a return code that you can work with in your automation workflow, i will work on this and keep you posted.

3) The cosmetics have already been brushed up and will be updated in the next release.

Please Log in to join the conversation.

  • bwithaar
  • bwithaar's Avatar Topic Author
24 Jan 2012 12:57 #65

Yes that's a workaround: running the console-silent-form on one of the Launchers, as these are configured to autoadmin logon. Also I can figureout a way to have the form interact with the desktop.

In the meantime I got a workaround in place, wich also enables me to use test profiles:

In \\server\vsishare\_VSI_Logfiles I have 2 test folders that ran in the past where I removed *.txt and *.log files, and the Reset and _ActiveSessionsFinished folders.

Before I run a new test, I copy the desired folder in to a new testname, and then copy the name of the new folder as !!!_<name>.isActiveTest to \\server\vsishare

Then I reboot first the device being tested, then the Launchers, and it all starts running.

At least that starts the desired test.

Please Log in to join the conversation.

Start Delivering the Best End User Experience Today

Request a Demo

Login VSI, Inc.

3945 Freedom Circle
Suite 670
Santa Clara, CA 95054

Phone: +1 408 899 7418

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200