I executed my test without a problem, then I attempted to use the "customized code in step" option to allow me to test the date on screen against the current date.
I had trouble compiling the code I added and at the time I did not want to fuss with it, so I removed the code and then I deleted the step. Now when I go to run the script none of the steps run and I get the following message:
------------------------------------------------------------
'5/31/2011 3:36:56 PM' - Starting execution....
'5/31/2011 3:37:02 PM' - Detected custom code in test. Locating test assembly: Lending.dll.
'5/31/2011 3:37:02 PM' - Assembly Found: X:\Akcelerant Software\Operations\QA Testing\Automation\Framework\Lending\bin\Lending.dll
'5/31/2011 3:37:02 PM' - Loading code class: 'Lending_Calclator'.
'5/31/2011 3:37:02 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'5/31/2011 3:37:02 PM' - System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Security.SecurityException: That assembly does not allow partially trusted callers.
at Lending_Calclator..ctor()
The action that failed was:
LinkDemand
--- End of inner exception stack trace ---
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
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)
------------------------------------------------------------
'5/31/2011 3:37:03 PM' - Test completed!
Any help you could give would be appreciated.
Thanks