Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new session in ios is very slow #11132

Closed
orevron opened this issue Jul 31, 2018 · 7 comments
Closed

new session in ios is very slow #11132

orevron opened this issue Jul 31, 2018 · 7 comments

Comments

@orevron
Copy link

orevron commented Jul 31, 2018

The problem

after using the 'wd driver', driver.init() function i can see the app installed on the device and this is the last log from the appium, server:

[JSONWP Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"desiredCapabilities":{"bundleId":"com.capriza.approvalsapp.qaBeta","arguments":["-detoxServer","http://localhost:8099","-detoxSessionId","1111"],"environment":{},"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true}}

and than the function stuck for 5.5 minutes minutes and finish with success.
it happens only on ios.

Environment

  • 1.8.1
  • MacOSX High Sierra 10.13.6
  • Node.js version: 8.9.4
  • iPhone X iOS 11.4
  • simulator
  • Appium.app

Details

attached appium log:
https://gist.github.com/orevron/ee51a36179dd4e78c85ae03fd6a3f01c

@KazuCocoa
Copy link
Member

I'm not familiar with running with detox, but what about changing your test app to another app which doesn't need detox like test app in https://github.com/appium/appium/tree/master/sample-code/apps ?

https://github.com/wix/detox/blob/7650996f3c02c853c483421587f4d03d4a025fea/detox/ios/Detox/DetoxManager.m#L48

[Appium]   processArguments: {
[Appium]     args: {
[Appium]       0: -detoxServer
[Appium]       1: http://localhost:8099
[Appium]       2: -detoxSessionId
[Appium]       3: 1111
[Appium]     }
[Appium]   }

I wondered the slow is waiting for launching the test app with detox server.

@orevron
Copy link
Author

orevron commented Jul 31, 2018

Actually I already solved it by adding the
“waitForQuietness: false” capability.

@KazuCocoa
Copy link
Member

thanks

@mike-pt
Copy link

mike-pt commented Aug 28, 2018

@orevron I'm facing a similar issue, but I don't find anything about waitForQuietness in the docs what does this do exactly? I'm curious.

@KazuCocoa
Copy link
Member

@mike-pt
Copy link

mike-pt commented Aug 29, 2018

ah cool, we are currently using mutliprocession to spin up multiple sims and split test cases, but we noticed init is very slow, and the more sims we create the more we noticed this...

I wonder if this will help a bit.

thanks

@lock
Copy link

lock bot commented Aug 29, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants