Manuals
/
Sun Microsystems
/
Communications
/
Telephone Accessories
Sun Microsystems
1.2
manual
Java ME TCK Framework Developer’s Guide July
Models:
1.2
1
130
130
Download
130 pages
63.94 Kb
123
124
125
126
127
128
129
130
<
>
Symbols
Maintenance
Set up the More Info system
Platform Commands
CommService
To Build an Updated Test Suite
Page 130
Image 130
110
Java ME TCK Framework Developer’s Guide • July 2007
Page 129
Page 130
Image 130
Page 129
Contents
Java ME TCK Framework Developers Guide
Test suite developer’s guide for the Java ME TCK Framework
Contents
Test Suite Construction
Writing Tests
Remote Attribute
Test API
Framework Bundle 81 lib Directory
Test Description Fields and Keywords
Glossary Index
Viii Java ME TCK Framework Developer’s Guide July
Figures
Java ME TCK Framework Developer’s Guide July
Tables
Xii Java ME TCK Framework Developer’s Guide July
Code Examples
Resources Attribute in the Test Description
Preface
Before You Read This Book
Intended Audience
How This Book Is Organized
Platform Commands
Examples
Typographic Conventions
Related Documentation
Accessing Sun Documentation Online
Sun Welcomes Your Comments
Xx Java ME TCK Framework Developer’s Guide July
Introduction
Getting Started
Java ME TCK Framework Developer’s Guide July
Development Environment
Use of the Framework
Target Environment
Connectivity Requirements
Resource Limitations
Cldc Target Device
Framework Bundle
Framework Components
Framework Components on the Harness Side
Framework Components on the Device Side
1Configurations and Supported Test Types
Test Types
Automated Tests
1Framework Configuration for Standard Automated Tests
Distributed Tests
PC or Workstation
Interactive Tests
3Framework Configuration for Interactive Tests
OTA Tests
OTA
Writing a Simple Automated Test
Writing an Automated Test
To Create a Simple Automated Test
Save this file in the Simple Test Suite source as
Body
SimpleTestSuite/tests/pkg3/index.html
Building an Updated Simple Test Suite
To Build an Updated Test Suite
To Test an Updated Test Suite
Testing an Updated Simple Test Suite
Enter the ant command to invoke the ant build script
Writing a Simple Automated Test
Java ME TCK Framework Developer’s Guide July
Test Suite Construction
Test Suite Structure
Testsuite.jtt File
Code Example 3-1Simple Test Suite testsuite.jtt File
Lib Directory
Tests Directory
Test Class
Test Case
Test Description file
Classes Directory
Code Example 3-2Simple Test Class
Creating a Test Suite Configuration Interview
Doc Directory
TestHost=129.42.1.50 TestPort=8080
Write the configuration interview class
Define the environment variable required by the test
Following code creates the SampleInterview class
Specify the question type
Implement error checking for the question answer
Question qXXX = Question getNext Return qNextQuestion
SimpleTestSuite/src/sample/suite
Update the interview .properties resource file
Set up the More Info system
Create a default directory under the help directory
MapID target=name url=location/filename.html
Create a JAR file containing the configuration interview
Create the More Info topic files
Building a Test Suite
Testing Devices With Automated Tests
Writing Tests
Automated Test Execution
1Automated Test Execution
Testing Communications or Networking With Distributed Tests
Client Test Component
Required Distributed Test Keyword
Remote Test Component
Test Description for Distributed Tests
Remote Attribute
RemoteSource Attribute
Distributed Test Execution
2Distributed Test Execution
Testing User Interfaces With Interactive Tests
Test Description for Interactive Tests
Required Interactive Test Keywords
Interactive Test Execution
Code Example 4-5Required Interactive Test Keywords
3Interactive Test Execution
Example of an Interactive Test
Server Component of an OTA Test
Testing Application Provisioning With OTA Tests
Client Test Component of an OTA Test
Required OTA Test Keyword
Test Description for OTA Tests
Code Example 4-6Required OTA Test Keyword
Code Example 4-9remote Attribute Entry for Trusted MIDlet
OTA Test Description Examples
Code Example 4-10OTA Test Description File
Code Example 4-11Trusted OTA Test Description File
OTA Test Execution
4OTA Test Execution
Example of OTA Test
Code Example 4-12Server Test Component Example
Types of Security Tests
Untrusted Tests
Double-duty Tests
Using Keywords to Mark Security Tests
Trusted Tests
Marking Untrusted Tests
Marking Trusted Tests
Code Example 4-14Test Description for an untrusted Test
Using an Attribute to Mark Double-Duty Tests
Code Example 4-17Test Description for a Double Duty Test
Granting or Denying Security Permissions
Granting Security Permissions
Body
Denying Security Permissions
Code Example 4-20deny Attribute in the Test Description
Adding Resource Files in Tests
Code Example 4-22Test That Requires an Image Resource
Code Example 4-23resources Attribute in the Test Description
Code Example 4-24Test Description That Includes Resources
Enabling Test Selection
Factors and Mechanisms for Test Selection
To Enable Test Selection with the selectIF Expression
SelectIf Test Selection
TD SCOPE=row BselectIf/B /TD TD isFeatureSupported /TD
Body Html
Java ME TCK Framework Developer’s Guide July
Writing Tests
Create a More Info topic file for the question
Update the map file
Create the JAR file
Test API
Test must also define main as follows
Code Example A-2Definition of main
J2MEDistributedTest
OTATest
Framework Bundle
Lib Directory
DTF
Cldc and Midp Execution
Core
Cldc and Midp Agents and Clients
Plug-ins
CommService
CommClients
CommServers
Test Export Support Libraries
CDC Agents
Messaging
Src Directory
Framework Server Classes and Interfaces
Preverification Script
Agent Classes
Digital Signer
Java ME Technology Version of Harness Classes
Communication Channel
Doc Directory
Java ME TCK Framework Developer’s Guide July
Test Description Fields Keywords
Test Description Fields
Table C-1Framework Test Description Fields
Appendix C Test Description Fields and Keywords
Keywords
Table C-2Framework Keywords
Identifies tests used with runtime products
Java ME TCK Framework Developer’s Guide July
Glossary
Application IDentifier
Boundary value
Graphical User
Java Archive JAR
Maintenance Lead
Program Management
Structure-based
Test command
Java ME TCK Framework Developer’s Guide July
Symbols
Index
Java ME TCK Framework Developer’s Guide July
Work directory
Java ME TCK Framework Developer’s Guide July
Top
Page
Image
Contents