how to click on the navigation drawer in the action bar showing  different fragments ?

Most of my activities worked only after login. But robotium seems to work by creating new activities. Is there any solutions to keep in logged in?

Post has attachment

A Hello ... 

I'm having a case which use Ok, Cancel popup .. the case run on most of devices successfully but fail on a certain one "ASUS tab".

here's the code for the ok button click action

assertTrue("Wait for button (text: OK) failed.",
solo.waitForButton("OK", 20000));
solo.clickOnButton("OK");

I tried this too but the same results
assertTrue("Wait for button (text: OK) failed.",solo.waitForButton(this.getActivity().getResources().getString(android.R.string.ok), 20000));
solo.clickOnButton(this.getActivity().getResources().getString(android.R.string.ok, 20000));

The case doesn't fail but, the action doesn't occur as well 
It fails when I add assert function for the item that should be add ...

#Robotium   #Testdroid  

Post has attachment
Robotium 5.0.1 has been released!

We're happy to announce the release of Robotium 5.0.1! Included in this release is a new Config class, where Robotium Developers can change various things like default timeouts, screenshot location, screenshot type, scrolling, and web element click behaviour. 

We’ve been working hard on improving the various click methods by testing numerous popular apps under sub-par performances to add further logic to the click methods and thus reduce click issues. In the last year we’ve gone through the whole code base and improved various areas. This is an update we recommend for everyone using older Robotium versions.

NOTE: The package name has been changed to com.robotium.solo. You’ll need to update the import line at the top of your current test classes from com.jayway.android.solo to com.robotium.solo.


New functionality in Robotium 5.0.1:

pressSoftKeyboardNextButton() - Presses the next button on the soft keyboard.

waitForEmptyActivityStack(int timeout) - Waits until the Activity stack is empty.


New Class com.robotium.solo.Solo.Config:

int timeout_large - The timeout length of the waitFor methods. Default length is 20 000 milliseconds.

int timeout_small - The timeout length of the get, is, set, assert, enter and click methods. Default length is 10 000 milliseconds.

String screenshotSavePath - The screenshot save path. Default save path is /sdcard/Robotium-Screenshots/.

ScreenshotFileType screenshotFileType - The screenshot file type, JPEG or PNG. Use ScreenshotFileType.JPEG or ScreenshotFileType.PNG. Default file type is JPEG.

boolean shouldScroll - Set to true if the get, is, set, enter, type and click methods should scroll. Default value is true.

boolean useJavaScriptToClickWebElements - Set to true if JavaScript should be used to click WebElements. Default value is false.


Improvements:

All the click methods. Improved behaviour in unfavorable situations.

The waitForDialogToOpen & waitForDialogToClose methods. Now recognises all dialogs. 

The internal View handling class. 

TakeScreenshot() now supports GLSurfaceViews with OpenGL ES 3.0.


See the Javadoc for an example on how to use the new Config class.

We hope you will enjoy this release!

https://code.google.com/p/robotium/downloads/list

I am having a problem with robotium and wanted to submit an issue - but unfortunately this is not possible - the issue tracker states:
Issue attachment storage quota exceeded
even though I add no attachment - at the moment I see no way to submit an issue

that was what I wanted to submit:

What steps will reproduce the problem?
1. use the clickOnActionBarHomeButton() method on an 4.3 x86 emulator

What is the expected output? What do you see instead?

should work but sometimes crashes on emulator with:    

android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:5908)
at android.view.ViewRootImpl.invalidateChildInParent(ViewRootImpl.java:869)
at android.view.ViewGroup.invalidateChild(ViewGroup.java:4253)
at android.view.View.invalidate(View.java:10539)
at android.view.View.invalidate(View.java:10494)
at android.support.v4.widget.DrawerLayout.openDrawer(DrawerLayout.java:985)
at android.support.v4.widget.DrawerLayout.openDrawer(DrawerLayout.java:1003)
at android.support.v4.app.ActionBarDrawerToggle.onOptionsItemSelected(ActionBarDrawerToggle.java:248)
at de.lobu.android.booking.merchant.activities.MainActivity.onOptionsItemSelected(MainActivity.java:108)
at android.app.Activity.onMenuItemSelected(Activity.java:2566)
at android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:361)
at com.jayway.android.robotium.solo.Clicker.clickOnActionBarHomeButton(Clicker.java:305)
at com.jayway.android.robotium.solo.Solo.clickOnActionBarHomeButton(Solo.java:1221)


What version of the product are you using? On what operating system?

 4.3


cc  +Hugo Josefson 

Post has attachment
Wait while more posts are being loaded