net.unit8.waitt.server:waitt-tomcat8

Web Application Integration Test Tool

License

License

Categories

Categories

Tomcat Container Application Servers Net
GroupId

GroupId

net.unit8.waitt.server
ArtifactId

ArtifactId

waitt-tomcat8
Last Version

Last Version

1.3.0-beta1
Release Date

Release Date

Type

Type

jar
Description

Description

Web Application Integration Test Tool

Download waitt-tomcat8

How to add to project

<!-- https://jarcasting.com/artifacts/net.unit8.waitt.server/waitt-tomcat8/ -->
<dependency>
    <groupId>net.unit8.waitt.server</groupId>
    <artifactId>waitt-tomcat8</artifactId>
    <version>1.3.0-beta1</version>
</dependency>
// https://jarcasting.com/artifacts/net.unit8.waitt.server/waitt-tomcat8/
implementation 'net.unit8.waitt.server:waitt-tomcat8:1.3.0-beta1'
// https://jarcasting.com/artifacts/net.unit8.waitt.server/waitt-tomcat8/
implementation ("net.unit8.waitt.server:waitt-tomcat8:1.3.0-beta1")
'net.unit8.waitt.server:waitt-tomcat8:jar:1.3.0-beta1'
<dependency org="net.unit8.waitt.server" name="waitt-tomcat8" rev="1.3.0-beta1">
  <artifact name="waitt-tomcat8" type="jar" />
</dependency>
@Grapes(
@Grab(group='net.unit8.waitt.server', module='waitt-tomcat8', version='1.3.0-beta1')
)
libraryDependencies += "net.unit8.waitt.server" % "waitt-tomcat8" % "1.3.0-beta1"
[net.unit8.waitt.server/waitt-tomcat8 "1.3.0-beta1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.apache.tomcat.embed : tomcat-embed-core jar 8.0.53
org.apache.tomcat.embed : tomcat-embed-jasper jar 8.0.53
org.apache.tomcat.embed : tomcat-embed-logging-juli jar 8.0.53

provided (2)

Group / Artifact Type Version
net.unit8.waitt : waitt-api jar 1.3.0-SNAPSHOT
org.codehaus.plexus : plexus-classworlds jar 2.6.0

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

WAITT

WAITT is the Web Application Integration Test Tool.

Using WAITT, you can deploy your application to any server without building war or jar file.

Usage

Add plugin to your pom.xml

<plugin>
  <groupId>net.unit8.waitt</groupId>
  <artifactId>waitt-maven-plugin</artifactId>
  <version>1.3.0-beta1</version>
  <configuration>
    <servers>
      <server>
        <groupId>net.unit8.waitt.server</groupId>
        <artifactId>waitt-tomcat8</artifactId>
        <version>1.3.0-beta1</version>
      </server>
    </servers>
  </configuration>
</plugin>

And execute following command to start tomcat8.

% mvn waitt:run

Then web browser will be started automatically.

If you do not want to start a browser, you can use a run-headless goal as follows.

% mvn waitt:run-headless

Build an executable jar

Waitt plugin can build an executable jar.

% mvn waitt:jar

It doesn't include non-resource files automatically. So, if your app refers asset files outside jar file, you can use -d option in runtime.

% java -jar xxx-standalone.jar -d src/main/webapp

Supported server products

  • Tomcat8
  <server>
    <groupId>net.unit8.waitt.server</groupId>
    <artifactId>waitt-tomcat8</artifactId>
    <version>1.3.0-beta1</version>
  </server>
  • Tomcat7
  <server>
    <groupId>net.unit8.waitt.server</groupId>
    <artifactId>waitt-tomcat7</artifactId>
    <version>1.3.0-beta1</version>
  </server>
  • Jetty9
  <server>
    <groupId>net.unit8.waitt.server</groupId>
    <artifactId>waitt-jetty9</artifactId>
    <version>1.3.0-beta1</version>
  </server>

If you set multiple servers and maven is executed in the interactive mode, you can select a server at runtime.

Features

Coverage

You can use JaCoCo or Cobertura. When you access to /_coverage/, you can see the coverages of your code.

Cobertura

  <feature>
    <groupId>net.unit8.waitt.feature</groupId>
    <artifactId>waitt-coverage</artifactId>
    <version>1.3.0-beta1</version>
  </feature>

JaCoCo

  <feature>
    <groupId>net.unit8.waitt.feature</groupId>
    <artifactId>waitt-jacoco</artifactId>
    <version>1.3.0-beta1</version>
  </feature>

Dashboard

  <feature>
    <groupId>net.unit8.waitt.feature</groupId>
    <artifactId>waitt-dashboard</artifactId>
    <version>1.3.0-beta1</version>
    <type>war</type>
  </feature>

When you access to /_dashboard/, you can see the information of your application.

In dashboard, you can monitor the memory usage / cpu load of a server and redeploy your application. Add waitt-admin feature to your configuration.

  <feature>
    <groupId>net.unit8.waitt.feature</groupId>
    <artifactId>waitt-admin</artifactId>
    <version>1.3.0-beta1</version>
  </feature>

Tracer

You can show and search logs at development in Kibana.

  <feature>
    <groupId>net.unit8.waitt.feature</groupId>
    <artifactId>waitt-tracer</artifactId>
    <version>1.3.0-beta1</version>
    <configuration>
      <elasticsearch.url>http://[es host]:9200</elasticsearch.url>
    </configuration>
  </feature>

for Developer

ClassLoader hierarchy

WaittRealm (Maven plugin)
   |
ServerRealm (Tomcat or Jetty)
   |
ApplicationRealm (Each Webapplication)

Versions

Version
1.3.0-beta1
1.2.3
1.2.2
1.2.1
1.2.0
0.1.0