mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-12 02:21:29 +08:00
change: update ga events
This commit is contained in:
@@ -40,7 +40,7 @@ type UserTimingTracking struct {
|
||||
HitType string `form:"t"` // Timing hit type
|
||||
Category string `form:"utc"` // Required. user timing category. e.g. jsonLoader
|
||||
Variable string `form:"utv"` // Required. timing variable. e.g. load
|
||||
Duration string `form:"utt"` // Required. time took duration. Required.
|
||||
Duration string `form:"utt"` // Required. time took duration.
|
||||
Label string `form:"utl"` // Optional. user timing label. e.g jQuery
|
||||
startTime time.Time
|
||||
duration time.Duration // time took duration
|
||||
|
||||
@@ -43,7 +43,7 @@ func (h *har) SetOutputDir(dir string) {
|
||||
|
||||
func (h *har) GenJSON() (jsonPath string, err error) {
|
||||
event := ga.EventTracking{
|
||||
Category: "har2case",
|
||||
Category: "ConvertTests",
|
||||
Action: "hrp har2case --to-json",
|
||||
}
|
||||
// report start event
|
||||
@@ -62,7 +62,7 @@ func (h *har) GenJSON() (jsonPath string, err error) {
|
||||
|
||||
func (h *har) GenYAML() (yamlPath string, err error) {
|
||||
event := ga.EventTracking{
|
||||
Category: "har2case",
|
||||
Category: "ConvertTests",
|
||||
Action: "hrp har2case --to-yaml",
|
||||
}
|
||||
// report start event
|
||||
|
||||
Reference in New Issue
Block a user