0
votes

In Jmeter 3.0 ver,

I entered body data of HTTP Request, when I tried to click file upload, I get:

"You cannot switch because data cannot be converted to Target tab data, empty data to switch"

but in previous version jmeter 2.12 , 2.11 i can enter body data and do file upload .. Anybody know workaround for this or why i'm facing this issue in jmeter 3.0 enter image description here??

1
First, clear data (take backup) in "Body Data" tab, and add the data in "Parameters" tab and then switch to "File Upload" tab to input file. you can switch b/w Parameters and File Upload tab.Naveen Kumar R B
@Naveen why not make an answer instead of just a comment ? ThxUBIK LOAD PACK
I understood your question and what I mentioned was a work around. because you really can't use "Body Data" and "File Upload" tab in combination but you can use "Parameters" and "File Upload" tab in combination. Keeping data in "Body Data" or "Parameters" tab are same. I would suggest you go through the following link and refer File Path section, jmeter.apache.org/usermanual/…Naveen Kumar R B
what is the data type that "Body Data" combines? If just key-value pairs, you can convert it Parameters tab. Share the Body Data and File Upload screenshots to clear understanding of the problem.Naveen Kumar R B
try by copying entire JSON into "Value" field and leave "Name" field empty in parameters tab. Let me know the result.Naveen Kumar R B

1 Answers

1
votes

try by copying entire JSON into "Value" field and leave "Name" field empty in parameters tab.