问题
I'm trying to find a way to launch WP7 applications in the emulator as part of an automated test system. I've tried running XapDeploy.exe from the commandline with a xap specified, no luck there (was worth a shot, right?).
I can just terminate the emulator process after a certain amount of time... if only I could launch it. Anybody know if there's a way?
回答1:
Justin Angel has written a really detailed post on automating interaction with the emultor for testing. It includes details for remotely writing to isolated storage whihc may be useful if you need data on the device/emulator as part of your testing.
http://justinangel.net/WindowsPhone7EmulatorAutomation
回答2:
It seems you can launch the emulator using XDE.exe
来源:https://stackoverflow.com/questions/3806477/launch-winphone7-app-in-emulator-programmatically-for-automated-testing