Ranorex for Andorid Emulator App testing integrate Jenkins.

Mobile Testing, Android App Testing.
User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by odklizec » Mon Mar 30, 2015 1:16 pm

OK, try this. Let Jenkins to create the emulator and install the APK into it and skip the Ranorex step. Then try to manually run the emulator with installed APK. Just to be sure the emulator alone works.

BTW, are you sure the APK you installing to emulator is instrumented with Ranorex? Ranorex is not able to automate a non-instrumented application!
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Mon Mar 30, 2015 2:03 pm

I checked manually existing emulators app is install and open or not.It is installed and also app is opening.
I already tried in different ways.In Jenkins i configure below steps,
1. Create Emulator
2. Install apk
3. Open/run apk
4.Execute Ranorex Scripts

Some times skip step 3 in above. because Ranorex Record scripts automatically open app in emulator.


I configure Jenkins create emulator and run Ranorex Scripts, and i escaped installing apk file. After run job i got same error.
C:\Users\Ashok\.jenkins\jobs\RanorexAnroidEmulator\workspace>.\AndroidEmulator\bin\Debug\AndroidEmulator.exe /tc:TestCase /rf:.\Reports\23\23\Report.html

[2015/03/30 18:14:50.357][Debug ][Logger]: Console logger starting.
[2015/03/30 18:14:50.604][Info ][Test]: Test Suite 'AndroidEmulator' started.
[2015/03/30 18:14:50.650][Info ][Test]: Test Case 'TestCase' started.
[2015/03/30 18:14:50.663][Info ][Test]: Test Module 'Recording1' started.
[2015/03/30 18:14:50.748][Info ][Application]: Run mobile app 'com.gorillalogic.monkeytalk.demo1' on device 'emulator-5554'.

[2015/03/30 18:16:11.074][Error ][Module]: Failed to start app 'com.gorillalogic.monkeytalk.demo1' because the app started event was not received within the specified timeout of '00:01:20'.<br/>The operation has timed out.

[2015/03/30 18:16:11.175][Failure][Test]: Test Module 'Recording1' completed with status 'Failed'.
[2015/03/30 18:16:11.176][Failure][Test]: Test Case 'TestCase' completed with status 'Failed'.
[2015/03/30 18:16:11.190][Failure][Test]: Test Suite 'AndroidEmulator' completed with status 'Failed'.
[2015/03/30 18:16:11.255][Debug ][Logger]: Console logger stopping.

Testing team sent to me screenshots of Ranorex config. I can attach below.
Attachments
AddApp_Step3.png
AddApp_Step3.png (261.8 KiB) Viewed 1213 times
AddApp_Step2.png
AddApp_Step2.png (268.24 KiB) Viewed 1213 times
AddApp_Step1.png
AddApp_Step1.png (234.12 KiB) Viewed 1213 times

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Mon Mar 30, 2015 2:06 pm

I attached screenshots of Ranorex Config
Attachments
step1.png
step1.png (218.11 KiB) Viewed 1213 times
Login.png
Login.png (349.33 KiB) Viewed 1213 times
AddApp_Step4.png
AddApp_Step4.png (236.77 KiB) Viewed 1213 times

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Mon Mar 30, 2015 2:08 pm

Scrrenshots of Device configure for Testing team
Attachments
step5.png
step5.png (280.5 KiB) Viewed 1211 times
step4.png
step4.png (280.08 KiB) Viewed 1211 times
step3.png
step3.png (228.04 KiB) Viewed 1211 times

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Wed Apr 01, 2015 10:24 am

Hi,
My problem is not resolved. Still working in Ranorex for Android Emulator app testing in Jenkins.

I think the issue is, it is not testing the new emulator versions and devices of existing record scripts. I am not a tester, my job is integrate Testing scripts/tools in Jenkins.
How to use existing record scripts for testing diif. emulator versions/devices.

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by krstcs » Wed Apr 01, 2015 3:21 pm

