
- #CREATING JAVA RUN EXECUTABLE FOR MAC HOW TO#
- #CREATING JAVA RUN EXECUTABLE FOR MAC CODE#
- #CREATING JAVA RUN EXECUTABLE FOR MAC MAC#
Screenshots below shows an example of Maven execution mode information.Įxecutable home: /usr/share/apache-maven-3.3.9Įxecutable home: path to the directory where Ant is installed Please note that this is the relative path under your scripting directory.Ĭommand arguments: provide any additional arguments to execute the target POM file: provide the path to your POM file, which is located under the home directory of your test source code. Goal: input the goal defined in your POM file to deploy your project Execution mode: MavenĮxecutable home: input the path to the directory where Maven is installed You need to provide different information depending on the execution mode you choose. JBehave Agent supports 3 execution modes to build and run your test project: Command, Ant, Maven. Scripting libs: /usr/local/jbehave-agent-sample/run Story Root Directory: /usr/local/jbehave-agent-sample/src Scripting libs: D:\jbehave-agent-sample\runĭirectory: /usr/local/jbehave-agent-sample Story Root Directory: D:\jbehave-agent-sample\src ** matches zero or more 'directories' in a path. HINT: ANT Style Pattern Matcher uses the following rules: Use a comma as a separator between patterns.Įxclude: define patterns to ignore tests (method/classes) when scanning using ANT Style Pattern Matcher Include (required): define patterns to scan for tests in the automation project (methods/classes) using ANT Style Pattern Matcher. If all of your libraries are in a folder, simply put its path here You can input one or multiple paths, separated by a comma.
#CREATING JAVA RUN EXECUTABLE FOR MAC CODE#
Scripting libs (optional): provide paths to the dependency libraries (files or folders) in your JBehave source code that you have downloaded in step 1. Story Root Directory (required): provide a path to all JBehave stories QTest Manager Project: select a project that the new agent will be associated with, such as qConnect - Sample Projectĭirectory (required): specify the path to your JBehave source code that you have downloaded in step 1 You will be presented with the New Agent dialog, as shown below:Īgent Name: name of the new agent, such as New Agent On the host detail dialog, click on Agents tab then Click on + New Agent button.

#CREATING JAVA RUN EXECUTABLE FOR MAC MAC#
On Linux or Mac /usr/local/jbehave-agent-sample$ mvn clean compile package integration-test Step 3Īccess to qTest Launch then locate a host that you want to create a new agent and open its detail dialog. On Windows D:\jbehave-agent-sample> mvn clean compile package integration-test

You can find it being listed in the screenshot of pom.xml file below (for maven build).Įxecute the command below to compile automation project and package it: The sample project uses qTest Log Collector, which is a Story Reporter. In this sample, we use maven 3.3.9 and Ant 1.10.1 to build the project (you can use another one, which you are familiar with). On Linux or Mac: /usr/local/jbehave-agent-sample

Prerequisitesĭownload the sample tomation project at and save it to your local machine.
#CREATING JAVA RUN EXECUTABLE FOR MAC HOW TO#
Follow this article to learn how to access to a specific host in qTest Launch in order to create a new Agent.
