Closed fatahillahardhi closed 11 months ago
I got the same issue with Android, is there any solution? please help me
@fatahillahardhi and @qubui add a log file in the Appium service builder it will resolve new AppiumServiceBuilder() .usingAnyFreePort() .usingDriverExecutable(new File("/usr/local/bin/node")) .withLogFile(new File(System.getProperty("user.dir")+"appium.log")) .withArgument(GeneralServerFlag.RELAXED_SECURITY) .build() .start();
The below code will resolve the issue .withLogFile(new File(System.getProperty("user.dir")+"appium.log"))
Thanks a lot @ashwithpoojary98, you are my life saver :).
I need one more help that how to run test with real device for android and on browserStack, @ashwithpoojary98 do you have any hint?
@qubui, For Android, you can connect your real device and enable the developer option on your phone. Then, you can start executing the test cases. However, for iOS, you need extra configuration to run the test cases on real devices. BrowserStack is similar to local execution, but you need to change the URL and add an app, username, and passkey to the capabilities.
@ashwithpoojary98 Do you have a code for these?
.withLogFile(new File(System.getProperty("user.dir")+"appium.log"))
What does this line exactly do @ashwithpoojary98 This line fixed the problem somehow
@manikantp issue with the Selenium Build log file, and it was recently fixed. Before, it was checking for the file in a default location that does not exist.
@manikantp issue with the Selenium Build log file, and it was recently fixed. Before, it was checking for the file in a default location that does not exist.
Oh that's why I thought why is the code behaving like this 😅. Thanks by the way 👍. This helped a lot
Duplicate of #2004
Do I have the most recent component updates?
Is the component officially supported by the Appium team?
Is there an existing issue for this?
Current Behavior
I tried to run Appium programmatically and always failed because
java.lang.NullPointerException
Expected Behavior
can run normally because when I used Appium 1.22.3 it can run as well
Minimal Reproducible Example
Environment
appium --version
): 2.1.3node --version
): v18.17.1npm
version (output ofnpm --version
): 9.8.1Link to Appium Logs
https://gist.github.com/fatahillahardhi/7f2023cabb07f2425342dec1eb7b1a47
Further Information
here's my code