Access Denied Error in Test Setup Stage.

Jul 29, 2008 at 11:40 AM

Hi,

 

I tried developing a test case using bizunit designer.

Following is the XML file of the test case :

 

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<!--Test case created using BizUnit Designer-->
<TestCase testName="TestSample">
    <TestSetup>
        <TestStep assemblyPath="" ypeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep, Microsoft.Services.BizTalkApplicationFramework.BizUnit">
            <Directory>D:\biztalk\Execises\Sample\In</Directory>
            <SearchPattern>*.xml</SearchPattern>
        </TestStep>
    </TestSetup>
    <TestExecution>
        <TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileCreateStep, Microsoft.Services.BizTalkApplicationFramework.BizUnit">
            <SourcePath>D:\biztalk\Execises\Sample\Receive.xml</SourcePath>
            <CreationPath>D:\biztalk\Execises\Sample\In</CreationPath>
        </TestStep>
        <TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileValidateStep, Microsoft.Services.BizTalkApplicationFramework.BizUnit">
            <Timeout>2000</Timeout>
            <Directory>D:\biztalk\Execises\Sample\Out</Directory>
            <SearchPattern>*.xml</SearchPattern>
            <DeleteFile>false</DeleteFile>
        </TestStep>
    </TestExecution>
    <TestCleanup>
        <TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteStep, Microsoft.Services.BizTalkApplicationFramework.BizUnit">
            <FileToDeletePath>D:\biztalk\Execises\Sample\In</FileToDeletePath>
        </TestStep>
    </TestCleanup>
</TestCase>

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------

 

Now when i try to harness the test case it gives the following error in the test setup step in the FileDeleteMultipleStep

Access to the path 'D:\biztalk\Execises\Sample\In' is denied.

Please help me with the same and how to correct it or go around it.

 

Thanks & Regards,

Sudip Arora

Coordinator
Aug 12, 2008 at 9:11 PM
As per the error message, the process under which you are running the tests does not have the necessary priveledges to delete from D:\biztalk\Execises\Sample\In

Kevin