Below are the details and Query.
What Grafana version and what operating system are you using?
Grafana v10.2.2 (161e3ca), Windows 2016
What are you trying to achieve?
Would like to automate the validation of changes made to dashboards.
Automating the testing of reports in grafana dashboards.
Automating the testing of panels and reports populated out of data from Backend datasource.
Automating the testing of reports in different types of panel like Piechart, Stat, Graph(Line,Bar), Timeseries, Table, Heatmap, Gauge, Status History etc…
How are you trying to achieve it?
Using Robot Framework, Selenium
Achieving unstable results, Also Whenever grafana is getting upgraded we need to rework on the complete automation. As our automation is based on xPath locator.
However there are few headers where data-testid is there, but its not available for all the elements. Hence looking for a solution which will not have impact across grafana upgrades.
Please let us know why data-testid is not available for all the fields and elements.
What did you expect to happen?
We want to capture all elements through a generic way which wont have any impact across grafana upgrades. Automation rework should not be required across upgrades of grafana.
Can you please share me the challenges which you have faced while doing automation of Grafana Dashboards.
If you have a correct approach or any other tools or scripts to automate grafana ui test please share.