Hi,
Does SciChart use automation peers? Is there any documentation about UI test automation for SciChart?
My company uses SciChart to develop a WPF desktop application. We want to automate our testing using toolts like Coded UI or Test Complete.
Thanks
- Alan Davila asked 8 years ago
- You must login to post comments
Hi Alan
No we don’t, because Automation and UIAutomation only really works with basic WPF types such as TextBox, Button, Checbox etc… It doesn’t work with a complex controls drawn on bitmap or texture. You can try commercial products like Telerik Test Studio or Ranorex but they won’t really work either as they’re built on the same underlying technology.
What we did instead was wrote our own framework to test the UI by comparing screenshots. We also mock out most of our types (thats why there are so many interfaces like ISciChartSurface, IAxis etc…) so that we can use standard unit testing.
Hope that helps — or at least — saves you some time going down this route!
Best regards,
Andrew
- Andrew Burnett-Thompson answered 8 years ago
- Hi. Thanks for the reply. Is there any possibility of publishing this screenshot-comparing framework? I’m currently in process of selecting a charting framework and this could be the decisive factor to pick SciChart.
- Hi Gennady, we publish all our unit tests in the source-code editions of SciChart WPF. That includes the Screenshot-comparison tests which we call ‘Visual Tests’. I’m not at liberty to share the code of this outside of a license between yourselves and ourselves though.
- You must login to post comments
You may be interested to know how we automation test the chart. Mostly doing screenshot comparison, however it is now possible to proved some level of UIAutomation in SciChart.
See more at the video below:
UIAutomation Testing in SciChart WPF Examples Suite
Best regards,
Andrew
- Andrew Burnett-Thompson answered 5 years ago
- You must login to post comments
See also related question https://www.scichart.com/questions/question/wpf-automation which has some additional info about SciChart’s internal screenshot-comparison testing framework.
- Andrew Burnett-Thompson answered 8 years ago
- You must login to post comments
Please login first to submit.