Coded UI test fails to close browser due to window title

Hi.  I am using Visual Studio 2012.
At the end of my test, I wish to close the browser (IE), but I am having issues because my application version is displayed in the Tab of the browser and this changes with every build.  When the test runs, the application cannot find the window because
of the Title.  Is there a way to ignore the title and close the browser?
The message in the stack trace is: Unable to find Windows Internet Explorer window with "my app version - Internet Explorer' in the title. -->Microsoft.VisualStudio.TestTools.UITest.Extension.UITestControlNot FoundException: The playback failed to
find the control with the given search properties. Additional Details:
TechnologyName: 'MSAA;
ControlType: 'Window'
Name: 'myapp 1.0.12344.0 - Internet Explorer'

Hi A Tester,
Since the coded UI tests use the search properties to find a control/window, so the real issue is that it couldn't find the control when your search property is dynamic. So one possible way, you could use other unique property as the search property.
About how coded UI test find a control:
http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
A similar thread, reference:
https://social.msdn.microsoft.com/Forums/en-US/a6263ca3-dc6b-461d-ae14-350fe5a1a817/unable-to-find-windows-internet-explorer-window-with-http?forum=vsautotest
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Pavilion G6-1203ey: Hard Disk Test FAILED, but can still boot into Windows

    Hello
    I have HP Pavilion G6-1203ey laptop. After installing Windows (7 ultimate, 64 bit) and some drivers on it and after several restarts, it hanged at Windows logo and I had to turn it off with power button. Then after turning it on, it gave me the option to repair problems which are preventing it from starting up, from there I let it to restore the computer to an earlier restore point and after a restart the Windows was working again. After that I decided to do a hard disk check just in case.
    The Hard Disk Self Test ended up with a message: Hard Disk 1 Full (305). Then I installed HP Unified Extensible Firmware Interface (UEFI) Support Environment and did hard disk from there. I chose the comprehensive test from the options, but it finished fairly quickly (in ~1 minute) with the following output:
    Testing Drive: 1
    Hard Disk SMART Check : PASSED
    Hard Disk Short DST : FAILED
    FAILURE ID : PTTU22-5T774L-MFPV4K-60S003
    PRODUCT ID : A5Q15EA#B1R
    Hard Disk 1
    Hard Disk Test : FAILED
    A bit more background:
    The previous owner told me that the original HDD was faulty which is why he replaced it with this one last year. He said that other than that there has been no problems with the laptop. The Windows is working right now and this HDD is quite new so I would not have expected any problems with it, but the results from the previously mentioned tests seem troubling. Is there a reason to worry?
    Thanks
    This question was solved.
    View Solution.

    Hi Alnuir,
    Welcome to the HP Support Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I read your post and looked into the failure ID that you posted regarding the failed Short DST test. That error is indicating a hard disk failure meaning that if it hasn't failed it might soon. If everything is working I would considering backing up your data on a regular basis just to be safe. You could have a local technician take a look at the hard drive to see how close it is to full failure.
    Thank you,
    Please click “Accept as Solution ” if you feel my post solved your issue.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Thank you,
    BHK6
    I work on behalf of HP

  • Linux Load test Fails to start agent due to authentication errors

    I have a brand-new install of 12.2.0.1.223 on a Linux machine.
    After the install I
    1) Created a user in the administrator application with the name of my Linux login and granted full permission to that user
    2) Logged in to the load testing tool as that user
    3) Imported an open script zip file (which just has a simple single GET URL call)
    4) Added that to a new scenario
    5) Attempted to run the test.
    When running the test, after 90 seconds it fails saying that there is an Error communicating with the Oracle Load Testing Agent Manager on oats-am://localhost:9001: Timed out after 90 seconds
    The AgentManager is running on localhost. But from the agentmanager_auth.log I see that the oats-agent user wasn't able to start the actual agent:
    2012-12-06 16:38:31,951 WARN [URL:t3://adc2201760.us.oracle.com:8088;Requestor Username: oats-agent;Requestor Key:71ec0e9e-ea8f-4f25-bd48-e6b6e0a15e62;Requestor Queue:oracle/oats/queue/AgentPoolNotificationQueue;Request ID:11;Request:startagent;] - authentication failed
    I haven't done anything with passwords other than specify the password on install. I did go into the WebLogic console as user oats and make sure that the user oats-agent is in the security realm and put in the same password that I used for the install. In the load testing tool, I also looked into setting the password for VU Agent Systems; there is of course one defined there for OLT Server/Localhost , though the user is JMSAdmin and the port is 9001 so I don't think will help with that the the oats-agent connecting via t3 to port 8088. If there is some place else to verify the oats-agent password in the load testing tool, I didn't see it.
    How to I get the oats-agent user the correct credentials?

    Hello
    Try to use OLT Agent Authentication Manager: <oats_install>/jdk/jre/bin/javaw -jar <oats_install>/agentmanager/AMAuthManager.jar
    and let us know
    JB

  • Integration with Matlab - tests fail

    I followed the instructions for MatLab integration
    http://help.adobe.com/en_US/Photoshop/11.0/WS62AB0C24-121F-401c-9097-ABCE350A075 Ba.html
    but some tests failed. Please explain
    Photoshop Extended
    Windows 7

    Are you running Photoshop in 64 bit?
    Try changing back to 32 bit.

  • In visual studio 2012 coded Ui test is not entering the URL

    Hi,
    When i try to run the recorded script it is opening the new tab but it is not entering the new URL in to tab. It is showing test has failed due to some stack trace error. I am new to coded UI test am learning it. Is it timing error i need to place some sleep
    time in between them?
    Thanks
    Prasanth
    Prasanth

    Hi Prasanth,
    Generally, the coded UI test is used to verify that the whole application, including its user interface, is functioning correctly. Coded UI Tests are particularly useful where there is validation or other logic in the user interface, for example in a web
    page. They are also frequently used to automate an existing manual test.
    In other words, we can use coded UI test to verify the UI control instead of verifying the URL.
    For more information:
    http://msdn.microsoft.com/en-us/library/dd286726(v=vs.110).aspx
    However, if you want to record script it is opening the new tab and then entering the new URL in to tab, I suggest you can use the Web Performance test to record and verify the request works correctly.
    Reference:
    Walkthrough: Recording and Running a Web Performance Test
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Connectivity Test Failed

    Hi, I recently installed Lync 2013 with Edge server in DMZ. I have rather annoying problem. I bought godaddy UCC cert. installed it on edge server (external cert). 
    The problem is that when I try to test connectivity (https://testconnectivity.microsoft.com/) for one user it passes and for the other 2 fails with error . So I don't change configuration at all, just user that is defined in AD (Users exist)
    Testing remote connectivity to Microsoft Lync server through the Lync Access Edge server sip.domain.com on port 5061 to verify user [email protected] can connect remotely.
    Specified remote connectivity test(s) to Microsoft Lync server failed. See details below for specific failure reasons.
     <label for="testSelectWizard_ctl12_ctl06_ctl03_tmmArrow">Tell
    me more about this issue and how to resolve it</label>
    Additional Details
    Couldn't sign in. Error: Error Message: The endpoint was unable to register. See the ErrorCode for specific reason..
    Error Type: RegisterException.
    Deregister Reason: None.
    Response Code: 404.
    Response Text: Not Found.
    Elapsed Time: 948 ms.

    Just one question I saw that Lync Access Edge Port can be changed. I can access via 5061 but via 443 I have a problem. It is probably ARR I have configured, but in general what I wanted to ask is will autodiscover will use 443?  So I can basically close
    5061 is that right ?
    Testing connectivity to the Lync Autodiscover Web Service server for a secure connection on port 443 to obtain the root token.
    Connectivity to the Lync Autodiscover Web Service test failed.
    Additional Details
    Elapsed Time: 1314 ms.
    Test Steps
    Attempting to test Autodiscover Web Service URL https://lyncdiscover.domain.com/Autodiscover/AutodiscoverService.svc/root.
    Autodiscover Web Service URL can't be contacted due to failure of the following tests:
    Additional Details
    Test Steps
    Attempting to resolve the host name lyncdiscover.domain.com in DNS.
    The host name resolved successfully.
    Additional Details
    Testing TCP port 443 on host lyncdiscover.domain.com to ensure it's listening and open.
    The port was opened successfully.
    Additional Details
    Testing the SSL certificate to make sure it's valid.
    The SSL certificate failed one or more certificate validation checks.
    Additional Details
    Test Steps
    The Microsoft Connectivity Analyzer is attempting to obtain the SSL certificate from remote server lyncdiscover.domain.com on port 443.
    The Microsoft Connectivity Analyzer wasn't able to obtain the remote SSL certificate.
    Additional Details
    The certificate couldn't be validated because SSL negotiation wasn't successful. This could have occurred as a result of a network error or because of a problem with the certificate installation.
    Elapsed Time: 262 ms.

  • Firefox 3.6.3 fails to close completely, leaving an open instance in Task Manager.

    Firefox 3.6.3 fails to close itself, leaving an open instance in Task Manager of Windows 7 x64 each time the browser is closed. The instance needs to be closed manually in order to successfully start new browser session. This seems to happen in OEM version of Windows 77. There are no issues with a retail version of the OS. The problem started with a fresh, new install of Windows 7 with no other software installed.
    == This happened ==
    Every time Firefox opened
    == Since the fresh installation of Windows 7 x64 OEM.

    Try to use "Firefox/File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit") to close Firefox if you are currently doing that by clicking the close X on the title bar.
    See "Hang at exit":
    *http://kb.mozillazine.org/Firefox_hangs
    See "Firefox hangs when you quit it":
    *https://support.mozilla.org/kb/Firefox+hangs

  • Getting hang/crash problem when I try to close browser window from applet

    I have a small Apllet that has a button that calls a Javascript function in the opening window, to close the window in which it is loaded.
    The Applet window is a PopUp window from one of my application's window. First time I start my application and load that Applet the button works fine. It calls the Javascript method and the Method closes the window using the self.close() method.
    But now if I open the applet window again and click on the button to close the windows, it hangs. I put in trace statements and saw that it hangs on JSObject.getWindow() window.
    I am using JDK Plugin 1.4.2_07 and 5.0 , if I work out on IE browser, it works fine.But when I use firefox or mozilla it gives problem of hanging/crashing.
    Note that in case of 1.4.2_07 this problem experienced some times but in case of 5.0 it gives always for other than IE browser.
    Please, if somebody could give me some clue about why this would happen, I will really appreciate that. and code related to this is given below
    import javax.swing.JApplet;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import netscape.javascript.JSObject;
    public class TestApplet extends JApplet implements ActionListener{
    protected JButton closeButton = null;
    protected JSObject win = null;
    private JFrame frame = null;
    private boolean alreadyClosed = false;
    public void init(){
    this.win = JSObject.getWindow(this);
    this.closeButton = new JButton("Close Browser Window");
    this.add(this.closeButton);
    this.closeButton.addActionListener(this);
    frame = new JFrame("Test Frame");
    frame.setSize(300, 400);
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.out.println("windowClosing");
    alreadyClosed = true;
    TestApplet.this.stop();
    frame.show();
    public void actionPerformed(ActionEvent ae){
    stop();
    public void stop() {
    if (!alreadyClosed) {
    alreadyClosed = true;
    frame.dispose();
    closeLaunchedBrowser();
    System.gc();
    System.runFinalization();
    private void closeLaunchedBrowser() {
    final TestApplet thisObject = this;
    Runnable r = new Runnable() {
    public void run() {
    try {
    JSObject win = (JSObject)JSObject.getWindow(thisObject);
    if (win != null && win.toString() != null) {
    //win.eval("top.opener=self;self.close();");
    //win.call("close", null);
    win.eval("self.close();");
    } catch (Exception e) {
    Thread t = new Thread(r);
    t.start();
    Thanks.

    I am waiting for any reply. I have tried for all these below options still I am getting Problem. I heard this is because of javascript, it wont call methods more times .Thats
    why I need other than JSObject or java script solution.If some one know anything about this or any modifications I have to made for the below options to avoid that problem please let me know.
    // URL durl = new URL(thisObject.getCodeBase(), "test/CloseMe.htm");
    // System.out.println("URL :" + durl.toString());      
    // thisObject.getAppletContext().showDocument(durl);
    //     thisObject.getAppletContext().showDocument(new URL("javascript:window.close();"), "_self");
    //win.eval("top.opener=self;top.close();");
    //win.call("close", null);
    //Object[] args = { "close", new Integer(50) };
    // win.call("setTimeout", args);
    //win.eval("setTimeout("close", new Integer(50));");
    If it is the problem of JRE I just need it should work on 1.4.2_01 or higher.
    thanks.

  • [svn] 1013: Bug: LCDS-180 - [WebLogic 10.1 on Suse9] MxUnit Dynamic destination "SecurityEmployeeUser" test fails with a NullPointerException

    Revision: 1013
    Author: [email protected]
    Date: 2008-03-28 17:24:25 -0700 (Fri, 28 Mar 2008)
    Log Message:
    Bug: LCDS-180 - [WebLogic 10.1 on Suse9] MxUnit Dynamic destination "SecurityEmployeeUser" test fails with a NullPointerException
    QA: Yes
    Doc: No
    Details:
    This prevents the NPE but for non-servlet endpoints you need to be sure to define your users/roles in Weblogic's default security realm. The test was failing because login was failing, most likely because the regression server wasn't fully configured.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-180
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/weblogic/flex/messaging/security/WeblogicLoginComm and.java

  • The Coded Ui Test Method is runnung in Single Thread Apartment(STA) Mode of COM

    Hi,
    when running tests with CUIT,and after a timeout in the previous tests we noticed the following error:
    lass Initialization method TestSuite2.MyClassInitialize threw exception. Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: Microsoft.VisualStudio.TestTools.UITest.Extension.UITestException: The Coded UI Test is running in Single Thread Apartment (STA) mode of COM. In this mode, all the playback calls should happen from the TestMethod thread only and UITestControl should not be shared across TestMethods..
    Stack Trace:
    at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.ThrowExceptionIfCrossThreadAccess(IScreenElement uiElement)
    at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.InitPlayback()
    at Microsoft.VisualStudio.TestTools.UITesting.Playback.Initialize()
    at RapArtTest.Tests.Generic.GenericTestsTemplate.ClassInit(TestContext context)
    at TestSuite2.MyClassInitialize(TestContext context)Please note that we get this error if we have 10 tests failing with a timeout issue previously, after that all our tests suite fail with the same STA error.is there a way to workaround this ?

    Hi kaki2000,
    >>Please note that we get this error if we have 10 tests failing with a timeout issue previously.
    Which VS IDE did you use, VS2010 or high version?
    Do you run your coded UI tests in VS IDE or you add them to a load test? If you run your coded UI tests one by one in VS IDE, how about the result?
    >>The Coded UI Test is running in Single Thread Apartment (STA) mode of COM.  In this mode, all the playback calls should happen from the TestMethod thread only and UITestControl should not be shared across TestMethods..
    After a test method is finished, please call the clean playback. Then the later test method can reload UIMap and find exactly one on testing.
    Reference:
    http://blog.csdn.net/marryshi/article/details/8815025
    https://social.msdn.microsoft.com/Forums/en-US/ea5a2bd0-dbae-4256-b8c3-25d6eb45257a/codedui-single-thread-apartment-sta-mode-of-com-issue?forum=vsautotest
    In addition, do not call UI actions from the ClassCleanup method.
    Reference:
    http://stackoverflow.com/questions/16667350/coded-ui-test-single-thread-apartment-sta-error-occurred-while-executing-clas
    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites;
    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • [WPSL]Windows App Certification Kit Test Fails, binary is built in debug mode

    Hi,
    Windows phone 8.1 App fails Windows App Certification Kit test (WACK Test).
    It is producing below error in Debug configuration test,
    The debug configuration test detected the following errors:
     1)The binary Phone.Controls.dll is built in debug mode.
    Impact if not fixed:  Windows Phone Store doesn’t allow a debug version of an app. 
    How to fix:  Please make sure the app isn't linking to any debug versions of a framework and it is built with the release configuration
    And i got a solution like,
    Universal Apps (And Silverlight 8.1 Apps) have a different certification requirement. You cannot publish assemblies built in debug mode.
    You'll need to contact the NuGet authors of ICSharpCode and ImageTools and have them provide you with a version built in release mode.
    How to proceed with this solution. I'm very help full if any solution provided.
    Thanks and Regards,
    Ranjit.

    Hi Franklin,
    Thanks for your replay. I created my package in 'Release' mode only.
    Actually my project in windows phone 7.1 and i upgraded it to windows phone 8.1. In "Release" mode i created my build, but i'm having this error in WACK(Windows
    App Certification Kit) test.
    I'm able to run my App in windows phone 8.1, but if i submit it to store then will be rejected definitely.
    The debug configuration test detected the following errors:
     1)The binary Phone.Controls.dll is built in debug mode.
    The WACK test fails in debug configuration test, for "Phone.Controls.dll "
    it is built in debug mode.
    There should be a solution like, how to convert .dll to release mode.
    Please help me in this.
    Thanks 
    Ranjit.
    Hi ranjit,
    >>Actually my project in windows phone 7.1 and i upgraded it to windows phone 8.1
    Okay, this may be due to the upgrading process, could you tell us what the detailed version of your Visual Studio is(for example: Visual Studio 2013 Update 4)?
    You may need to create a new Windows Phone 8.1 Silverlight project and try to upload it to Store, if this problem can be resolved, I think this should be related to the upgrading process, you may need to start from scratch by recreating a WP8.1 SL project.
    To exclude environment facts, I would also suggest you retesting it on a new machine with the latest IDE.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Display test failed in BB virtual expert what to do please help cell is new 2 months old

    Dear All, 
    3 Months back i had purchased BBZ30. and today i had downloaded virtual expert software to run the health test. All features are working fine but display test failed. It is showing cracked. However my cell phone is working fine and even display is also fine. but due to this result i am really tensed. Please help what should i do..
    Sumit-

    Hello,
    Your next step would be warranty support, to have your device properly evaluated by a qualified technician. See your warranty service provider for that.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Coded UI Test now gets error about Newtonsoft.json not being found

    I have a simple coded ui test to log into an application. The test is data driven and uses data from TFS. We are using a TfsTestAgent user (that has admin privs) that is on both the server and the agent systems. When I execute the test, I see the following
    error:
    The unit test adapter failed to connect to the data source or to read the data.
    For more information on troubleshooting this error, see "Troubleshooting Data-Driven
    Unit Tests" (http://go.microsoft.com/fwlink/?LinkId=62412) in the MSDN Library.Error
    details: Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0,
    Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The
    system cannot find the file specified.
    The test run log (UITestLog.html) shows this:
    I, 2524, 81, 2015/03/24, 13:27:09.815, 14494724802, QTAgent32_40.exe, ExtensionFramework : Reading extensions from custom dir 'C:\Program Files (x86)\Common Files\Microsoft Shared\VSTT\12.0\UITestExtensionPackages'
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Acquiring m_runner.SyncRoot.
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Acquired m_runner.SyncRoot.
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.BeforeClassInitialize()
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.AfterClassInitialize()
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestExecuter.RunClassInitializeMethod: Released m_runner.SyncRoot.
    V, 2524, 81, 2015/03/24, 13:27:09.830, .\QTAgent32_40.exe, UnitTestRunner.ExecuteDataDrivenTest: started.
    V, 2524, 8, 2015/03/24, 13:27:10.377, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.BeforeClassCleanup
    V, 2524, 8, 2015/03/24, 13:27:10.377, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.AfterClassCleanup
    V, 2524, 8, 2015/03/24, 13:27:10.393, .\QTAgent32_40.exe, CodedUITest : CodedUITestExtension.Dispose()
    I, 2524, 8, 2015/03/24, 13:27:10.393, .\QTAgent32_40.exe, UnitTestRunner.Dispose.
    The interesting thing is that Newtonsoft.Json (aka Json.Net) isn't used in the project at all or any referenced libraries. From the above log, it appears to me that this is outside of the coded UI test since it isn't registered as a script exception.
    The question then is, why did this start after changing the user that the Coded UI system runs tests under? I have tried reverting it back to the original user via a snapshot (and change the host environment in Test Manager). Doing so gives me the same result
    above.
    I'm looking for any ways to debug this further or ideas for fixes. I have tried the following as failed fixes:
    including Newtonsoft.Json in the solution
    copy over the library to c:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies
    revert to a known working build and run it (still get same error)
    Big thing to note is that last item. I had builds that I know worked and worked on multiple machines. Using those builds on any machine produces the same result. What could cause that error message and be machine/test code independent?

    Hi JasonUnrein,
    >> Could not load file or assembly 'Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The system cannot find the file specified.
    Based on the error message and your description, I assume that the issue might be caused by your application instead of the Coded UI test. Were the project which you test a Web Api project? If so, I would recommend you log into the application directly without
    the Coded UI project to check whether the application could work correctly. The link below might be useful to you:
    # Could not load file or assembly 'Newtonsoft.Json, Version=3.5.0.0
    http://stackoverflow.com/questions/6176841/could-not-load-file-or-assembly-newtonsoft-json-version-3-5-0-0
    >> Big thing to note is that last item. I had builds that I know worked and worked on multiple machines. Using those builds on any machine produces the same result.
    In my option, I will recommend you create a new web project and a new Coded UI test project to test instead of using the original project.
    If I misunderstood you, please feel free to let me know.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • MSTest Coded UI Test Could not load file or assembly Microsoft.VisualStudio.TestTools.UITesting

    Hi,
    I have created some Coded UI Tests in a Test Project using Visual Studio Premium 2013 (Version 12.0.30723.00 Update 3).
    Those Coded UI tests run just fine when I run them from inside Visual Studio (Go to Test Explorer and hit Run).
    However If I try to run them using MSTest.exe or VSTest.Console.exe I am not able to.
    When I run the tests using MSTest I get the following error:
    Loading CodedUITests.dll...
    CodedUITests.dll
    Unable to load the test container 'CodedUITests.dll' or one of its dependencies.
     Error details: System.IO.FileNotFoundException: Could not load file or assembly
     'Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0, Culture=neutral,
     PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot
    find the file specified.
    If I run them using VSTest.Console.exe I get the following error:
    Starting test execution, please wait...
    Warning: Unable to load types from the test source 'C:\PathToTestProject\bin\Debug\CodedUITests.dll'.
    Some or all of the tests in this source may not be discovered. If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit
    http://go.microsoft.com/fwlink/?LinkId=238340 for more info. Error details: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0,
    Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified..
    Warning: No test is available in CodedUITests.dll. Make sure that installed test
     discoverers & executors, platform & framework version settings are appropriate
    and try again.
    I try to find this issue online and was not able to find anyone with a similar problem.I am not sure if there is something corrupted with my VS
    instalation that may be causing this problem.
    Could someone help me with this?
    Thanks!
    Brazeta
    PS: This path "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\PublicAssemblies" exists in the machine where I have VS and where I am executing the MSTest command. This path contains all the Microsoft test assemblies, including "Microsoft.VisualStudio.TestTools.UITesting.dll"

    Hi Edward
    >> Do you mean that Coded UI tests run fine in VS, but failed with MSTest?
    Yes, that is exactly the case!
    >>Before you run with MSTest, have you changed the Coded UI project?
    No. In Visual Studio I can run the Coded UITests by going to Text Explorer and click the run button. Without changing anything else, if I try to run them in using mstest or vstest.console I am not able to
    >>Did you change the project after you run in vs?
    No. The project did not change at all
    >> Could you share us the MSTest command?
    I run the commands in "Developer Command Prompt fro VS2012". the commands are:
    MSTEST:
    mstest /testcontainer:CodedUITests.dll
    Microsoft (R) Test Execution Command Line Tool Version 11.0.50727.1
    Copyright (c) Microsoft Corporation. All rights reserved.
    Loading CodedUITests.dll...
    CodedUITests.dll
    Unable to load the test container 'CodedUITests.dll' or one of its dependencies.
     Error details: System.IO.FileNotFoundException: Could not load file or assembly
     'Microsoft.VisualStudio.TestTools.UITesting, Version=12.0.0.0, Culture=neutral,
     PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannotfind the file specified.
    VSTEST.CONSOLE
    vstest.console CodedUITests.dll
    Microsoft (R) Test Execution Command Line Tool Version 11.0.60315.1
    Copyright (c) Microsoft Corporation.  All rights reserved.
    Starting test execution, please wait...
    Warning: Unable to load types from the test source 'C:\MyProjects\CodedUITests\bin\Debug\CodedUITests.dll'.
    Some or all of the tests in this source may not be discovered.
    If you are running unit tests for Windows Store apps and referencing custom WinMD type then please visit
    http://go.microsoft.com/fwlink/?LinkId=238340 for more info.
    Error details: System.IO.FileNotFoundException:
    Could not load file or assembly 'Microsoft.VisualStudio.TestTools.UITesting,
    Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies.
    The system cannot find the file specified..
    Warning: No test is available in CodedUITests.dll. Make sure that installed test
     discoverers & executors, platform & framework version settings are appropriate
    and try again.
    Information: Additionally, you can try specifying '/UseVsixExtensions' command i
    f the test discoverer & executor is installed on the machine as vsix extensions
    and your installation supports vsix extensions. Example: vstest.console.exe myTe
    sts.dll /UseVsixExtensions:true
    >>Have you set the platform (x64 or x32) in your test? If so, I think you could refer the link below:
    The selected platform is AnyCPU
    >>Was your UITesting in another dll? If so, you could refer the link below:
    The tests are all in the CodedUITests dll. All tests were created inside a test project (called CodedUITests, they run ok if I execute them in VS but the show the abouve error if I run them using the Developer Command Prompt for VS2012).
    I didn´t mention this before but I DO NOT have test controller and test agents installed in my PC! I just have Visual Studio installed (not 100% sure if I need the agent to run the UI Tests in the same PC where I have VS installed).
    I hope this information may be usefull,
    Best Regards,
    José Brazeta
    PS:
    I just try to create a very simple UI Test in another PC where I have Visual Studio 2013 Ultimate (Versio12.0.30723.00 Update 3).
    Using VS I created a new Solution with just 1 project (Coded UI Test Project) and recorded a very simple test (on IE and at the google page search for Coded UI Test and hit the search button).
    After compiling the Coded UI Test project in VS I can see the test in Test Explorer and If I run the test it all goes ok.
    Using the Developer Command Prompt for VS2012 if I navigate the the "Debug" folder of my project none of the following scripts will work:
    mstest /testcontainer:CodedUITestProject1.dll
    vstest.console CodedUITestProject1.dll
    I get the same error that I show in the bigining of this post.

  • Error whil re-playing the coded ui test cases for internet explorer download window

    Hi,
    I have to create a test automation project which opens the IE and downloads file.
    I have recorded all the steps to download the file to local folder.
    My requirement is I need to download the file to a specific folder and compare those files.
    When I tried to replay the recorded step I am getting error while changing the folder location.
    I can change the file name dynamically but cant change the folder path as the click event of address bar fails.
    I have recorded below steps
    Click on Save drop down
    Click on Save As
    Pop up opens as shown
    I can change the file name at run tims by passing the file name as parameter and it is accepting
    but when I try to change the address it thorws error stating could not find the control with given search properties. I have to pass the folder path as parameter to the test case.
    Please help me in resolving this error.
    Thanks,
    Meenakshi Nagpal
    not able to add images to this post

    Hi Meenakshi Nagpal,
    >>When I tried to replay the recorded step I am getting error while changing the folder location.
    According to your description, could you please tell me how you record these UI actions for coded UI test? Is it handing code or using coded UI test Builder?
    Could you please tell me if you are recording these actions and then you change the folder location or you change the folder location by handing code after you finished these actions recording and then get the error?
    About your issue, I tried to download file to a specific folder using coded UI test builder, I found that it can playback successfully.
    If you are hand coding your coded UI test, I suggest that you can try to record these steps using Coded UI Test Builder. Then
    generate the code and then try to playback check if you can download the file into the
    specific folder.
    In addition, about this error: could not find the control with given search properties. I doubt that the target control did not be found by the searchproperties.
    So I suggest you can try to add more searchproperties for the target control check this issue again.
    I suggest you can also use DrawHighlight Method to check if the correct control is found
    before you perform actions on the target control.
    I find a blog about how to troubleshooting Record and Playback issues in Coded UI Test, you can refer it.
    http://blogs.msdn.com/b/tapas_sahoos_blog/archive/2011/11/07/troubleshooting-record-and-playback-issues-in-coded-ui-test.aspx
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • Error ,message into table

    Hi all, i am trying to put a error message into a table...any idea how i can get this without doing move 'matnr & is in error' into my table? thanx

  • ID3 tags did not transfer over

    I'm in the process of transferring my files from my Windows 7 computer (with iTunes v11.2.2.3) into iTunes on my new Mac (OS X 10.9.4). On my Windows machine all of my music files are well-tagged with lots of metadata. After I imported all of my file

  • Portal dev server , dispatcher and server0 not start

    Hello, I have made an exact copy of our production server to create a development server. I have installed it but the dev server not start. The jcontrol.exe stay yellow and the dispatcher and the server0 stay on "Starting framework". No error in the

  • Using 2 Java Plugins in Firefox

    Hi This goes back to an archived thread that Wesley was gracious enough to answer but that I churlishly did not respond to at the time - my only excuse is that I was working on a production system migration and found a different workaround - the ques

  • Unlocking Password to edit PDF Problem

    Good day, We have a problem with unsecuring our documents so that we can edit it. Example: We create a document for a client and use our action or security options so that the client can't edit the document. We noticed that a minor correction needs t