Open Sourabh25 opened 5 years ago
Could you share the full appium server log?
I am new to appium. Could you please let me know where can i find the logs on my system. As I mentioned I ran the script from eclipse.
Thanks
Not sure how you ran Appium server on your environment, but mostly it could see on CLI. Appium is a CLI tool, so the output also appears there in general.
According to the log something prevents Appium to listen on the local host. This could be system firewall or some other issues with the local machine
@mykola-mokhnach why it should happen now? I was able to run the tests in ios 12.4 using appium 13.0
It is working now when I add the below code:
service = AppiumDriverLocalService.buildService(new AppiumServiceBuilder()
.usingDriverExecutable(new File("/usr/local/bin/node"))
.withIPAddress("127.0.0.1").usingPort(4723));
service.start();
not able to follow what is the reason though?
Thank Sourabh, After calling usingDriverExecutable(new File("/usr/local/bin/node") method during server start I was able to create session for iOS 12 and 11 with appium 1.15 .
But still facing issue with iOS TextField clear
not working for iOS 11 a.d 12
https://github.com/appium/appium/issues/13288
The problem
My test was working fine when I was using IOS12.4 and Appium 13.0. But now my Xcode got updated and I am having IOS13.0. Then my script starts failing. As suggested I updated appium to 1.15.0 version.
Now I am getting the below error
[RemoteTestNG] detected TestNG version 6.14.3 Trying to start the Appium Server..... [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723 FAILED CONFIGURATION: @BeforeSuite appiumServerSetup io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED CONFIGURATION: @BeforeSuite extentReportSetup SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED CONFIGURATION: @BeforeMethod setUpApp SKIPPED CONFIGURATION: @AfterMethod getResult SKIPPED: TextEntryAlertTest io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED: alertSimpleTest io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED: invalidAlertSimpleTest io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED: invalidAlertTest io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED: okay_CancelAlertTest1 io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
SKIPPED: okay_CancelAlertTest2 io.appium.java_client.service.local.AppiumServerHasNotBeenStartedLocallyException: The local appium server has not been started. The given Node.js executable: /usr/local/Cellar/node/12.6.0/bin/node Arguments: [/usr/local/lib/node_modules/appium/build/lib/main.js, --port, 4723, --address, 0.0.0.0] Process output: [35m[Appium][39m Welcome to Appium v1.15.0 [35m[Appium][39m Appium REST http interface listener started on 0.0.0.0:4723
Caused by: org.openqa.selenium.net.UrlChecker$TimeoutException: Timed out waiting for [http://0.0.0.0:4723/wd/hub/status] to be available after 120004 ms at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:100) at io.appium.java_client.service.local.AppiumDriverLocalService.ping(AppiumDriverLocalService.java:125) at io.appium.java_client.service.local.AppiumDriverLocalService.start(AppiumDriverLocalService.java:148) ... 21 more Caused by: java.util.concurrent.TimeoutException at java.util.concurrent.FutureTask.get(FutureTask.java:205) at com.google.common.util.concurrent.SimpleTimeLimiter.callWithTimeout(SimpleTimeLimiter.java:156) at org.openqa.selenium.net.UrlChecker.waitUntilAvailable(UrlChecker.java:75) ... 23 more
=============================================== Default test Tests run: 6, Failures: 0, Skips: 6 Configuration Failures: 1, Skips: 13
=============================================== Default suite Total tests run: 6, Failures: 0, Skips: 6 Configuration Failures: 1, Skips: 15
Environment