KCMS Test Suite User's Guide

Getting and Setting Attributes

Get/Set Attribute

Script Name

IC_attr1.scr

Concept

IC_attr1.scr sets attributes for a variety of device profiles, which it saves and frees from memory. Then it reloads the profiles and verifies that the attributes were correctly set. It varies the attributes that it sets and gets.

Description

This script demonstrates that the KCMS framework can perform SETATTR: commands for scanner, printer, and monitor profiles and verify that the attributes were correctly set. Prior to operating on each profile type, the script uses the GETATTR: command to retrieve all the attributes for that profile. After setting the attributes with the SETATTR: command, the script saves and then frees each profile from memory. Then it reloads the profile and performs a GETATTR: command on the attributes previously set. You should examine the log file to verify that:

Verification

All the commands performed in this test are expected to complete successfully. Additionally, the profile attributes are expected to be modified to the values specified in the SETATTR: commands.

Attribute Test 2

Script Name

IC_attr2.scr

Concept

IC_attr2.scr creates a new profile and sets a variety of attributes. It gets the attributes and verifies that they have been properly set. It saves the profile, frees it, reloads the saved profile, and again gets the attributes.

Description

This script demonstrates that the KCMS framework can set the attributes of a profile it creates. After it creates the profile, it uses the SETATTR: command to set the attributes. Then it uses the GETATTR: command to get all the attributes it set. The script saves the profile and frees it from memory. Then it reloads the profile and again gets the attributes it set.

Verification

All the commands performed in this test are expected to be successfully completed. You should examine the log file to verify that:

Lookup Tables

Script Name

IC_lut.scr

Concept

IC_lut.scr uses data files in the data directory to set a lookup table (LUT) structure in the profile and to get the LUT from the profile.

Description

This script demonstrates that the KCMS framework can support both 8-bit and 16-bit LUTs. Not all profiles use the LUT technology within the profile, so not all profiles will have LUTs. See the KCMS Application Developer's Guide for more information on the types of LUTs.

The SETATTR: command takes the name of the data file in the data directory containing the LUT structure of values.

The GETATTR: command prints out the LUTs. The data can be very large--75,000 values. Once the LUTs are set, the profile must be saved before they are actually written into and accessed by the GETATTR: command.

Verification

Examine the log to verify that the LUT values printed out match the LUT values in the data files.