一个简单和易于测试的工具:Huxley

jopen 11年前

Huxley 可以监控你浏览的内容,进行屏幕截图,然后告诉你发生了什么变化。来自 非死book 的 Web 应用的 UI 测试工具。

以下是它的简单用法:

 

1. Install using pip install huxley

2.run server using the framework you use.

3.create a file named huxley with following contents

[test_name]

url=http://localhost:8000/test_page

4.You need to download selenium server

https://selenium.googlecode.com/files/selenium-server-standalone-2.33.0.jar

run the downloaded file

java -jar selenium-server-standalone-XXX.jar

6.Run huxley —record on the same directory as huxley File

7.press enter to take screenshots or use it in playback mode

项目主页:http://www.open-open.com/lib/view/home/1375345294233