• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Application Monitoring & UEM /
  • AppMon & UEM Open Q&A /
avatar image
Question by Kevin N. · Mar 13, 2014 at 02:59 AM · continuous delivery

Cannot seem to get browser plug-in to work with WebDriver & Jenkins

Hi all,

I've been troubleshooting this day and night and haven't been able to find a way to make this work.  I will try my best to explain our set up.  This is what we are using:

  • Jenkins 1.509.3 running on Linux
  • dynaTrace 5.5.0.5562
  • Jenkins slave 1.509.3 running on Windows Server 2008
  • Firefox 20.0 with dynaTrace Browser Agent 5.5.0.5226 for Firefox
  • selenium-java 2.37.1
  • dynaTrace dtAutomation 3.5

I have a Firefox profile called 'Selenium' set up on the Jenkins slave server running Windows.  The browser plug-in is enabled and connected using this profile and I can see the agent connected to dynaTrace with the Agent name: Browser_Selenium_FF

In the code that calls the WebDriver, I have the following:

ProfilesIni profile = new ProfilesIni();
FirefoxProfile ffprofile = profile.getProfile("Selenium");
driver = new FirefoxDriver(ffprofile);

Here is where it gets interesting.  If I'm logged into the Windows Server (Jenkins slave)and launch a build manually from command line, the WebDriver will get called and Firefox will appear on my screen and the browser agent will connect properly.  I will see the agent show up in the Agents Overview.  This is good.

However, if I were to launch the build from Jenkins, which will in-turn call the Jenkins slave to run the build, I will not see the agent show up in the Agent Overview when WebDriver is called.  I'm almost convinced that the browser-agent doesn't even load for some reason.

Have even tried installing a 'command-line plugin' for Jenkins that will run the maven command directly instead of through the maven Plugin but it still didn't work.  Not sure why it would work when manually running the build and not via Jenkins.

Has anyone encountered something like this before?  Or have any suggestions how to go about resolving this?

Thanks.

 

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

2 Replies

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image

Answer by Andreas G. · Mar 14, 2014 at 08:07 AM

Thanks Kevin for updating us - and - for answering your own question (smile)

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

avatar image

Answer by Kevin N. · Mar 14, 2014 at 04:36 AM

Seems I answered my own problem.  I tried:

1) Based on suggestions I read online, change the 'Log On' properties for the Jenkins Slave service to log in as local system account and have 'Allow service to interact with desktop' checked off.  Then restart the service.  The build failed, but it might have caused something to initialize differently when I ran the build.

2) I reverted back the change and restarted the Jenkins Slave service again.

After step 2, I was able to see the browser plug-in interact with dynaTrace and it was showing up in the Agents Overview when I ran the build via Jenkins.

It could very well have been a recycle of the service that did it, though I cannot be sure.  Regardless, it's working now.

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Automation Dashlet and Browser metrics

Dynatrace Integration with Rational Performance Tester

Generating test performance reports in Jenkins from jenkins pipeline file

java.lang.IllegalArgumentException: No enum const class com.dynatrace.jenkins.dashboard.model.TestCaseStatus.INVALIDATED

dT 6.2 Testrun creation via REST not working

Forum Tags

dotnet mobile monitoring load iis 6.5 kubernetes mainframe rest api dashboard framework 7.0 appmon 7 health monitoring adk log monitoring services auto-detection uem webserver test automation license web performance monitoring ios nam probe collector migration mq web services knowledge sharing reports window java hybris javascript appmon sensors good to know extensions search 6.3+ server documentation easytravel web dashboard kibana system profile purelytics docker splunk 6.1 process groups account 7.2 rest dynatrace saas spa guardian appmon administration production user actions postgresql upgrade oneagent measures security Dynatrace Managed transactionflow technologies diagnostics user session monitoring unique users continuous delivery sharing configuration alerting NGINX splitting business transaction client 6.3 installation database scheduler apache mobileapp RUM php dashlet azure purepath agent 7.1 appmonsaas messagebroker nodejs 6.2 android sensor performance warehouse
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A