Skip to main content

MIDP TCK - getNextApp.jad - where to find?

3 replies [Last post]
arane
Offline
Joined: 2008-01-16

I am using MIDP TCK version 2.0b to test MIDP implementation on a phone.
The phone needs to initiate the test MIDlet download so that the TCK can
install the test MIDlets on the device. Do I need to preinstall the MIDletAgent and
the MIDPHttpClient on the phone for this to work?

Is there a JAD file that I can point the phone to so that it can download
the midp_agent.jar, client.jar and the midp_httpclient.jar?

I saw references to http://localhost:8080/test/getNextApp.jad - but I do not see a test directory or getNextApp.jad file in the C:\MIDP-TCK_20b directory.

Thanks,
arane

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
vsizikov
Offline
Joined: 2004-11-16

Just a small addition.

If your workdir is, say, C:\tck-workdir, then the JAD files and JAR files for the test bundles are created in C:\tck-workdir\jarSource, and you could see them when the TCK runs.

vsizikov
Offline
Joined: 2004-11-16

Hi aran,

> Do I need to preinstall the MIDletAgent and
> the MIDPHttpClient on the phone for this to work?

No need. Once the test bundle is downloaded to the phone,
it should have all the needed classes inside
(provided that you didn't enable preinstal agent/client
options in the TCK interview).

> Is there a JAD file that I can point the phone to so
> that it can download
> the midp_agent.jar, client.jar and the
> midp_httpclient.jar?

The JAD file is auto-generated depending on the configuration,
for every test bundle. So, it's not available when the TCK is
not running. Once you start the test suite, the JAD files
will be created and put into workdir (and then quickly removed,
once the bundle is finished), and then the next JAD for next bundle,
and so on.

> I saw references to
> http://localhost:8080/test/getNextApp.jad - but I do
> not see a test directory or getNextApp.jad file in
> the C:\MIDP-TCK_20b directory.

Yes, since the files are created only during the test run,
you won't see them. But when the TCK runs, you could
use the URL above (maybe localhost might be needed to
be changed to proper host name), to download
the JAD file either to the device, or via you web browser,
if you just need to study the content.

Thanks,
--Vladimir

arane
Offline
Joined: 2008-01-16

Thanks Vladimir, that helped. I was able to get it to work.