I am writing my Test Cases using maven project in Intelij IDE framework. I want to run them through jenkins whenever i push a change in git repository. At this moment when i try to build a new jenkins job the scripts fails at the point where driver tries to establish a connection with local host The error is
setUp(scenarios.AppiumTest) Time elapsed: 1.207 sec <<< FAILURE!
org.openqa.selenium.WebDriverException: org.apache.http.conn.HttpHostConnectException: Connect to 127.0.0.1:4723 [/127.0.0.1] failed: Connection refused (Connection refused)
Build info: version: ‘3.0.1’, revision: ‘1969d75’, time: ‘2016-10-18 09:49:13 -0700’
System info: host: ‘localhost.localdomain’, ip: ‘127.0.0.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘3.10.0-327.36.2.el7.x86_64’, java.version: ‘1.8.0_112’
other tahn that i have some questions:
- Do i need to start appium server by terminal or can i start it in software form ?
- Can i run my scripts from jenkins without running appium ?
- Do i need to change app path too ?
- Do i need to start emulator too manually?
I tried to modify the desired capabilities but really cant get a fruitful result.
i am so confuse about all this process.
For next step i want to run tests on saucelabs using jenkins via git repository. Any help would be appreciated.