selenium-core的运行

上一篇 / 下一篇  2009-12-16 17:25:24

在tomcat上运行selenium-core。
步骤:
1. 下载selenium-core。
2. 安装。假设路径为:D:\selenium\selenium-core-1.0.1
3. 下载tomcat6。
4. 安装
5. 配置:

1).复制Tomcat6.0\webapps\ROOT目录下的WEB-INF文件夹到D:\selenium\selenium-core-1.0.1目录下。


2).打开D:\selenium\selenium-core-1.0.1\WEB-INF目录下的web.xml文件,</description>之后加入:

<!--JSPC servlet mappings start -->

<!--JSPC servlet mappings end -->


3).打开Tomcat6.0\conf\server.xml文件,在<Host></Host>之间加入:

<Context path="/sc" docBase="D:\selenium\selenium-core-1.0.1" debug="0" privileged="true">

</Context>


4).打开Tomcat6.0\conf\web.xml文件,找到:

    <init-param>

              <param-name>listings</param-name>

              <param-value>false</param-value>

          </init-param>

false设成true保存,重启Tomcat,在IE上打开http://localhost:8080/sc。


TAG: Selenium selenium

 

评分:0

我来说两句

Open Toolbar