Hi, can you post some more code that explains exactly how you get 'variable_from_csv'. It looks like there is a type problem there, so that it is not able to choose between the following constructors of File:
File(String pathname) File(URI uri) Markus Wolf -----Ursprüngliche Nachricht----- Von: Sandhya Kiran <[email protected]> Gesendet: Montag, 7. September 2020 05:51 An: [email protected] Betreff: Creation of bulk files for upload 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
