我正在研究将 Selenium WebDriver 与 Jenkins 一起使用。我们有一个在 Windows Server 2008 下运行的 Jenkins 服务器,并且想运行我所有的测试用例,我正在使用 mstest,而且我已经在 Windows 服务器上安装了 VS...这是我在我的服务器上安装的插件列表:
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
Jenkins上是否安装了任何插件?
编辑
这是我用来实例化驱动程序的东西,我必须使用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;
}