opengeospatial / teamengine

TEAM Engine (Test, Evaluation, And Measurement Engine) is an engine for testing web services and other resources written in JAVA. It executes test scripts written in Compliance Test Language (CTL), TestNG and other languages. It is lightweight and easy to run as a command line or to setup as a service. It can be used to test any type of service or encoding. It is also the official tool used by the Open Geospatial Consortium (OGC) for compliance testing.
Apache License 2.0
45 stars 41 forks source link

Console application updates #552

Closed cmorriscmps closed 1 year ago

cmorriscmps commented 2 years ago

This pull request includes these changes, which help with using TEAM Engine from the command line.

dstenger commented 2 years ago

@cmorriscmps Thank you for providing the pull request. Can you please provide some examples/ use cases how the changes introduced by this pull request can be used?

cmorriscmps commented 2 years ago

@dstenger I think that the best way for me to provide examples/ use cases would be to update the "command shell" section of the user's guide at https://opengeospatial.github.io/teamengine/users.html. Can you point me to the source code for that page, or instructions on how to update it?

dstenger commented 2 years ago

@cmorriscmps Sure, the file is located here: https://github.com/opengeospatial/teamengine/blob/master/src/site/markdown/users.md You are welcome to include an update of this file into this pull request.

cmorriscmps commented 2 years ago

@dstenger Pull request has been updated and is ready for review.

dstenger commented 1 year ago

@bpross-52n please include tests of following components in your review:

dstenger commented 1 year ago

When starting this pull request with teamengine-docker project (teamengine-beta), I get the following error when trying to log in via Web Browser Interface:

SEVERE: Servlet.service() for servlet [jsp] in context with path [/te2] threw exception [Unable to compile class for JSP: 

An error occurred at line: 7 in the jsp file: /viewSessions.jsp
Config cannot be resolved to a type
4:   session="false"
5:   import="java.io.File, javax.xml.parsers.*, java.util.Arrays, com.occamlab.te.web.*, java.util.List, java.util.ArrayList"
6: %><%!
7:   Config Conf;
8:   DocumentBuilder DB;
9:   List<TestSession> testData;
10: 
...
Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:590)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:341)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:660)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:395)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:339)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:110)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:603)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:1025)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:445)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1137)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:637)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.doRun(AprEndpoint.java:2575)
    at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:2564)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:750)
cmorriscmps commented 1 year ago

I think the error in viewSessions.jsp should be fixed now.

dstenger commented 1 year ago

@cmorriscmps Thanks for the update. I can confirm that the error does not occur anymore.