SCENARIO: AN AUTHORIZED PM CREATES A TASK ON PORTAL XXXX. HE/SHE FILLS OUT A FORM AND UPLOADS A FILE (ZIP) TO THE PORTAL.
Steps to do with JMeter to realize the above scenario:
- Step 1: 2 requests for uploading the above file
- Step 2: POST request with information about the filled fields
- Step 3: request for uploading the file (without any information about this file in the body and in the parameters)
- Step 4: request to get a newly created task (response to this request should contain information about the task saved by the script). THE ABOVE MANIPULATIONS WITH JMETER SHOULD RESULT IN CREATING A NEW TASK BUT IN FACT, NOTHING HAPPENS. When doing the above steps MANUALLY, everything works fine — a new task is created and displayed in the browser.
NOTE: The responses to the above JMeter generated requests do not contain any error information. Responses to the file upload requests sent manually and by JMeter are the same. The POST requests sent manually and by JMeter differ only by ID variables. The only difference is in the Step 3 request (which does not contain any information about the uploaded file or variable parameters) for uploading the file. The final request does not contain information about the new task which we tried to create with JMeter. Requests have been parametrized, the missing cookie was added. Could you please tell me the reason for such behavior? Thank You for your help in advance ????
File upload request was recorded as GET:
I've added data into Files upload section:
The file is located in bin folder.
Another request to upload a file is POST request:
Developers say that the request contain just the file data and its body should be the same for all users, date/time etc. But I'm not sure about its encoding.