四.jmeter代码学习, SampleResult【持续更新】

API http://jmeter.apache.org/api/org/apache/jmeter/samplers/SampleResult.htmlhtml

 

setSampleLabel

public void setSampleLabel(String label)

sampleStartapache

public void sampleStart()
  • Record the start time of a sample//记录开始时间api

setSuccessfulspa

public void setSuccessful(boolean success)
  • Sets the successful attribute of the SampleResult object.//设置successful属性code

      • Parameters:htm

      • success - the new successful valueget

    sampleEndsed

    public void sampleEnd()
    • Record the end time of a sample and calculate the elapsed time//记录结束时间并计算时间object

    相关文章
    相关标签/搜索