您的位置:软件测试 > 开源软件测试 > 开源功能测试工具 > Selenium
selenium+testng+ant+jenkins 手记
作者:网络转载 发布时间:[ 2016/3/3 14:09:27 ] 推荐标签:软件测试工具 功能测试工具

  更多ant和testng  classname="org.testng.TestNGAntTask"是固定格式
  参考:http://testng.org/doc/index.html
  接下来在项目添加几个case,项目目录如下

  准备testng的配置文件如下,放在工程的根目录下

  接下来是见证奇迹的时候:
  在Jenkins里选择构建
  Building in workspace C:Program Files (x86)JenkinsworkspaceDemo
  [workspace] $ cmd.exe /C '""C:Program Filesapache-ant-1.9.4inant.bat" -file Demo run && exit %%ERRORLEVEL%%"'
  Buildfile: C:UsersYoungworkspaceDemouild.xml
  [echo] import libs clean:
  [delete] Deleting directory C:UsersYoungworkspaceDemouild compile:
  [echo] mkdir
  [mkdir] Created dir: C:UsersYoungworkspaceDemouildclasses
  [javac] C:UsersYoungworkspaceDemouild.xml:21: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
  [javac] Compiling 6 source files to C:UsersYoungworkspaceDemouildclasses run:
  [testng] [TestNG] Running:
  [testng]   C:UsersYoungworkspaceDemo estng.xml
  [testng]
  [testng] Fast test
  [testng] Slow test
  [testng] Starting ChromeDriver (v2.9.248315) on port 43260
  [testng] Starting ChromeDriver (v2.9.248315) on port 20660
  [testng] Starting ChromeDriver (v2.9.248315) on port 13803
  [testng] cookie write to file
  。。。。

上一页12下一页
软件测试工具 | 联系我们 | 投诉建议 | 诚聘英才 | 申请使用列表 | 网站地图
沪ICP备07036474 2003-2017 版权所有 上海泽众软件科技有限公司 Shanghai ZeZhong Software Co.,Ltd