Appium (Android): Time out on start-up after running 1 test on device Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Is there a way to run Python on Android?Is there a unique Android device ID?Error “The connection to adb is down, and a severe error has occurred.”Run/install/debug Android applications over Wi-Fi?Not able to run any test on Appium 1.4.13.1 for Android on windowsApp is not launching when i start appium serverAppium error: Logcat capture failed: spawn ENOENT With Android StudioAppium isn’t able to detect activities from my appStarting session in AppiumGetting Proxy error while running appium test for Android

AppleTVs create a chatty alternate WiFi network

In musical terms, what properties are varied by the human voice to produce different words / syllables?

Mounting TV on a weird wall that has some material between the drywall and stud

How would a mousetrap for use in space work?

Does the Mueller report show a conspiracy between Russia and the Trump Campaign?

Found this skink in my tomato plant bucket. Is he trapped? Or could he leave if he wanted?

How would you say "es muy psicólogo"?

What initially awakened the Balrog?

How to ternary Plot3D a function

I can't produce songs

Would color changing eyes affect vision?

What does 丫 mean? 丫是什么意思?

Co-worker has annoying ringtone

Why is a lens darker than other ones when applying the same settings?

NERDTreeMenu Remapping

retrieve food groups from food item list

Is it dangerous to install hacking tools on my private linux machine?

What are the main differences between Stargate SG-1 cuts?

Positioning dot before text in math mode

Moving a wrapfig vertically to encroach partially on a subsection title

What is the difference between CTSS and ITS?

How can a team of shapeshifters communicate?

What would you call this weird metallic apparatus that allows you to lift people?

Is openssl rand command cryptographically secure?



Appium (Android): Time out on start-up after running 1 test on device



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Data science time! April 2019 and salary with experience
The Ask Question Wizard is Live!Is there a way to run Python on Android?Is there a unique Android device ID?Error “The connection to adb is down, and a severe error has occurred.”Run/install/debug Android applications over Wi-Fi?Not able to run any test on Appium 1.4.13.1 for Android on windowsApp is not launching when i start appium serverAppium error: Logcat capture failed: spawn ENOENT With Android StudioAppium isn’t able to detect activities from my appStarting session in AppiumGetting Proxy error while running appium test for Android



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















TL;DR: I can run only 1 test against a certain device, then every other attempt to connect my app to an ADB session, manually or via an Appium server call, fails. How do I resolve this so that I can resume automated testing?



The Appium desired_capabilities for my device includes noReset = True. All other desired_capabilities except device identifiers are shared among and work for all my other devices.

This error was not observed until I added driver.reset() to one of my tests. Removing that line of code has not resolved this issue. Because of this, I suspect that Appium is not the root cause of this error, but rather highlighted it. My desired capabilities are:



`
'platformName': 'Android',
'platformVersion': '8.0',
'deviceName': 'WVGA_API_26',
'avd': 'WVGA_API_26',
'app_package': 'com.ferly.ferly',
'app_activity': 'host.exp.exponent.experience.ShellAppActivity',
'app_wait_package': 'com.ferly.ferly',
'automationName': 'UiAutomator2',
'noReset': 'true',`


Attempting to initialize any driver session that uses the affected device gives the following error in Appium:




WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.ferly.ferly' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:UsersJeffAppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5558 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability




Running the command in my Windows shell: C:Users<user>AppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5556 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S, where emulator-5556 is the affected device, gives the following output:




Stopping: com.ferly.ferly

Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

^C (manual break after 2 minutes of waiting.)




On my emulator, the app opens and can be used as I expect, but the adb session does not recognize that the app is opened.



Running the same command, but for an unaffected device, say emulator-5558, succeeds with this output:




Stopping: com.ferly.ferly

Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

Warning: Activity not started, its current task has been brought to the front

Status: ok

ThisTime: 0

TotalTime: 0

WaitTime: 872

Complete




Workarounds: Uninstalling the Appium Settings app on the affected device after every test allows one test to be run on that device.



What is the core issue I'm facing and how do I solve it? If it matters, my test scripts are all written in Python.










