Grant, You need to open up (double click) the .testrunconfig file (might be called localtestrun.testrunconfig) which should be found in your solution items. In their there is section called deployment. In the deployment section there is a button called Add File.. This allows you to add a file that will be deployed when the test is started. If you put the file there it will be copied to the right location i.e. the Out directory. You can do the same with a directory, but you then have to manually edit the config file. See http://blogs.madtechnology.net/blogs/chris/archive/2006/08/28/646.aspx and http://blogs.madtechnology.net/blogs/chris/archive/2006/08/28/647.aspx for more information. Regards Chris
Chris Burrows Senior Consultant Readify Pty Ltd ________________________________ From: [EMAIL PROTECTED] on behalf of Grant Adkins Sent: Wed 13/12/2006 12:37 PM To: [email protected] Subject: RE: [OzTFS] Unit Test and WSE policy config file problem Hi William Thanks for the quick reply. The property was already set to "Copy always". I doubled checked the test output folder and the file is definitely not being copied there. I added a text file to the project and set its property to "Copy always" and that also was not copied to the test output folder. Checking the standard build's bin folder however, the files are copied there. So a standard build uses the settings, but the test manager's build doesn't seem to. Any thoughts? Cheers Grant From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of William Bartholomew Sent: Wednesday, 13 December 2006 11:13 AM To: [email protected] Subject: RE: [OzTFS] Unit Test and WSE policy config file problem If you look at the properties of the file you will see an option called "Copy to Output Directory", if you set this to "Copy always" or "Copy if newer" then the file should be copied into the "Out" directory automatically. ________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Grant Adkins Sent: Wednesday, 13 December 2006 11:10 AM To: [email protected] Subject: [OzTFS] Unit Test and WSE policy config file problem Hi all I've created a test project to test an assembly that uses WSE 3.0 to talk to a web service. My problem occurs when the assembly tries to set the policy before calling the web method: ws.setpolicy("PolicyName"). The setpolicy method looks in the executing app's app.config for the reference to the wse3policycache.config file and so I thought I could solve the problem by setting up the test project to also have the same WSE policy. Unfortunately, because every time a test is executed in the VS Test Manager a new Out directory is created for that test, the wse3policycache.config file is not copied to the folder and so the file can't be found at runtime. I had thought I could copy the contents of the wse3policycache.config file and simply paste the xml within the microsoft.web.services element in the test app.config file, but it doesn't seem to like that. Can anyone suggest a solution to this problem? Thanks very much Grant Adkins Solutions Architect SecurityMail Pty Ltd 36 Northlink Place, Virginia QLD 4014 t +61 7 3866 8444 f +61 7 3866 8400 e [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> w http://www.securitymail.com.au <http://www.securitymail.com.au/> OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net OzTFS.com - to unsubscribe from this list, send a message back to the list with 'unsubscribe' as the subject. Powered by mailenable.com - List managed by www.readify.net
