In this section:
Setting environment variables for the components used in this tutorial is not required, but doing so may improve clarity.
DTP_HOME = DTP Server installation directory. Used for reference.
JTEST_HOME = DTP Engine for Java installation directory.
WORKING_DIR = Base directory for this tutorial.
MONITOR_DIR = Location for CAM agent monitor files.
PROJECT_DIR = Location of the Calculator project.
REPORT_DIR = Directory for test results.
TOMCAT_DIR = Tomcat used for CAM, installation directory.
JAVA_HOME = Java JDK installation directory.
M2_HOME = Maven installation directory.
CYGWIN_HOME = Cygwin installation directory. Cygwin is used only for cURL only in this tutorial.
Configure an envSetup.bat batch file in the working directory (C:\Working\CAM\) with the following contents:
@echo off REM Set environment variables set DTP_HOME=C:\Parasoft\ParasoftTest\DTP set JTEST_HOME=C:\Parasoft\ParasoftTest\Enginejava\10.2.3_64 set WORKING_DIR=C:\Working\CAM set MONITOR_DIR=%WORKING_DIR%\monitor set PROJ_DIR=%WORKING_DIR%\calculator set REPORT_DIR=%PROJ_DIR%\Reports set TOMCAT_DIR=%WORKING_DIR%\tomcat set JAVA_HOME=C:\Program Files\Java\jdk1.8.0_101 set M2_HOME=C:\maven set CYGWIN_HOME=C:\Cygwin6449 REM Configure Path set PATH=%PATH%;%JTEST_HOME% set PATH=%PATH%;%M2_HOME%\bin set PATH=%PATH%;%CYGWIN_HOME%\bin |
This batch file should be executed after opening any command window used in this tutorial. Alternatively, these could be setup in your System Variables.
Open the DTP homepage in a browser and log into Report Center. The default URL on a local machine is http://localhost:80. The default username and password is admin/admin. This should be changed before deploying DTP for general usage. The default user in this tutorial must have the ability to create and configure DTP Projects. Additional steps for setting up DTP are covered in Preparing DTP for Application Coverage.
jtestcli -list-configs
jtest.license.use_network=true jtest.license.network.type=dtp jtest.license.network.edition=server_edition dtp.server=localhost dtp.port=8443 dtp.user=admin dtp.password=admin |
The CAM package will be available soon at http://marketplace.parasoft.com. Until then, contact your Parasoft representative for cam.war download information.
CAM currently requires a custom configured Tomcat server with environment setup for CAM and the tested applications.
catalina start
command to start the Tomcat server. catalina stop
command to stop the server.Complete details for setting up the Jtest Maven Plugin can be found in the DTP Engine for Java documentation: %JTEST_HOME%\manuals\plugins-manual.html
Add the following profile to the <profiles>
element:
<profile> <id>jtest-settings-profile</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <jtest.home> C:/Parasoft/ParasoftTest/Enginejava/10.2.3_64</jtest.home> </properties> <pluginRepositories> <pluginRepository> <id>jtest-local</id> <url>file://${jtest.home}/integration/maven</url> </pluginRepository> </pluginRepositories> </profile> |
Add the following mirror to the <mirrors>
element:
<mirror> <id>jtest-local-mirror</id> <mirrorOf>jtest-local</mirrorOf> <url>file://<your_jtest_directory>/integration/maven</url> </mirror> |