Assert from a graphic ??? RRS feed

  • Question

  • Hi,

    Is it possible to add an assertion to get for example the text from a table if i put the crosshair form the Coded UI Test Builder on the table.
    I don´t want to have the properties but the table like a graphic or a screenshot.
    Further I would like to compare (maybe pixel based) a reference file from the table with the new one.

    Monday, November 30, 2009 2:25 PM


All replies

  • Hi,

    Please take a look at this post and see if it answers your question.


    Thanks and Regards,
    Monday, November 30, 2009 4:22 PM

  • It doesn´t answer my question.
    I want to create an GUI autotest which compare a reference file (input is a chart) with the current one.
    Maybe it works if i choose a new assertion with the cross hair?
    Tuesday, December 1, 2009 7:20 AM

  • Coded Ui Test Builder can create an assert.
    For example i made an assert from the result of the calculator.
    The assert compares the result from the calculator. I got the result with the cross-hair from the property list.

    And now I want to get the text from a table like the result from the calculator.
    It would be gread if I have the text from the whole table in the property list and
    can make an assert. I don´t know how to do this.
    Tuesday, December 1, 2009 1:14 PM
  • Hi Florian

    Can you please provide us more input on it:
    1. What is the UI technology of the App (Winforms/WPF or something else) ?
    2. Is the table a "DataGrid" ?

    If the table you are trying to add assert on is a DataGrid control you can add assertions after capturing the cell using cross-hair utility.
    Tuesday, December 1, 2009 1:37 PM
  • win32 api
    all developed with mfc
    Grid controll is cugGrid from "Code Project"
    I can also send you a screenshot from our software product if I get your E-mail address
    Tuesday, December 1, 2009 1:53 PM
  • Thanks Florian, but I suspect whether these type of controls are supported or not at current time.

    Just to verify can you please check the ControlType property in the property grid of CodedUITest Builder after capturing the table. Typically for a DataGrid inside winforms following will be the hierarchy:


    But if the control itself is not accessible CodedUITest Builder would not be able to identify the rows and cells inside the table. Hence you wont be able to add Asserts for the cell values.

    Please let me know if you are also able to see the similar kind of control hierarchy for your table.

    Tuesday, December 1, 2009 2:20 PM
  • Unfortunately I don´t see this hierarchy
    my hierarchy looks like the following


    cockpit is our product
    Tuesday, December 1, 2009 2:25 PM
  • Yes, if the control is not accessible CodedUITest wont be able to support it.

    Please refer the following thread for more information on how to add support for third party controls:

    Tuesday, December 1, 2009 2:47 PM
  • Thank you for helping
    Tuesday, December 1, 2009 3:27 PM