Questions tagged [robotium]

Robotium is an Android test automation framework that has full support for native and hybrid applications. Robotium makes it easy to write powerful and robust automatic black-box UI tests for Android applications. With the support of Robotium, test case developers can write function, system and user acceptance test scenarios, spanning multiple Android activities.

Robotium is a test framework that allows to implement white-box test cases for native Android applications. It supports black-box testing too (i.e. without source code and only when the apk file is available) as long as the apk file and the test project are signed with the same certificate signature.
To achieve this it might be required to resign the apk file. Consequently pre-installed applications can be tested on rooted phones as well.

The Robotium main class, Solo, provides methods to click or tap on a number of views identified by id, index or containing text strings, e.g.:

Solo solo = new Solo(getInstrumentation(), getActivity());
solo.clickOnText("Release rabit"); // Click on some text
solo.clickOnButton("Ok");          // Click on confirmation button

It also allows to assert that some message is currently displayed by GUI:

// Assert message is displayed
assertTrue(solo.searchText("Rabit is on the field")); 

It also provides methods to send key events, capture screen shots, wait for the named activity to appear and others.

993 questions
0
votes
1 answer

how to access the Menu's which is placed in the action Bar(in Android Phones) in Robotium

|----------------------------------------------| | **Menu1**|**Menu2**|**Menu3** | |----------------------------------------------| | | | | …
0
votes
1 answer

Android Robotium does not find testcases

I have an Android project I want to automate. I have created a Robotium project for it, and a TestCase here it is: package com.nu.art.software.cyborg.automation.test; import android.app.Instrumentation; import android.content.Context; import…
TacB0sS
  • 10,106
  • 12
  • 75
  • 118
0
votes
1 answer

WheelView in Robotium

I downloaded wheel view android project. i want to test that wheel view using robotium. Its possible to test using robotium. any one can help me?
selva
  • 1,503
  • 3
  • 17
  • 24
0
votes
1 answer

Test appwidget using robotium

Is it possible to exit application, long press on home screen, select an appwidget, install it and then click on it using robotium?
JustCurious
  • 1,848
  • 3
  • 30
  • 57
0
votes
1 answer

Android Testing using Robotium - OpenGL screenshot

Is there a way to take a screenshot with OpenGL elements?
Ron D.
  • 3,774
  • 6
  • 31
  • 39
0
votes
1 answer

Language-agnostic Robotium tests

Is possible to write language agnostic Robotium tests? For example, if you use a PreferenceActivity, by definition there is no way to get an R.id reference to it. Is there a mechanism to support this? Or maybe a way for Robotium to read from the…
Stephan Tual
  • 2,617
  • 3
  • 27
  • 49
0
votes
1 answer

Robotium from command line on Mac

I'm testing Android application, and I want to run Robotium test from Terminal on Mac. As I've read I use adb shell am instrument -w com.test.test1/android.test.InstrumentationTestRunner Terminal says "-bash: adb: command not found". Probably, I…
Ann
  • 475
  • 1
  • 5
  • 14
0
votes
2 answers

Going to another Activity in Robotium

I'm new to Robotium and Android testing, lately I tested iOS apps. Now I am testing Android application, and on the first Activity I enter email and password, so when it is done, I press the Enter button on the keyboard and the next activity should…
Ann
  • 475
  • 1
  • 5
  • 14
-1
votes
4 answers

record and run option in android robotium

I am very new to android. How robotium framework has to be used ? Is there a record and playback option in that or should we manually write the test case. Please get me a tool for robotium which records and playsback quickly
thndrkiss
  • 4,515
  • 8
  • 57
  • 96
-1
votes
2 answers

Can we run Instrumentationtestcases on android phone without it being connected to the PC?

I wrote some test cases for a standard browser app using instrumentationtestcase packages for an android phone. i am able to run the tests when the phone is connected to pc .. is there a way to include these test cases in the app in such a way that…
-1
votes
1 answer

How is it possible to know if an application is using some Google Play Services API’s e.g. Maps, Location Services, Google+, Ads, Drive etc

Also if it’s known that some play service API is used, how to test it to know if it’s working correctly. Is it possible to use some instrumentation techniques (Junit,Robotium etc.) to test play services API’s . Note that the application is installed…
amarnathpatel
  • 981
  • 10
  • 20
-1
votes
1 answer

Robotium - Start another activity from main activity

I want to test an android app. The framework I chose was Robotium and I was able to write test cases that involved using single activity with(out) fragments. My problem is now I have my activity under test as activityA. From activityA, I want to…
Rusheel Jain
  • 843
  • 6
  • 20
-1
votes
1 answer

How to change seek bar values from 0 to 5 using Robotium in Android

I have a seekbar, while moving it I want to change values from 0 to 5. I have a TextView, where I display those values while moving the seekbar. I tried using the following code but it just shows that the seekbar is progressed but it doesn't update…
Abhijeet
  • 69
  • 7
-1
votes
1 answer

Getting error message while opening apk file in eclipse - Cannot find jarsigner which is required to test the apk

Getting error message while opening apk file in eclipse - Cannot find jarsigner which is required to test the apk. I am trying to create new Robotium test in eclipse but i am getting "Cannot find jarsigner which is required to test the apk."…
-1
votes
2 answers

Not able to unsign apk file using RE-sign.jar

For automating apk file I need this but not through cmd but through robotium.re-sign.jar When I was dropping an apk file on re-sign.jar file it gives an Error something like - {ERROR : Cannot run program "D:\SDK\SDK/tools/zipalign": Create process…