2014-07-23 10 views
8

के साथ कोडित यूआई टेस्ट मैं टीमसीटी का उपयोग कर वीएम पर डब्ल्यूपीएफ एप्लीकेशन (कोडित यूआई टेस्ट) का परीक्षण करने के लिए एमएसटीएस्ट चलाता हूं। मैं पहले से ही इंटरैक्टिव प्रक्रिया के रूप में परीक्षण एजेंट स्थापित लेकिन मैं Teamcity लॉग में इस त्रुटिटीमसिटी

Error calling Initialization method for test class Squarebit.Apms.Terminal.Wpf.Test.CodedUITest1: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: To run tests that interact with the desktop, you must set up the test agent to run as an interactive process. For more information, see "How to: Set Up Your Test Agent to Run Tests That Interact with the Desktop" (http://go.microsoft.com/fwlink/?LinkId=255012) 
If you are running the tests as part of your team build, you must also set up the build agent to run as an interactive process. For more information, see "How to: Configure and Run Scheduled Tests After Building Your Application" (http://go.microsoft.com/fwlink/?LinkId=254735) 
    at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize() 
    at Microsoft.VisualStudio.TestTools.UITesting.CodedUITestExtensionExecution.BeforeTestInitialize(Object sender, BeforeTestInitializeEventArgs e) 
    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecution.RaiseBeforeTestInitialize(BeforeTestInitializeEventArgs args) 
    at Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestExecuter.RunInitializeMethod() 

तुम मुझे इस समस्या को हल या Teamcity का उपयोग कर कोडित यूआई टेस्ट चलाने के लिए कुछ तरीके की सिफारिश मदद कर सकते हैं बार आ रही है?

+3

सीयूआईटी परीक्षण सेवा खाते से नहीं चल सकते हैं क्योंकि उन्हें डेस्कटॉप विंडिंग एपीआई सेट तक पहुंच की आवश्यकता है। गैर-सेवा खाते के रूप में टीमसिटी एजेंट को सेटअप करने के लिए कृपया http://jake.ginnivan.net/teamcity-ui-test-agent/ में "टीमसिटी बिल्ड एजेंट स्थापित करना" अनुभाग देखें। –

+0

अरुण धन्यवाद, यह – Gintama

+0

@ अरुणएम काम करता है - आपको अपनी टिप्पणी को एक उत्तर के रूप में कॉपी करना चाहिए ताकि गिंटमा इसे सही उत्तर के रूप में चिह्नित कर सके। –

उत्तर

7

कोडित यूआई परीक्षण (सीयूआईटी) एक सेवा खाते से नहीं चलाया जा सकता है क्योंकि उन्हें डेस्कटॉप विंडिंग एपीआई सेट तक पहुंच की आवश्यकता है।

कृपया गैर-सेवा खाते के रूप में टीमसिटी एजेंट को सेटअप करने के लिए http://jake.ginnivan.net/teamcity-ui-test-agent/ में Installing the teamcity build agent अनुभाग देखें।

+0

मैं टीसी पर जाने से पहले कुछ ऐसा करने की कोशिश कर रहा हूं। मैं इसे दूरस्थ रूप से निष्पादित एक साधारण बैच स्क्रिप्ट का उपयोग करके काम करना चाहता हूं। स्थानीय स्तर पर ठीक से चलता है, सीयूआईटी, सभी उम्मीद के अनुसार पास करते हैं। वे विफल हो जाते हैं जब मैं उन्हें दूरस्थ रूप से निष्पादित करने का प्रयास करता हूं। मैंने अभी तक इंटरैक्टिव प्रक्रिया की बात नहीं देखी है। – IbrarMumtaz