As upload the file through the form when is used the PageTester? This not worked:
Map<String, String> fieldValues = new HashMap<String, String>(); FileInputStream in = new FileInputStream(file); byte[] data = new byte[(int) file.length()]; in.read(data); fieldValues.put("avatar", new String(data)); PageTester tester = new PageTester(appPackage, appName, Filler.CONTEXT_PATH); tester.submitForm(form, fieldValues); >>> public class MyPage { ... private UploadedFile avatar; ... } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]