Skip to main content

Testing of CDC FP

7 replies [Last post]
asif_kalim
Offline
Joined: 2007-11-30
Points: 0

Hi,

I need to test CDC/FP linux_arm based RI by using cqME framework. I checked with the cqME project and its sub projects, but still confused about the starting point. Strictly focusing on the testing scope (CDC/FP), i found some conflicts in setting up development environment to run ME Framework as it asks for a complete Java ME stack with reference implementations of CDC/PP and PBP. And also it involves Windows, but i want use linux for testing purposes. I shall be very thankful to you guys if anyone can suggest me the starting point within the said scope.

thanks,
asif

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
Points: 0

Hi Asif, Hinkmond,

On 4/1/2008 6:50 PM, Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
>> i would need to develop some test using ME Framework. The problem where i stuck is that ME Framework build environment setup requires complete RI of CDC (with all profiles), and i have only CDC/FP RI.

ME Framework is basically cross-platform testing framework and should be buildable on Windows, Linux, Solaris, with only publicly-available dependencies.

Once the testing framework is built it can be actually used on all appropriate platforms (the Java SE side requires JDK 5).

>> Another issue is that i didn't found any kind of documentation to setup ME Framework development environment with linux

For ME Framework itself, there are no platform-specific differences, once the class dependencies are satisfied. So it's possible to develop on Windows or Linux, write tests there, then compile them to (again platform-independent) bytecode, and then execute the tests on particular Java ME platform.

In case of CDC. Only small test agent is being running on CDC side, fetching the tests from the Java SE side (or loading it locally) and reporting the results back to JavaTest harness on Java SE side.

>> and to test linux_arm based RI. Also it requires Wireless toolkit for CDC and that is only available for windows.

Most of the dependencies require by ME Framework are not for binaries, but for class files. Like, we need somehow to see CDC APIs, FP APIs, MIDP APIs etc. So, we don't really use the platform-dependent executable of WTK, we use its classes.

I'm going to provide step-by-step instructions on how to get all the dependencies and to setup the build for ME Framework on Linux for you, most probably tomorrow.

>> Can i use Windows to develop/execute test for my linux_arm based RI?

You could develop tests on different platforms, Windows or Linux or Solaris. But eventually you'll need to run them on actual implementation, or at least on some kind of emulator.

Thanks,
--Vladimir

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

thank you very much! both of you guys,

FYI: i tried to build ME Framework and details i have mentioned on [b]http://forums.java.net/jive/thread.jspa?messageID=267150&tstart=0#267150[/b], please check that.
i will be waiting for the build instructions.

thanks again,
Asif

vsizikov
Offline
Joined: 2004-11-16
Points: 0

For the sake of completeness, the full info on how to build ME Framework 1.2 on Linux is posted here:

http://forums.java.net/jive/ann.jspa?annID=79

I've verifired that by following these instructions I can build ME Framework 1.2 from scratch on Ubuntu Linux 7.10. (You'll also need JDK 5 and Apache Ant).

Thanks,
--Vladimir

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi,
>
> I need to test CDC/FP linux_arm based RI by using cqME framework. I checked with the cqME project and its sub projects, but still confused about the starting point. Strictly focusing on the testing scope (CDC/FP), i found some conflicts in setting up development environment to run ME Framework as it asks for a complete Java ME stack with reference implementations of CDC/PP and PBP. And also it involves Windows, but i want use linux for testing purposes. I shall be very thankful to you guys if anyone can suggest me the starting point within the said scope.
>

Hi Asif,

I saw your mail thread on the cqME forum:

http://forums.java.net/jive/message.jspa?messageID=266216#266216

I think you do not actually want to run cqME (which is a framework, not
set of specific implemented tests for CDC/FP) and instead you want to
run the testclasses.zip Test app to suit your needs of high level CVM
functional testing (not compatibility testing).

You can do this on Windows or Linux by running the command:

bin/cvm -cp testclasses.zip Test

While the tests in the Test app (above) are only VM tests, it will
exercise your build enough as a sanity test to let you know if the core
functionality of CDC/FP is working or not.

Is that enough for you or were you looking for more? Unfortunately, if
you are looking for more on the CDC/FP library level, we do not have
CDC/FP functionality tests available via open source.

