0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / tests / caf / progress / B2
diff --git a/tests/caf/progress/B2 b/tests/caf/progress/B2
new file mode 100644 (file)
index 0000000..6dfba67
--- /dev/null
@@ -0,0 +1,36 @@
+#INTERFACE CAF
+# Message_ProgressIndicator
+#
+# Testing attribute: TDocStd_Application
+#
+# Testing command:   Open
+#
+
+puts "caf009-B2"
+
+set xDoc [CreateXmlDoc]
+
+# Configurate XProgress 
+XProgress -g +t -tcloutput
+
+# Open xml document
+if {${xDoc} == "" } {
+   puts "Error: Open command for xml files: wrong path"
+   return
+}
+
+set output [Open ${xDoc} Doc]
+
+# Close the document
+Close Doc
+
+# Test data
+set ctr {"0%" "Reading document" "Reading geometry" "3D Curves"
+ "Surfaces" "Shapes" "Reading sub-tree" "100%" }
+
+foreach data ${ctr} {
+    if ![regexp $data $output] {
+       puts "Error: Open command for xml files: Mismatch data on '$data'"
+       break
+    }
+}
\ No newline at end of file