How to access TestData from headless build [message #525271] |
Tue, 06 April 2010 00:27 |
Richard Adams Messages: 77 Registered: July 2009 Location: Edinburgh |
Member |
|
|
Hello,
In our SWTBot test plugin, we have a folder of Test Data that the test setups use to populate projects with data that can be used in the test. When running in the IDE this is great and in the test source code we can loadup files using a project relative path (e.g., new File ("TestData/mymodel.xml")
However when running headless in an exported product we have a problem in that these files cannot be accessed. They are included in the build, and the test plugin is unpacked, but the files cannot be read. Does anyone know how SWTBot test code can load up test data when the tests are being invoked headlessly and are embedded in an RCP app?
Thanks in advance,
Richard
Dr Richard Adams, University of Edinburgh
http://richardadams606blog.blogspot.com/
http://csbe.bio.ed.ac.uk/adams.php
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.01900 seconds