Page 2 of 2

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Mar 30, 2015 1:16 pm
by odklizec
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!

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Mar 30, 2015 2:03 pm
by ashokvaddevalli
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Mar 30, 2015 2:06 pm
by ashokvaddevalli
I attached screenshots of Ranorex Config

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Mar 30, 2015 2:08 pm
by ashokvaddevalli
Scrrenshots of Device configure for Testing team

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Wed Apr 01, 2015 10:24 am
by ashokvaddevalli
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Wed Apr 01, 2015 3:21 pm
by krstcs
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Thu Apr 02, 2015 4:40 pm
by Support Team
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

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Apr 06, 2015 7:27 am
by ashokvaddevalli
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Mon Apr 06, 2015 7:55 am
by odklizec
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Tue Apr 07, 2015 6:28 am
by ashokvaddevalli
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.

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Tue Apr 07, 2015 6:38 am
by odklizec
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?

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Tue Apr 07, 2015 8:32 am
by ashokvaddevalli
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

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Tue Apr 07, 2015 11:38 am
by odklizec
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?

Re: Ranorex for Andorid Emulator App testing integrate Jenkins.

Posted: Tue Apr 07, 2015 3:23 pm
by krstcs
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.