nGrinder報There is no test in progress錯誤解決

背景

大周末,要開啟一個穩(wěn)定性的壓力測試,腳本必須包含混合場景

問題

腳本都寫完,調(diào)試過程中,日志打印能發(fā)起請求,并正確返回,但是有報錯信息,報錯如下:

2019-10-26 10:34:50,417 ERROR There is no test in progress.
net.grinder.script.InvalidContextException: There is no test in progress.
    at net.grinder.engine.process.ScriptStatisticsImplementation.getForCurrentTest(ScriptStatisticsImplementation.java:119) ~[grinder-core-3.9.1.jar:na]
    at HLS_Mix.test_AAA(HLS_Mix.groovy:124) ~[na:na]
    at net.grinder.scriptengine.groovy.junit.GrinderRunner.run(GrinderRunner.java:170) ~[ngrinder-groovy-3.4.1.jar:na]
    at net.grinder.scriptengine.groovy.GroovyScriptEngine$GroovyWorkerRunnable.run(GroovyScriptEngine.java:147) ~[ngrinder-groovy-3.4.1.jar:na]
    at net.grinder.engine.process.GrinderThread.run(GrinderThread.java:118) ~[grinder-core-3.9.1.jar:na]

解決方案

問題定位,發(fā)現(xiàn)是@BeforeThread里的test_AAA.record(this, "test_ccc)有問題,應(yīng)該改為test_AAA.record(this, "test_AAA),問題順利解決。

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 一:LoadRunner常見問題整理1.LR 腳本為空的解決方法:1.去掉ie設(shè)置中的第三方支持取消掉2.在系統(tǒng)屬...
    0100閱讀 4,645評論 0 11
  • ORA-00001: 違反唯一約束條件 (.) 錯誤說明:當在唯一索引所對應(yīng)的列上鍵入重復值時,會觸發(fā)此異常。 O...
    我想起個好名字閱讀 5,986評論 0 9
  • 第 2 章 SHELL 基礎(chǔ)知識2.1 shell腳本我們在上面簡單介紹了一下什么是shell腳本,現(xiàn)在我們來進一...
    LiWei_9e4b閱讀 1,649評論 0 0
  • 一、Python簡介和環(huán)境搭建以及pip的安裝 4課時實驗課主要內(nèi)容 【Python簡介】: Python 是一個...
    _小老虎_閱讀 6,341評論 0 10
  • 一天,小松鼠想去河對岸的奶奶家玩,于是,去奶奶家的那一天,她早早就起了床,吃完早餐穿上衣服準備去奶奶...
    sx李浩軒閱讀 697評論 0 1

友情鏈接更多精彩內(nèi)容