Manuals
/
Sun Microsystems
/
Communications
/
Telephone Accessories
Sun Microsystems
1.2
manual
Xii Java ME TCK Framework Developer’s Guide July
Models:
1.2
1
12
130
130
Download
130 pages
63.94 Kb
9
10
11
12
13
14
15
16
<
>
Symbols
Maintenance
Set up the More Info system
Platform Commands
CommService
To Build an Updated Test Suite
Page 12
Image 12
xii
Java ME TCK Framework Developer’s Guide • July 2007
Page 11
Page 13
Page 12
Image 12
Page 11
Page 13
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
Use of the Framework
Development Environment
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
Testing an Updated Simple Test Suite
To Test an Updated 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
Classes Directory
Test Description file
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
Remote Test Component
Test Description for Distributed Tests
Required Distributed Test Keyword
Remote Attribute
RemoteSource Attribute
Distributed Test Execution
2Distributed Test Execution
Testing User Interfaces With Interactive Tests
Test Description for Interactive Tests
Interactive Test Execution
Required Interactive Test Keywords
Code Example 4-5Required Interactive Test Keywords
3Interactive Test Execution
Example of an Interactive Test
Testing Application Provisioning With OTA Tests
Server Component of an OTA Test
Client Test Component of an OTA Test
Test Description for OTA Tests
Required OTA Test Keyword
Code Example 4-6Required OTA Test Keyword
OTA Test Description Examples
Code Example 4-9remote Attribute Entry for Trusted MIDlet
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
Using Keywords to Mark Security Tests
Trusted Tests
Double-duty 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
Update the map file
Create a More Info topic file for the question
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
Core
Cldc and Midp Execution
Cldc and Midp Agents and Clients
CommService
Plug-ins
CommClients
Test Export Support Libraries
CDC Agents
CommServers
Messaging
Src Directory
Framework Server Classes and Interfaces
Agent Classes
Digital Signer
Preverification Script
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