Report 测试报告总是由相同的线性图组成
我使用研磨机3.11。我安装了GrinderAnalyzer“GrinderAnalyzer.V2.b19”以查看测试运行的最终报告。我在20次迭代中运行了以下测试:Report 测试报告总是由相同的线性图组成,report,record,analyzer,grinder,Report,Record,Analyzer,Grinder,我使用研磨机3.11。我安装了GrinderAnalyzer“GrinderAnalyzer.V2.b19”以查看测试运行的最终报告。我在20次迭代中运行了以下测试: from net.grinder.script.Grinder import grinder from net.grinder.script import Test from net.grinder.plugin.http import HTTPRequest from java.lang import System c
from net.grinder.script.Grinder import grinder
from net.grinder.script import Test
from net.grinder.plugin.http import HTTPRequest
from java.lang import System
class TestRunner:
def __init__(self):
grinder.statistics.delayReports=True
def __call__(self):
Google()
request = HTTPRequest()
Test(1, "Google").record(request)
def Google():
currentTime = System.currentTimeMillis()
result = request.GET("http://www.google.com")
timeTaken = System.currentTimeMillis()
googlet = timeTaken - currentTime
grinder.logger.info(" vij google time " + str(googlet))
grinder.statistics.forLastTest.success = True
运行测试后,每秒事务数图是一个线性图(只记录了一个值的不正确图)
TPS图对于我运行的任何测试都是相同的。这可能是什么原因?为什么没有记录所有迭代的响应时间?Grinder Analyzer需要比您提供的数据集更大的数据集。尝试运行2000次迭代,或20000次。否则,正如您所看到的,生成的图不是很有用