Bir VS2012 projede böyle meclisleri kullanmaya çalışıyorum:Kodlu UI testleri - UITesting sembolü çözemezse
: Benim testlerde kırmızı bir demet olsun Ancakusing Microsoft.VisualStudio.TestTools.UITesting;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Microsoft.VisualStudio.TestTools.UITest.Extension;
Bu kırmızıyla bile yerel olarak çalışabilir ve çalıştırabilirim, ancak mümkünse bu şeyleri çözmeyi istiyorum. Yapım makinem bunu şu hatalarla reddediyor:
DashboardTest.cs (7): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
DashboardTest.cs (9): The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.cs (9): The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.cs (10): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.Designer.cs (19): The type or namespace name 'UITest' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.Designer.cs (20): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.Designer.cs (132): The type or namespace name 'BrowserWindow' could not be found (are you missing a using directive or an assembly reference?)
DashboardTest.cs (10): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.cs (12): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.cs (13): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.Designer.cs (22): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
UIMap.Designer.cs (23): The type or namespace name 'UITesting' does not exist in the namespace 'Microsoft.VisualStudio.TestTools' (are you missing an assembly reference?)
DashboardTest.cs (18): The type or namespace name 'CodedUITest' could not be found (are you missing a using directive or an assembly reference?)
DashboardTest.cs (18): The type or namespace name 'CodedUITestAttribute' could not be found (are you missing a using directive or an assembly reference?)
Herhangi bir ipucu? Test projemdeki tüm referanslar local = true olarak ayarlandı.
UPDATE - VisualStudio.TestTools.UITesting öğesine bir başvuru ekleyerek yerel olarak çalışan referansları aldım, ancak CodedUITest özniteliği hala kırmızı ve yapı aynı hatalarla hala başarısız oluyor. Microsoft.VisualStudio.QualityTools.CodedUITestFramework
Böyle aşağıdaki ekinde olarak başvurular eklemeniz gerekir
VS2012 Ultimate veya VS2012 Premium kullanıyor musunuz? Kodlanmış UI sadece bu IDE'lere çalışır. – neoscribe