Hi

run ccnet-service with a user account, and check 'allow interact with
desktop'
this could help.


with kind regards
Ruben Willems

On Mon, May 23, 2011 at 9:27 AM, srinivas a <[email protected]> wrote:

> Hi all,
>
> I am new to this forum. I want to extend My CCNet to run the coded UI
> test. I created some sample exe and prepared the coded UI tests by
> recording. Now I am trying to run the coded UI scripts. But CCNet is
> failing to run the script with the following error.
>
> <UnitTestResult executionId="d68c230f-c385-48c4-b46d-43772d2122cd"
> testId="c1410852-5e64-c5d5-55a8-511c793fd267"
> testName="CodedUITestMethod1" computerName="BANSRINIVASPC"
> duration="00:00:00.0786342"
> startTime="2011-05-20T17:44:25.2486258+05:30"
> endTime="2011-05-20T17:44:25.7341258+05:30" testType="13cdc9d9-
> ddb5-4fa4-a97d-d965ccfc6d4b" outcome="Failed"
> testListId="8c84fa94-04c1-424b-9868-57a2d4851a1d"
> relativeResultsDirectory="d68c230f-c385-48c4-b46d-43772d2122cd">
>      <Output>
>        <ErrorInfo>
>          <Message>Error calling Initialization method for test class
> TestProject1.CodedUITest3:
> Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To
> run tests that interact with the desktop, you must set up the test
> agent to run as an interactive process. For more information, see "How
> to: Set Up Your Test Agent to Run Tests That Interact with the
> Desktop" (http://go.microsoft.com/fwlink/?LinkId=159018)
> If you are running the tests as part of your team build, you must also
> set up the build agent to run as an interactive process. For more
> information, see "How to: Configure and Run Scheduled Tests After
> Building Your Application" (http://go.microsoft.com/fwlink/?
> LinkId=165924)</Message>
>          <StackTrace>    at
> Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
>   at
>
> Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.BeforeTestInitialize(Object
> sender, BeforeTestInitializeEventArgs e)
>   at
>
> Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs
> args)
>   at
>
> Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod()
> </StackTrace>
>        </ErrorInfo>
>      </Output>
>    </UnitTestResult>
>
> Please let me know , any thing wrong. I am executing as follows in my
> CCNET.
>        <tasks>
>      <exec executable="C:\RunCodedUITests.bat" />
>        </tasks>
>
> SRINIVAS A

Reply via email to