3 # TDataStd_ExtStringList
5 # Testing attribute: User defined (additional GUID) TDataStd_ExtStringList
7 # Testing command: SetExtStringList
8 # Testing command: GetExtStringList
14 # Add an attributes to a data framework
19 set aGuid1 "12e94541-6dbc-11d4-b9c8-0060b0ee281b"
21 SetExtStringList D ${aLabel} ${aSetAttr11} ${aSetAttr12}
22 SetExtStringList 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-T7.xml
47 # Get a value of the attribute
49 set aMessage1 "Add TDataStd_ExtStringList attribute: Error"
50 set aGetAttr1 [GetExtStringList D ${aLabel}]
51 set aLen1 [llength ${aGetAttr1}]
52 set aGetAttr2 [GetExtStringList 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_ExtStringList attribute: Error"
82 puts "Add TDataStd_ExtStringList attribute: OK"