Fully automatic buried point diff tool

garbevents

insert image description here

Adaptation plan

  • Zhuge IO
  • Sensors Data
  • GrowingIO buried point data
  • Argo Yiguan Ark Buried Point

Logo

insert image description here

Install

pip install garbevents

Warehouse Address:

community address

Applicable scene

  1. Use Zhuge IO/Senses data as a tool for collecting buried points.
  2. Regression is required to verify whether a large number of buried points are lost.
  3. Use this tool to automatically capture and analyze buried point information data to verify whether buried points are lost.

Function

  1. Automatically parse the buried point information triggered by the mobile\desktop\h5 page, and generate now_data.txt after decryption
  2. After deduplication and known buried point information diff, save the file lost_data.txt

use

  • start service
  1. Start the proxy service in cmd
mitmdump -p 8889 -s test_script.py  
  • connection proxy
  1. Run ipconfig in cmd to find your own ip address
  2. Mobile wifi advanced options, proxy selection manual, add proxy server
ip:你的电脑ip, 端口:8889
  • download certificate
  1. Open the URL mitm.it in your mobile browser
  2. Select the corresponding certificate to download and install
mitm.it
  • start using
  1. 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
  2. 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
  3. 例如: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

insert image description here

Usage extension

  1. Combined with UI automation, embedded in your platform or framework, while running the automation script, it also tests the buried points.
  2. 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.

Guess you like

Origin blog.csdn.net/flower_drop/article/details/109648878