cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Selenium WebDriver integration with Dynatrace

pawel_harbuz
Newcomer

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ł

5 REPLIES 5

Anonymous
Not applicable

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.

pahofmann
DynaMight Guru
DynaMight Guru

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.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

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();


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.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner - 360Performance.net

Julius_Loman
DynaMight Legend
DynaMight Legend

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/

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Featured Posts