Re: Anybody have any luck using Jenkins Selenium Grid plugin with WebDriver to execute Chrome?

2013-02-22 Thread bhill
OK, Thanks for the post and the link.
BH

On Thursday, February 21, 2013 3:36:33 PM UTC-7, LesMikesell wrote:

 On Thu, Feb 21, 2013 at 2:38 PM, bhill brady...@returnpath.netjavascript: 
 wrote: 
  
ChromeTest.tearDown:35 NullPointer 
  
  
  Specifically, I'm confused by the error.  I've read the documents that 
 the 
  error mentions and I thought I was specifying  the system property of 
  webdriver.chrome.driver.  Has anyone ran into this? Can anyone offer any 
  help for my understanding of why I can't get chrome to work using the 
  RemoteWebDriver and the Selenium Grid plugin? 
  

 Bug in the plugin, I think.  I haven't tried the unreleased update yet. 
 https://github.com/jenkinsci/selenium-plugin/issues/19 

 -- 
Les Mikesell 
  lesmi...@gmail.com javascript: 


-- 
You received this message because you are subscribed to the Google Groups 
Jenkins Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Anybody have any luck using Jenkins Selenium Grid plugin with WebDriver to execute Chrome?

2013-02-21 Thread bhill
Hi,

I have a running instance of the Selenium Grid plugin running on Jenkins 
LTS 1.480.1.
* I've configured the grid to use a chrome browser:

 {seleniumProtocol=WebDriver, platform=LINUX, browserName=chrome, 
 maxInstances=5, jenkins.nodeName=CentOS 6 Java 7, version=24.0}


* I've installed the chromedriver on my remote machine at 
/usr/local/jenkins/tools/chrome/chromedriver 
* I've installed chrome on the remote machine at /usr/bin/google-chrome
* I used the Firefox Selenium IDE to create a test case and tweaked it a 
bit for RemoteWebDriver

import static org.junit.Assert.*;


 import java.net.URL;

 import java.util.concurrent.TimeUnit;

 import org.junit.After;

 import org.junit.Before;

 import org.junit.Test;

 import org.openqa.selenium.*;

 import org.openqa.selenium.chrome.ChromeDriver;

 import org.openqa.selenium.remote.DesiredCapabilities;

 import org.openqa.selenium.remote.RemoteWebDriver;


 public class ChromeTest {

 private WebDriver driver;

 private String baseUrl;

 private boolean acceptNextAlert = true;

 private StringBuffer verificationErrors = new StringBuffer();

 DesiredCapabilities capability =  DesiredCapabilities.chrome();


 @Before

 public void setUp() throws Exception {

  System.setProperty(webdriver.chrome.driver, 
/usr/local/jenkins/tools/chrome/chromedriver); 

   capability.setBrowserName(chrome);

   capability.setPlatform(Platform.LINUX);

   capability.setVersion(24.0);

   driver = new RemoteWebDriver(new 
 URL(http://jenkins.remote.machine:/wd/hub;), capability);

   baseUrl = http://google.com;;

   driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

}


 @After

 public void tearDown() throws Exception {

   driver.quit();

   String verificationErrorString = verificationErrors.toString();

   if (!.equals(verificationErrorString)) {

   fail(verificationErrorString);

   }

   }


 @Test

 public void testGoogle() {

   driver.get(baseUrl + /);

 }


 private boolean isElementPresent(By by) {

   try {

 driver.findElement(by);

 return true;

   } catch (NoSuchElementException e) {

return false;

   }

 }


 private String closeAlertAndGetItsText() {

   try {

 Alert alert = driver.switchTo().alert();

   if (acceptNextAlert) {

 alert.accept();

   } else {

 alert.dismiss();

   }

 return alert.getText();

   } finally {

 acceptNextAlert = true;

   }

 }

 }


I am getting the following error

 

---

 T E S T S

---

parallel='classes', perCoreThreadCount=true, threadCount=2, 
 useUnlimitedThreads=false

Running com.rp.selenium.rpsmoketest.ChromeTest

log4j:WARN No appenders could be found for logger 
 (org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager).

log4j:WARN Please initialize the log4j system properly.

Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.696 sec 
  FAILURE!

testGoogle(com.rp.selenium.rpsmoketest.ChromeTest)  Time elapsed: 0.687 sec 
   ERROR!

org.openqa.selenium.WebDriverException: The path to the driver executable 
 must be set by the webdriver.chrome.driver system property; for more 
 information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The 
 latest version can be downloaded from 
 http://code.google.com/p/chromedriver/downloads/list

Command duration or timeout: 243 milliseconds

Build info: version: '2.28.0', revision: '18309', time: '2012-12-11 
 15:53:30'

System info: os.name: 'Linux', os.arch: 'amd64', os.version: 
 '2.6.32-279.19.1.el6.x86_64', java.version: '1.7.0_09'

Driver info: org.openqa.selenium.remote.RemoteWebDriver

at 
 com.google.common.base.Preconditions.checkState(Preconditions.java:176)

at 
 org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)

at 
 org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:69)

