selenium php client怎么安装

如题所述

1.下载selenium
2.解压到一个目录下,我的解压到了d:\seleniumrc
3.下载apache,我本机使用的是apache2.2.x
4.下载PHP5.x windows安装版本,我本机安装的是php-5.2.6-win32-installer.msi
5.安装PHP(我的安装路径D:\PHP),安装过程中注意选择安装"Extras"中的"PEAR Installer"
6.安装PEAR:PHP安装完成后,并未自动安装PEAR,所以我们要到PHP安装目录中,运行go-pear.bat进行安装,详细安装的过程参见.我在这只把重要的几步写下来.
(1)在go-pear命令窗口中,根据提示设定安装路径
(2)PEAR安装成后,根据提示修改PHP安装目录中的"PHP.INI"文件和配置环境变量,以下是我本地机上安装成功后的提示:

Would you like to alter php.ini <C:\WINDOWS\system32\php.ini>? [Y/n] : y

php.ini <C:\WINDOWS\system32\php.ini> include_path updated.

Current include path : .;C:\php5\pear
Configured directory : D:\PHP\www\pear
Currently used php.ini (guess) : C:\WINDOWS\system32\php.ini
Press Enter to continue:

** WARNING! Old version found at D:\PHP\www\bin, please remove it or be sure to use the new d:\php\www

The 'pear' command is now at your service at d:\php\www\bin\pear.bat

** The 'pear' command is not currently in your PATH, so you need to
** use'd:\php\www\bin\pear.bat'until you have added
** 'D:\PHP\www\bin' to your PATH environment variable.

(3)根据上述红色字体的提示,先打开PHP安装目录中的"PHP.INI"文件,找到如下段落

; Windows: "\path1;\path2"
; include_path = ".;c:\php\includes"
将其修改为

; Windows: "\path1;\path2"
include_path = ".;c:\php5\pear"

(4)执行pear.bat使pear命令设置到PATH路径中.
(5)右击我的电脑-高级-环境变量,将"D:\PHP\www\bin"加入"PATH"变量中.
7.PEAR安装完成后,继续安装PHPunit
(1) 首先加载PHPunit的chnnel,执行下列命令pear channel-discover pear.phpunit.de
(2) 继续安装:pear install phpunit/phpunit
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网