Incorporate use of text/xml/excel files for test data

View: New views
2 Messages — Rating Filter:   Alert me  

Incorporate use of text/xml/excel files for test data

by ruplah :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
What would be the best way to separate test data in the form of text files, excel or xml to keep the test data. The test code should pick the test data from these files
Regards,
Rupa


Re: Incorporate use of text/xml/excel files for test data

by Nat Pryce :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I find it easiest to store files alongside the class itself so that it can
be loaded as a resource with the getClass().getResource(...) or
getClass().getResourceAsStream(...) methods.

--Nat

2009/9/27 ruplah <ruplah@...>

>
>
> Hi,
> What would be the best way to separate test data in the form of text files,
> excel or xml to keep the test data. The test code should pick the test data
> from these files
> Regards,
> Rupa
>
>  
>



--
http://www.natpryce.com


[Non-text portions of this message have been removed]