I have prepared a test cases using selenium webdriver and I ran locally 
using MSTEST and it works fine and now I would like to move my test cases 
to JENKINS, and when i run from JENKINS it says Starting execution... and 
its more than 15 mnts and still the same status so I have to stop it 
manually.

here is my console output:

Started by user anonymous
Started by user anonymous
Building in workspace D:\Jenkins\jobs\Selenium_Script\workspace
[workspace] $ cmd /c call 
C:\Users\XXXXXXX\AppData\Local\Temp\hudson4765437871038045571.bat

D:\Jenkins\jobs\SelScript\workspace>call "D:\Program Files (x86)\Microsoft 
Visual Studio 10.0\Common7\IDE\mstest" 
/testcontainer:D:\Sel\EmployeeTest\test.emp.admin.dll 
Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.

Loading D:\Sel\EmployeeTest\test.emp.admin.dll...
Starting execution...

Build was aborted
Finished: ABORTED

I wanted to execute the test case on Jenkins and check the result of 
execution

and here is my code I'm using just in case.

This is what I am using to instantiated my driver, do I have to use 
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;
        }


Posted my question here too:

http://stackoverflow.com/questions/15818700/start-selenium-test-cases-using-jenkins


-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to