Page 1 of 1

Ranorex support for Andriod Applications

Posted: Tue Oct 16, 2012 9:58 am
by sunilDahiya
Hi Team,

I have some questions related to Mobile Testing and Android:
1. How far does Ranorex support the Gesture or movements or scroll on APPs/Apps object?
is Ranorex supports only Click, Drag drop functionality or does it also support complex one like zooming in or zooming out, Picker, scroll view?

2. can Ranorex do good Image comparison with Mobile apps?

3. How does Ranorex behaves/communicate with Graphical objects in Apps or general?

4. is it possible to start Mobile Testing using command interface? Does Mobile Testing support External API.

Thanks & Regards,

Re: Ranorex support for Andriod Applications

Posted: Wed Oct 17, 2012 11:52 am
by Support Team
Hello,

1) Gestures are not supported in the current version but this feature is planned to be released.
2) Comparing images works the same for mobile devices as for desktop applications (see image recognition/comparison feature in user guide).
3) User drawn controls are recognized as android base classes (Views, Buttons etc), there is a feature on the roadmap to extract information from custom controls via reflection.
4) Ranorex tests for mobile devices can be started as EXE-files as known for desktop applications.

Could you please describe your last question in more detail what do you want to do?

Regards,
Markus (T)
Support Team

Re: Ranorex support for Andriod Applications

Posted: Wed Oct 17, 2012 12:18 pm
by sunilDahiya
Hi Team,

Thanks for the answers.
I have one more question:

1. Does Ranorex supports Web Apps as well? I mean can we automate web browsing apps?

Thanks again.

Re: Ranorex support for Andriod Applications

Posted: Wed Oct 17, 2012 12:32 pm
by Support Team
Hello,

You are welcome.

Currently, web apps are not supported for Android. Web apps support is planned to be released.
The exact release version is unknown at the moment.

Regards,
Markus (T)
Support Team

Re: Ranorex support for Andriod Applications

Posted: Thu Jan 10, 2013 1:51 pm
by Splendid
Hello,

You told, that gestures feature will be supported in further release.
Do you have information, when new release will be ready?

And how I can emulate drag and drop in current version (4.0.0.20817)?
I tried using:

Code: Select all

repo.App.MainPage.Test.TouchStart(0.5, 0.2);
repo.App.MainPage.Test.TouchEnd(0.5, 0.8);
But I got long tap as a result, but not movement.

Language: C#

Re: Ranorex support for Andriod Applications

Posted: Thu Jan 10, 2013 6:05 pm
by Support Team
Hello,

The gestures feature is planned to be released in one of our next releases.
Currently, we don't have a fixed release date.

Have you tried to use a 'Touch Move' between 'Touch Start' and 'Touch End' to simulate a drag gesture?
Could you please clarify what do you mean with 'long tap'?

Regards,
Markus (T)

Re: Ranorex support for Andriod Applications

Posted: Thu Jan 10, 2013 6:56 pm
by Splendid
Markus,

I also tried this code:

Code: Select all

repo.App.MainPage.Test.TouchStart(0.5, 0.2);
repo.App.MainPage.Test.TouchMove(0.5, 0.8);
repo.App.MainPage.Test.TouchEnd(0.5, 0.8);
And it gives me the same action as:

Code: Select all

repo.App.MainPage.Test.LongTouch();
As a result I receive popup message in test app instead of drag.
Can I simulate drag another way?

Re: Ranorex support for Andriod Applications

Posted: Mon Jan 14, 2013 3:05 pm
by Support Team
Hello,

It should work with both methods. Which popup message do you get?
Is it possible to get the APK file from your application in order to analyze the issue?
Thank you!

Regards,
Bernhard

Re: Ranorex support for Andriod Applications

Posted: Wed Nov 12, 2014 3:14 pm
by darius.popa
Hello,

I have a similar problem. What I want, is to drag and drop an element. The mechanism is the following:
- Long tap on the element
- Drag the element
- Drop the element
I was able to do it from the left to the right in this way

Code: Select all

repo.ComSnaponScanner.Right_Pane.Select_Vehicle.PIDs_Screen.Row1_Landscape.LeftLayout.TopGraph.TopGraph.TouchStart("255;25");
repo.ComSnaponScanner.Right_Pane.Select_Vehicle.PIDs_Screen.Row1_Landscape.LeftLayout.TopGraph.TopGraph.TouchMove("355;100");
repo.ComSnaponScanner.Right_Pane.Select_Vehicle.PIDs_Screen.Row1_Landscape.LeftLayout.TopGraph.TopGraph.TouchEnd("355;100");
The problem starts when I want to drag that element back, from the right side to the left. As far as I read, the arguments for these methods are percent of the element. I tried with negative values, but it didn't work. If you have any suggestions, please let me know.

Thanks,
Darius

Re: Ranorex support for Andriod Applications

Posted: Fri Nov 14, 2014 1:05 pm
by Support Team
HI all,

Just to keep you up to date, we are already in contact with Darius by email.

We will update this post as soon as we have found a solution for this problem.

Regards,
Markus (S)