Forum Discussion

Mamatha_thumma's avatar
Mamatha_thumma
New Contributor
12 years ago

Comparing DB Table Value with a UI Value in testcomplete

I am trying to compre the Database value with the Silverlight Application Value. I do have the Database Checkpoint but that only compares the stored value with Database value.



-Mamatha

1 Reply

  • joffre's avatar
    joffre
    Regular Contributor
    Check with the "Display Object Spy" tool one attribute of the UI that has the value you are looking for.



    An example in my application here, the attributes that I use are:

    .contentText

    .innetText

    .Text



    I do something like this:

    if (RecSet.Fields("BD_COLUMN").Value == UIComponent.contentText) {

     Log.Message("Values are the same!");

    } else {

     Log.Error("Values aren't the same!");

    }