Dynamic Desired Capabilities in Appium - android

We have a lot of real mobile devices to execute functional tests on them. We are facing a lot of difficulties when switching devices. I am looking for a dynamic way of changing Device Capabilities programmatically (Android devices) . Could you help me to figure out this? Any link clue may help.
Regards.

As far as I understand, you want your desired capabilities to change every time you connect a new mobile device to your development environment. may be this library can help you. It also support iOS.
https://github.com/Testinium/MobileDeviceInfo

Related

How to throttle internet speed in Android

I wanted to test my Android app for user that have slow internet connection. Is there any way to do it?
Usually I am using Chrome built in feature for doing this, but I can't find similar solution for Android.
Thanks!
I found that the easiest way to do this in Android on a real device is through Throttly App. It worked for me good. The only thing to consider is that it uses a VPN for making the throttling.

Testing rig mobile devices

I have searched the internet for a while now. And the worst thing is I have seen a testing rig before, but can't find it anymore.
Does anyone know a testing rig for mobile devices? Or should I build something myself. It is intended for testing an application on different devices (eg. iPad, Galaxy tab 10, iPhone, etc.)
Or when I had my eyes shut please pass me a link to the answer.
Thanks in advance.
Best regards
It's possible you're asking about Samsung's Developer Test Lab. It allows you to spin up a bunch of virtual Samsung Android devices and test stuff on it.
I haven't used it personally, so YMMV, and it's also limited to Samsung/Android -- no iOS.
For those that wondered as well. The article I found some time ago, and couldn't find anymore but did find yesterday, is this http://mobile.smashingmagazine.com/2012/10/22/a-guide-to-mobile-app-testing/.
Here you can set up different mobile devices and make a test lab. Thanks for the response!

Is it possible to virtually test Android application on different hardware?

I am looking for a way (maybe impossible) to test my PhoneGap Android application on different phones / hardware. As I am able to obviously test it only on my phone, but some people are reporting that my app doesn't work / crashes / explodes on their phone. Is there any way how can I test my app on different phones without buying actual device ? Maybe virtually like running Android in an emulator or somehow ?
It is kind of frustrating knowing that the app works perfectly, but some people are not able to even start it...
EDIT: I am certainly testing the app in Android emulator, but that only helps to test on different Android versions. But I am looking for a way how to test in on different phones without actually buying it - if it is possible ?
There is a company called DeviceAnywhere: http://www.deviceanywhere.com/ that seems to be doing that.
But it may cost you. If you don't want to buy all those devices, somebody else will have to. Plus they have to build the infrastructure to support remote access. Does not sound like something you would get for free.
Like DeviceAnywhere, there is another company that will let you test your application on multiple hardware devices. It https://appthwack.com/ . They do have 100 mins of free plan to test out, so go ahead and try this out.
You can run it through the emulator that is provided with the Android development kit through Eclipse. But this will only help test the code on different versions of Android not necessarily on the different hardware so if it is really a hardware problem this will not help but if it is related to the different versions of android this should help you find the problem.
Here is information on the emulator and how to use it: http://developer.android.com/guide/developing/building/building-eclipse.html#RunningOnEmulatorEclipse

How to make GPRS/EDGE/3G and wifi work at the same time on android

How can I code in my program to make EDGE/GPRS and wifi work together on android?
This can be quite useful; suppose i am connected to a server in LAN while i need to surf the web. A lot of my mates are eager for that, too.
Don't know if you can code your program to make it happen, but the link I stumbled on below shows how a persons phone could be made to have working 3G and wifi together:
http://mobisocial.stanford.edu/news/2011/03/let-wifi-and-3g-connection-work-together-by-hacking-connectivityservice-java/
How can I code in my program to make EDGE/GPRS and wifi work together on android?
This is not supported in the Android SDK, at least through Android 3.0.

How do I get started with developing for Android without an Android phone?

More or less as it says on the tin.
Before I even contemplate downloading the SDK, I was wondering if there was any way of testing Android apps that I'd write without an Android phone available to me? I'm unsure as to whether or not the tools that come with the SDK come with an emulator like VS does for Windows Mobile.
Sorry if this is a stupid question, but maybe I'm searching for the wrong thing.
Edit I don't suppose there's anything that'll let me write widgets on/for an emulated version of the interface HTC use on the Hero/G2 either is there? Not that it would matter that much.
There's an emulator available as part of the SDK.
http://developer.android.com/guide/developing/tools/emulator.html
I'd add that the emulator is really quite comprehensive. Things like camera previews don't actually display camera data, but they put block animations in their place. All in all it's one of the best mobile emulators I've seen to date. Probably better even than gasp the iPhone simulator.
As said above there's an emulator available,however with larger apps it gets fairly tedious to use the emulator.Its fine for learning the ins and outs but id suggest investing in an android phone once you've got a good grasp of the sdk,it really does make a difference!.

Categories

Resources