Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Trigger && Count Logs #1841

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

KayzzzZ
Copy link
Collaborator

@KayzzzZ KayzzzZ commented Oct 29, 2024

Supports triggering HTTP requests and counting specific log entries.

}
time.Sleep(time.Duration(interval) * time.Millisecond)
}
return context.WithValue(ctx, config.StartTimeContextKey, int32(startTime)), nil
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

有一个 begin trigger 步骤,可以显示设置开始时间。
因为有可能trigger多次,再进行verify,所以还是把设置开始时间和trigger分离开比较好。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK 我看下

@@ -70,6 +70,62 @@ func LogCount(ctx context.Context, expect int) (context.Context, error) {
return ctx, nil
}

func RequestCountAtLeastWithFilter(ctx context.Context, expect int, filterKey string, filterValue string) (context.Context, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接在查询SQL里过滤是不是就可以替代这个函数了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants