Hi Dhanushka, Are you trying to read the resource from maven test module?
Thanks, Nuwanw On Thu, Mar 10, 2016 at 11:46 AM, Danushka Fernando <[email protected]> wrote: > Hi > I am trying to do $subject in a test case. I tried code below. Didn't > work. Can some one shed some light here. > > ClassLoader classLoader = getClass().getClassLoader(); > File uploadArtifact = new > File(classLoader.getResource(resourcePath).getFile()); > > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
