26 Nov 2020 03:08 PM - last edited on 16 Oct 2023 03:14 PM by random_user
Hi,
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://community.dynatrace.com/questions/147670/how-to-integrate-selenium-script-with-dynatrace.htm... Does it also work same in Dynatrace?
Best redgards,
Paweł
Solved! Go to Solution.
26 Nov 2020 03:37 PM
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.
26 Nov 2020 04:28 PM
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.
27 Nov 2020 08:40 AM - last edited on 16 Oct 2023 03:14 PM by random_user
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://community.dynatrace.com/questions/194345/when-setting-category-to-uidriven-no-output-on-tes....
Is it possible to work?
sessionStorage.DT_TESTNAME = "TestName";
dynaTrace.endVisit();
27 Nov 2020 10:01 AM
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.
26 Nov 2020 08:32 PM
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:
https://www.dynatrace.com/support/help/dynatrace-api/environment-api/synthetic/third-party-synthetic...
More on this topic including examples here:
https://www.dynatrace.com/news/blog/integrate-external-synthetic-data-with-dynatrace-via-api/