Web Dashboard widget allows you to display Test Automation data on your Dynatrace WEB Dashboard.
- Go to dynatrace.github.io/Dynatrace-Test-Automation-Samples/web-dashboard-widget or your self-hosted version of this project
- Change settings at the top to match your configuration
- Fill in filters you want to apply
- Click generate and copy the generated link
- Go to your web dashboard, by default it's available under https://:9911/
- Click Add Tile and click on the new tile.
- Click on the External Content tile type and paste in the link you generated in the previous step
- After confirming your configuration your new shiny tile should be available in the dashboard, you can resize it.
Do not embed the chart on any publicly available website unless you are running a proxy hiding your credentials to the server!
To embed a chart on your LOCAL/INTRANET website put the following code somewhere in the source.
<iframe sandbox="allow-popups allow-scripts" scrolling="no" src="your generated link"></iframe>
-
Install required dependencies by executing
npm install
-
Build the javascript by running
npm run build
-
Copy /js and index.html to your site's directory
If you are making changes to this project and want a hot-reload feature, use:
npm run dev
Feel free to send Pull Requests
Cause: System profile has not been found on the server
Solution:
- Check if the System Profile you have supplied is available
- Click the Go to settings wizard and generate a new link
Chart is not visible, and instead No test metadata was set or no testrun occurred between ... is shown:
Cause: There was no test automation data registered
Solution:
- Register and run some tests
Solution:
- Check if connection details are correct
- Check if server's certificate is valid, and if not add it to browser exceptions
- Open developer console (F12 under chrome), go to console and see if any of the following errors is present:
- Message containing: CORS / Cross-Origin keywords - use https for your server connection