5 # Testing attribute: User defined (additional GUID) TDataStd_BooleanList
7 # Testing command: SetBooleanList
8 # Testing command: GetBooleanList
14 # Add an attributes to a data framework
19 set aGuid1 "12e94551-6dbc-11d4-b9c8-0060b0ee281b"
21 SetBooleanList D ${aLabel} ${aSetAttr11} ${aSetAttr12}
22 SetBooleanList D ${aLabel} -g ${aGuid1} ${aSetAttr11} ${aSetAttr12}
24 # Close/Open the transaction
27 # Forget the attribute
30 # Close/Open the transaction
40 set aFile ${imagedir}/caf001-U7.xml
47 # Get a value of the attribute
49 set aMessage1 "Add TDataStd_BooleanList attribute: Error"
50 set aGetAttr1 [GetBooleanList D ${aLabel}]
51 set aLen1 [llength ${aGetAttr1}]
52 set aGetAttr2 [GetBooleanList D ${aLabel} ${aGuid1}]
53 set aLen2 [llength ${aGetAttr2}]
55 if { ${aLen1} != ${aLen2}} {
62 set aGetAttr11 [lindex ${aGetAttr1} 0]
63 set aGetAttr21 [lindex ${aGetAttr2} 0]
64 if { ${aGetAttr11} != ${aGetAttr21} } {
66 puts "aGetAttr11=${aGetAttr11}"
67 puts "aGetAttr21=${aGetAttr21}"
70 set aGetAttr12 [lindex ${aGetAttr1} 1]
71 set aGetAttr22 [lindex ${aGetAttr2} 1]
72 if { ${aGetAttr12} != ${aGetAttr22} } {
74 puts "aGetAttr12=${aGetAttr12}"
75 puts "aGetAttr22=${aGetAttr22}"
79 if { ${IsGood} == 0} {
80 puts "Add TDataStd_BooleanList attribute: Error"
82 puts "Add TDataStd_BooleanList attribute: OK"