garbevents
Adaptation plan
- Zhuge IO
- Sensors Data
- GrowingIO buried point data
- Argo Yiguan Ark Buried Point
- …
Logo
Install
pip install garbevents
Warehouse Address:
- github: https://github.com/Pactortester/garbevents.git
- pypi:https://pypi.org/project/garbevents/#history
community address
Applicable scene
- Use Zhuge IO/Senses data as a tool for collecting buried points.
- Regression is required to verify whether a large number of buried points are lost.
- Use this tool to automatically capture and analyze buried point information data to verify whether buried points are lost.
Function
- Automatically parse the buried point information triggered by the mobile\desktop\h5 page, and generate now_data.txt after decryption
- After deduplication and known buried point information diff, save the file lost_data.txt
use
- start service
- Start the proxy service in cmd
mitmdump -p 8889 -s test_script.py
- connection proxy
- Run ipconfig in cmd to find your own ip address
- Mobile wifi advanced options, proxy selection manual, add proxy server
ip:你的电脑ip, 端口:8889
- download certificate
- Open the URL mitm.it in your mobile browser
- Select the corresponding certificate to download and install
mitm.it
- start using
- At this point, you can trigger the buried point on the mobile phone, and the console will print the currently triggered buried point in real time
- If you want to view the lost buried points, you need to pass in all buried point information in the ST.all_events global variable first
- 例如:ST.all_events = [‘event_name_1’, ‘event_name_2’]
Order
# 只打印所需日志
mitmdump -p 8889 -q -s test_script.py
Zhuge IO Demo
from garbevents.events import GetData
from garbevents.settings import Settings as ST
# 埋点上传url
ST.url = 'https://datain.zhuge.com'
# 报告生成路径
ST.report_path = 'report'
# 所有事件名称
ST.all_events = ['event_name_1', 'event_name_2']
# 接口地址
ST.interface_url = ['apipool', 'APIPOOL']
addons = [
GetData()
]
Sensing Data Demo
from garbevents.sensors_events import GetData
from garbevents.settings import Settings as ST
# 埋点上传url
ST.url = 'http://sensor.wodidashi.com'
# 报告生成路径
ST.report_path = 'report'
# 所有事件名称
ST.all_events = ['event_name_1', 'event_name_2']
addons = [
GetData()
]
run screenshot
Usage extension
- Combined with UI automation, embedded in your platform or framework, while running the automation script, it also tests the buried points.
- Deploy it to the company's server and give it to the students in the testing department. It's a pleasure to help others! ! !
The above is the basic usage introduction of garbevents.
If you find an error, or if you have any suggestions for garbevents, welcome to garbevents Issues , thank you very much for your support. Your feedback and suggestions are very valuable, hope your participation can help garbevents do better.