Click here to get back home

How to start Emulator (programmatically) to automatically connect to desktop?

 HomeNewsGroups | Search | About
 microsoft.public.smartphone    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to start Emulator (programmatically) to automatically connect to desktop? Zhamak 11-02-2005
Posted by Zhamak on November 2, 2005, 9:36 pm
Please log in for more thread options
Hi,

I'm using Microsoft Visual Studio 2005, developing smartphone user
apps.
We have a desktop-based automated build/test environment
where we launch various unit tests automatically
from the desktop commandline.

In order to extend this automated test environment
for mobile applications, we have decided to
use RAPI and the Device Emulator to write desktop programs that can:

- startup Emulator,
- copy test apps and files to the emulator using RAPI,
- startup our test applications on emulator using RAPI,
- retrieve and verify the result of the mobile apps execution using
RAPI

to achieve above we seem to have one major problem, we can't find a way
to automatically/programmatically startup emulator and get it connected

to the desktop.

We are currently using ActiveSync 4.0 (wcescomm.exe) over DMA to
connect
to an emulator that is started by Device Emulator Manager
(dvcemumanager.exe)
and placed in the cradle state.
This involves a manual step of putting the device
in the connect and cradle state using the device emulator manager.

I have tried restarting the device emulator from a saved state
independently from the device emulator manager i.e.
DeviceEmulator.exe /s <some long pathname under Documents and
Settings>.dess
but this doesn't connect the emulator to ActiveSync automatically.

So my questions are:
--------------------
1. Is RAPI the right technology to achieve above, starting up/managing
user apps in an emulator for automated test? If not, what other options
we have?

2. Does RAPI only work on an already connected emulator/device over
"ActiveSync"? If not, what other connectivity options we have except
Activesync
for using RAPI?

3. Is there any way, using config files, command line options or any
programming API, that allows us programmatically from command line,
startup
emulator and connect it to the desktop, so we can startup our RAPI
applications to talk to such emulator?

Thanks for your help.
-- zhamak



Similar ThreadsPosted
Some programs don't automatically connect to Work connection June 4, 2008, 3:35 pm
Connect automatically and check for messages - Once a day - What time does this happen? June 9, 2006, 7:33 am
Automatically activate application on receiving SMS December 21, 2006, 1:12 am
Stop WM5 automatically retunring to home screen October 24, 2006, 12:09 pm
Downloaded emails automatically deleted on subsequent send/receive December 8, 2006, 12:46 am
Emulator vs Hardware February 16, 2007, 8:40 am
E-mail signature programmatically March 27, 2008, 12:48 pm
how to adjust volume level programmatically? August 10, 2006, 10:49 pm
How to programmatically set the phone ringing mode? April 24, 2007, 12:07 pm
Email Signature programmatically: part 2 April 3, 2008, 9:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap