I created a test plan with JMeter, and this plan include a Thread Group which contains 2 Java Request Sample. The plan runs successfully. But when I open the "View Results Tree", and select the "Request" tab for a Java request, there is "no data to display".
I want to display a string here, and I did set the string to SampleResult by:
sampleResult.setRequestHeader(requestString);
However, setting request header seems not to work.
What should I do to display the string in "Request" tab?
You should 1st choose under
classnamedropdown menu valueorg.apache.jmeter.protocol.java.test.JavaTestThen in the
Sampler datafield you should input your request data i.eI requested this.And then when you look at the result from
View Results Tree, when you click on your samplerRequesttab there you'll seeI requested thiswhich you previously wrote.@JuliaLi Click on the check image on the left side of this answer.