四.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

    相關文章
    相關標籤/搜索