Forum Discussion

Ali2's avatar
Ali2
Occasional Contributor
8 months ago

How to verify data from another application, the data which keeps changing

Hi,
In my application is based on stocks there are some market data related fields in which the data keeps on changing, like in the following the Last price right now is 186.28 but may change anytime.

 To verify this we need to look into another window (Its not part of my application) to verify the price if its correct we look there as can be seen below the price P.Close is the Last price in my application

How can I verify these values through testcomplete?
TIA

  • Ali2's avatar
    Ali2
    Occasional Contributor

    Sorry for late reply, Object spy is taking the price as an object.
    This are the properties:

    The are the method:

     

  • Ali2's avatar
    Ali2
    Occasional Contributor

    It shows so many things which I think will be not easy to share, is there specifically anything we should be looking for?

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    This object,

    doesn't seem to relate to anything that is shown in,

    When you use the Object Spy on the above screenshot, is the entire window highlighted, or the individual objects such as 'Symbol', 'Bid' etc highlighted?

    What is shown, looks like a text object. If it is a text object, then you have to select the appropriate property that has the information shown in the above screenshot, and then search the property value for e.g. 'P.Close'