0024223: Review of unstable test cases
[occt.git] / tests / xml / data / ocaf / C7
CommitLineData
607a96d4 1set aTestName "caf100-P1"
2puts ${aTestName}
3
4# Set a coordinates
5set X 123.456
6set Y 789.012
7set Z 345.678
8
9# Set a position attribute
10set aCLabel 0:1:1
11Label D ${aCLabel}
12SetPosition D ${aCLabel} ${X} ${Y} ${Z}
13
14# Save the document
15set aFile ${WorkDirectory}/${aTestName}.${FileSuffix}
16
17SaveToFile D $aFile
18
19# Restore the document
20Close D
21Open ${aFile} DD
22
23# Get a variable from the label
24set IsDone [catch {GetPosition DD ${aCLabel} X2 Y2 Z2} aResult]
25if { ${IsDone} != 0 } {
26 puts "Error : Get a value of TPrsStd_Position attribute from restoring document"
27} else {
28
29 if { ${X2} != ${X} || ${Y2} != ${Y} || ${Z2} != ${Z}} {
30 puts "Error : Get a value of TPrsStd_Position attribute from restoring document"
31 }
32}