0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / xml / data / ocaf / A1
CommitLineData
607a96d4 1set aTestName "caf001-A3"
2
3# Add an attribute to a data framework
4set aSetAttr1 100
5set aLabel 0:2
6SetInteger D ${aLabel} ${aSetAttr1}
7
8# Close/Open the transaction
9NewCommand D
10
11# Save the document
12set aFile $WorkDirectory/${aTestName}.${FileSuffix}
13
14SaveToFile D $aFile
15
16# Restore the document
17Close D
18Open ${aFile} DD
19
20# Get a value of the attribute
21set IsDone [catch {set aGetAttr3 [GetInteger DD ${aLabel}]} aResult]
22if { ${IsDone} != 0 || ${aSetAttr1}!=${aGetAttr3} } {
23 puts "Error : Get a value of TDataStd_Integer attribute from restoring document"
24}