opengeospatial / teamengine-integration-testing

Code and instructions to test teamengine on the web, integrating some ETS and sample files
0 stars 1 forks source link

create test for GML #3

Closed bermud closed 9 years ago

bermud commented 9 years ago

Create a test for GML. Test should finish with out errors. OK if it fails. Maybe test if this text appears Test groups

Example file to test https://gist.github.com/bermud/ff67d9a79b63c16979a9

This should be ok

Message d1e170_1:
   Test suite: gml32-1.20
======== Test groups ========
All GML application schemas
    Passed: 1 | Failed: 0 | Skipped: 6
GML application schemas defining features and feature collections
    Passed: 0 | Failed: 0 | Skipped: 2
GML application schemas defining spatial geometries
    Passed: 0 | Failed: 0 | Skipped: 2
GML application schemas defining time
    Passed: 0 | Failed: 0 | Skipped: 2
GML application schemas defining spatial topologies
    Passed: 0 | Failed: 0 | Skipped: 2
GML Documents
    Passed: 5 | Failed: 0 | Skipped: 13

This should not be ok

Test tns:Main type Mandatory default result Passed (s0049)

Assertion: The GML application schema or data set satisfies all 
      relevant constraints.

Form d1e46_1:
   gml-uri=http://services.interactive-instruments.de/cite2013wfs/simpledemo/cgi-bin/cities-postgresql/wfs?request=GetFeature&service=WFS&version=2.0.0&TYPENAMES=ci:City&COUNT=10&NAMESPACES=xmlns(ci,http://www.interactive-instruments.de/namespaces/demo/cities/2.0/cities)
   sch-uri=

Error in call to extension function {public java.lang.Object com.occamlab.te.TECore.callFunction(net.sf.saxon.expr.XPathContext,java.lang.String,java.lang.String,net.sf.saxon.om.NodeInfo) throws java.lang.Exception}: Exception in extension function java.lang.Exception: Fatal Error: XPath syntax error at char 19 on line 47 in {tng:new($outputDir)}:
    Cannot find a matching 1-argument function named {java:org.opengis.cite.iso19136.TestNGController}new(); SystemID: file:/srv/local/teamengine-prod/TE_BASE/work/srv_local_teamengine-prod_TE_BASE_scripts_gml32_3.2.1_ctl_/gml-suite/tns$run-ets-gml32.fn; Line#: 47; Column#: -1
Fatal Error: XPath syntax error at char 40 on line 50 in {...Run($controller, $testRunAr...}:
    Cannot find a matching 2-argument function named {java:org.opengis.cite.iso19136.TestNGController}doTestRun(); SystemID: file:/srv/local/teamengine-prod/TE_BASE/work/srv_local_teamengine-prod_TE_BASE_scripts_gml32_3.2.1_ctl_/gml-suite/tns$run-ets-gml32.fn; Line#: 50; Column#: -1
Failed to compile stylesheet. 2 errors detected.
Result: Failed
upendra-sachan commented 9 years ago

Created script for GML test.