As was stated earlier, the scripts MUST be designed with data driven approach in mind. If they aren't, then it will be difficult to get it to work in the situation you are describing.

Please talk to your Ranorex test developers and find out what you need to do to get it to work. They should know how to do it at the command-line, which is how you will do it in Jenkins.
Shortcuts usually aren't...

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by Support Team » Thu Apr 02, 2015 4:40 pm

Hello ashokvaddevalli,

In general the connection to the Google emulator is some kind of time consuming and not stable. Please try to increase the connection timeout to a higher value (e.g. 10 minutes).
The timeout settings can be found in the General Settings dialog in Ranorex Studio -> Plugins -> Mobile section.
Maybe it is also better to use Genymotion in order to emulate android devices. Would this be an option for you?

I hope this solves your problem.

Regards,
Bernhard
.
Image

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Mon Apr 06, 2015 7:27 am

Hi, thanks for your reply. My trail version is expired.I sent mail [email protected] for extension of my trail version.

I have an one question, every time running ranorex record scriptss in jenkins it is asking continuve evaluation or Install License or exit option screen. I manually choose continue evaluation option and after execcuting scripts. It is asking only trail version or license also. How to avoid this one in running ranorex record scripts in both Web app and mobile app testing in Jenkins. Suppose my RanorexAndroidApptesting Job in Jenkins it is running every night 12'o clock, how to avoid asking options for Ranorex Evalaution screen.

I can check open Ranorex Studio or Ranorex settings it is asking Continue evaluation or Install License in Welcome to Ranorex Evaluation screen.

Why it is asking, how to escape this one, any automation of do this one.
Attachments
RanorexEvaluation.png
RanorexEvaluation.png (44.64 KiB) Viewed 1164 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by odklizec » Mon Apr 06, 2015 7:55 am

Hi,

Once you buy and install the license, you will no longer see this dialog. The trial version is not supposed to be used for production purposes or night tests. It's supposed to be used for evaluation purposes only.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Tue Apr 07, 2015 6:28 am

Hi,

How to run existing Ranorex record test scripts in multiple Android emulator devices
In Jenkins how to run existing Ranorex record scripts in multiple Android emulator devices.

Regards,
Ashok Vaddevalli.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by odklizec » Tue Apr 07, 2015 6:38 am

Hi,

To be able to run the scripts on multiple devices/emulators, you need to use data-driven approach. Check for example this article (the same steps apply for Android)...
http://www.ranorex.com/support/user-gui ... evice.html
You may find many more discussions on that subject by searching this forum. Hope this helps?
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ashokvaddevalli
Posts: 18
Joined: Thu Mar 26, 2015 9:58 am

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by ashokvaddevalli » Tue Apr 07, 2015 8:32 am

It is possible to avoid continue evaluation using Trail Version. I mean it is possible to skip continue evaluation or install license using trail version.

Regards,
Ashok

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by odklizec » Tue Apr 07, 2015 11:38 am

Hi,

I'm not sure I understand your question? If you don't own Ranorex license yet, you can use Ranorex in trial mode. Once you acquire license, you can install it to Ranorex so it will switch from trial mode to full version (basically the same as trial, just without the trial dialog).

If your trial period already expired and you need some more time for evaluation, you can ask Ranorex folks to extend your trial. Hope this helps?
Last edited by odklizec on Tue Apr 07, 2015 3:32 pm, edited 1 time in total.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Post by krstcs » Tue Apr 07, 2015 3:23 pm

The Ranorex sales team ([email protected]) can EXTEND your trial under certain circumstances.

However, the only way to remove the trial warning dialog is to purchase a license.

A trial license should not be used for production test environments and test runs such as nightly runs, and will not work with continuous integration solutions like Jenkins because of the trial dialog. You should purchase a license.

Do not try to circumvent the trial license as that is illegal in most areas and please do not ask how to do it.

Again, the only way to remove the trial warning is to purchase the product.


Ranorex produces an amazing product for a very good price. It is well worth the expenditure. If you like the product please support their continued work by purchasing it.
Shortcuts usually aren't...