I'm using the jmeter __Randomdate() to generate a date and pass it to an API request. most of the time, the date generated are weekends.how to get only the weekdays?
I'm trying to use the __timeshift() if it is weekend, but the __time(EEE,) is giving the day for a current date not from a variable. Can someone help with this. thanks
None of JMeter's built-in test elements is not suitable for your requirement, you will need to go for i.e. JSR223 PreProcessor and calculate the date there using Groovy language.
Example code would be something like:
You will be able to refer generated value as
${randomDate}where required