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

Extremely slow appium tests since recent updates #5740

Closed
keaneal opened this issue Oct 19, 2015 · 15 comments
Closed

Extremely slow appium tests since recent updates #5740

keaneal opened this issue Oct 19, 2015 · 15 comments
Labels
iOS related to iOS native driver(s)

Comments

@keaneal
Copy link

keaneal commented Oct 19, 2015

Appium.app 1.4.13
Mac OSX 10.10.5 Yosemite
Xcode 7.0
iOS Simulator 9.1

We've had this problem for a couple of months now and it is getting to the point where we might have to stop using appium. I'm not sure if it was the update to yosemite, ios 9 or appium 1.4 but somewhere along the line performance just fell off a cliff. Before tests that took 10 minutes are now taking up to an hour. There doesn't seem to be any one reason, just a general slowness in all appium actions.

I've seen a few other issues describing slowness but they don't seem directly related to ours. #4397 The user in this issue claims it was resolved by turning off log debugging but we don't have that enabled?

We run our tests using Cucumber if thats relevant? I am happy to provide any more details. We really need to get this resolved as our entire regression test suite for our mobile app is now creeping up to 24 hours!

@triager triager added the Needs Triage bugs which are not yet confirmed label Oct 19, 2015
@scottdixon-zz
Copy link

instruments-without-delay doesn't support Xcode 7. This could be the culprit. @moizjv is working on a solution.

@scottdixon-zz scottdixon-zz added iOS related to iOS native driver(s) and removed Needs Triage bugs which are not yet confirmed labels Oct 20, 2015
@keaneal
Copy link
Author

keaneal commented Oct 21, 2015

Yes our update to Xcode 7 would certainly coincide with the performance drop off. Is there any workarounds available and/or an open issue so I can monitor progress on a solution?

@vinceis1337
Copy link

Is everyone aware that Facebook has replied and basically said the repo is orphaned?

facebookarchive/instruments-without-delay#18

Someone already has a fix for instruments-without-delay but the repo needs to be forked and maintained by someone else.

@moizjv
Copy link
Member

moizjv commented Oct 29, 2015

@moizjv moizjv closed this as completed Oct 29, 2015
@moizjv moizjv reopened this Oct 29, 2015
@moizjv
Copy link
Member

moizjv commented Oct 29, 2015

let us know if that fixes the issue

@djwgit
Copy link

djwgit commented Dec 8, 2015

hi, @moizjv
I have xcode 711, ios simulator 9.1, appium 1.4.15
executed the script, the keys/dict injected into com.apple.instruments.deviceservice.plist
but iwd not working for instruments...

info: [debug] Attempting to run app on iPhone 6 (9.1) [
info: On xcode 7.0, instruments-without-delay does not work, skippinginstruments-without-delay

DTMobileISShim.dylib under appium iwd7 is dated Sep25, should I switch back to xcode 7 ?
thanks

@ywang24
Copy link

ywang24 commented Dec 22, 2015

Hi Moizjv, thank you for helping on this issue,I saw the same issue as djwgit:

info: [debug] Instruments is at: /Applications/Xcode7.app/Contents/Developer/usr/bin/instruments
info: Launching instruments
info: [debug] Attempting to run app on iPhone 6 (9.1) [
info: [debug] Attempting to run app with process arguments: 1278
info: On xcode 7.0, instruments-without-delay does not work, skippinginstruments-without-delay

@ywang24
Copy link

ywang24 commented Dec 30, 2015

my problem is gone... need to add sudo when execute the command.

@moizjv moizjv closed this as completed Jan 25, 2016
@djwgit
Copy link

djwgit commented Jan 27, 2016

need to make sure using 9.2 simulator, not clear in the doc.

@keaneal
Copy link
Author

keaneal commented Mar 11, 2016

I'm only getting around to trying this out now, is there any way to confirm it is definitely working? Also does the simulator have to be 9.2, is 9.0 okay?

@moizjv
Copy link
Member

moizjv commented Mar 11, 2016

@keaneal it should work for iOS > 9 and xcode > 7

@KBhatti
Copy link

KBhatti commented Apr 1, 2016

is this supposed to work now? I am not sure if my instruments-without-delay is working by default or if I need to put in extra commands to make it work. I am using xcode 7.3, Appium 1.5.0. When I launch appium from the command line and attempt to run my maven test Project (whether on Simulator or real device) here is what I see
[debug] [Instruments] Attempting to launch instruments, this is try #1
[Instruments] Launching instruments
[debug] [Instruments] Attempting to run app on iPhone 6s Plus (9.3) [
[Instruments] On xcode 7.0+, instruments-without-delay does not work, skipping instruments-without-delay
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7

Does this mean that my IWD is getting launched automatically every time I run a test (on Simulator or real device). Or is it not running ?

Thanks.

@imurchie
Copy link
Contributor

imurchie commented Apr 1, 2016

You'll need to run the command linked to above for each xcode, I think. The logs, unfortunately, will still say that it doesn't work.

@KBhatti
Copy link

KBhatti commented Apr 1, 2016

well the thing is that if you look at the logs this line doesn't it mean that the IWD is working?
[Instruments] On xcode 7.0+, instruments-without-delay does not work, skipping instruments-without-delay
[debug] [Instruments] Found Insruments-Without-Delay: /usr/local/lib/node_modules/appium/node_modules/appium-instruments/thirdparty/iwd7

I am assuming that for me its working by defaul? Or is it no ?

@lock
Copy link

lock bot commented Apr 30, 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 Apr 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
iOS related to iOS native driver(s)
Projects
None yet
Development

No branches or pull requests

9 participants