Automating Apps Testing

692 views
Skip to first unread message

cejot

unread,
May 3, 2012, 1:17:25 PM5/3/12
to phon...@googlegroups.com
Hello, i m looking for a Testframework (or more ;) ) to test an app written with Phonegap.
I thought about Selenium because its a good webapplication testing tool and with PhoneGap develop hybrid-apps, but unfortunately Selenium seems not to work.
What about standard
Test Frameworks like  Robotium for Android or Squish for Iphone are they practicable for PhoneGab Apps?
Can me tell anybody anything about that?

Matthew N

unread,
May 3, 2012, 1:55:46 PM5/3/12
to phonegap
Robotium can only be used to test native apps unfortunately, not web-
view based apps (like phonegap).

There is some work done with Selenium with phonegap, but not as much
as there should be:
http://wiki.phonegap.com/w/page/36886195/Automated%20TestCases%20for%20PhoneGap#AutomationusingSelenium2WebDrivers

Also, if you're not unit-testing your javascript already, you can use
almost any JS Unit testing framework (like QUnit) to do that.

Ladar Levison

unread,
May 3, 2012, 2:09:47 PM5/3/12
to phon...@googlegroups.com, cejot
Testdroid might be a solution. I was hoping to write automated tests using their Eclipse plugin but haven't had the time yet. If you do give it a try I'd be curious to hear about your experience using it.

Till then I've just been using a few simple javascript snippets that will navigate through my app automatically. Its not perfect but at least it allows me to sit back and watch instead of clicking the same button a thousand times. Here's a sample of what I use for the login screen. It fills in the input boxes for me and then clicks the login button 2 seconds after loading (the delay gives me a chance to visually confirm everything is correct and let any animations finish). I use "one" so that I can logout when the tests are finished and have the option of entering different credentials without the screen being bypassed (again)...


$(document).live("pagebeforeshow", function() {
  $("#login input#email").val("la...@lavabit.com");
  $("#login input#password").val("example");
});

$(document).one("pageshow","#login", function() {
    setTimeout(function() {
        if ($.mobile.activePage.attr("id") == "login") {
      $("#login .btn-login").trigger("click");
        }
    }, 2000);
});

cejot

unread,
May 8, 2012, 1:12:44 PM5/8/12
to phonegap
I just recovered my thread. Thanks you for your replies.
First some supplements:
The Test is a component of my bachelor thesis. I haven't the the
Source Code. So I not really able to do JUnit Tests for example. I
only have to do a Blackbox test of the app.
This tests I have to do on various Android and IOs Devices + maybe
some Emulator Tests.
So for Android Testdroid sounds good, but what about IOs?

cejot

unread,
Jun 14, 2012, 9:44:11 AM6/14/12
to phonegap
I think Testdroid isn't a solution, because i ve found out, that
Testdroid based on Robotium?!

Kerri Shotts

unread,
Jan 14, 2013, 3:19:21 PM1/14/13
to phon...@googlegroups.com
My word; you've priced yourself well out of my price range.

___________________________________
Kerri Shotts
photoKandy Studios, LLC


Social Media:
          Twitter: @photokandy, http://twitter.com/photokandy
          Tumblr: http://photokandy.tumblr.com/
          Github: https://github.com/kerrishotts
                        https://github.com/organizations/photokandyStudios
          CoderWall: https://coderwall.com/kerrishotts

Apps on the Apple Store:



On Jan 14, 2013, at 5:55 AM, Tobias Walter <tobias.w...@gmail.com> wrote:

Ranorex Test Automation Framework

Reply all
Reply to author
Forward
0 new messages