at 
 org.openqa.selenium.chrome.ChromeDriver.init(ChromeDriver.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native 
 Method)

at 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)

at 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

at java.lang.reflect.Constructor.newInstance(Constructor.java:525)

at 
 org.openqa.selenium.remote.server.DefaultDriverFactory.callConstructor(DefaultDriverFactory.java:57)

at 
 

Re: CSS and Images Broken Post LTS 1.480.1 Update?

2012-11-27 Thread bhill
Thank you for the response.

Vojta, I did as you asked and looked if I could load the css via browser by 
grabbing the link href source from the source code.  I was able to pull up 
the css file for both the style.css and color.css without problem via 
browser.

Here are some more specifics regarding this issue.

   - Jenkins is running LTS 1.480.1 on CentOS 5 using java 6
   - What I've tested
  - clear cache
  - Initial load (Not logged in)
 - Windows - IE 9 (Broken css and images)
 - Windows - FF 18 (Broken css and images)
 - Windows - Chrome 64 (Broken css and images)
 - Apple - Safari (Broken css and images)
  - Login
 - Windows - IE (Working css and images)
 - Windows - FF (Working css and images)
 - Windows - Chrome (Broken css and working images)
 - Apple - Safari (Working css and images)
  - Logout
 - Windows - IE (Working css and broken images)
 - Windows - FF (Working css and broken images)
 - Windows - Chrome (Broken css and images)
 - Apple - Safari (Broken css and images)
  
On the same thread, but a different note the only other change to our 
Jenkins installation around the same time I updated to the current Jenkins 
LTS release was changing the 'All' view.  I followed the directions located 
on the wiki 
at 
https://wiki.jenkins-ci.org/display/JENKINS/Editing+or+Replacing+the+All+View. 
 

I've noticed that when first loading the homepage the message has changed. 
 Prior to update it said (paraphrasing) You are not logged in. Login now. 
 It now states This view has no jobs associated with it.  Could this be 
part of my issue?  Is there a way to reset the 'All' view to it's default 
setting?  I'm curious if that is causing some permission issues with the 
view?  I wouldn't mind resting it to default it to try to isolate the issue 
I'm experiencing.

Thank you

On Tuesday, November 27, 2012 5:15:06 AM UTC-7, vjuranek wrote:

 Hi, 

  After the update I 
  noticed that logged out users have broken CSS.  Has anyone else had any 
  issues with their CSS after the upgrade? 

 no, I didn't spot any such issue. Could you check if you are able to load 
 the 
 CSS directly by browser? 
 E.g. if the link is 
 link rel=stylesheet type=text/css 
 href=/static/8990f217/css/style.css/ 
 then check if $JENKINS_URL//static/8990f217/css/style.css loads something? 

 Btw: which server container do you use? 

 Cheers 
 Vojta 



CSS and Images Broken Post LTS 1.480.1 Update?

2012-11-26 Thread bhill
Hi,
I currently have an instance of Jenkins running the LTS 1.480.1.  I do have 
Jenkins managing the users who have access to the jobs.  After the update I 
noticed that logged out users have broken CSS.  Has anyone else had any 
issues with their CSS after the upgrade?  It is causing confusion among our 
engineers as the login links are white on white...

Is their a way I can fix the CSS on my end.  I don't want to do too much 
customization as I want to keep up with the LTS branch without worrying 
about breaking my customization.  I've noticed their is a plugin called the 
'Simple Theme Plugin' that may allow me to customize the CSS so they can 
see it, but again.  I want to keep it as out of the box as possible. 
 Please advise if this is something I can do or if this is a known issue. 
 I've searched around a bit, but have come up empty handed.  

Thank you,

P.S. Please see the attached image

https://lh6.googleusercontent.com/-ZUqwkVr1amc/ULPUfYE5LJI/AAM/r60xTzdc2i4/s1600/css_broken.gif