Sun Microsystems 1.2 Telephone Accessories User Manual


 
72 Java ME TCK Framework Developer’s Guide July 2007
1. Add a selectIf entry to the test description file for a test class that users
might be required to filter out of a test run.
The following is an example of a selectIF entry added to a test description file.
In the example, isFeatureSupported is an environment variable. Most
environment variables can be used as Boolean expressions to filter out tests from
a test run. Usually, the value of an environment variable is target implementation
specific and must be provided by the user through the configuration interview.
Step 2 describes the procedure for writing an interview question that collects this
information from the user.
The following example is a complete test description file that includes a
selectIf entry.
<TR>
<TD SCOPE="row"> <B>selectIf</B> </TD>
<TD> isFeatureSupported </TD>
</TR>
<TITLE>Test Specifications and Descriptions</TITLE>
</HEAD>
<BODY>
<H1>Test Specifications and Descriptions for Test</H1>
<HR>
<a name="Test"></a>
<TABLE BORDER=1 SUMMARY="JavaTest Test Description" CLASS=
TestDescription>
<THEAD><TR><TH SCOPE="col">Item</TH><TH SCOPE=
"col">Value</TH></TR></THEAD>
<TR>
<TD SCOPE="row"> <B>title</B> </TD>
<TD> Checking constructors </TD>
</TR>
<TR>
<TD SCOPE="row"> <B>source</B> </TD>
<TD> <A HREF="Test.java">Test.java</A> </TD>
</TR>
<TR>
<TD SCOPE="row"> <B>executeClass</B> </TD>
<TD> sample.pkg.Test </TD>
</TR>
<TR>
<TD SCOPE="row"> <B>keywords</B> </TD>
<TD>runtime positive </TD>
</TR>