自动化测试技术课件.ppt

自动化测试技术分享;何为自动化?;何为自动化?;哪些能自动化?;自动化工具介绍;PHPUNIT的安装 方法一: 使用Pear   运行 pear channel-discover pear.phpunit.de;   pear install phpunit/PHPUnit 方法二 :手动安装   1 从http://pear.phpunit.de/get/下载软件包并解压   2 把解压后的目录加入php.ini中的include_path   3 将脚本pear-phpunit改名为phpunit   4 将phpunit脚本中的@php_bin@替换成php可执行脚本的路径   5 为phpunit脚本增加可执行权限并加入$PATH   6 将PHPUnit/Runner/Version.php中的@package_version@替换成3位 版本号。;测试用例的结构 ?php class Example extends PHPUnit_Extensions_SeleniumTestCase { protected function setUp() { //设置前置条件 $this-setBrowser(*chrome); $this-setBrowserUrl(/); } ; public function t

文档评论(0)

1亿VIP精品文档

相关文档