Hi You can get the resource location using TestConfigurationProvider.getResourceLocation()
Thanks, Nuwanw On Thu, Mar 10, 2016 at 2:25 PM, Danushka Fernando <[email protected]> wrote: > Hi Nuwan > Yes. I want to access a file inside resources folder from test automation > module. > > Thanks & Regards > Danushka Fernando > Senior Software Engineer > WSO2 inc. http://wso2.com/ > Mobile : +94716332729 > > On Thu, Mar 10, 2016 at 1:45 PM, Nuwan Wimalasekara <[email protected]> > wrote: > >> 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 >> >> >> >> > -- 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
