Jenkins remote execution

Hello,

Until now, I ran my scripts via my personal computer. I used Jenkins (on localhost)
and followed the tutorial and it worked great.
I would like now to execute my tests using a Jenkins account that isn’t on localhost but instead, on my company’s server. I’m not sure how to configure the job in Jenkins. Should I integrate it with my GitHub project? What should I write in the build configuration?

Please help,
Roi

You can create your company’s server as a slave and execute it from your current machine as a master. See this guide here:
https://wiki.jenkins.io/display/JENKINS/Step+by+step+guide+to+set+up+master+and+slave+machines+on+Windows

Thanks for your reply Vinh!
I don’t want my personal computer to be involved in any part of the execution though.
All my tests are stored in a Github project. Isn’t there a way for a Jenkins account (not localhost) to pull my tests from Github and execute them?

Script is not working my local host jenkins anyhow it is working in command prompt. I’m not seeing any browser was not launching in my local machine.Please assist me.

just set up into the execution job the proper git repo, into the source code management section, and it will be grabbed automatically by jenkins from the given location before starting the ‘build’

jenkins_git.png

The code was in local machine. In source code management select by “None”.

Capture.PNG

This is my console report, Unable to launch even browser

Started by user JegadeeshBuilding in workspace C:\Program Files (x86)\Jenkins\workspace\Katalon57[Katalon57] $ cmd /c call C:\Windows\TEMP\jenkins7314289999071419559.batC:\Program Files (x86)\Jenkins\workspace\Katalon57>C:C:\Program Files (x86)\Jenkins\workspace\Katalon57>cd C:\Users\jm5140\Katalon_Studio_Windows_64-5.7.1\Katalon_Studio_Windows_64-5.7.1 C:\Users\jm5140\Katalon_Studio_Windows_64-5.7.1\Katalon_Studio_Windows_64-5.7.1>katalon -runMode=console -projectPath="C:\Users\jm5140\Katalonworkspace57\tSpaceDemo\tSpaceDemo.prj" -reportFolder="Reports" -reportFileName="report" -retry=0 -testSuitePath="Test Suites/Login" -browserType="IE" Starting Groovy-Eclipse compiler resolver.  Specified compiler level: unspecified150 2.4.7.xx-201611170128-e46 = ACTIVE--------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159.................................0/1(0%)--------------------------------------------------------------------------------09-27-2018 07:22:03 PM - [START]  - Start Test Suite : Test Suites/Login09-27-2018 07:22:03 PM - [RUN_DATA] - Logging run data 'hostName' with value 'HVDIVD18MIS1491$ - HVDIVD18MIS1491.ITServices.sbc.com'09-27-2018 07:22:03 PM - [RUN_DATA] - Logging run data 'os' with value 'Windows 7 64bit'09-27-2018 07:22:03 PM - [RUN_DATA] - Logging run data 'hostAddress' with value '135.66.24.228'09-27-2018 07:22:03 PM - [RUN_DATA] - Logging run data 'katalonVersion' with value '5.7.1.1'09-27-2018 07:22:04 PM - [START]  - Start Test Case : Test Cases/LoginHomePage09-27-2018 07:22:04 PM - [INFO]   - Evaluating variables for test case09-27-2018 07:22:05 PM - [START]  - Start action : openBrowser09-27-2018 07:22:06 PM - [INFO]   - Opening browser09-27-2018 07:22:06 PM - [INFO]   - Starting 'IE' driver09-27-2018 07:22:06 PM - [INFO]   - Action delay is set to 0 secondsStarted InternetExplorerDriver server (32-bit)3.6.0.0Listening on port 17554Log level is set to TRACELog file is set to C:\Users\jm5140\Katalonworkspace57\tSpaceDemo\Reports\Login\20180927_192159\IEDriverServer.logOnly local connections are allowedSep 27, 2018 7:22:11 PM org.openqa.selenium.remote.ProtocolHandshake createSessionINFO: Detected dialect: W3C09-27-2018 07:22:11 PM - [RUN_DATA] - Logging run data 'sessionId' with value '1df92648-22ab-4f38-b688-5f606ca8ffdd'09-27-2018 07:22:11 PM - [RUN_DATA] - Logging run data 'browser' with value 'IE 11'09-27-2018 07:22:11 PM - [RUN_DATA] - Logging run data 'platform' with value 'Windows 7'09-27-2018 07:22:11 PM - [RUN_DATA] - Logging run data 'seleniumVersion' with value '3.7.1'09-27-2018 07:22:11 PM - [RUN_DATA] - Logging run data 'proxyInformation' with value 'ProxyInformation{proxyOption=NO_PROXY, proxyServerType=HTTP, password=, proxyServerAddress=, proxyServerPort=0}'09-27-2018 07:22:11 PM - [PASSED] - Browser is opened with url: ''09-27-2018 07:22:11 PM - [END]    - End action : openBrowser09-27-2018 07:22:11 PM - [START]  - Start action : navigateToUrl09-27-2018 07:22:12 PM - [INFO]   - Checking url09-27-2018 07:22:12 PM - [INFO]   - Navigating to 'http://tspace.stage.att.com'Thu Sep 27 19:22:14 IST 2018Cannot send request, retry to send.No proxy found.--------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159.................................0/1(0%)--------------------------------------------------------------------------------Thu Sep 27 19:22:21 IST 2018Cannot send request, retry to send.No proxy found.09-27-2018 07:22:28 PM - [FAILED] - Unable to navigate to 'tspace.stage.att.com' (Root cause: org.openqa.selenium.WebDriverException: Failed to navigate to http://tspace.stage.att.com. This usually means that a call to the COM method IWebBrowser2::Navigate2() failed.Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'System info: host: 'HVDIVD18MIS1491', ip: '135.66.24.228', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_181'Driver info: com.kms.katalon.selenium.driver.CInternetExplorerDriverCapabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:17554/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true}Session ID: 1df92648-22ab-4f38-b688-5f606ca8ffdd)09-27-2018 07:22:28 PM - [END]    - End action : navigateToUrl09-27-2018 07:22:28 PM - [FAILED] - Test Cases/LoginHomePage FAILED because (of) (Stack trace: com.kms.katalon.core.exception.StepFailedException: Unable to navigate to 'tspace.stage.att.com' (Root cause: org.openqa.selenium.WebDriverException: Failed to navigate to http://tspace.stage.att.com. This usually means that a call to the COM method IWebBrowser2::Navigate2() failed.Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'System info: host: 'HVDIVD18MIS1491', ip: '135.66.24.228', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_181'Driver info: com.kms.katalon.selenium.driver.CInternetExplorerDriverCapabilities {acceptInsecureCerts: false, browserName: internet explorer, browserVersion: 11, javascriptEnabled: true, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, se:ieOptions: {browserAttachTimeout: 0, elementScrollBehavior: 0, enablePersistentHover: true, ie.browserCommandLineSwitches: , ie.ensureCleanSession: false, ie.fileUploadDialogTimeout: 3000, ie.forceCreateProcessApi: false, ignoreProtectedModeSettings: false, ignoreZoomSetting: false, initialBrowserUrl: http://localhost:17554/, nativeEvents: true, requireWindowFocus: false}, setWindowRect: true}Session ID: 1df92648-22ab-4f38-b688-5f606ca8ffdd)	at com.kms.katalon.core.keyword.internal.KeywordMain.stepFailed(KeywordMain.groovy:36)	at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:65)	at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:27)	at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.navigateToUrl(NavigateToUrlKeyword.groovy:83)	at com.kms.katalon.core.webui.keyword.builtin.NavigateToUrlKeyword.execute(NavigateToUrlKeyword.groovy:67)	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:53)	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.navigateToUrl(WebUiBuiltInKeywords.groovy:164)	at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$navigateToUrl$0.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)	at Script1538053071077.run(Script1538053071077.groovy:18)	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:183)	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:108)	at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:294)	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:285)	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:264)	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:256)	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:200)	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)	at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:142)	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)	at TempTestSuite1538056319439.run(TempTestSuite1538056319439.groovy:36)	at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263)	at groovy.lang.GroovyShell.run(GroovyShell.java:518)	at groovy.lang.GroovyShell.run(GroovyShell.java:507)	at groovy.ui.GroovyMain.processOnce(GroovyMain.java:653)	at groovy.ui.GroovyMain.run(GroovyMain.java:384)	at groovy.ui.GroovyMain.process(GroovyMain.java:370)	at groovy.ui.GroovyMain.processArgs(GroovyMain.java:129)	at groovy.ui.GroovyMain.main(GroovyMain.java:109)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)	at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131))09-27-2018 07:22:28 PM - [END]    - End Test Case : Test Cases/LoginHomePage--------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159...............................1/1(100%)----------------------------------------------------------------------------------------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159...............................1/1(100%)----------------------------------------------------------------------------------------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159...............................1/1(100%)--------------------------------------------------------------------------------09-27-2018 07:23:12 PM - [END]    - End Test Suite : Test Suites/LoginSep 27, 2018 7:23:12 PM org.openqa.selenium.os.OsProcess destroyINFO: Unable to drain process streams. Ignoring but the exception being swallowed follows.org.apache.commons.exec.ExecuteException: The stop timeout of 2000 ms was exceeded (Exit value: -559038737)	at org.apache.commons.exec.PumpStreamHandler.stopThread(PumpStreamHandler.java:295)	at org.apache.commons.exec.PumpStreamHandler.stop(PumpStreamHandler.java:181)	at org.openqa.selenium.os.OsProcess.destroy(OsProcess.java:136)	at org.openqa.selenium.os.CommandLine.destroy(CommandLine.java:153)	at org.openqa.selenium.remote.service.DriverService.stop(DriverService.java:222)	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:95)	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)	at com.kms.katalon.selenium.driver.CInternetExplorerDriver.execute(CInternetExplorerDriver.java:22)	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:657)	at org.openqa.selenium.remote.RemoteWebDriver.quit(RemoteWebDriver.java:496)	at com.kms.katalon.core.webui.driver.DriverFactory.quitIE(DriverFactory.java:935)	at com.kms.katalon.core.webui.driver.DriverFactory.closeWebDriver(DriverFactory.java:899)	at com.kms.katalon.core.webui.contribution.WebUiDriverCleaner.cleanDrivers(WebUiDriverCleaner.java:9)	at com.kms.katalon.core.driver.internal.DriverCleanerCollector.cleanDrivers(DriverCleanerCollector.java:27)	at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:92)	at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:142)	at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:141)	at TempTestSuite1538056319439.run(TempTestSuite1538056319439.groovy:36)	at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263)	at groovy.lang.GroovyShell.run(GroovyShell.java:518)	at groovy.lang.GroovyShell.run(GroovyShell.java:507)	at groovy.ui.GroovyMain.processOnce(GroovyMain.java:653)	at groovy.ui.GroovyMain.run(GroovyMain.java:384)	at groovy.ui.GroovyMain.process(GroovyMain.java:370)	at groovy.ui.GroovyMain.processArgs(GroovyMain.java:129)	at groovy.ui.GroovyMain.main(GroovyMain.java:109)	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)	at java.lang.reflect.Method.invoke(Method.java:498)	at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:109)	at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:131)Sep 27, 2018 7:23:12 PM org.openqa.selenium.os.OsProcess destroySEVERE: Unable to kill process java.lang.ProcessImpl@4d666b41Copying report to folder C:\Users\jm5140\Katalonworkspace57\tSpaceDemo\Reports...--------------------------------------------------------------------------------Test Suites/Login - IE - 20180927_192159...............................1/1(100%)--------------------------------------------------------------------------------C:\Users\jm5140\Katalon_Studio_Windows_64-5.7.1\Katalon_Studio_Windows_64-5.7.1>exit 1 Build step 'Execute Windows batch command' marked build as failureFinished: FAILURE

try a headless driver (chrome or firefox)