Skip to main content

Not supported test Status ?

4 replies [Last post]
palineo
Offline
Joined: 2009-02-26

Hello,

I want to test fonctionnalities provided by a JSR but it happends that JSR is not supported. Is there a way to have a specific status like 'not supported' (not success / not error but only not supported)).

I read ME framework dev guid but it does not help me as I wish.

Do you have any idea to do this ?

Brice

Message was edited by: palineo

Reply viewing options

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

Hi Brice,

one of the solution can be using tag "selectIf" in the test's description. This
tag accept any expression as a value and environment's variables can be used in
the expression. If the expression is true during test's run then the test will
be selected for execution.

So in this particular case you can provide interview question with check boxes
whose JSRs are supported by targeted device and set environment variables
accordingly. The test description will contain the tag like this:
* @selectIf JSRxxx.supported == "true" & JSRyyy.supported == "true"

Thanks,
Alexander

meframework@mobileandembedded.org wrote:
> Hello,
>
> I want to test fonctionnalities provided by a JSR but if this JSR is not supported, I do not want to launch test (or have a specific status like not supported (not success / not error ...only not supported)).
>
> I read ME framework dev guid but it does not help me as I wish.
>
> Do you have any idea to do this ?
>
> Brice
> [Message sent by forum member 'palineo' (palineo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=340173
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: meframework-unsubscribe@cqme.dev.java.net
> For additional commands, e-mail: meframework-help@cqme.dev.java.net
>

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

palineo
Offline
Joined: 2009-02-26

Hi Alexander,

Thank you for your response, I hoped there was another solution I could use on runtime (I saw the one with Interview redefined in develoment guide but I prefered avoid it).

For example if I run a test on JSR 234 (Advanced Multimedia Supplements API) with Tuner. The first step of the test is to check system environment in order to know if device supports JSR 234 AND JSR234 Tuner.

If my test is run on device 'LG renoir', datasheet says it supports JSR234 (Tuner), but in fact when I access environment variable (supports.mediacapabilities)...I do not have what it should.

So I have multiple solutions :
- datasheet says it is good => ok let's go ! But if it failed what should I conclude ? Datasheet Error ? Environment Error ?

I could also try to continue test in order to say 'in fact it was datasheet error' or 'device supports JSR 234 Tuner as it is sayed but environment variable lie'.

I like this solution (your solution ?), that was not the first I thought, but I think this is a good one!

- Other solution => Test environment variable (supports.mediacapabilities) if it says Device does not support JSR 234 Tuner, I could be happy to have a specific status.

Brice.

Alexander Alexeev

Hi Brice,

> For example if I run a test on JSR 234 (Advanced Multimedia Supplements API) with Tuner. The first step of the test is to check system environment in order to know if device supports JSR 234 AND JSR234 Tuner.
>
> If my test is run on device 'LG renoir', datasheet says it supports JSR234 (Tuner), but in fact when I access environment variable (supports.mediacapabilities)...I do not have what it should.
>
return failed or passed status depends on your goals of testing. From TCK point
of view this is failed status absolutely because device doesn't follow it's
specification.
But if you are running tests on device to collect some statistic for example and
device supports tuner in reality, you can return passed status with verbose
message like: "Device doesn't set supports.mediacapabilities environment
variable".

> - Other solution => Test environment variable (supports.mediacapabilities) if it says Device does not support JSR 234 Tuner, I could be happy to have a specific status.
>
The status can be only three types: passed, failed or error (the last means
something wrong with test infrastructure). But you can always provide verbose
messages in status report - use log, ref streams and custom string in the
Status.passed() method.

Sorry if I do not understand your question correctly, feel free to ask again.

Thanks,
Alexander

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

palineo
Offline
Joined: 2009-02-26

Thank's ;-)

You answer my question.