Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Selenium and Facet Chart Testing

    1. v9.0p_2013-08-01/Enterprise Deployment (built 2013-08-01)


    Our team is using Selenium to perform UI tests on our SmartGWT application. We have recently switched to Facet Charts and are having trouble testing them with this method.

    We create the charts dynamically. Meaning they are not defined in code before compile time. During run time a user selects a component and chooses show chart. At which point a chart is created, and data is queried from the server. Currently the only thing in the html for Selenium to hook into is a canvas with an id of isc_FacetChart. But there are no details so it cannot verify the legend is using the right names or the chart title is correct.

    Does anyone else use selenium test and specifically with Facet Charts? If so how do you do it? Any suggestions are appreciated.

    Thanks,
    Chris

    #2
    By necessity, to work around browser bugs and/or lack of standards support, the FacetChart may draw with VML, SVG or <canvas> on different browsers.

    This means the best way to write a single test across browsers is to test the *data* you are supplying to the chart rather than the rendered output. Testing the latter would be, in any case, testing the framework itself and not the behavior of your application per se.

    Comment

    Working...
    X