Skip to main content

running tests on device

2 replies [Last post]
vdjurovic
Offline
Joined: 2008-01-21

Hi, I'm quite new to Java ME, so I hope this wouldn't be considered a dumb question. I searched all over, but can't find answer to this relatively simple question.

I created a sample test suite, which I want to run on device in CLDC mode. But I can't find any instructions on how to do it.
Can you please provide a link to some instructions, or post a step by step instructions how to do it?
Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vdjurovic
Offline
Joined: 2008-01-21

Thanks, Vladimir. With your help and some additional searches, I managed to understand this issue.

vsizikov
Offline
Joined: 2004-11-16

> Hi, I'm quite new to Java ME, so I hope this wouldn't
> be considered a dumb question.

Not at all! This is a good question indeed.

> I created a sample test suite, which I want to run on
> device in CLDC mode. But I can't find any
> instructions on how to do it.

CLDC mode is mostly targeted to VM manufacturers, not
the end users that use real phones. In most cases that
means that tests in CLDC mode are executed on the
VM emulator (like KVM), or on development phones
that allow to invoke the bare VM.

In most cases, you don't really need to run tests in CLDC
mode on real device. Use MIDP mode. And most phones
do provide MIDP 2.0 environment. (Btw, even CLDC TCK,
the main conformance test suite, provides both modes,
CLDC *and* MIDP, to run the tests).

You could start the test run in MIDP mode, and then
point your device to http://host:PORT/test/getNextApp.jad
link. The device will download the test bundle (a MIDlet
packaged with all required test classes/resources), run it,
and report the results back.

The problem with the stock phones on the marked is that
they usually don't provide "autotest" functionality, when
they connect to the same URL in a loop, executing the tests.
(but some phones actually do)

That means that you'll have to manually download the
test bundles each time.

I'd suggest to try out Wireless Toolkit first, and try with it,
get familiar with the Harness/Framework and its functionality,
and only then try on real devices.

Please, don't hesitate to answer questions and share
your experience. We do listen. :)

Thanks,
--Vladimir