Answered question

How can I record a script for testing upload file feature?

I've recorded a script for testing Upload feature from our system using 1Mb size file. I tried record the same script using 20 Mb size file but it didn't run. I also tried replacing a file name for a parameter, I tried replacing the file recorded in recorded-resources folder for another using the same name anyway it didn't run ok.

Ajala Oliveira

Ajala O.
Ajala O.

Ajala O.

Level
0
21 / 100
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

First of all you do not need to make 2 recording of different size files. If you succeeded with the 1MB you just have to replace the name of your file in the POST request that is uploading your file.

You should look at the post here in order to use the "custom-resources" folder instead of the recorded-resources folder.

You will be able to use a variable in your POST request to upload different files for each user.

Did you find this useful ?

No (0)

Yes (1)

100%

100% of users found this answer useful

Other answers

Ajala O.
Ajala O.

Ajala O.

Level
0
21 / 100
points

Thank you, Nouredine.

Now it is running very well: Source File: ${NL-CustomResources}/file.pdf

Tks!
Ajala O