Hello,

Requirement is to generate random files with size less than 1 MB, reading 
filenames from CSV
and upload files through HTTP sampler.

I tried using JSR223 pre-processor with below code:
new File(vars.get('variable_from_csv')).text = 
org.apache.commons.lang3.RandomStringUtils.randomAlphabetic(1, 1024 * 1024)

Facing error :
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method 
java.io.File#<init>.Cannot resolve which method to invoke for [null] due to 
overlapping prototypes between: [class java.lang.String] [class java.net.URI]

Could anyone please help me to resolve this issue?

Thanks in advance.


________________________________
DISCLAIMER:


This e-mail (including any attachments) is for the addressee(s) only and may be 
confidential, especially as regards personal data. If you are not the intended 
recipient, please note that any dealing, review, distribution, printing, 
copying or use of this e-mail is strictly prohibited. If you have received this 
email in error, please notify the sender immediately and delete the original 
message (including any attachments).

Opinions, conclusions and other information in this e-mail that do not relate 
to the official business of MIMOS Berhad and/or its subsidiaries shall be 
understood as neither given nor endorsed by MIMOS Berhad and/or its 
subsidiaries and neither MIMOS Berhad nor its subsidiaries accepts 
responsibility for the same. All liability arising from or in connection with 
computer viruses and/or corrupted e-mails is excluded to the fullest extent 
permitted by law.

Reply via email to