Releases: hautof/haf
Releases · hautof/haf
2.7.5
2.7.1
2.7.0
2.6.6
2.6.3
add jsonschema to check config.json file when test start
using build.bat to build exe
xcopy /e /a /y ..\haf\* .\
pyinstaller -F main.py -i ..\docs\png\haf.ico --additional-hooks-dir=
add new locker support
@contextlib.contextmanager
def new_locker(bus_client, key):
locker = Locker(bus_client, key)
locker.get_lock()
try:
yield
finally:
locker.release_lock()
return
2.6.2
-
support selenium web ui case now
-
using
python -m haf init
to get test_web case -
using
python -m haf run -c=config-web.json
to run test_web case -
haf-sample : https://github.com/hautof/haf-sample/blob/master/test_web.json
{
"testcases": [
{
"id": 1,
"name": "test baidu",
"subid": 1,
"subname": "default",
"app_name": "default",
"run": true,
"type": "web",
"wait_time": 2,
"desired_caps": {
"platformName": "chrome",
"platformVersion": "9",
"start_url": "http://baidu.com"
},
"stage": [
{
"id": 1,
"name": "输入搜索内容",
"operation": "send_keys",
"path": {
"xpath": "//*[@id='kw']"
},
"try": false,
"info": {"keys": "autotest.wang"},
"sleep": 0.5
},
{
"id": 2,
"name": "点击搜索按钮",
"operation": "click",
"path": {
"xpath": "//*[@id='su']"
},
"try": false,
"info": null,
"sleep": 0.5
}
],
"dependent": null
}],
"dbconfig": [{
"id": 1,
"sql_name": "mysql1",
"protocol": "mysql",
"host": "192.168.41.208",
"port": 3306,
"username": "root",
"password": "testzhan123",
"database": "visual"
}],
"config": [{
"name": "test_baidu",
"benchname": "test_baidu",
"protocol": "http",
"host_port": "www.baidu.com"
}]
}