隨筆-112  評(píng)論-73  文章-0  trackbacks-0

          在ant 中運(yùn)行testng 的時(shí)候.一定要將testng-XX.jar放到classpath 中.我就為這折騰了兩小時(shí).疏忽大意啊。

          ant-buils.xml內(nèi)容如下:


          <path id="cpath">
          <pathelement location="${ant.home}/lib/testng-5.3-jdk15.jar" />
          <fileset dir="E:\deploy-lib">
          <include name="*.jar"/>
          </fileset>
          </path>
          <taskdef resource="testngtasks" classpath="${ant.home}/lib/testng-5.3-jdk15.jar" />
          <path id="runpath">
          <path refid="cpath" />
          <pathelement location="bin" />
          </path>

          <target name="test">
          <testng classpathref="runpath" outputDir="test-output">
          <jvmarg value="-ea" />
          <xmlfileset dir="src/test/resources" includes="testng.xml" />
          </testng>
          </target>
          posted on 2008-05-13 13:20 Libo 閱讀(696) 評(píng)論(0)  編輯  收藏

          只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 汾阳市| 广灵县| 普宁市| 林甸县| 嘉义市| 郧西县| 镇原县| 新田县| 西宁市| 遂昌县| 平远县| 扶绥县| 铜川市| 黄平县| 马山县| 邹平县| 肥城市| 临西县| 南木林县| 亚东县| 景德镇市| 安吉县| 靖远县| 犍为县| 双牌县| 道真| 宁都县| 青海省| 深圳市| 高平市| 吴川市| 澎湖县| 怀宁县| 贺州市| 玛多县| 内丘县| 新营市| 赞皇县| 奉贤区| 嘉兴市| 扎赉特旗|