Haf

Latest version: v2.9.7

Safety actively analyzes 629765 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 6

2.7.0

- warning support
![image](https://user-images.githubusercontent.com/15834891/54604394-99052a80-4a81-11e9-9279-c498a4644323.png)

- stage result show
![image](https://user-images.githubusercontent.com/15834891/54604436-ae7a5480-4a81-11e9-8c72-f8951befd7cb.png)

- fix some bugs:

> operation show of web stages would be ok
> can failed stage : to be warning but not error
> error should be fail when stage run

2.6.6

- fix logger bugs
- add console summary output

2.6.3

> add jsonschema to check config.json file when test start

> using build.bat to build exe

shell
xcopy /e /a /y ..\haf\* .\
pyinstaller -F main.py -i ..\docs\png\haf.ico --additional-hooks-dir=


> add new locker support

python
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

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"
}]
}

2.6.1

- change to plugin mode : sql publish and api server
- fix some bugs of --bus-server-port (-bsp)
- add support of app case publish to sql

2.4.3

- fix some bugs
- update app runner / report

Page 3 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.