I converted a step to a coded step in my test file 'Policy_Coverage'. When attempting to execute, I receive the errors below, all of which are in a different test file 'GL_Smoke_Driver'. The execution worked fine before I converted to code, and when I remove the Policy_Coverage.cs file, execution is normal again. I double checked the assemblies and they are all there. What the heck happened?
j:\...\GL_Smoke_Driver.tstest.cs: Line 9: (CS0234) The type or namespace name 'Data' does not exist in the namespace 'System' (are you missing an assembly reference?)
j:\...\GL_Smoke_Driver.tstest.cs: Line 11: (CS0234) The type or namespace name 'Xml' does not exist in the namespace 'System' (are you missing an assembly reference?)
j:\...\GL_Smoke_Driver.tstest.cs: Line 78: (CS0246) The type or namespace name 'SqlConnection' could not be found (are you missing a using directive or an assembly reference?)
Many thanks,
Alan
7 Answers, 1 is accepted
Thank you for the update! While I don't like things that miraculously fix themselves, I'm also a firm believe in "if it ain't broke, don't fix it". We'll be here if you need further assistance.
Greetings,Cody
the Telerik team
Test Studio Trainings
I am getting this error again after upgrading a script from the old version 2012.1.411 to the new version 2012.1.719 on two scripts with only the three errors duplicated as above (Data, Xml, SqlConnection). The other scripts received the update perfectly. Let me know if you think an assembly dropped off or was renamed, etc. I'll zip the project into a support ticket if needed.
Thanks!
First please try adding assembly references to System.Data and System.Xml as shown in the attached screen shots. Be sure you're pulling from the folder C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0.
If that doesn't help then yes please do send me the entire project for analysis.
Cody
the Telerik team
Test Studio Trainings
Thanks again for the help!
It's possible this was caused when we upgraded Test Studio to use .NET 4.0 instead of .NET 3.5. If you added the .NET 3.5 assemblies in the past then upgraded Test Studio to a .NET 4.0 version, the old .NET 3.5 assemblies would not be compatible and taken out. In the scenario you have to manually add the .NET 4.0 equivalent assemblies back in.
Regards,Cody
the Telerik team
Test Studio Trainings