Weinre安装

来源:互联网 发布:自学软件测试书籍 2016 编辑:程序博客网 时间:2024/05/21 19:45
(以下环境均为windows7)

1) 安装weinre


官方地址:
http://people.apache.org/~pmuellr/weinre/ 
官方文档:
http://people.apache.org/~pmuellr/weinre/docs/latest/ 

安装示例:
在E盘新建weinre文件夹
E:\program\mobile\weinre

2) 命令行
启动命令行,并定位到该路径 E:\program\mobile\weinre

最新版本的weinre 通过npm进行安装
npm -g install weinre 

3) 安装完成后,在 E:\program\mobile\weinre 下会有node_modules 文件夹

4) 启动weinre

5) 在浏览器输入 http://localhost:8080/
显示页面:

点击 

debug client user interface:http://localhost:8080/client/#anonymous  6) 在需要远程调试的页面添加weinre脚本

<script src="http://localhost:8080/target/target-script-min.js#anonymous"></script>

6) 显示debug页面
http://localhost:8080/client/#anonymous

出现红框内你自己的测试地址,说明已经安装成功可进行调试了


转自http://blog.csdn.net/spring21st/article/details/8932839
0 0
原创粉丝点击