aboutsummaryrefslogtreecommitdiff
path: root/vo/votest/tests/req_1.2.cl
diff options
context:
space:
mode:
Diffstat (limited to 'vo/votest/tests/req_1.2.cl')
-rw-r--r--vo/votest/tests/req_1.2.cl32
1 files changed, 32 insertions, 0 deletions
diff --git a/vo/votest/tests/req_1.2.cl b/vo/votest/tests/req_1.2.cl
new file mode 100644
index 00000000..29a3eded
--- /dev/null
+++ b/vo/votest/tests/req_1.2.cl
@@ -0,0 +1,32 @@
+#
+# Demonstrate row and column selection in a VOTable.
+
+# Set the test description string.
+votest.descr = "Demonstrate row and column selection in a VOTable"
+
+# Convert the data$logical to a local path.
+s1 = data_url // "/usno-b.xml"
+s2 = "file://" // data_path // "/usno-b.xml"
+s3 = "file:///localhost" // data_path // "/usno-b.xml"
+
+print ("------------------------------------------------------------------")
+print ("Req 1.2: Users shall be able to select specific rows and/or")
+print (" columns of a VOTable using the existing task functionality.")
+print ("------------------------------------------------------------------")
+
+
+fcache init
+
+# Execute the test commands.
+print ("\nLogical Path: data$usno-b.xml") # logical path
+tprint ("data$usno-b.xml", columns="sRa,sDec", rows="1-10", showhdr-)
+
+print ("\nHTTP URI: " // s1) # remote http URI
+tprint (s1, columns="sRa,sDec", rows="1-10", showhdr-)
+
+print ("\nFile URI: " // s2) # file URI
+tprint (s2, columns="sRa,sDec", rows="1-10", showhdr-)
+
+print ("\nFile URI: " // s3) # file URI
+tprint (s3, columns="sRa,sDec", rows="1-10", showhdr-)
+