0
点赞
收藏
分享

微信扫一扫

第10章 Jenkins – Automated Testing

持续集成的一个基本准则就是:一个build是经得起校验的。必须能够客观地确定一个特定的构建是否准备进行下一阶段的生成过程,最方便的方式是使用自动化测试。如果没有适当的自动化测试,就必须保留许多build 文档和手工测试,这些不具备持续集成的精髓。下面个例子讲述用selenium运行自动化web tests

         Step 1: 进入“ManagePlugins”

         第10章 Jenkins – Automated Testing_jenkins

         Step 2: 找到“HudsonSelenium Plugin”并安装,然后重启Jenkins实例

         第10章 Jenkins – Automated Testing_selenium_02

         Step 3: 进入到“Configure system”

         第10章 Jenkins – Automated Testing_持续集成_03

         Step 4: 在“Selenium Remote Control”部分配置selenium服务的jar文件并点击保存。

            第10章 Jenkins – Automated Testing_jenkins_04第10章 Jenkins – Automated Testing_selenium_05

         Note:selenium server jar文件下载地址:​​http://www.seleniumhq.org/download/​​点击下载Selenium standalone server

         

         Step 5:返回到控制面板,点击HelloWorld项目选址“Configure”

         第10章 Jenkins – Automated Testing_selenium_06

         Step 6:点击“Addbuild step”选择“SelecniumHQ htmlSuite Run”选项

          第10章 Jenkins – Automated Testing_自动化测试_07

         Step 7:添加selenium测试的必要的信息。suiteFile是通过Selenium IDE生成的TestSuite。点击“Save”并执行build。一旦post build将启动seleniumdriver并执行html test 。

         第10章 Jenkins – Automated Testing_持续集成_08


 


举报

相关推荐

0 条评论