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.

Similar Messages

  • 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.

  • Cannot connect data source to the coded UI test

    Hi,
    In my login page I have three types of users and I tried to connect data source to my coded UI test by giving credentials of these three types of users.
    Here is my data file
    data.csv
    username,password
    admin,1
    Internal,1
    External,1
    I tried to connect this data file to the following code.
    namespace BugTracker
        /// <summary>
        /// Summary description for _2_LogIn
        /// </summary>
        [CodedUITest]
        public class _2_LogIn
            public _2_LogIn()
            [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\data.csv", "data#csv", DataAccessMethod.Sequential), DeploymentItem("BugTracker\\data.csv"),
    TestMethod]
            public void CodedUITestMethod1()
                //this.UIMap.EnterUserName();
                this.UIMap.EnterUserNameParams.UIUserNameEditText = TestContext.DataRow["username"].ToString();
                //this.UIMap.EnterPassword();
                this.UIMap.EnterPasswordParams.UIPasswordEditPassword = TestContext.DataRow["password"].ToString();
                this.UIMap.ClickOK();
                this.UIMap.ClickLogout();
    This runs exact 3 times as I expected, but by only clicking on OK button. It doesn't type username and password.
    this gives the following error.
    C:\Users\Manuli\Desktop\Projects\CHRONUSS SUPPORT SYSTEM-Bug Tracker\Test Projects\BugTracker\TestResults\Manuli_XW66002-PC 2015-02-25 10_45_28\In\b8a3c8c3-b148-4aaa-84bb-6b65dfd63304\XW66002-PC\CodedUITestMethod1_0.png
    C:\Users\Manuli\Desktop\Projects\CHRONUSS SUPPORT SYSTEM-Bug Tracker\Test Projects\BugTracker\TestResults\Manuli_XW66002-PC 2015-02-25 10_45_28\In\b8a3c8c3-b148-4aaa-84bb-6b65dfd63304\XW66002-PC\CodedUITestMethod1_1.png
    C:\Users\Manuli\Desktop\Projects\CHRONUSS SUPPORT SYSTEM-Bug Tracker\Test Projects\BugTracker\TestResults\Manuli_XW66002-PC 2015-02-25 10_45_28\In\b8a3c8c3-b148-4aaa-84bb-6b65dfd63304\XW66002-PC\CodedUITestMethod1_2.png
    Please help.

    Hi,
    In my login page I have three types of users and I tried to connect data source to my coded UI test by giving credentials of these three types of users.
    I could pass the user name but, couldn't pass the password.
    [CodedUITest]
    public class _2_LogIn
    public _2_LogIn()
    [DataSource("Microsoft.VisualStudio.TestTools.DataSource.CSV", "|DataDirectory|\\data.csv", "data#csv", DataAccessMethod.Sequential), DeploymentItem("BugTracker\\data.csv"), TestMethod]
    public void CodedUITestMethod1()
    this.UIMap.EnterUserNameParams.UIUserNameEditText = TestContext.DataRow["username"].ToString();
    this.UIMap.EnterUserName();
    string testpassword = Environment.GetEnvironmentVariable("Password");
    this.UIMap.EnterPasswordParams.UIPasswordEditPassword = TestContext.DataRow["password"].ToString();
    this.UIMap.EnterPassword();
    this.UIMap.EnterPasswordParams.UIPasswordEditPassword = Playback.EncryptText(testpassword);
    this.UIMap.ClickOK();
    this.UIMap.ClickLogout();
    This gives the following error.
    Failed    00:00:21.4689002    0    Test method BugTracker._2_LogIn.CodedUITestMethod1 threw exception:
    Microsoft.VisualStudio.TestTools.UITest.Extension.DecodingFailedException: The following error occurred while attempting to decode encrypted text: Bad Data.

  • 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.

  • Coded UI - Test Results/Out - The binary files are getting copied to the TestResults/Out folder

    Hi,
    I am using Visual Studio 2013 for developing the Coded UI Automation Scripts.
    Whenever I execute a Coded UI Automation Script, the binary files are getting copied to the TestResults/Out folder.
    I do not want these binary files to be copied to OUT folder, and I have tried disabling the Deployment option under Test Settings > Deployment, but still the behavior is the same.
    Could you please advice, how to disable copying binary files into the Out directory.
    Thanks in Advance.
    Regards,
    Karthick K

    Hi Karthick K,
    From your description, as far as I know that when we enable Tracing and HtmlLogger for Coded UI Test and then run the coded UI test, we will get the Test Results/Out folder automatically.
    So it is default that the Out folder includes some files like codeduitestproject6.dll, CodedUITestProject6.pdb etc, we could not disable copying binary files into the Out directory.
    However, there have a replace workaround is I suggest you can disable Tracing and HtmlLogger for Coded UI Test. After you disable the Tracing and HtmlLogger for Coded UI Test, it will not generate the Out folder.
    Similarly, it will not get the binary files.
    http://blogs.msdn.com/b/visualstudioalm/archive/2012/11/08/enabling-htmllogger-in-coded-ui-test.aspx
    If you still want to this feature, I suggest you could submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You can send your idea there and people can vote. If
    you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    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.

  • How to count the number of test ABAP Unit test methods

    I need to count the number of test methods of a class.   Has anybody done this before?   For example, if I have a class that has 3 methods and I wrote 6 abap unit test methods for it.   I can count the number of methods using cl_abap_classdescr=>describe_by_name (which gave me 3 from my example) but I could not find the function module to count the number of test methods (which should give me 6 in my example).
    I appreciate your reply.

    This call does thew trick.  I just had to make sure the prog name that I pass has "CP" from the 30th pos for it return the result.   Here is thew subroutine that I use:
    form get_test_method_count using     query_class
                               changing  test_method_count.
      data: l_progname type progname.
      l_progname = query_class.
      l_progname+30 = 'CP'.  "needed so the following method will recognize this as a class
      data: l_result type if_aunit_prog_info_types=>ty_t_testclasses.
      try.
          call method cl_aunit_prog_info=>get_tests_of_program
            exporting
              progname = l_progname
            receiving
              result   = l_result.
          if l_result is not initial.
            data: result_rec like line of l_result.
            loop at l_result into result_rec.
              test_method_count = lines( result_rec-methods ).
            endloop.
          endif.
        catch cx_root.
      endtry.
    endform.

  • How Can I change the Directory and Name of Coded UI Test Result html file

    I'm Using Visual Studio 2013
    Now I can find the Coded UI test result html file insde the following path
    TestProjectFolder\TestResults\2015_01_22_05_59\In\anotherfolder\MyMachineName\UiTestActionLog.html
    VS2013 enables editing the name structure of this folder only (2015_01_22_05_59). and it should contains a static name+DateTime (Using the Project TestSettings).
    I need to (Programatically)
    Collect all test result html files on one folder with the project name (Change the path of the test result file)
    Put the testcase name on the result file name (for example : TC13505_ValidateScreenComponents_2015_01_22_05_59)
    If possible,Programatically attach the html result file to the test case attachements
    More Details:
    I need to set a custom valus for (ResultsDirectory -
    TestLogsDir -TestResultsDirectory
    - TestName) on the runtime.
    please if any onw know how to do the previous tasks
    by code, please share your knowledge.
    Regards, Ahmed Elgazar Skype:A7medelgazar

    Hi AhmedElgazar,
    Thank you for posting in MSND forum.
    As you said  that you want to collect all test result html files on one folder with the project name by programmatically way to change the path of test result file in coded UI test.
    As far as I know that when we run a coded UI test every time, it is default that there will create a new folder to save the new UITestActionLog.html.
    So we could not change the path of test result file and collect all test result html files on one folder in VS IDE.
    At present, there have no way to collect all test result html files on one folder and change the test result file path.
    In addition, I know that we can change the TestResults folder using mstest.exe in command line.
    Reference:
    https://social.msdn.microsoft.com/Forums/en-US/58d3d2a6-1a45-41ba-9afa-12d087c7c661/how-to-change-the-test-results-path-of-codedui?forum=vstest
    If you still want to this feature, I suggest you can submit this feature request:
    http://visualstudio.uservoice.com/forums/121579-visual-studio. The Visual Studio product team is listening to user voice there. You can send your idea there and people can vote. If
    you submit this suggestion, I hope you could post that link here, I will help you vote it.
    Thanks for your understanding.
    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.

  • 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.

  • Launch coded UI test from other application

    Hi
    I need to launch Coded UI test i.e. coded UI test builder from another application developed in .Net. basic requirement is I will hit one button which will open the coded UI test builder, I will click on record button available on it. Will perform
    some steps and coded ui recorder will record this. After completion i will hit "Generate Code" whcih will generate UIMAP file.
    How will I do this in DotNet. Thank you for your help
    Thanks
    Varsha

    Hi Varsha,
    You know that we just start one coded UI test builder, so we couldn't use one to record steps in another one with opening two editors. So one possible reason is that you would use the custom code in your side.
    Reference:
    http://blogs.msdn.com/b/mathew_aniyan/archive/2009/02/12/hand-coding-a-coded-ui-test.aspx
    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.

  • Make coded ui tests wait for onfocus event during playback - SharePoint 2010 InfoPath form

    I recorded a coded UI test of a SharePoint 2010 site hosting an InfoPath form. The combobox on the infopath form loads the items on onfocus event. It seems that the  coded ui test do not wait for the onfocus event to complete and tries to select the
    item and fails with the error
    The web page could not be accessed. If the page is refreshing, please wait until the page refreshes and then perform actions on it. 
    how can i make the Test to wait till it completes the onfocus event and then select the item.
    one approach i applied was  
    bool bReady = false;while (!bReady)
    try
    uID4ComboBox1.WaitForControlReady();
    // Select 'RMA2' in 'D4' combo box
    uID4ComboBox1.SelectedItem =this.CreateProposalParams.UID18ComboBox1SelectedItem;
    bReady =true;
    catch
    Playback.Wait(1000);
    But i have a lot of combo boxes which makes this solution difficult to implement.
    Thanks in advance.

  • 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.

  • OLE DB provider 'MSOLAP' cannot be used for distributed queries because the provider is configured to run in single-threaded

    Hopefully this will save somebody some trouble.
    Running 64bit Enterprise SQL and SSAS with Service pack 2 installed.
    Also running Proclarity so 32bit mode Reporting Services is running.
    When trying to create a linked server to my OLAP database I was continually getting the following Error:
    OLE DB provider 'MSOLAP' cannot be used for distributed queries because the provider is configured to run in single-threaded apartment mode. (Microsoft SQL Server, Error: 7308)
    Many posts suggested I select the "in Proc" check box under the olap provider, but this did not help.
    Finally, instead of using the IDE to create the linked server I used a script to call sp_addlinkedserver and used @provider='MSOLAP.3'.  This fixed the problem.
    If you have a more clear idea of why I was having the issue in the first place, feel free to let me know what you think.

    Try this thread:
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/f02a3921-7d0b-4038-97bb-9f17d381b345/linked-ssas-server-fails?forum=sqlanalysisservices
    Talk to me now on

  • [svn] 2965: A test method got added to the EnumTypeTest test on BlazeDS/ trunk but didn't get added to the test on the 3.0.x branch.

    Revision: 2965
    Author: [email protected]
    Date: 2008-08-22 11:11:30 -0700 (Fri, 22 Aug 2008)
    Log Message:
    A test method got added to the EnumTypeTest test on BlazeDS/trunk but didn't get added to the test on the 3.0.x branch. The test method is a test for bug BLZ-214 that is still open so we may want to exclude this test from running on both branches.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-214
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTyp es/EnumTypeTest.mxml

    Revision: 2965
    Author: [email protected]
    Date: 2008-08-22 11:11:30 -0700 (Fri, 22 Aug 2008)
    Log Message:
    A test method got added to the EnumTypeTest test on BlazeDS/trunk but didn't get added to the test on the 3.0.x branch. The test method is a test for bug BLZ-214 that is still open so we may want to exclude this test from running on both branches.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/BLZ-214
    Modified Paths:
    blazeds/branches/3.0.x/qa/apps/qa-regress/testsuites/mxunit/tests/remotingService/dataTyp es/EnumTypeTest.mxml

  • [svn:bz-trunk] 5137: Fix failing security tests on BlazeDS/ trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new /clean session.

    Revision: 5137
    Author: [email protected]
    Date: 2009-03-02 10:28:59 -0800 (Mon, 02 Mar 2009)
    Log Message:
    Fix failing security tests on BlazeDS/trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new/clean session. It looks like some test methods were leaving some things in a bad state which was causing the next test that ran to fail. These may be legitimate bugs/issues so we should investigate further to see what sequence of events gets things into a bad state but for these tests we want all of the test methods to run in isolation.
    Modified Paths:
    blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/MessagingAuthProSendTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/JMSAuthSendSubscribeConstraintTest.mxml
    blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/MessagingAuthProSendTest.mxml
    Added Paths:
    blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/messaging/SessionManager.java

    In general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
    That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
    Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
    Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
    While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
    Hunt

Maybe you are looking for

  • How to add a masterdata infoprovider to the exisiting cube or ODS

    Dear all, We have in data in sales  ODS's and Cubes .. Now the requiremnt is i want to add one master data infoprovider to these infoproviders.... How to go abt it? We have to delete  the data and add the field and then load the data or go for multrp

  • Urgent: regarding vendor report(tables)

    Hi, I am making a report in which i have to display the status of a vendor payment is done or not. I know that there are 2 tables which are going to be used i.e. BSIK n BSAK (for open items n cleared items) . i want to know is there any necessity of

  • Invalid security code on new card

    New credit card keeps coming up invalid security code

  • Audigy 2 ZS with Propellerhead Rea

    I think I may have solved half the problem already but was wondering whether anyone else had the same problem. I use Propellerheads Reason alot and I am always going over my CPU limit. I think it may have to do with my Audigy 2ZS. My CPU is 2Ghz P4.

  • IPad 3 64 GB Epic Major Glitch

    So I bought my 64 GB WIFI only iPad from best buy last night. I went home, plugged it into iTunes, registered it and all. I played games on it for about 2 hours and plugged it into my wall over night. I woke up the next morning and I opened facebook