Hi sreedhar,

If it helps, I am using setResourceBundleName() instead of setResourceBundle(). And only the bundle name needs to be passed to it. For example, to load config.properties, I use this code:

getTestContext().setResourceBundleName("config");

Hope it helps,

cheers
nilesh


On 3/7/06, Sreedhar Kharidehal <[EMAIL PROTECTED] > wrote:
Hi I get a Missing resource Exception when i try to read from the
properties file.Here is the sample code
File file =new File(src\\Auto\category\\ApplicationResources);
tester.getTestContext().setLocale(Locale.US);
tester.getTestContext().setResourceBundle(file.getAbsolutePath());
System.out.println (tester.getMessage("errors.name"));

The properties file ApplicationResources is there but still then i get
a missing resource Exception in the last line .Am i missing something

Thanks
--
sreedhar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to