This question is locked. New answers and comments are not allowed.
I created a new project and added a few simple steps. Runs fine.
I add a coded step and my project doesn't compile because it can't find type Pages.
I include Pages.g.cs to my project and I can compile but the test won't run due to the following error:
------------------------------------------------------------
'7/9/2011 1:29:32 PM' - Starting execution....
'7/9/2011 1:29:37 PM' - Detected custom code in test. Locating test assembly: OsC.Web.UiTests.dll.
'7/9/2011 1:29:37 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/9/2011 1:29:37 PM' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: C:\Development\Engineering\Main\UiTests\OsC\Web.UiTests\OsC.Web.UiTests\OsC.Web.UiTests\bin\Debug\OsC.Web.UiTests.dll
If you are running VS 2010, make sure Deployment is checked in your .settings file (in the solution items)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/9/2011 1:29:38 PM' - Test completed!
I add a coded step and my project doesn't compile because it can't find type Pages.
I include Pages.g.cs to my project and I can compile but the test won't run due to the following error:
------------------------------------------------------------
'7/9/2011 1:29:32 PM' - Starting execution....
'7/9/2011 1:29:37 PM' - Detected custom code in test. Locating test assembly: OsC.Web.UiTests.dll.
'7/9/2011 1:29:37 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'7/9/2011 1:29:37 PM' - System.IO.FileNotFoundException: Unable to find the code behind assembly. Please make sure you have compiled your code behind without errors before attempting to execute the test. Looking for: C:\Development\Engineering\Main\UiTests\OsC\Web.UiTests\OsC.Web.UiTests\OsC.Web.UiTests\bin\Debug\OsC.Web.UiTests.dll
If you are running VS 2010, make sure Deployment is checked in your .settings file (in the solution items)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'7/9/2011 1:29:38 PM' - Test completed!