`
nanjingjiangbiao_T
  • 浏览: 2597530 次
  • 来自: 深圳
文章分类
社区版块
存档分类
最新评论

【ant】调用testng.xml 样例

 
阅读更多

<!-- Build file for our first application -->

<project name="Automation Framework" default="build" basedir=".">

<property name="lib.dir" value="lib"/>
<path id="classpath">
<fileset dir="${lib.dir}" includes="**/*.jar"/>
</path>

<target name="build">
<javac srcdir="src" destdir="bin" debug="true" includes="**/*.java"
classpathref="classpath"/>
</target>

<target name="runtests">
<testng classpathref="classpath"
outputDir="test-output"
sourcedir="src"
haltOnfailure="true">

<xmlfileset dir="." includes="testng.xml"/>
</testng>
</target>

</project>

【testng.xml】

<!DOCTYPE suite SYSTEM "http://beust.com/testng/<wbr>testng-1.0.dtd</wbr>" >
<suite name="My test suite">
<test name="Login Test">
<classes>
<class name="com.watershed.tests.<wbr>homepage.LoginTest" /&gt;<br> &lt;/classes&gt;<br> &lt;/test&gt;<br> &lt;/suite&gt;</wbr>

分享到:
评论

相关推荐

    testng.rar_maven testng_testng_testng.xml.html

    基于annotation的测试框架,简单,易用,maven surefire 驱动自动执行测试用例

    gavroche.zip

    自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml自动生成testng.xml...

    IDEA自动生成TestNG的testng.xml的插件方法

    主要介绍了IDEA自动生成TestNG的testng.xml的插件方法,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    org.testng.eclipse_6.8.6

    org.testng.eclipse_6.8.6 testng插件...............................................................................

    org.testng.eclipse_6.8.6.20130607_0745.rar

    org.testng.eclipse_6.8.6.20130607_0745.rar

    testng.jar

    testng1.5.8, 类似于junit的一个测试方法,但是比junit更强大

    TestNG.rar

    ant+eclipse+testng实例代码。包含了配置testng.xml和ant的build.xml文件。导入到eclipse中可以直接运行。前提是eclipse中已经安装了testng插件和ant插件。相关的jar包需要引用进来。

    Myeclipse+testng , org.testng.eclipse_6.4.1.20120424_1827.jar

    MyEclipse里安装testng插件和所需的testng.jar包 1.拷贝org.testng.eclipse_6.4.1.20120424_1827.jar到dropins目录,重启MyEclipse,插件安装成功; 2.把testng-6.8.21.jar导入项目,右键run as TestNG test即可测试

    org.testng.ecplise_6.10

    最新的testNG插件包,直接解压到 \eclipse\plugins 目录下即可使用

    org.testng.eclipse_6.4.1.20120424_1827.jar

    testng,TestNG,testng for eclise,testng for myeclise, eclipse and myeclipse 都可以用

    testng.zip离线安装

    testng离线安装包,只要2积分,跟5积分下载的是一样的东西。

    testNG.jar最新版本6.15.0

    工程中需要用到testNG.jar,结果找了半天都没地方下载,没办法自己下载源码去编了一个,亲测可用,希望对大家有用。

    site_assembly - testng.zip

    Eclipse TestNG 插件离线安装包,安装方法 https://blog.csdn.net/write6/article/details/100165683

    arquillian-testng.jar.zip

    标签:arquillian-testng.jar.zip,arquillian,testng,jar.zip包下载,依赖包

    Java-TestNG.md

    Java-TestNG.md

    eclipse 安装testNG 离线包

    1. 将解压后的文件..\eclipse-testng离线包\features\org.testng.eclipse_6.9.9.201510270734 文件夹 放到 eclipse--》features目录下 2. 将解压后的文件..\eclipse-testng离线包\plugins\org.testng.eclipse_...

    testng-xslt-1.1.2.zip

    testng-xslt-1.1.2.zip

    TestNG安装包

    现在,调用testng.xml看到的结果: C:\TestNG_WORKSPACE&gt;java -cp "C:\TestNG_WORKSPACE" org.testng.TestNG testng.xml 验证输出 =============================================== Suite1 Total tests run: 1, ...

    testng-test-classpath-property-issue-1:一个简单的项目来演示 testng.test.classpath 属性问题

    此存储库仅用于演示testng.test.classpath属性问题。 问题 以下是中testng.test.classpath的... 运行测试: java -cp $CLASSPATH:out org.testng.TestNG testng.xml 使用testng.test.classpath属性重新运行测试: jav

Global site tag (gtag.js) - Google Analytics