Page 1 of 1

Error results in screenshot of PC and not app?

Posted: Thu Aug 07, 2014 4:37 pm
by houseofcutler
Hi All,

A simple question - hopefully with a simple answer... :?:

Can anyone tell me why when my IOS app fails during a test Ranorex takes a screenshot of my PC desktop and not the mobile device please?

Is there anyway to change this behaviour?

Thanks

Re: Error results in screenshot of PC and not app?

Posted: Mon Aug 11, 2014 9:23 am
by Support Team
Hello houseofcutler,

May I ask which version of Ranorex you are currently using?

We are currently facing a few issues regarding screenshots from mobile devices. Often the connection to the device gets lost and Ranorex is, therefore, not able to take a screenshot of the mobile app anymore.

Regards,
Robert

Re: Error results in screenshot of PC and not app?

Posted: Tue Aug 12, 2014 2:44 pm
by houseofcutler
Hi Robert,

Thanks for the response.

I am using:
Ranorex Studio Version 5.1.0.18625
Windows 8.1 x64

iPhone 5 IOS 7.1.1
iPad Air IOS 7.1.1

A while back I was testing some mobile stuff and having the same issue - as of yet I have never seen an error result in a screen shot of the mobile device. However taking screenshots via the report action work fine.

As you mentioned connections to the device get lost I wonder if this would have anything to do with similar behaviour I have experienced when working in the studio - every now and then the 'highlight' function when selecting items in the repository will stop working - although using the XML spy (not the edit window) I can still connect to the device and highlight. This is quite annoying. Sometimes the 'connection' comes back, sometimes I need to retry the connection to the device and sometime I just restart the studio.

Please let me know if you require any further information

Thanks

Ben

Re: Error results in screenshot of PC and not app?

Posted: Wed Aug 13, 2014 12:26 pm
by chethshetty
Hi there,

Even i was facing the same issue.
As the support team already mentioned us that its an issue from Ranorex.

We can use the below line for taking screenshot:
Report.Screenshot(....); (Hope you know the syntax :lol:

But again this will sometimes fails,i mean to say when the execution reached to this line Ranorex will throw an error with some exception which says "Element detection failed". Basically it would stop the execution.

Re: Error results in screenshot of PC and not app?

Posted: Wed Aug 13, 2014 1:05 pm
by houseofcutler
Hi Cethshetty,

Thank you for the response. Yes I can get screenshots within the test actions using the code you provided. I don't have much call for screenshots as my reporting is pretty thorough.

Would just be really useful when a test falls over to get a screen dump form the system so I can see if there are any error messages. Fingers crossed this can be fixed in a future update soon...

Ben

Re: Error results in screenshot of PC and not app?

Posted: Wed Nov 12, 2014 11:14 am
by grev
Hi.

Just a question, has this issue been fixed or is there any update about this? (Captured screenshot is from the desktop, not from the mobile app being tested).


Thank you.

-grev

Re: Error results in screenshot of PC and not app?

Posted: Fri Nov 14, 2014 10:39 am
by Support Team
Hello grev,

We are currently working on a solution in order to overcome this issue.

Thank you for your patience.

Regards,
Robert

Re: Error results in screenshot of PC and not app?

Posted: Fri Nov 20, 2015 11:08 am
by Oksana
Hi,

Is there some way to disable/prevent automatical capturing of the desktop screenshot on exception/failure in the test?
The thing is that I'm testing mobile app, thus PC screeenshot is not useful and even more, it consumes some time and enlarges report size.

Regards,
Oksana

Re: Error results in screenshot of PC and not app?

Posted: Tue Nov 24, 2015 9:54 am
by Support Team
Hello Oksana,

Yes, in order to disable the screenshots, please navigate to the "Testsuite"-properties -> Report-tab and disable the "Tracing Screenshots":
DisableTracingScreenshots.png
Sincerely,
Robert

Re: Error results in screenshot of PC and not app?

Posted: Tue Nov 24, 2015 10:27 am
by Oksana
Thanks!

Re: Error results in screenshot of PC and not app?

Posted: Tue Dec 08, 2015 12:19 pm
by phoenixnghi
This issue still occurs on Ranorex 5.4.4.26486

Re: Error results in screenshot of PC and not app?

Posted: Thu Jan 21, 2016 1:46 pm
by Support Team
Hello phoenixnghi,

Please note that the mentioned setting is stored within the TestSuite. So, in order to apply the setting an execution of the whole TestSuite is necessary.

Hope this information helps.

Sincerely,
Robert

Re: Error results in screenshot of PC and not app?

Posted: Fri Apr 15, 2016 10:24 am
by vikram_u_k
Hi Support,

We are seeing a Issue that the generated Report has failed to capture the images from the Device(Native APK) with Version 5.4.6(for Android).

Errors are reported for:
I/System.out( 1291): E: Failed to merge images.
I/System.out( 1291): ------------------------------------------------------|
W/System.err( 1291): java.lang.NullPointerException
W/System.err( 1291): at com.ranorex.android.d.f.a(Unknown Source)


Tests fail to Generate on one device(4.0.3) - works on another(4.4.3).

Re: Error results in screenshot of PC and not app?

Posted: Tue Apr 19, 2016 7:35 am
by Support Team
Hello vikram_u_k,

Unfortunately, we aren't aware of such an issue. May I ask you to contact [email protected] for further investigations?

Thank you in advance.

Sincerely,
Robert