Hinkmond

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

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

Hi Hinkmond,

I have already run the sanity tests that you mentioned, but the purpose of executing the TCK is to execute high level compatibility testing of CDC/FP. I know that the compatibility tests are not open source, i would need to develop some test using ME Framework. The problem where i stuck is that ME Framework build environment setup requires complete RI of CDC (with all profiles), and i have only CDC/FP RI. Another issue is that i didn't found any kind of documentation to setup ME Framework development environment with linux and to test linux_arm based RI. Also it requires Wireless toolkit for CDC and that is only available for windows.

Can i use Windows to develop/execute test for my linux_arm based RI?

Thanks,
Asif

Hinkmond Wong

phonemeadvanced@mobileandembedded.org wrote:
> Hi Hinkmond,
>
> I have already run the sanity tests that you mentioned, but the purpose of executing the TCK is to execute high level compatibility testing of CDC/FP. I know that the compatibility tests are not open source, i would need to develop some test using ME Framework. The problem where i stuck is that ME Framework build environment setup requires complete RI of CDC (with all profiles), and i have only CDC/FP RI. Another issue is that i didn't found any kind of documentation to setup ME Framework development environment with linux and to test linux_arm based RI. Also it requires Wireless toolkit for CDC and that is only available for windows.
>

Hi Asif,

I'm not familiar enough with the ME Framework setup to help you with
running the ME Framework with CDC/FP on Linux/x86. Hopefully, someone
from the meframework@cqme.dev.java.net forum can help you with your
current mail thread there on this topic:

https://cqme.dev.java.net/servlets/ReadMsg?list=MEframework&msgNo=776

> Can i use Windows to develop/execute test for my linux_arm based RI?
>

You _might_ be able to use cygwin on Windows/x86 to build a Linux/ARM
CDC/FP RI build, but you would need a Linux/ARM for Windows/x86
cross-compiler that could do that. I'm not sure that exists.

The better way may be to use VMWare to install a full Linux installation
on your Windows System to use the Linux/ARM cross-compiler in the
Linux/x86 environment which I know should work for you to develop and
build the CDC/FP RI for Linux/ARM, although to execute I believe you
will still need a Linux/ARM device since I'm not aware of a Linux/ARM
emulator for Linux/x86 (but I can imagine one might exist).

Hinkmond

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

Vladimir Sizikov

Hi Asif, Hinkmond,

On 4/1/2008 6:50 PM, Hinkmond Wong wrote:
> phonemeadvanced@mobileandembedded.org wrote:
>> i would need to develop some test using ME Framework. The
>> problem where i stuck is that ME Framework build environment setup
>> requires complete RI of CDC (with all profiles), and i have only
>> CDC/FP RI.

ME Framework is basically cross-platform testing framework and should be
buildable on Windows, Linux, Solaris, with only publicly-available
dependencies.

Once the testing framework is built it can be actually used on all
appropriate platforms (the Java SE side requires JDK 5).

>> Another issue is that i didn't found any kind of
>> documentation to setup ME Framework development environment with linux

For ME Framework itself, there are no platform-specific differences,
once the class dependencies are satisfied. So it's possible to develop
on Windows or Linux, write tests there, then compile them to (again
platform-independent) bytecode, and then execute the tests on particular
Java ME platform.

In case of CDC. Only small test agent is being running on CDC side,
fetching the tests from the Java SE side (or loading it locally) and
reporting the results back to JavaTest harness on Java SE side.

>> and to test linux_arm based RI. Also it requires Wireless toolkit for
>> CDC and that is only available for windows.

Most of the dependencies require by ME Framework are not for binaries,
but for class files. Like, we need somehow to see CDC APIs, FP APIs,
MIDP APIs etc. So, we don't really use the platform-dependent executable
of WTK, we use its classes.

I'm going to provide step-by-step instructions on how to get all the
dependencies and to setup the build for ME Framework on Linux for you,
most probably tomorrow.

>> Can i use Windows to develop/execute test for my linux_arm based RI?

You could develop tests on different platforms, Windows or Linux or
Solaris. But eventually you'll need to run them on actual
implementation, or at least on some kind of emulator.

Thanks,
--Vladimir

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