Skip to main content

cqME testing for CDC FP

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

Hi,

i have ported CDC with FP for my linux_arm based target device and now looking for cqME testing. Can anyone suggest me a roadmap to run cqME tests for the phoneME Advanced. To start with, i would need some references/resources where i can found detailed information about cqME testing and test suites.

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

Hi Asif,

For some reason, my email with instructions didn't get through (at least I don't see it in this thread), so I've posted the full info as an "announcement", please follow the instructions 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

asif_kalim
Offline
Joined: 2007-11-30

Hi Viladimir,

Thanks for the information and sorry for the delay, I read the announcement you posted on this forum, i was looking for the reference implementations that you mentioned there are not available rather than its documentation is available there, can i use phoneME advance prebuilt binary bundles (https://phoneme.dev.java.net/downloads_page.html) for complete CDC stack? if so plz let me know.

thanks,
asif

asif_kalim
Offline
Joined: 2007-11-30

Hi Vladimir,
I just downloaded RI from http://java.sun.com/javame/downloads/index.jsp, but still i have same error, below is the snippets of local.properties and error that i get when tried to build using ant. Please check.

============= local.properties ==================

# JTHarness:
FCS_JCTTOOLS = /opt/jtharness
JAVAHELP_JAR = /opt/jh2.0/javahelp/lib/jh.jar

# CLDC stack classes:
WIRELESS_TOOLKIT = /usr/local/sjwkt

# CDC Stack classes:
FP_HOME = /opt/fp-1.1.2
PBP_HOME = /opt/pbp-1_1/Optimized_nosym/
PP_HOME = /opt/pp-1_1/Optimized_nosym/

# javax.comm API (for serial connection)
COMM_JAR = /opt/comm/jar/comm.jar

========== end of local.properties ==============

Buildfile: build.xml

compile-ant-helpers:
[mkdir] Created dir: /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build
[mkdir] Created dir: /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses
[javac] Compiling 5 source files to /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses
[copy] Copying 1 file to /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses

load-and-set-properties:
[loadDefs] OS: linux

BUILD FAILED
/opt/svn/buildroot/build_arm/staging_dir/fw12/build/build.xml:72: java.net.UnknownHostException: asif-desktop: asif-desktop

Total time: 4 seconds
======================================================

Vladimir Sizikov

Hi Asif,

The build we use have some tricks to simplify build customizations, so
that users might have different configs for work/home environments, or
for California/Russia networks, which is very useful when the whole team
is distributed all over the world.

In your case, it seems that the general networking on your system is a
bit misconfigured. Typically, the java program should be able to figure
out the fully qualified host name and be able to connect to it, but
something is wrong in your setup.

But if you don't want to deal with network setup, you might adjust the
build.xml file to workaround that:

Just comment out/remove the line:

And load the build.properties directly:

That should do the trick.

Thanks,
--Vladimir

On 4/10/2008 1:35 PM, meframework@mobileandembedded.org wrote:
> Hi Vladimir,
> I just downloaded RI from http://java.sun.com/javame/downloads/index.jsp, but still i have same error, below is the snippets of local.properties and error that i get when tried to build using ant. Please check.
>
> ============= local.properties ==================
>
> # JTHarness:
> FCS_JCTTOOLS = /opt/jtharness
> JAVAHELP_JAR = /opt/jh2.0/javahelp/lib/jh.jar
>
> # CLDC stack classes:
> WIRELESS_TOOLKIT = /usr/local/sjwkt
>
> # CDC Stack classes:
> FP_HOME = /opt/fp-1.1.2
> PBP_HOME = /opt/pbp-1_1/Optimized_nosym/
> PP_HOME = /opt/pp-1_1/Optimized_nosym/
>
> # javax.comm API (for serial connection)
> COMM_JAR = /opt/comm/jar/comm.jar
>
> ========== end of local.properties ==============
>
>
> Buildfile: build.xml
>
> compile-ant-helpers:
> [mkdir] Created dir: /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build
> [mkdir] Created dir: /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses
> [javac] Compiling 5 source files to /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses
> [copy] Copying 1 file to /opt/svn/buildroot/build_arm/staging_dir/fw12-build/build/antHelperClasses
>
> load-and-set-properties:
> [loadDefs] OS: linux
>
> BUILD FAILED
> /opt/svn/buildroot/build_arm/staging_dir/fw12/build/build.xml:72: java.net.UnknownHostException: asif-desktop: asif-desktop
>
> Total time: 4 seconds
> ======================================================
> [Message sent by forum member 'asif_kalim' (asif_kalim)]
>
> http://forums.java.net/jive/thread.jspa?messageID=268524
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
> For additional commands, e-mail: meframework-help@cqme.dev.java.net
>
[vladimir_sizikov.vcf]
---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net

vsizikov
Offline
Joined: 2004-11-16

Hi Asif,

> Thanks for the response, actually im looking for the
> test suites for CDC/FP, if its not open source i
> would need some alternative, as per my understanding,

Yes.

> i would need ME Framework to write my own tests.

That's one of the possible approaches. Sure, you could use your own,
custom testing framework, or try to use junit 3.8.x series, but
as you probably could have guessed, we'd suggest to try out
ME Framework.

But this is an easy part. The hard part is to write tests, no matter
which framework is used.

> Actually i have ported CDC/FP for linux_arm based
> device on an evaluation board. Before working on the
> actual target device, i just need a high level
> testing that could verify the implementation of
> CDC/FP. I shall be very thankful if you can suggest
> me the path specific to the said scope and ME
> Framework.

I guess, the easiest way is to start with the Developer's Guide
(link to which I've posted earlier) and with some of our
sample test suites and see how everything works.

The samples are not part of official binary, so you'd need to
build them. Once you build environment is configured
(I'll post about that in separate entry),
you should be able to build the ME Framework and
the samples via simple ant commands:
'ant' and 'ant samples'

> Secondly what type of test should i need to conduct,
> do i need to test the complete set of apis for
> conformance? or can i limit my tests.

This is up to you, depends on your goals, whether your
project a hobby or a commercial project, etc.

Important note: My understanding is that if you wish
to have proper certification, there is no other way but
to pass the appropriate TCKs.

Sure, you could write your own tests to make
sure the compatibility is preserved, but that won't
make the implementation officially certified as
java compatible.

Maybe, you should check with PhoneME Advanced
folks, esp. if your code is heavily based on PhoneMe
Advanced. Maybe they have some way to handle
such situations.

Thanks,
--Vladimir

asif_kalim
Offline
Joined: 2007-11-30

Hi Viladimir,

Please check my last post on this thread, im still unable to setup a development environment to run sample test using ME Framework, as i m looking for to setup dev env in linux for linux_arm based RI tests. I would be very thankful for your help.

thanks,
asif

vsizikov
Offline
Joined: 2004-11-16

I'm re-posting my response here, since the email didn't make it through for some reason...

Hi Asif,

> 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

vsizikov
Offline
Joined: 2004-11-16

Hi Asif,

Let me clarify your request first. Are you looking for a testing framework to write your own tests to verify your implementation or are you looking for the actual test suites for CDC/FP, like CDC TCK and FP TCK?

The ME Framework project, which is a part of cqME, is a testing framework, and you could use it to write/execute new tests, but it's not a test suite on its own.

At this moment, CDC/FP TCK is not an open source. The TCKs are commercial products and require commercial license.

If you need more info on the ME Framework, I'll be happy to provide it, once you confirm.

The starting point would be the Developer's Guide:
http://java.sun.com/javame/reference/apis.jsp#meframework

Thanks,
--Vladimir

asif_kalim
Offline
Joined: 2007-11-30

Hi Vladimir,

Thanks for the response, actually im looking for the test suites for CDC/FP, if its not open source i would need some alternative, as per my understanding, i would need ME Framework to write my own tests. Actually i have ported CDC/FP for linux_arm based device on an evaluation board. Before working on the actual target device, i just need a high level testing that could verify the implementation of CDC/FP. I shall be very thankful if you can suggest me the path specific to the said scope and ME Framework.

Secondly what type of test should i need to conduct, do i need to test the complete set of apis for conformance? or can i limit my tests.

thanks again,
Asif

asif_kalim
Offline
Joined: 2007-11-30

thanks vladimir,

i tried to build ME Framework on my linux machine, but it failed giving the error [b] /framework/build/build.xml:72: java.net.UnknownHostException:[/b]

actually i have my own reference implementation of CDC-FP for a linux_arm based board. As i don't have CDC-PP & PBP, i get the reference implementation of phoneME downloads site and configured it with the build.properties, below is the snippets..
=========================================================
FCS_JCTTOOLS=/home/xyz/cqME/jtHarness/extracted/lib
WIRELESS_TOOLKIT=/usr/local/sjwkt/bin
FP_HOME=/home/xyz/pMEA/mr2/cdc/build/linux-arm-generic
PBP_HOME=/home/xyz/pMEA/mr2/cdc/build/linux-arm-generic
PP_HOME=/home/xyz/pMEA/prebuilt/phoneme_advanced_mr2
JAVAHELP_JAR=/home/xyz/cqME/javaHelp/jh2.0/javahelp/lib
COMM_JAR=/home/xyz/java comm/comm3.0_u1_linux.zip_FILES/commapi
=========================================================
BUILD FAILED
/home/xyz/cqME/source/framework/build/build.xml:72: java.net.UnknownHostException: abc: abc
=========================================================

plz suggest me a workaround.

thanks,
asif

Vladimir Sizikov

Hi Asif,

> im trying to setup development environment on linux(ubuntu) and trying
> to build me framework on linux and get me framework binary bundle from
> [http://download.java.net/mobileembedded/cqme/download.html], following
> the build instructions
> [https://cqme.dev.java.net/fw_buildinfo.html] i need to point to the
> framework_directory/build to run ant and start build but didn't found
> any build directory in the source bundle, please suggest me how to
> setup build environment on linux.

Basically, the official bundles are "binary" bundles, they intended
to be redestributable, and not buildable. They contain the proper JAR
files in them, already pre-built.

If you wish to build the ME Framework, you most probably need to check
out the source from our subversion repository. Most probably,
youl'll need to get the sources for ME Framework 1.2 release:

https://cqme.dev.java.net/svn/cqme/tags/meframework/me-framework-oss-1_2...

Then, you need to adjust your build properties inside "build" directory.

Yes, you'll need CLDC/MIDP/CDC dependencies, since the build requires
all of the dependencies in order to create the full version of ME
Framework binary.

Take a look into build/build.properties file to see which properties
you need to install/configure.

For example, here's my local.properties file (maybe it's not 100%
accurate for ME Framework 1.2, because we work towards 1.2.1 version
now, so my file is for the current trunk version of ME Framework),
but you get the general idea.

FCS_JCTTOOLS = D:/re/OSS/jtharness-3_2_2
WIRELESS_TOOLKIT = D:\\re\\WTK25
FP_HOME = D:\\re\\OSS\\fp_10_spec
PBP_HOME = D:\\re\\OSS\\pbp-1_1-fr-ri\\Optimized_nosym
PP_HOME = D:\\re\\OSS\\j2me-pp1.0
COMM_JAR = D:\\re\\javacomm\\comm.jar
JAVAHELP_JAR=D:/re/OSS/jh2.0/javahelp/lib/jh.jar
JTHARNESS_JAR=D:/re/OSS/jtharness-3_2_2/lib/javatest.jar

Thanks,
--Vladimir
[vladimir_sizikov.vcf]
---------------------------------------------------------------------
To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
For additional commands, e-mail: meframework-help@cqme.dev.java.net