How to automate the Speedometer Canvas object in HTML or HTML5 using testcomplete.
Specifically,
In some test cases I need to verify the speed shown in the speedometer(varying for a part...
Generally speaking, after checking Google, the speedometer canvas object is a Javascript object in HTML 5. So, TestComplete can inspect it and determine properties and such. However, you're not very specific as to what exactly you want to do with it. Can you please be more specific?
In some test cases I need to verify the speed shown in the speedometer(varying for a particular period of time) is equal to the speed updated in any table(may be a DB).
Take the object attached in this question. The Speedometer needle moves from 0 to 140, Now the data updated in the table will be 140(take it as Milles or Kmph). I need to verify the needle position in the 140 and the table value as same. I mapped the object as a whole, But i didn't get the properties of the moving needle. I need to the meep the needle also as a value. So how to automate it?
Why would you need to automate a check on the needle? That seems like an unnecessary increase of complexity. The 140 is the most important thing. If it is not possible to get that from any of the properties in the object, I think you will indeed be stuck with image comparison. If there is a property somewhere in the object, I'd suggest just to skip the extra layer of complexity in your tests by also trying to check the needle itself.