Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

tap and dragfromtoforduration cost too much time #448

Closed
CodeToSurvive1 opened this issue Jan 12, 2017 · 5 comments
Closed

tap and dragfromtoforduration cost too much time #448

CodeToSurvive1 opened this issue Jan 12, 2017 · 5 comments

Comments

@CodeToSurvive1
Copy link

CodeToSurvive1 commented Jan 12, 2017

when i try to do the tap or dragfromtoforduration action,it often costs too much time, usually 3-4 seconds .And i feel like that the time the screen costs relys on the complex of the screen,for example


http://127.0.0.1:8100/session/2BE1BFAE-C7C7-4FCF-AC06-9D46E61AB687/tap/null

with data

{"x":300,"y":300}

it costs 2.5s 


http://127.0.0.1:8100/session/22279C3A-ECEF-4A6F-846D-A45E540CA505/uiaTarget/0/dragfromtoforduration

with data 

{"fromX":100,"fromY":100,"toX":100,"toY":400,"duration":0.5}

it costs 3.5s

And I also debug the webdriveragent ,it looks like the real code that handles actions costs time,like:

handleTap:

  [tapCoordinate tap];

handleDrag:
  [startCoordinate pressForDuration:duration thenDragToCoordinate:endCoordinate];

I don't know why and is there any solution to solve this?

thanks in advance.

@CodeToSurvive1
Copy link
Author

Why nobody answered it?

@codeskyblue
Copy link

for this is weekend

@CodeToSurvive1 CodeToSurvive1 changed the title tap and dragfromtoforduration costs too much time tap and dragfromtoforduration cost too much time Jan 15, 2017
@marekcirkos
Copy link
Contributor

@CodeToSurvive1 Do you run it on device or sim? WDA does some additional stuff before taping. Eg. We make sure element is not being animated. Also using Xcode to boot WDA is will significantly slow down all operations due to logging and debugger.

@CodeToSurvive1
Copy link
Author

CodeToSurvive1 commented Jan 16, 2017

@marekcirkos i run webdriveragent on real device,i have tried iphone 6,6plus and 6s ,all of these cost too much time.And when i tried to debug the code,the code before and after tap or dragfromtoforduration run quickly,and cost little time,only the step tap or dragfromtoforduration cost time. And i also tried to start the webdriveragent on the phone not using xcode and used iproxy through usb,it also cost too much time.

@marekcirkos
Copy link
Contributor

There is not much we can do then. All gestures are executed by TestManager which is completely separate process.

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