6

मैं एक VS2012 परियोजना में इस तरह विधानसभाओं उपयोग करने के लिए कोशिश कर रहा हूँ:कोडित यूआई परीक्षण - UITesting प्रतीक का समाधान नहीं कर

using Microsoft.VisualStudio.TestTools.UITesting; 
using Microsoft.VisualStudio.TestTools.UnitTesting; 
using Microsoft.VisualStudio.TestTools.UITest.Extension; 

हालांकि मैं अपने परीक्षण में लाल का एक समूह मिल:

enter image description here

मैं इस लाल के साथ भी स्थानीय रूप से निर्माण और चला सकता हूं, लेकिन यदि संभव हो तो मैं यह सामान हल करना चाहता हूं। मेरी बिल्ड मशीन निम्न त्रुटियों के साथ इसे अस्वीकार करती है:

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?) 

कोई सुझाव? मेरे परीक्षण प्रोजेक्ट में सभी संदर्भ स्थानीय = सत्य की प्रतिलिपि बनाने के लिए सेट हैं।

अद्यतन - मुझे VisualStudio.TestTools.UITesting का संदर्भ जोड़कर स्थानीय रूप से काम करने वाले संदर्भ मिल गए हैं, लेकिन कोडेडयूइटएस्ट विशेषता अभी भी लाल है और बिल्ड अभी भी एक ही त्रुटियों के साथ विफल रहता है। Microsoft.VisualStudio.QualityTools.CodedUITestFramework

+3

क्या आप वीएस2012 अल्टीमेट या वीएस2012 प्रीमियम का उपयोग कर रहे हैं? कोडित यूआई केवल आईडीई पर इन पर चलता है। – neoscribe

उत्तर

7

आप के लिए एक संदर्भ जोड़ने की जरूरत मेरे बिल्ड सर्वर पर "कोडित यूआई टेस्ट" घटक स्थापित करने के लिए विजुअल स्टूडियो इंस्टालर। यह "डिबगिंग और परीक्षण" अनुभाग के तहत "व्यक्तिगत घटक" टैब पर पाया जाता है।

+2

वास्तव में जो मैं खोज रहा था, विशेषता पर नामस्थान भ्रामक है :) – squirrel

+0

धन्यवाद, काम किया!)) – BMaximus

7

आप इस तरह के निम्नलिखित अनुलग्नक में के रूप में संदर्भ जोड़ने की जरूरत:

enter image description here

+2

मुझे यहां पहचाने गए सभी संदर्भों को जोड़ने की आवश्यकता है, इसलिए यह उपयोगी जानकारी है। धन्यवाद –

+5

wtf ये प्रोजेक्ट बनाते समय इन्हें स्वचालित रूप से जोड़ा नहीं जाता है !!! –

0

VS2017 में मैं का इस्तेमाल किया था

संबंधित मुद्दे