GoCD Integration With Selenium

1,259 views
Skip to first unread message

Darly Senecal-Baptiste

unread,
Mar 25, 2015, 10:09:41 AM3/25/15
to go...@googlegroups.com
Hi,

Do you have any information about integration GoCD with Testing tool called Selenium? Because I am trying to find a GoCD plugin that integrates with Selenium.

Thanks

Dan Ports

unread,
Mar 25, 2015, 10:19:51 AM3/25/15
to Darly Senecal-Baptiste, go...@googlegroups.com
I would also really like to know if anyone has gotten Go to work well with Selenium. I did some work with CruiseControl.NET and Selenium in the past and had no end of headaches...flaky/unrepeatable builds, etc.



Dan Ports
Vice President of Technology, Intrigma Inc.
Medical Staffing Optimization And Scheduling Software
349 5th Avenue, New York, NY 10016  
The information in this email is confidential and therefore privileged and/or protected under law. If you are not the intended recipient, please notify us immediately at in...@intrigma.com and delete the original message and any attachments.

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Zabil C M

unread,
Mar 26, 2015, 1:05:44 AM3/26/15
to Dan Ports, Darly Senecal-Baptiste, go...@googlegroups.com
Hey Dan,
 Go does not have a Selenium plugin. 
 At Thoughtworks we have a lot of projects running Selenium on Go via build scripts. 
 If you can provide more details on how you run selenium on your project we can help out.

Dan Ports

unread,
Mar 26, 2015, 11:58:57 AM3/26/15
to Zabil C M, Darly Senecal-Baptiste, go...@googlegroups.com
Thanks Zabil. Off the top of my head, there were at least 2 roadblocks that we ran into:
  1. Running Selenium from a Windows service: CruiseControl.NET and the Go agent both run as Windows services by default, and browsers (IE at least) weren't happy running in session 0. I think we worked around this with CruiseControl.NET by setting up the server to automatically sign into a specified account when Windows booted and then run the console version of CC.NET on startup in that session. But it was a bit of a pain to set up and felt like a big hack.
  2. IE driver flakiness: Often the IE driver process failed to exit, which would cause future test runs to break. I think we tried several approaches to work around this, but nothing worked reliably from what I can remember.
Could you share an outline of how you run Selenium on your end? e.g.: Which platforms/browsers are you running it on? How do you launch the driver and make calls to it?

Dan



Dan Ports
Vice President of Technology, Intrigma Inc.
Medical Staffing Optimization And Scheduling Software
349 5th Avenue, New York, NY 10016  
The information in this email is confidential and therefore privileged and/or protected under law. If you are not the intended recipient, please notify us immediately at in...@intrigma.com and delete the original message and any attachments.

Zabil C M

unread,
Mar 27, 2015, 2:33:21 AM3/27/15
to Dan Ports, Darly Senecal-Baptiste, go...@googlegroups.com
Hey Dan,
 We have our windows agent services configured run with the "Allow service to interact with Desktop" option. 
  You can also start the agent using the "start-agent.bat" and leave the console window running. 

This is more of Selenium talk but here's what our setup looks like on our java projects.

maven or gradle for builds
Junit + Selenium Webdriver (not RC)
Headless Chrome Driver and Firefox Driver on linux 
the Internet Explorer Driver on windows.

On one of the .net projects
nant + rake + nunit
Selenium Webdriver.

Unfortunately it takes a while to get rid of flakiness. Here's a summary of the team's experience (a bit dated).

  

Dan Ports

unread,
Mar 30, 2015, 2:57:21 PM3/30/15
to Zabil C M, Darly Senecal-Baptiste, go...@googlegroups.com
Thanks for the info, Zabil! I will revisit our setup at some point and see if we can eliminate the flakiness.



Dan Ports
Vice President of Technology, Intrigma Inc.
Medical Staffing Optimization And Scheduling Software
349 5th Avenue, New York, NY 10016  
The information in this email is confidential and therefore privileged and/or protected under law. If you are not the intended recipient, please notify us immediately at in...@intrigma.com and delete the original message and any attachments.

devendr...@theodysseyonline.com

unread,
Dec 19, 2016, 4:47:46 AM12/19/16
to go-cd
Does GoCD has any plug in for automation frameworks like TestNG and Nightwatch.JS

Thanks, 
Devendra 

Sriram Narayanan

unread,
Dec 20, 2016, 8:00:43 AM12/20/16
to go...@googlegroups.com
On Mon, Dec 19, 2016 at 5:47 PM, <devendr...@theodysseyonline.com> wrote:
Does GoCD has any plug in for automation frameworks like TestNG and Nightwatch.JS

These "plugins" merely accept the parameters and invoke the command line. You could either just trigger a shell script (checked out from version control, and the recommended approach), or write your own "custom command". 
 
See https://build.go.cd/go/pipelines/smoke/865/Smoke/1 for an example (user: view, password: password), where it runs the tests from this repo: https://github.com/gocd/functional-tests (it checks out from a local mirror for performance reasons).


Thanks, 
Devendra 

On Wednesday, March 25, 2015 at 7:39:41 PM UTC+5:30, Darly Senecal-Baptiste wrote:
Hi,

Do you have any information about integration GoCD with Testing tool called Selenium? Because I am trying to find a GoCD plugin that integrates with Selenium.

Thanks

--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages