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

Test Studio Test Error?

2 Answers 40 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
CVue
Top achievements
Rank 1
CVue asked on 25 Aug 2015, 09:24 PM

Running a test in VS plugin runs fine, but as soon as i load my project into test studio standalone and try to run the same test, i get this error:

 

------------------------------------------------------------
'8/25/2015 4:21:20 PM' - Executing test: 'thetest'
'8/25/2015 4:21:20 PM' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2015.2.723.0'.
'8/25/2015 4:21:20 PM' - Starting execution....
'8/25/2015 4:21:21 PM' - Detected custom code in test. Locating test assembly: ​test.dll.
'8/25/2015 4:21:21 PM' - Assembly Found: C:\test.dll
'8/25/2015 4:21:21 PM' - Loading code class: ''.
'8/25/2015 4:21:21 PM' - Failure detected during execution. Details:
------------------------------------------------------------
'8/25/2015 4:21:21 PM'
   at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
   at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
   at System.Reflection.Assembly.GetType(String name)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureTypeExists(Assembly assm, String typeName)
   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(ExecuteTestCommand command)
------------------------------------------------------------
'8/25/2015 4:21:21 PM' - Test completed!- System.ArgumentException: String cannot have zero length.​

2 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 28 Aug 2015, 10:37 AM
Hello Cher,

Could you please provide us with your project so we can try reproducing this behavior on our end?

With the project I am using I am not able to get a reliable repro.

Please note that if you are going to submit your project you need to open a ticket where all the provided information remains private.

Regards,
Ivaylo
Telerik
 
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
 
0
Pieter
Top achievements
Rank 1
answered on 02 Oct 2015, 05:46 AM

Hi CVue and Ivaylo,

 Hope you are well, and hope you resolved this issue by now, I ran into this issue yesterday where my tests would not compile/ be able to run due to the same error CVue is getting.

So if anyone ever finds this post here is what I did to resolve this.

Just try to re-add the reference to the ArtOfTest.webaii.dll.  While debugging I noticed that even tho the reference was there, it was not picking it up properly, now I do not know if this is a general Reference Issue form VS or if it is a telerik test studio Issue but re-adding the reference resolved my error.

I hope this helps to whomever gets this error.

Regards

Tags
General Discussions
Asked by
CVue
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Pieter
Top achievements
Rank 1
Share this question
or