Is any possibility of viewing Java Selenium tests results in Dynatrace? I heard that I could send a header via Selenium, but there is nothing about it in documentation. I found only an information about AppMon. https://answers.dynatrace.com/questions/147670/how-to-integrate-selenium-script-with-dynatrace.html?... Does it also work same in Dynatrace?
Solved! Go to Solution.
What you want to see. The execution? as a Sinthetic test? or view the execution as purepath?
You can use the same concept like in https://www.dynatrace.com/support/help/setup-and-configuration/integrations/third-party-integrations... using the header x-dynatrace-test to easy visualize only the tests.
If the application the Selenium tests run against is intstrumented with dynatrace you will get the data.
You can use headers and request attributes or the API of the JS agent to send additional metadata about the test to make finding and analysing specific test cases easier.
I choose the JS agent way. Does it work like in AppMon? Or there is another way to manage it? Below is an example, which comes from this question: https://answers.dynatrace.com/questions/194345/when-setting-category-to-uidriven-no-output-on-tes.ht...
Is it possible to work?
sessionStorage.DT_TESTNAME = "TestName";
The calls differ from appmon, you can find them in the documentation or download the docs and examples directly from your dynatrace environment:
If you just want to report success/failure of a specific test, you could also use the way Julius described via the external synthetic test API and link those tests to the RUM Application.
Since you are taking specifically about synthetic test results, I guess you want to view the results in Dynatrace. For that you can leverage the third-party synthetic API, which you can use to push your results about synthetic test from any testing tool:
More on this topic including examples here: