5 # Testing attribute: User defined (additional GUID) TDataStd_IntegerArray
7 # Testing command: SetIntArray
8 # Testing command: GetIntArray
14 # Add an attribute to a data framework
21 set aGuid1 "12e94511-6dbc-11d4-b9c8-0060b0ee281b"
23 SetIntArray D ${aLabel} ${isDelta} ${aFrom1} ${aTo1} ${aSetAttr11} ${aSetAttr12}
24 SetIntArray D ${aLabel} ${isDelta} -g ${aGuid1} ${aFrom1} ${aTo1} ${aSetAttr11} ${aSetAttr12}
26 # Close/Open the transaction
29 # Forget the attribute
32 # Close/Open the transaction
42 set aFile ${imagedir}/caf001-D7.xml
50 # Get a value of the attribute
52 set aMessage1 "Add TDataStd_IntegerArray attribute: Error"
53 set aGetAttr1 [GetIntArray D ${aLabel}]
54 set aLen1 [llength ${aGetAttr1}]
55 set aGetAttr2 [GetIntArray D ${aLabel} ${aGuid1}]
56 set aLen2 [llength ${aGetAttr2}]
58 if { ${aLen1} != [expr ${aTo1} - ${aFrom1} + 1] } {
63 if { ${aLen2} != [expr ${aTo1} - ${aFrom1} + 1] } {
69 set aGetAttr11 [lindex ${aGetAttr1} 0]
70 set aGetAttr21 [lindex ${aGetAttr2} 0]
71 if { ${aGetAttr11} != ${aGetAttr21} } {
73 puts "aGetAttr11=${aGetAttr11}"
74 puts "aGetAttr21=${aGetAttr21}"
77 set aGetAttr12 [lindex ${aGetAttr1} 1]
78 set aGetAttr22 [lindex ${aGetAttr2} 1]
79 if { ${aGetAttr12} != ${aGetAttr22} } {
81 puts "aGetAttr12=${aGetAttr12}"
82 puts "aGetAttr22=${aGetAttr22}"
86 if { ${IsGood} == 0} {
87 puts "Add TDataStd_IntegerArray attribute: Error"
89 puts "Add TDataStd_IntegerArray attribute: OK"