share|improve this question




























    0















    TL;DR: I can run only 1 test against a certain device, then every other attempt to connect my app to an ADB session, manually or via an Appium server call, fails. How do I resolve this so that I can resume automated testing?



    The Appium desired_capabilities for my device includes noReset = True. All other desired_capabilities except device identifiers are shared among and work for all my other devices.

    This error was not observed until I added driver.reset() to one of my tests. Removing that line of code has not resolved this issue. Because of this, I suspect that Appium is not the root cause of this error, but rather highlighted it. My desired capabilities are:



    `
    'platformName': 'Android',
    'platformVersion': '8.0',
    'deviceName': 'WVGA_API_26',
    'avd': 'WVGA_API_26',
    'app_package': 'com.ferly.ferly',
    'app_activity': 'host.exp.exponent.experience.ShellAppActivity',
    'app_wait_package': 'com.ferly.ferly',
    'automationName': 'UiAutomator2',
    'noReset': 'true',`


    Attempting to initialize any driver session that uses the affected device gives the following error in Appium:




    WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.ferly.ferly' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:UsersJeffAppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5558 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability




    Running the command in my Windows shell: C:Users<user>AppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5556 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S, where emulator-5556 is the affected device, gives the following output:




    Stopping: com.ferly.ferly

    Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

    ^C (manual break after 2 minutes of waiting.)




    On my emulator, the app opens and can be used as I expect, but the adb session does not recognize that the app is opened.



    Running the same command, but for an unaffected device, say emulator-5558, succeeds with this output:




    Stopping: com.ferly.ferly

    Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

    Warning: Activity not started, its current task has been brought to the front

    Status: ok

    ThisTime: 0

    TotalTime: 0

    WaitTime: 872

    Complete




    Workarounds: Uninstalling the Appium Settings app on the affected device after every test allows one test to be run on that device.



    What is the core issue I'm facing and how do I solve it? If it matters, my test scripts are all written in Python.










    share|improve this question
























      0












      0








      0








      TL;DR: I can run only 1 test against a certain device, then every other attempt to connect my app to an ADB session, manually or via an Appium server call, fails. How do I resolve this so that I can resume automated testing?



      The Appium desired_capabilities for my device includes noReset = True. All other desired_capabilities except device identifiers are shared among and work for all my other devices.

      This error was not observed until I added driver.reset() to one of my tests. Removing that line of code has not resolved this issue. Because of this, I suspect that Appium is not the root cause of this error, but rather highlighted it. My desired capabilities are:



      `
      'platformName': 'Android',
      'platformVersion': '8.0',
      'deviceName': 'WVGA_API_26',
      'avd': 'WVGA_API_26',
      'app_package': 'com.ferly.ferly',
      'app_activity': 'host.exp.exponent.experience.ShellAppActivity',
      'app_wait_package': 'com.ferly.ferly',
      'automationName': 'UiAutomator2',
      'noReset': 'true',`


      Attempting to initialize any driver session that uses the affected device gives the following error in Appium:




      WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.ferly.ferly' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:UsersJeffAppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5558 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability




      Running the command in my Windows shell: C:Users<user>AppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5556 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S, where emulator-5556 is the affected device, gives the following output:




      Stopping: com.ferly.ferly

      Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

      ^C (manual break after 2 minutes of waiting.)




      On my emulator, the app opens and can be used as I expect, but the adb session does not recognize that the app is opened.



      Running the same command, but for an unaffected device, say emulator-5558, succeeds with this output:




      Stopping: com.ferly.ferly

      Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

      Warning: Activity not started, its current task has been brought to the front

      Status: ok

      ThisTime: 0

      TotalTime: 0

      WaitTime: 872

      Complete




      Workarounds: Uninstalling the Appium Settings app on the affected device after every test allows one test to be run on that device.



      What is the core issue I'm facing and how do I solve it? If it matters, my test scripts are all written in Python.










      share|improve this question














      TL;DR: I can run only 1 test against a certain device, then every other attempt to connect my app to an ADB session, manually or via an Appium server call, fails. How do I resolve this so that I can resume automated testing?



      The Appium desired_capabilities for my device includes noReset = True. All other desired_capabilities except device identifiers are shared among and work for all my other devices.

      This error was not observed until I added driver.reset() to one of my tests. Removing that line of code has not resolved this issue. Because of this, I suspect that Appium is not the root cause of this error, but rather highlighted it. My desired capabilities are:



      `
      'platformName': 'Android',
      'platformVersion': '8.0',
      'deviceName': 'WVGA_API_26',
      'avd': 'WVGA_API_26',
      'app_package': 'com.ferly.ferly',
      'app_activity': 'host.exp.exponent.experience.ShellAppActivity',
      'app_wait_package': 'com.ferly.ferly',
      'automationName': 'UiAutomator2',
      'noReset': 'true',`


      Attempting to initialize any driver session that uses the affected device gives the following error in Appium:




      WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Cannot start the 'com.ferly.ferly' application. Visit https://github.com/appium/appium/blob/master/docs/en/writing-running-appium/android/activity-startup.md for troubleshooting. Original error: Error executing adbExec. Original error: 'Command 'C:UsersJeffAppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5558 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S' timed out after 20000ms'. Try to increase the 20000ms adb execution timeout represented by 'adbExecTimeout' capability




      Running the command in my Windows shell: C:Users<user>AppDataLocalAndroidsdkplatform-toolsadb.exe -P 5037 -s emulator-5556 shell am start -W -n com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity -S, where emulator-5556 is the affected device, gives the following output:




      Stopping: com.ferly.ferly

      Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

      ^C (manual break after 2 minutes of waiting.)




      On my emulator, the app opens and can be used as I expect, but the adb session does not recognize that the app is opened.



      Running the same command, but for an unaffected device, say emulator-5558, succeeds with this output:




      Stopping: com.ferly.ferly

      Starting: Intent cmp=com.ferly.ferly/host.exp.exponent.experience.ShellAppActivity

      Warning: Activity not started, its current task has been brought to the front

      Status: ok

      ThisTime: 0

      TotalTime: 0

      WaitTime: 872

      Complete




      Workarounds: Uninstalling the Appium Settings app on the affected device after every test allows one test to be run on that device.



      What is the core issue I'm facing and how do I solve it? If it matters, my test scripts are all written in Python.







      android adb appium






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 8 at 22:50









      SurilanSurilan

      157




      157






















          0






          active

          oldest

          votes












          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072097%2fappium-android-time-out-on-start-up-after-running-1-test-on-device%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55072097%2fappium-android-time-out-on-start-up-after-running-1-test-on-device%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          AWS Lex not identifying response if by a variable The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experienceEnforcing custom enumeration in AWS LEX for slot valuesHow to give response based on user response in Amazon Lex?Intercepting AWS Lambda Response to a AWS Lex QueryLex chat bot error: Reached second execution of fulfillment lambda on the same utteranceamazon lex showing invalid responseLambda response send back to Lex slot?Response card in Amazon lexAmazon Lex - Lambda response return HTML to botHow can I solve 424 (Failed Dependency) (python) obtained from Amazon lex?

          Алба-Юлія

          Захаров Федір Захарович