cancel
Showing results for 
Search instead for 
Did you mean: 

Test Complete - Is it possible to perform rapid multi taps on iOS device

SOLVED
Occasional Contributor

Test Complete - Is it possible to perform rapid multi taps on iOS device

I am testing a mobile application which has a hidden feature, by request of the client, that is accessed by a 2 fingered tab, three times.

 

Unfortunately as this can't be simulated by TC i currently have the script wait for a user input.

I have also asked the devs to put in another access method, of a single finger tap, 6 times rapidly.

 

Unfortunately when i record this it works, but on playback the script has huge delay in it and i can't seem to find any setting to reduce this. Is it possible to produce a playback of a rapid tap?

 

Am i using the wrong touch control or is there a setting or method to reduce the daelay between actions (Delay between Events, ms: was 50 but tried 0)

 

Any advice would be appreciated

 

 

procedure Test1;
  var window : OleVariant;
  var navigationBar : OleVariant;
  var vlabel : OleVariant;
begin
  Mobile.SetCurrent('Rps iPad Pro (2018)');
  window := Aliases.Device.processApplication.window0;
  navigationBar := window.navigationbar0;
  vlabel := navigationBar.labelWelcome;
  vlabel.Touch(28, 12);
  vlabel.Touch(28, 12);
  vlabel.Touch(28, 12);
  vlabel.Touch(28, 12);
  vlabel.Touch(28, 12);
  vlabel.Touch(28, 12);
end;
1 ACCEPTED SOLUTION

Accepted Solutions
Occasional Contributor

Re: Test Complete - Is it possible to perform rapid multi taps on iOS device

Got a workaround, as i was writting the last update. Appears .LongTouch supports a time, even though it wasn't detailed on this page. it maybe out of date with all the updates SmartBear do.

 

https://support.smartbear.com/testcomplete/docs/app-testing/mobile/ios/simulating-user-actions.html#...

 

The following code works and i have had the Devs update the app to support that backdoor.

 

vlabel.LongTouch(28, 12, 5000);

4 REPLIES 4
Occasional Contributor

Re: Test Complete - Is it possible to perform rapid multi taps on iOS device

I have also looked at maybe using the .TouchAndHold command, detailed here, as i could potentially ask the devs to change the multi touch, but it doesn't seem to be supported when I look in the Object Spy Methods, Action section

https://support.smartbear.com/testcomplete/docs/reference/test-objects/controls/mobile/android/devic...

Occasional Contributor

Re: Test Complete - Is it possible to perform rapid multi taps on iOS device

Got a workaround, as i was writting the last update. Appears .LongTouch supports a time, even though it wasn't detailed on this page. it maybe out of date with all the updates SmartBear do.

 

https://support.smartbear.com/testcomplete/docs/app-testing/mobile/ios/simulating-user-actions.html#...

 

The following code works and i have had the Devs update the app to support that backdoor.

 

vlabel.LongTouch(28, 12, 5000);

Highlighted
Community Hero

Re: Test Complete - Is it possible to perform rapid multi taps on iOS device

Hi,

 

While it is too late (as you already have a workaround), but just for the record: https://support.smartbear.com/testcomplete/docs/app-testing/mobile/android/multi-touch/index.html

Maybe it is an option...

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
Occasional Contributor

Re: Test Complete - Is it possible to perform rapid multi taps on iOS device

Thanks for the reply and taking the  time to look into it.

 

That appears to be Android gesture input. Apple iOS inputs are much more rescrictive, proabably more due to Apple being much tighter on the access they give, than Android. While i don't have any apps on Android just yet, i have book marked this for the future.

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors