Site Loader
Auckland, New Zealand
In this part we will start to write test case for the Hybrid application we developed in previous post of this series The complete code is shown below
public class GoogleSearchTC extends ActivityInstrumentationTestCase2 {

	Solo solo;
	public GoogleSearchTC() {
		// TODO Auto-generated constructor stub

	protected void setUp() throws Exception {
		solo = new Solo(getInstrumentation(), getActivity());
	public void testGoogle()
		//Get the applications webview
		WebView view = (WebView) solo.getView(;
		solo.waitForView(view, 3000, false);
		WebElement txtSearch = solo.getWebElement("q"), 0);
		solo.typeTextInWebElement(txtSearch, "Execute Automation");
		WebElement btnSearch = solo.getWebElement("btnG"), 0);


Please find below the complete video of the above discussion Thanks for reading the post and watching the video !!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

2 Replies to “Writing simple testcase for Hybrid application using Robotium (Series)”

  1. Hi Kartik,

    I have created a Framework with POM + Data Driven for Android APP (mobile automation).
    My Query: I want to test the apk with multiple data. Is it possible with multiple set of data from excel. I think it is very easy with web application but when you come in Mobile Automation. .Apk file run in one session and then it stops.
    Just let me know if it possible. I have so many videos to understand. But I didnot get my solution.

    1. Actually you can do it with Excel sheet, its not a problem at all, you can even use cucumber if you are interested to work with BDD style.

      I guess I have discussed about it already.

      Karthik KK

Leave a Reply

Your email address will not be published. Required fields are marked *