Pre loader

SciChart automated testing for WPF

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

Answered
0
0

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

Version
4.2
  • You must to post comments
Best Answer
1
0

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

  • Gennady Verdel
    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.
  • Andrew Burnett-Thompson
    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 to post comments
1
0

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

  • You must to post comments
0
0

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.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies