Automated Testing Tools for HTML5 Canvas

I am looking for a tool to perform some automated GUI testing on the HTML5 canvas component that we are developing. Basically, I am looking for a tool that is able to record clicks and events on a canvas component and is able to reproduce these events.

So far, most testing tools, such as Telerik WebUI Testing Suite, Selenium, TestSwarm, qUnit, Jasmine, Hudson, do not seem to fully support HTML5 canvas testing.

Do you guys know a testing tool that already supports this? If not, do you know how companies automatically test HTML5 canvas?

Thanks,

Andy N.

+4
source share
1 answer

In the latest version of Telerik Test Studio, we added support for many HTML5 tags, such as Canvas, Audio, and Video tags. All HTML tags are accessible using code and are located under:

namespace ArtOfTest.WebAii.HtmlControls. You will find HTML5 controls, for example:

HtmlCanvas, HtmlAudio, HtmlVideo, HtmlMeter and all advanced HtmlInput types such as HtmlInputEmail, HtmlInputSearch..etc.

For HtmlCanvas, you really have access to the 2D context of the control. Thus, you even manipulate it and can do things like:

HtmlCanvas.Context2dRotate (), HtmlCanvas.Context2dTransform () ... etc.

I hope this helps.

+1
source

Source: https://habr.com/ru/post/1381171/


All Articles