3 # TDataStd_ExtStringList
5 # Testing attribute: User defined (additional GUID) TDataStd_ExtStringList
7 # Testing command: SetExtStringList
8 # Testing command: GetExtStringList
14 # Add an attribute 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
38 # Get a value of the attribute
40 set aMessage1 "Add TDataStd_ExtStringList attribute: Error"
41 set aGetAttr1 [GetExtStringList D ${aLabel}]
42 set aLen1 [llength ${aGetAttr1}]
43 set aGetAttr2 [GetExtStringList D ${aLabel} ${aGuid1}]
44 set aLen2 [llength ${aGetAttr2}]
46 if { ${aLen1} != ${aLen2}} {
53 set aGetAttr11 [lindex ${aGetAttr1} 0]
54 set aGetAttr21 [lindex ${aGetAttr2} 0]
55 if { ${aGetAttr11} != ${aGetAttr21} } {
57 puts "aGetAttr11=${aGetAttr11}"
58 puts "aGetAttr21=${aGetAttr21}"
61 set aGetAttr12 [lindex ${aGetAttr1} 1]
62 set aGetAttr22 [lindex ${aGetAttr2} 1]
63 if { ${aGetAttr12} != ${aGetAttr22} } {
65 puts "aGetAttr12=${aGetAttr12}"
66 puts "aGetAttr22=${aGetAttr22}"
70 if { ${IsGood} == 0} {
71 puts "Add TDataStd_ExtStringList attribute: Error"
73 puts "Add TDataStd_ExtStringList attribute: OK"