Use case :
I need to import orders from Excel file. I need to browse a Excel file.
Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. It only takes a minute to sign up.Sign up to join this community
As the attached image shows that user needs to browse the excel sheet.I was also faced the same situation. So, Assuming that request for the same has been recorded. Follow below instructions:
import org.apache.jmeter.threads.JMeterVariables; import java.io.File; import java.io.IOException; File data = new File("/path/to/your/file.xlsx")
In that code assign "data" object to the JMeter variable like this
Taken reference from How to Extract Data From Files With JMeter This might helps you.