Hello,

I was trying to list all parameters in HTTP Sampler including ones in File
upload tab using the following code and remove the desired one in File
upload tab, but File upload tab parameters FrontsideImage and BacksideImage
are not listed:

import org.apache.jmeter.config.Arguments;

Arguments args = sampler.getArguments();
Iterator it = args.iterator();

while (it.hasNext()) {
    def argument = it.next();
    if (argument.getStringValue().contains('somevalue')) {
        args.removeArgument(argument.getName());
    }
    log.warn(argument.getName())
}

Code source: https://stackoverflow.com/a/40918642

Can someone provide a corresponding method to list Files upload parameters
as well and remove desired one as per its value? Check jmx example in the
attachment. Set log level to WARN, Run test and check the logs.

Regards,
Nikola
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to