ant

WEB接口测试之Jmeter接口测试自动化 (四)(持续构建)

余生颓废 提交于 2019-12-25 00:30:38
转载http://www.cnblogs.com/chengtch/p/6145867.html Jmeter是压力测试、接口测试工具,Ant是基于Java的构建工具,具有跨平台的作用,jenkins是持续集成工具。将这三者结合起来可以搭建一套webservice接口测试的持续构建环境。 1、安装JDK,配置java环境变量 (略过) 2、安装Jmeter,这里用到的版本是2.12 (安装过程略过) 3、安装 ANT 3.1 下载安装 下载地址 http://ant.apache.org/bindownload.cgi,下载后解压到指定位置即可, 比如:D:/program files/apache-ant-1.9.0 3.2 配置环境变量 3.3 安装验证 验证安装结果,命令行输入ant -v ,出现版本信息则安装成功 4、ANT中配置Jmeter 4.1、配置库文件 将jmeter extras目录下的ant-jmeter-1.1.1.jar 文件拷贝到ant安装目录下的lib文件夹中 copy from: paste to: 4.2 配置ANT与Jmeter的配置文件 4.2.1 配置ant 编译文件 build.xml 拷贝下面的内容与新建的txt文件中,并将此文件改名为:build.xml View Code 如下按实际情况修改build.xml文件 4.2.2

using ant read the build.xml ,according to the order written in <include >tag

走远了吗. 提交于 2019-12-24 23:25:05
问题 Here i want to compile/run first ExceuteLeadTest.class and then ExceuteContactTest.class by the ant ..But while exceuting it first it comipling/running ExcecuteContactTest.java/ExceuteContactTest.class <project> <target name="run" depends="compile"> <include name="testScript/ExceuteLeadTest.class" /> <include name="testScript/ExceuteContactTest.class" /> </target> <project> 回答1: In Ant you can use the sequential tag to run tasks in order. Normally Ant processes dependencies and runs each only

How to set classpath order while building jar file using Ant?

送分小仙女□ 提交于 2019-12-24 22:25:02
问题 I am using zipgroupfileset to bundle all jars from lib folder to include in my executable application jar file. <zipgroupfileset dir="${lib.dir}" /> Jars must be getting included in some default order. I want to alter this default order. A note on why I want this: my Java desktop application uses many third party jars which are included in class path. When I run my code through Eclipse it works fine. But when I build the jar file using ANT it doesn't work as expected. I am sure it is related

Inheriting configuration property from parent pom in maven

自古美人都是妖i 提交于 2019-12-24 21:47:38
问题 I am trying to fiddle with maven antrun plugin. I have a parent pom and child pom. I want to maven-install child pom and have some custom properties that are specified in parent pom to be included in the jar manifest. I want to do this with maven-antrun plugin. This is what I have done: I have included ant jar task in parent pom. That ant jar task specifies properties to be added to the manifest. I have also added dummy echo tasks in both parent and child poms. I am hoping that child pom

how to ignore the annotations at runtime of the Ant File

爱⌒轻易说出口 提交于 2019-12-24 19:36:56
问题 I'm trying to deploy my application through the generation of a War file using an Ant File, in which I've wrote this code: <project name="HelloWorldWS" default="dist" basedir="."> <description> Web Services build file </description> <!-- set global properties for this build --> <property name="src" location="src"/> <property name="build" location="build"/> <property name="dist" location="dist"/> <property name="webcontent" location="WebContent"/> <target name="init"> <!-- Create the time

groovy inside ant: how to access refids from grooy that are defined by ant tags

不问归期 提交于 2019-12-24 18:35:36
问题 I'm using a groovy code snippet in an ant build file. Inside the groovy code I'm trying to reference a fileset that has been defined outside of the groovy part, like this: <target name="listSourceFiles" > <fileset id="myfileset" dir="${my.dir}"> <patternset refid="mypatterns"/> </fileset> <groovy> def ant = new AntBuilder() scanner = ant.fileScanner { fileset(refid:"myfileset") } ... </groovy> </target> When I execute this I get the following error message: Buildfile: build.xml

Gradle leaves java process after finishing ant invocation

随声附和 提交于 2019-12-24 17:33:07
问题 I am in the process of migrating to gradle one of our modules say gradle-module . That module has two dependencies that are currently build with ant say ant-module-1 and ant-module-2 In my gradle-module build.gradle i have the following entries: task packageAntModule1(type: GradleBuild) { buildFile = 'antModule1.gradle' tasks = ['clean', 'package'] } task packageAntModule2(type: GradleBuild) { buildFile = 'antModule2.gradle' tasks = ['clean', 'package'] } compileJava.dependsOn([

Hierarchy and distribution of tasks among Ant build files in Java EE application from the JUnit unit tests perspective

旧巷老猫 提交于 2019-12-24 17:23:27
问题 I have the following hierarchy in of the Ant build files in my application : Application |---MainProject | |__ build.xml | |---Project1 | |__ build.xml | |---Project2 |__ build.xml The Ant targets, based on their tasks are distributed as follows: 1) MainProject build file gives ant calls to the clean target of all the other build files 2) The JUnit tests in all the projects are executed in the MainProject build file using a common junit target with junit tasks inside it. 3) All other tasks in

Variables in bash script in sshexec from ant

故事扮演 提交于 2019-12-24 17:09:03
问题 I have a problem with variables in sshexec task. My build.xml ant script looks like: <?xml version="1.0" encoding="UTF-8"?> <project name="sshexecproject" basedir="." default="build"> <target name="build"> <sshexec host="192.168.2.106" username="root" password="xxx" commandResource="${basedir}/to_run.sh" trust="true" verbose="true" failonerror="true" /> </target> In the to_run script I have two variables: #!/bin/bash name="Pink Panther" export name2="Panther Pink" echo "Name: " echo $name

NoClassDefFoundError at runtime with ant

怎甘沉沦 提交于 2019-12-24 16:13:03
问题 well I'm trying to configure the project with Ant and this is what I get: D:\Dropbox\EclipseWorkspace\PIRS_Arturas_Masaitis\src\lib>dir Volume in drive D is WinMedia Volume Serial Number is 8ED9-B662 Directory of D:\Dropbox\EclipseWorkspace\PIRS_Arturas_Masaitis\src\lib 2012.11.20 16:11 <DIR> . 2012.11.20 16:11 <DIR> .. 2012.10.16 22:03 315.805 commons-lang3-3.1.jar 2012.10.23 23:08 176.897 commons-validator-1.4.0.jar 2012.11.20 15:30 <DIR> hibernate 2012.11.16 04:48 253.160 junit-4.10.jar