Forum Discussion

rani_m215's avatar
rani_m215
Occasional Contributor
10 years ago

How to work with charts in iOS apps

Our iOS/Android apps has charts (ShinobiChart) like shown in the attachment. Object Browser in TC displays it as a single window and each item is being shown as different labels inside it. It is not being recognized as a chart. Also there's no option (like graph/Chart) to map it in Object Mapping under Project properties.

Is there anyway to test the charts on iOS & Android apps using Mobile TC?

 

Thanks!

  • Hi,

     

    From my understanding, TestComplete shouldn’t recognize different lines on the chart. During your test, you can compare the currently displayed chart with the one stored in TestComplete. To save the chart, you can use the Picture method of the mobile object. Please refer to the following articles for more information:

     

    • sreedevtr's avatar
      sreedevtr
      Contributor

      Can we use region check point to capture the entie chart as a region. This checkpont will fail if there is a difference between the current chart and the chart stored in store.

    • rani_m215's avatar
      rani_m215
      Occasional Contributor

      Hi TanyaYatskovska,

       

      How does the regional/image checkpoint works with different screen resolutions?

       

      For example, if I create a regional checkpoint for a chart on iPhone 6+ and running the script on iPad fails. Do you have any workaround for that to work instead of creating if statements and checkpoints for each device type?

       

      Thanks!