私はBeanShellのポスト・プロセッサで、このコードを持っているがJmeter BeanShell - アクセス応答データ - Beanshellエラー?
String line;
String[] words;
line = SampleResult.getResponseMessage(); log.info(msg);
words = line.split("*");
log.info("Here We are");
for (int i = 0; i < words.length; i++) {
log.info(words[i]);
}
これは私が
2017年2月21日午前14時23分三十一秒ERRORを得ているエラーです - jmeter.util.BeanShellInterpreter:エラー 呼び出しbshメソッド:evalソースファイル:インライン評価:
String line; String[] words; line = SampleResult.getResponseMessage(); log.inf . . . '' : Attempt to resolve method: getResponseMessage() on undefined variable or class name: SampleResult 2017/02/21 14:23:31 WARN - jmeter.extractor.BeanShellPostProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of:
文字列;文字列[] ワード; line = SampleResult.getResponseMessage(); log.inf。 。 。 「」:メソッドを解決するための 試み:getResponseMessage()未定義の変数 やクラス名に:SampleResult
どこから 'SampleResult'を取得していますか?なぜなら、エラーを読んだら、「それは、何のSampleResultであるかわかりません」ということです。 – TehTris