Toast Toolkit - Maven Plugin

Toast TK Maven plugin Mojos: - download: Download test scripts locally - upload: Upload local @Action sentences to be used on the webapp (steps' auto-completion) - run: Execute local test scripts - report: publish test plan reports

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

io.toast-tk
ArtifactId

ArtifactId

toast-tk-maven-plugin
Last Version

Last Version

0.1.5
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Toast Toolkit - Maven Plugin
Toast TK Maven plugin Mojos: - download: Download test scripts locally - upload: Upload local @Action sentences to be used on the webapp (steps' auto-completion) - run: Execute local test scripts - report: publish test plan reports
Source Code Management

Source Code Management

https://github.com/toast-tk/toast-tk-maven-plugin

Download toast-tk-maven-plugin

How to add to project

<plugin>
    <groupId>io.toast-tk</groupId>
    <artifactId>toast-tk-maven-plugin</artifactId>
    <version>0.1.5</version>
</plugin>

Dependencies

compile (8)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven : maven-artifact jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
org.reflections : reflections jar 0.9.10
org.javassist : javassist jar 3.18.1-GA
io.toast-tk : toast-tk-runtime jar 0.1.5
io.toast-tk : toast-tk-rest-utils jar 0.1.5
io.toast-tk : toast-tk-agent-api jar 0.1.5

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

Project Modules

There are no modules declared in this project.

Toast TK Maven Plugin

A Maven plugin to downloads scenario and upload reusable sentences to toast-tk-webapp.
It helps collecting scenarios for local execution.
How to use the Toast Tk Maven Plugin can be found on the example project.

Goals overview

  • generates-sources:download to download scenarios related to the user token.
  • install:upload to push the sentences you want to re-use on the webapp.
  • verify:run to execute a set of scripts and displays the execution report.
  • integration-test:report to execute a set of test plans and store related reports.

Examples

  • Include maven snapshot repository
<repository>
	<id>snapshots-repo</id>
	<url>https://oss.sonatype.org/content/repositories/snapshots</url>
	<releases>
		<enabled>false</enabled>
	</releases>
	<snapshots>
		<enabled>true</enabled>
	</snapshots>
</repository>
  • Download Mojo - example
<plugin>
	<groupId>io.toast-tk</groupId>
	<artifactId>toast-tk-maven-plugin</artifactId>
	<version>0.1.5-SNAPSHOT</version>
	<executions>
		<execution>
			<phase>generate-sources</phase>
			<goals>
				<goal>download</goal>
			</goals>
			<configuration>
				<!-- Change with your webapp url:port -->
				<webAppUrl>http://localhost:9000</webAppUrl>
				<!-- Change to the user token (in the user profile) -->
				<apiKey>4fYDkIAL0qrHXNxRKuK8yzUZAgNr9Ywf</apiKey>
			</configuration>
		/execution>
	</executions>
</plugin>
  • Run Mojo - example
<plugin>
	<groupId>io.toast-tk</groupId>
	<artifactId>toast-tk-maven-plugin</artifactId>
	<version>0.1.5-SNAPSHOT</version>
	<executions>
		<execution>
			<phase>verify</phase>
			<goals>
				<goal>run</goal>
			</goals>
			<configuration>
				<scripts>
					<fileset>
						<directory>${basedir}/src/main/resources</directory>
						<includes>
							<include>/**/*.*.md</include>
						</includes>
					</fileset>
				</scripts>
				<pluginsDirectory>${basedir}/plugins</pluginsDirectory>
				<outputDirectory>${basedir}/reports</outputDirectory>
			</configuration>
		</execution>
	</executions>
</plugin>
  • Report Mojo - example
<plugin>
	<groupId>io.toast-tk</groupId>
	<artifactId>toast-tk-maven-plugin</artifactId>
	<version>0.1.5-SNAPSHOT</version>
	<executions>
		<execution>
			<phase>integration-test</phase>
			<goals>
				<goal>report</goal>
			</goals>
			<configuration>
				<apiKey>4fYDkIAL0qrHXNxRKuK8yzUZAgNr9Ywf</apiKey>
				<mongoHost>localhost</mongoHost>
				<mongoPort>27017</mongoPort>
				<mongoDb>play_db</mongoDb>
				<scripts>
					<fileset>
						<directory>${basedir}/src/main/resources</directory>
						<includes>
							<include>/**/*.*.md</include>
						</includes>
					</fileset>
				</scripts>
				<pluginsDirectory>${basedir}/plugins</pluginsDirectory>
				<outputDirectory>${basedir}/reports</outputDirectory>
			</configuration>
		</execution>
	</executions>
</plugin>

Contribution

Toast TK is a young Open Source Love project.

For contribution rules and guidelines, See CONTRIBUTING.md

If you'd like to help, get in touch and let us know how you'd like to help. We love contributors!!

Licence

See Toast-tk Apache License 2.0

io.toast-tk

Toast TK

Versions

Version
0.1.5