mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-07 00:17:37 +08:00
change: update changelog
This commit is contained in:
@@ -17,6 +17,7 @@ __debug_bin
|
|||||||
.idea/
|
.idea/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
*.bak
|
*.bak
|
||||||
|
.commit.txt
|
||||||
|
|
||||||
# project output files
|
# project output files
|
||||||
site/
|
site/
|
||||||
|
|||||||
@@ -3,6 +3,8 @@
|
|||||||
## 4.0.0
|
## 4.0.0
|
||||||
|
|
||||||
- refactor: merge [hrp] into httprunner repo
|
- refactor: merge [hrp] into httprunner repo
|
||||||
|
- fix: call referenced api/testcase with relative path
|
||||||
|
- fix: ignore exceptions when reporting GA events
|
||||||
|
|
||||||
## hrp-v0.8.0 (2022-03-22)
|
## hrp-v0.8.0 (2022-03-22)
|
||||||
|
|
||||||
|
|||||||
+8
-2
@@ -50,7 +50,10 @@ class GAClient(object):
|
|||||||
'ev': value, # Optional. Event value, must be non-negative integer
|
'ev': value, # Optional. Event value, must be non-negative integer
|
||||||
}
|
}
|
||||||
data.update(self.common_params)
|
data.update(self.common_params)
|
||||||
self.http_client.post(self.report_url, data=data)
|
try:
|
||||||
|
self.http_client.post(self.report_url, data=data)
|
||||||
|
except Exception: # ProxyError, SSLError, ConnectionError
|
||||||
|
pass
|
||||||
|
|
||||||
def track_user_timing(self, category: Text, variable: Text, duration: int):
|
def track_user_timing(self, category: Text, variable: Text, duration: int):
|
||||||
data = {
|
data = {
|
||||||
@@ -61,7 +64,10 @@ class GAClient(object):
|
|||||||
'utl': self.label, # Optional. user timing label, used as version.
|
'utl': self.label, # Optional. user timing label, used as version.
|
||||||
}
|
}
|
||||||
data.update(self.common_params)
|
data.update(self.common_params)
|
||||||
self.http_client.post(self.report_url, data=data)
|
try:
|
||||||
|
self.http_client.post(self.report_url, data=data)
|
||||||
|
except Exception: # ProxyError, SSLError, ConnectionError
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
ga_client = GAClient("UA-114587036-1")
|
ga_client = GAClient("UA-114587036-1")
|
||||||
|
|||||||
Reference in New Issue
Block a user