0023619: Integration of test grid "xml" into the new testing system
[occt.git] / tests / xml / data / ocaf / B6
CommitLineData
607a96d4 1set aTestName "caf003-A4"
2puts ${aTestName}
3
4# Set NamedShape attribute
5box aBox1 100 200 300
6set aLabel 0:2
7SetShape D ${aLabel} aBox1
8
9# Initialize 3D viewer
10AISInitViewer D
11
12# Add AISPresentation attribute with parameter NS
13AISSet D ${aLabel} NS
14
15# Display presentation of NamedShape in the viewer
16AISDisplay D ${aLabel}
17
18# Save the document
19set aFile $WorkDirectory/${aTestName}.${FileSuffix}
20
21SaveToFile D $aFile
22
23# Restore the document
24Close D
25Open ${aFile} DD
26
27# Initialize 3D viewer
28AISInitViewer DD
29
30# Display presentation of NamedShape in the viewer
31set IsDone [catch {AISDisplay DD ${aLabel}} aResult]
32if { ${IsDone} != 0 } {
33 puts "Error : Get a value of TPrsStd_AISPresentation attribute from restoring document"
34}
35