How to speed up calabash-android query
query always take 2-3 seconds. For each query it takes around 2-3 seconds how to minimize it. I am using 0.4.6 version of calabash
for ex.
date time query
10/22/2013 2:32:15 PM: query("*").
10/22/2013 2:32:18 PM: [0]....
10/22/2013 2:32:36 PM: query("*").
10/22/2013 2:32:39 PM: [0]....
10/22/2013 2:33:17 PM: query("webview css:'input'").
10/22/2013 2:33:19 PM: [0]....
10/22/2013 2:34:35 PM: x=query("button id:'dashboard_button_01'").
10/22/2013 2:34:37 PM: [0]....
10/22/2013 2:35:21 PM: touch x.
10/22/2013 2:35:22 PM: {..}
As your tests seem to be running slow, I am guessing it could be because you are testing in simulator. Which can be really slow.
Assuming that the emulator is making this slow for you, you can follow the guidelines here on how to speed up the emulator on intelhardware http://software.intel.com/en-us/articles/speeding-up-the-android-emulator-on-intel-architecture
It gives a huge boost in performance of the emulator.
I hope it helps you.