Forum Discussion
- malj67Occasional ContributorI assume you mean from the host? Not sure about the Virtual PC case but VMware has a COM API (VIX API) and the vmrun executable you can use to start up different VMs and to run programs on the guests. I am sure Virtual PC has something similar.
- Hi Ronald,
If you want to test an application installed on a virtual machine with TestExecute, you simply need to install TestExecute on that machine. If you're interested in some licensing specifics for this scenario, I recommend that you take a look at the Using TestExecute on Virtual Machines help topic. - ronrheContributorOk installed it.
But how do i start a test on the virtual machine. I want to start the test on the machine where i installed testcomplete.
I could not find the answere in the doc's yet.
regards
ronald - malj67Occasional ContributorSearch for something like "testcomplete command-line" in the help files and you will find the answer. You do it the same way with TestExecute.
- ronrheContributorThis means scripting?
There is no way to start a test from the host on a virtual machine by the use of a friendly menu?
regards
ronald - malj67Occasional ContributorIf you want some kind of GUI on the Virtual PC host to start your tests I think you will have to create that yourself.
- Hi Ronald,
If you want to launch a test on machine A from machine B, you have two options:
1. Use Network Suite - this will allow you to control a number of remote tests. Please see the Distributed Testing - Overview help topic for more information.
2. Use scripting to invoke TestExecute with the needed parameters (I can give you some detailed suggestions if you're interested in this approach). - ronrheContributorhi Allen.
Thanx! I would appreciate an example very much.
I have an application installed on a virtual machine. I also copied the projectsuite i created with testcomplete.
I would like to start the test on the virtual pc on my host.
It would be nice if you could help me in Delphi script.
regards
Ronald - Hi Ronald,
You can use the following approach:
1. Install TestExecute on the virtual machine.
2. Instal PsExec from PsTools on the host machine from which the test is going to be started. The installation can be obtained here:
http://technet.microsoft.com/en-us/sysinternals/bb897553
3. On the host machine, create a script which will launch PsExec in order to invoke TestExecute on the remote machine with the needed command line parameters. Note that the virtual machine must be turned on at the moment you start PsExec (which, in its turn, will start TestExecute on the VM). You can use sample script provided in the following How To entry to make TestComplete/TestExecute on the host PC execute the custom command line:
Get an application's exit code
As an alternative, you can simply create a .cmd (or .bat) file, specify the command line in that file and launch that file instead of writing a script for that. - ronrheContributorHi Allen,
I want to perform a test on a virual machine. 1 test (job) with 4 tasks.
See jobs.png. At the strat i get 3 errormessages :
Type Message MessageEx Priority Link
-1526396041 The host address specified in the ReportMaker task coincides with the host address specified in the Simapro task. Normal
Type Message MessageEx Priority Link
-1526396041 The host address specified in the Simapro task coincides with the host address specified in the Excel task. Normal
Type Message MessageEx Priority Link
-1526396041 The host address specified in the Simapro task coincides with the host address specified in the Word task. Normal
All test should run after eachother on the same virual machine.
What am i doing wrong?
regards
Ronald