locked
Coded UI Test Issue RRS feed

  • Question

  • I am new to VSTS2010 and find there is a new test type called coded ui test. Could anyone tell what is it used for?
    Wednesday, March 3, 2010 2:05 PM

Answers

All replies

  • The codedUI test is a special unit with which you can automate User Interface tests.

    When you create a new codedUI test, you can choose to use an already recorded test (with a test case work item and the Test Manager) or record a new test. When you choose the second option, you can start clicking around in your app to do the steps required in the test. For every couple of steps you can generate code. At the end you can even add assertions to validate the test case.

    For more information see http://channel9.msdn.com/posts/Charles_Sterling/How-to-create-edit-and-playback-CodedUI-Tests-in-Visual-Studio-2010-Beta2/


    Ewald - Please remember to mark the replies as answers if they help.

    Ewald Hofman
    Blog: www.ewaldhofman.nl
    Wednesday, March 3, 2010 3:10 PM
  • You can use the Content Index for Coded UI Test to get started.  http://blogs.msdn.com/mathew_aniyan/pages/content-index-for-coded-ui-test.aspx

    Thanks
    http://blogs.msdn.com/gautamg
    Thursday, March 4, 2010 6:38 AM
  • Hello,

    Using Visual Studio 2010 Ultimate or Visual Studio 2010 Premium, you can create a coded UI test that can test that the user interface for an application functions correctly. The coded UI test performs actions on the user interface controls for an application and verifies that the correct controls are displayed with the correct values.

    For more detailed information about Coded UI Test, you could also refer to the following article:
    http://msdn.microsoft.com/en-us/library/dd286681(VS.100).aspx


    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Send us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.
    Thursday, March 4, 2010 6:46 AM
    Moderator
  • I have tried using the assert functionality but find it very limiting.  How do I create an assert statement for a single item in a combo box (collection).  When I try using the cross-hairs it only allows me to select the entire box and not a specific item within the combo box
    Wednesday, July 7, 2010 4:56 PM
  • I have got the same question. To add more on this, once we select an item in the combo box, how do we validate the item.

    For example if the value i am looking for is 'test' and i am getting 'test12' the Assertion should fail i.e it should validate the item and fail the Coded UI test. 

    This could be any text box or Drop down value or any other control value.

    Any MSFT guys ?

    Thanks in Advance.

    Monday, November 15, 2010 6:41 PM