Development

I’m looking into the BlazeMeter Advanced JMeter tutorial
(https://academy.blazemeter.com/courses/advanced-jmeter/)

In lesson 7: Pacing, he uses some Groovy code to delay the dummy sampler, which is as follows:

long iterationCount = ${__counter(FALSE,)}
if (iterationCount < 500) {
log.info(“Iteration Count: ${iterationCount}”)
}
else
{
long delayVal = Long.parseLong(props.get(“delayProp”));
if (delayVal < 400) {
delayVal = delayVal + 1
props.put(“delayProp”, String.valueOf(delayVal))
log.info(“Thread: ${__threadNum} Iteration: ${__iterationNum} Delay value: ${__P(delayProp,)}”)
}
}

Unfortunately he doesn’t show how to integrate this code in the JSR223 PostProcessor with the dummy sampler. So my sampler is not delaying when the iteration count goes over 500.
Any idea on how I can apply this code for a delay in the sampler?

In the project he has following elements:

User Defined Variables
Arrival Threads Group with 3 Dummy Samplers
Under the 3rd dummy sampler, there is a JSR223 PostProcessor with the
code
Response Times Over Time listener
Active Threads Over Time listener
Transactions per Second listener

I am manual testing a form and there is a field name “Project description” And it is not a mandatory field. User will describe their description of project in that field.Now I am giving input and testing that field.
The Condition is that the field accepts a-z, A-Z, 0-9, and all the special characters.
So my question is that now if I only enter special character in that field or only digit in that field will this be considered as negative test case? And the test won’t pass?
Or the test will pass as it accepts the digits and special character in the previous condition?