2013-03-19 4 views
3

젠킨스와 함께 Selenium WebDriver를 사용하고 있습니다. 우리는 Windows Server 2008에서 실행되는 Jenkins 서버를 가지고 있고 모든 테스트 케이스를 실행하고 싶습니다. mstest를 사용하고 Windows 서버에 VS를 설치했습니다 ... 여기에 내 서버에 설치 한 플러그인 목록이 있습니다. :젠킨스가있는 Selenium WebDriver

Selenium Auto Exec Server(AES) plugin 
This plugin is for continuous regression test by Selenium Auto Exec Server (AES).  0.5   

Jenkins Selenium Builder plugin 
1.1   

Hudson Seleniumhq plugin 
This plugin integrates Seleniumhq to Hudson. 
0.4   

Selenium HTML report 
0.94    

SeleniumRC plugin 
This plugin allows you to create Selenium server instance for each project build. 
1.0 

젠킨스에 설치할 플러그인이 있습니까?

편집

이것은 내가 내 드라이버를 인스턴스화하기 위해 사용하고 무엇을, 나는 RemoteDriver를 사용해야합니까?

public static IWebDriver GetDriver() 
{ 
    string _url = new Uri(Common.Url).DnsSafeHost.ToString(); 

    switch (Common.BrowserSelected) 
    { 
     case "ff": 
     FirefoxProfile profile = new FirefoxProfile(); 
     profile.SetPreference("network.http.phishy-userpass-length", 255); 
     profile.SetPreference("network.automatic-ntlm-auth.trusted-uris", _url); 
     drv = new FirefoxDriver(profile); 
        break; 
      case "ie": 
      var options = new InternetExplorerOptions(); 
      options.IntroduceInstabilityByIgnoringProtectedModeSettings = true; 
      DesiredCapabilities capabilities = new DesiredCapabilities(); 
      capabilities.SetCapability(CapabilityType.AcceptSslCertificates, true); 
        drv = new InternetExplorerDriver(options); 
        break; 
       case "chrome": 
        //_driver = new ChromeDriver(); 
        break; 
      } 
      return drv; 
     } 
+0

"RemoteDriver"를 사용하는 것이 좋습니다. 장기적으로는 도움이됩니다. – aimbire

+0

어떻게? 당신의 제안을 넓혀 주시겠습니까 –

답변

1

젠킨스에 설치할 플러그인이 있습니까?

아니요, 이러한 플러그인이 필요하지 않습니다.

이것은 내 드라이버를 인스턴스화하는 데 사용하는 것입니다. RemoteDriver을 사용해야합니까?

는 당신이 테스트를 실행하기위한 RemoteDriver 필요하다고 생각, 당신은 GetDriver() 기능이 RemoteDriver에 대한 초기화를 추가해야합니다.

firefox { 
    capability = DesiredCapabilities.firefox() 
    capability.setPlatform(Platform.LINUX) 
    driver = {new RemoteWebDriver(new URL("http://some.domain:4444/wd/hub"), capability)} 
} 

그래서 내가 테스트를 위해 Geb를 사용하지만, 나는 차이가 없다고 생각 :

는이 linkthis

내 구성에 도움이 될 수 있습니다.

+0

내가 당신의 솔루션을 따르는 지 확신 할 수 없으므로 두 부분으로 나누어 져 있습니다. '첫 번째 부분은 젠킨스에서 셀레늄 테스트 케이스를 실행하기 위해 어떤 플러그인이 필요한가요? '두 번째 부분은 내 질문을 업데이트 할 것이다. –

+0

내가 두 번째 부분에 대한 내 질문을 업데이 트보세요. –

+0

'환경 '을 어떻게 확인합니까? –