Hi All,
I'm running my Selenium tests with a simple batch command script. I have not used coding languages to launch or inject Dynatrace agents in the browser and have only created simple HTML scripts with Selenium IDE and injected Dynatrace timers with the runScript function available on Selenium.
Below is the sample HTML script I've used:
<tr>
<td>runScript</td>
<td> _dt_setTimerName("Home Page")</td>
<td></td>
</tr>
<tr>
<td>open</td>
<td>/</td>
<td></td>
</tr>
<tr>
<td>runScript</td>
<td> _dt_setTimerName()</td>
<td></td>
</tr>
This works fine with Firefox browser agent, but when I launch ie with Selenium and inject a Dynatrace agent as the sample code, timers do not show the correct duration times on the Browser Performance Report Dashlet. Below is how it looks. The two arrows drawn on the chart is the extra time observed before starting/stopping the Timer.
I just want to know if others have integrated ie + Selenium + Dynatrace and if they are getting correct numbers on the Browser Performance Report Dashlet. If yes please let me know how you have integrated these three together.
Thanks,
Solmaz
Answer by Klaus E. ·
Hi,
The problem in this scenario is that Selenium detects when a page is done in Firefox and Internet Explorer in a different way. The closing setTimerName() call is triggered by Selenium when Selenium things everything is done on the page. In IE there is a big gap between the dynaTrace Total Load event and the Selenium "page done". Unfortunately we cannot fix the problem in Selenium.
Cheers Klaus
JANUARY 15, 3:00 PM GMT / 10:00 AM ET