4 # Testing attribute: TDataStd_Integer
6 # Testing command: SetInteger
7 # Testing command: GetInteger
12 # Add an attribute to a data framework
15 SetInteger D ${aLabel} ${aSetAttr1}
17 # Close/Open the transaction
21 set aFile ${imagedir}/caf001-A3.std
24 if { ![file exists ${aFile}] } {
25 puts "There is not ${aFile} file; SaveAs command: Error"
28 #catch {exec chmod 777 ${aFile}}
30 # Restore the document
34 # Get a value of the attribute
35 set IsDone [catch {set aGetAttr3 [GetInteger DD ${aLabel}]} aResult]
36 if { ${IsDone} != 0 ||
37 ${aSetAttr1}!=${aGetAttr3} } {
39 puts "aSetAttr1=${aSetAttr1} aGetAttr3=${aGetAttr3}"
40 puts "Get a value of TDataStd_Integer attribute from restoring document: Error"
43 puts "Get a value of TDataStd_Integer attribute from restoring document: OK"