'Unable to upload file to google drive using jmeter as getting below response

The requested URL /upload/drive/v3/files?uploadType=multipart was not found on this server. That’s all we know.



Solution 1:[1]

Double check your protocol, host and port, according to the documentation the correct URL should be something like:

https://www.googleapis.com/upload/drive/v3/files?uploadType=multipart

the relevant JMeter's HTTP Request sampler configuration:

enter image description here

if you have problems coming up with a proper HTTP Request sampler configuration be aware that you can just record the file upload request using HTTP(S) Test Script Recorder and your browser, just make sure to copy the file(s) you will be uploading to "bin" folder of your JMeter installation.

More information: Recording File Uploads with JMeter

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dmitri T