When I am running, appium basic test ,then error message showing
can you show BeforeClass configuration?
Next time can you post as text? Can’t copy/paste from a screenshot.
@BeforeClass
public void configuration() throws MalformedURLException {
service = new AppiumServiceBuilder()
.withAppiumJS(new File(
“C://Users//vishnudas//AppData//Roaming//npm//node_modules//appium//build//lib//main.js”))
.withIPAddress(“127.0.0.1”).usingPort(4723).build();
// service.start();
UiAutomator2Options options = new UiAutomator2Options();
options.setDeviceName(“PixbitDevice”);
options.setApp(“D://Eclipse_Automation//UserApp//src//test//java//resources//user_app.apk”);
driver = new AndroidDriver(new URL(“http://127.0.0.1:4723”), options);
you can try to add this after
.usingPort(4723).usingDriverExecutable(new File(“C:\Program Files\nodejs\node.exe”)).build();
service.start();
driver = new AndroidDriver(new URL(“http://127.0.0.1:4723”), options);
driver.manage().timeouts().implicitlyWait(Duration.ofSeconds(10));
- upgrade your appium java-client to version 8.5.0
instead to use the constructor configure() in normaTest class try this:
public void normalTest extends (the class that contains your configuration)
After appium client server updation,that’s working correctly