naver/ngrinder

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

ningyougang opened this issue · 1 comments

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.

Add this code to @BeforeThread method.

test.record(this, "test")