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

Custom code step will block the test with notification:

4 Answers 94 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Seff
Top achievements
Rank 1
Seff asked on 04 Sep 2012, 02:31 AM
hi,

i have an error when add a script step or custom a step by code. after click run, i get the error log:

: Line 0: (CS1703) An assembly with the same identity 'Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has already been imported. Try removing one of the duplicate references.



but if it is a new and clean test, it's ok for running. the error will be shown after an empty "Script test" added.




Overall Result: NotRun
------------------------------------------------------------
'9/4/2012 10:26:48 AM' - Using .Net Runtime version: '4.0.30319.269' for tests execution.
'9/4/2012 10:26:48 AM' - Starting execution....
------------------------------------------------------------
------------------------------------------------------------
'9/4/2012 10:26:57 AM' - Using 'InternetExplorer' version '7.0' as default browser.
------------------------------------------------------------
'9/4/2012 10:26:57 AM' - Overall Result: NotRun
'9/4/2012 10:26:57 AM' - Duration: [0 min: 0 sec: 109 msec]
------------------------------------------------------------
'9/4/2012 10:26:59 AM' - Test completed!


OS: XP sp3
Telerik test studio version:2012.1.719
test project is in TFS2010. and it is a C# project.


could you help? thanks a lot!

4 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 04 Sep 2012, 07:27 AM
Hello Seff,

Simply remove the reference to Microsoft.VisualStudio.QualityTools.UnitTestFramework from Project Settings > Script Options. This should resolve the problem.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Seff
Top achievements
Rank 1
answered on 04 Sep 2012, 07:41 AM
hi Plamen,

thanks a lot. that issue solved.

BTW, how will be this option added?
0
Plamen
Telerik team
answered on 04 Sep 2012, 08:20 AM
Hi Seff,

I am glad to hear that the issue is resolved.

You test project was probably created in Visual Studio. When creating the project VS assumes you will be creating one of their coded unit tests and will automatically add a reference to that dll. As a side effect, a reference to this file is added to our settings.aiis file and when you open the project in Test Studio you'll see that reference in the Project Settings.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Seff
Top achievements
Rank 1
answered on 04 Sep 2012, 08:40 AM
thanks again~
Tags
General Discussions
Asked by
Seff
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Seff
Top achievements
Rank 1
Share this question
or