Skip to main content

Please review MIDlet's instrumentation

1 reply [Last post]
Anonymous

Hi Vladimir,

please review MIDlet's instrumentation allowing to run tests from any MIDlet.

http://fisheye4.cenqua.com/changelog/cqme/?cs=1582

To build the framework you will need to setup ASM_JAR property in
local.properties file. Distributive can be found here: http://asm.objectweb.org/

In order to play with this feature you will need to slightly modify
SimplestTestSuite. Also some MIDlet is needed (I've attached some one).
Change following entries in .jtt file:
classpath set to path to j2me_instrumentation.jar
testsuite set to com.sun.tck.instrumentation.MIDPAppTestSuite
Add following entry:
tested_app_jar=path to tested MIDlet.

In the interview you should provide custom ContentHandler:
Jar file: j2me_instrumentation.jar
Class: com.sun.tck.instrumentation.CustomContentHandler

Thanks,
Alexander
Manifest-Version: 1.0
MIDlet-Name: Tested app
MIDlet-Version: 1.0.0
MIDlet-Vendor: Sun Microsystems, Inc.
MIDlet-1: TestedMIDlet,, TestedAppMIDlet
MicroEdition-Profile: MIDP-2.0
MicroEdition-Configuration: CLDC-1.0
[tested_app.jar]
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class TestedAppMIDlet extends MIDlet{
protected void startApp() throws MIDletStateChangeException {
}

protected void pauseApp() {
}

protected void destroyApp(boolean b) throws MIDletStateChangeException {
}

public int getData() {
return -1;
}
}

---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Vladimir Sizikov

Hi Alexander,

This is a good first step for "MIDlet instrumentation" feature.
Let's check it in and refine in future releases, if needed.

Thanks,
--Vladimir

On 4/17/2008 2:25 PM, Alexander Alexeev wrote:
> Hi Vladimir,
>
> please review MIDlet's instrumentation allowing to run tests from any
> MIDlet.
>
> http://fisheye4.cenqua.com/changelog/cqme/?cs=1582
>
> To build the framework you will need to setup ASM_JAR property in
> local.properties file. Distributive can be found here:
> http://asm.objectweb.org/
>
> In order to play with this feature you will need to slightly modify
> SimplestTestSuite. Also some MIDlet is needed (I've attached some one).
> Change following entries in .jtt file:
> classpath set to path to j2me_instrumentation.jar
> testsuite set to com.sun.tck.instrumentation.MIDPAppTestSuite
> Add following entry:
> tested_app_jar=path to tested MIDlet.
>
> In the interview you should provide custom ContentHandler:
> Jar file: j2me_instrumentation.jar
> Class: com.sun.tck.instrumentation.CustomContentHandler
>
> Thanks,
> Alexander
>
[vladimir_sizikov.vcf]
---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net