views:

1362

answers:

5

Hello,

Looking for a way to drive a Compact Framework app running on a CE device. All we basically need is to be able to write little scripts that press buttons and click on things. Anyone know of such a tool or it best to just hack one up ourselves?

+2  A: 

The Windows Mobile 6 SDK (assuming you're CE6 based) comes with the Windows Mobile TestKit - which has tools for writing UI automation.

If you're CE5 based, platform builder (the tools used to build devices) comes with something called the DATK (device automation toolkit) - this was the predecessor to the WMTK mentioned above.

Alan
+3  A: 

Unfortunately there are no nice, unified tools (that I've found anyway) for testing CF apps. No one provides mocking, since the CF CLR is missing things like Emit, making the taks difficult for a small market.

Microsoft provides unit test capabilities in Studio and Team Foundation Server for smart device apps, but they don't do UI, debugging the tests is amazingly painful and just running tests is slow, so they tend to be good for regression tests and not much else.

Microsoft provides some tools and a tool framework for desktop-driven testing in the CE Test Kit (CETK), including the DATK that Alan alludes to. They also provide things like the Hopper Test Tool, which they use as part of their logo testing.

If none of these seem to work for you, a fairly rapid way to set up testing that's still driven from the PC (which I think all testing should, else it tends to be painful to run, tough to automate, and a bear to log pass/failure data), the you can use the CoreCon APIs or the Remote Tools Framework to build your communication pipe and test framework.

I sincerely hope that the VSD (Studio for Devices) team is dogfooding TFS and that we get a much richer toolset with the next release of Studio.

ctacke
A: 

You can automate CE and Windows mobile at GUI level using a tool such as Eggplant in conjunction with a remote control tool such as SOTI pocket controller or MS Remote Display Controller. Personally, I'd prefer an object based tool to an image matching tool, for reasons of robustness and maintainability.

You can also automate directly with SOTI but I found it cumbersome, as explained here

Shane MacLaughlin
A: 

Slightly off topic, but we (www.orbiz.biz, if it's still alive) did a kind of a port of NUnit, so we had a runner on the device, and executed the CF code on the device and ran tests.

Works quite well - I dont think it was a big change from the original one, so the newer NUnit's might work with the newer CF.

Sorry, I dont have the code, and the company kinda doesn't exist anymore, otherwise, I'd be happy to share what we had :(

Nic Wise
+2  A: 

Look at TestComplete - they said that new version 7 would be able to test Windows Mobile applications