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

Report [WARNING] The test is finished but has no TPS. #944

Closed
ningyougang opened this issue Dec 8, 2022 · 1 comment
Closed

Report [WARNING] The test is finished but has no TPS. #944

ningyougang opened this issue Dec 8, 2022 · 1 comment

Comments

@ningyougang
Copy link

ningyougang commented Dec 8, 2022

My script is

        ...
        ...
	@Test
	public void test(){
		HTTPResponse response = request.GET("https://www.google.com", params)

		if (response.statusCode == 301 || response.statusCode == 302) {
			grinder.logger.warn("Warning. The response may not be correct. The response code was {}.", response.statusCode)
		} else {
			assertThat(response.statusCode, is(200))
		}
	}

But during benchmarking, has no TPS, e.g.
image

And after benchmark finished, still has no TPS, e.g.
image

What's the problem? and how can i finish it?
Btw, i also changed the access http address to company innder http service, the problem still existed.

@imbyungjun
Copy link
Contributor

Add this code to @BeforeThread method.

test.record(this, "test")

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

No branches or pull requests

2 participants