This is a migrated thread and some comments may be shown as answers.

Good TestList fails when run thru scheduler.

2 Answers 109 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maria McIntire
Top achievements
Rank 1
Maria McIntire asked on 08 Dec 2010, 12:21 AM
Hello,

I have a TestList that passes consistently when running thru the WebUI application, but fails when using my local PC as an execution server.  Five out of eight test failed.  The error on the failed test was similar to this:
 
'12/7/2010 5:04:42 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 FT_ACache_Run_Me_First..ctor()
The action that failed was:
LinkDemand
The assembly or AppDomain that failed was:
TestProject1, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
The Zone of the assembly that failed was:
Intranet
The Url of the assembly that failed was:
file://fl27fil03/groups/test/CSRNG Automated TestProject1/Results/Non SR Tests - 129362366518254813/bin/TestProject1.DLL
   --- 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)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, ExecutionType exeType, Int32 lastStepIndex, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'12/7/2010 5:04:42 PM' - Test completed!

In the attachment, you can see the TestList failed twice at 4:49pm and 5:04pm.  These were scheduled test runs.  I ran the test list manually at 4:52 to verify it would work.  It passed.

Any help you can provide is appreciated.
thanks,
maria.

2 Answers, 1 is accepted

Sort by
0
Maria McIntire
Top achievements
Rank 1
answered on 08 Dec 2010, 09:53 PM
Hi.  I was able to resolve this issue by registering the Results folder. Looks like the entire test directory is copied into the Results folder when TestLists are run thru the scheduler.   Sorry, don't know the exact specifics on this fix.  I was working with some notes from a previous developer here and modified his batch files accordingly.  It worked. 

--thanks.
 
0
Stoich
Telerik team
answered on 09 Dec 2010, 01:20 PM
Hi Maria,

   I'm glad to hear you've managed to resolve the issue.
 The scheduling feature is still brand new so any and all question are more than welcome. We're hard at work on detailed documentation which, once ready, will guide you through the whole process of using the Scheduling feature.

Meanwhile, don't hesitate to contact us again if you have more questions!

Kind regards,
Stoich
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Maria McIntire
Top achievements
Rank 1
Answers by
Maria McIntire
Top achievements
Rank 1
Stoich
Telerik team
Share this question
or