App does not launch

i am using appium studio 10.8. I copied the code to eclipse , and also chnaged the annotations in my script to testng annotations from junit. It was working all the while. All of a sudden my app does not launch at all. It just gives me a time out wait for device error.

How do i solve this issue :frowning:

com.experitest.client.InternalException: Timeout wait for device
at com.experitest.client.JavaClientInternals.waitForDevice(
at com.experitest.client.Client.waitForDevice(
at com.experitest.appium.STClientFacade.(
at com.experitest.appium.STIOSClientFacade.(
at com.experitest.appium.SeeTestIOSDriver.(
at testpack1.appiumstudio1.setUp(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.testng.internal.MethodInvocationHelper.invokeMethod(
at org.testng.internal.Invoker.invokeConfigurationMethod(
at org.testng.internal.Invoker.invokeConfigurations(
at org.testng.internal.Invoker.invokeConfigurations(
at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(
at org.testng.TestRunner.privateRun(
at org.testng.SuiteRunner.runTest(
at org.testng.SuiteRunner.runSequentially(
at org.testng.SuiteRunner.privateRun(
at org.testng.SuiteRunnerWorker.runSuite(
at org.testng.TestNG.runSuitesSequentially(
at org.testng.TestNG.runSuitesLocally(
at org.testng.TestNG.runSuites(
at org.testng.remote.RemoteTestNG.initAndRun(
at org.testng.remote.RemoteTestNG.main(

your device needs to be on Status “Ready” in the Appium Studio UI before you start the test execution

The device is in Ready state in Appium studio. It just stops working… It was working all these while… I faced this issue atleast twice until now… I have no idea, when it will start working again…

Hi @nisha

Please try the following:

  1. Disconnect the device from your machine.
  2. Locate the app PaltielX in your device and delete it.
  3. Reconnect the device to your machine.
  4. Wait for PaltielX to be reinstalled
  5. Try to run your test from Eclipse

I tried the solution provided above, still does not seem to work.

I am using mac os x 10.12.4. And ios version 10.3.2. I recently updated my appium studio to 10.9.

code still does not run in eclipse… Somebosy help me out!!! How can i solve this?

Its very inconsistent…

could it be that you are not releasing the driver after ends?

can you make sure that you follow the convention of :

import io.appium.java_client.AppiumDriver;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;


 * grid-tests
 * Created by tom.ben-simhon on 7/26/2017.
public class TestNGClass {
    AppiumDriver driver;
    public void setUp() throws Exception {
        DesiredCapabilities dc = new DesiredCapabilities();
        driver = new AndroidDriver(new URL("http://localhost:4723/wd/hub"), dc);


    public void testName() throws Exception {
        //some methods

    public void tearDown() throws Exception {

package testpack1;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.remote.DesiredCapabilities;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import com.experitest.appium.SeeTestCapabilityType;
import com.experitest.appium.SeeTestIOSDriver;
import com.experitest.appium.SeeTestIOSElement;
import io.appium.java_client.remote.IOSMobileCapabilityType;
import io.appium.java_client.remote.MobileCapabilityType;

public class appiumstudio1 {
private String host = “localhost”;
private int port = 4723;
private String reportDirectory = “reports”;
private String reportFormat = “xml”;
private String testName = “xxx-ios tests";
protected SeeTestIOSDriver driver = null;

public void setUp() throws MalformedURLException {
	DesiredCapabilities dc = new DesiredCapabilities();
	dc.setCapability(SeeTestCapabilityType.REPORT_DIRECTORY, reportDirectory);
	dc.setCapability(SeeTestCapabilityType.REPORT_FORMAT, reportFormat);
	dc.setCapability(SeeTestCapabilityType.TEST_NAME, testName);
	dc.setCapability(SeeTestCapabilityType.PROJECT_NAME, “xxxxxx”);
           dc.setCapability(MobileCapabilityType.UDID, “xxxxxxxxxxxxxx”);
       dc.setCapability(IOSMobileCapabilityType.BUNDLE_ID, “xxxxxxxx”);	
           driver = new SeeTestIOSDriver<>(new URL(""), dc);

public void testLogin() {
	 driver.swipe(381, 284, 329, 719, 369);
                   —— My first test code is here——


public void viewDashboard() 	{
	//Test Case2: 	


public void tearDown() {


I follow this structure. Is something wrong with it?

BeforeClass and AfterClass runs only once per class initialization

change it to BeforeMethod and AfterMethod so it will run after each @Test instance

Strangely i am working on another iphone today, and it works…

Again i am facing the same issue. The app does not launch at all , gives time out… Why does this issue come so randomly and very inconsistent… Please solve this issue … What can be done to avoid the issue?

can you share your most recent code?

when you are able to reproduce the error, could you collect the logs and share them with us?



I think this article will solve your problem. - Data Provider in TestNG