http://mashable.com/2014/03/
Android
Android Apps on Windows Phone :)
http://www.androidmeter.com/
Introducing Robotium Recorder
We are thrilled to announce the official release of our new product, Robotium Recorder. Robotium Recorder is significant in that anyone in a matter of minutes can create professional test cases, utilizing and taking full advantage of the Robotium framework. It is the result of 4 years of continuous feedback from the testing community and includes cool features like our unique ClickToAssert™ feature that we are certain you will love.
Robotium Tech, our new company, will drive both the development of the Robotium framework and Robotium Recorder going forward. We have a number of exciting ideas and products that we can’t wait to develop and share with you!
To try Robotium Recorder for free go to Robotium.com and follow the installation instructions.
http://www.robotium.com/
We look forward to and welcome any feedback!
Best,
Renas and the Robotium Tech team
Getting Running Services on Android
ActivityManager vActivityManager = (ActivityManager) getContext().getSystemService(Context.ACTIVITY_SERVICE);
Log.i(“TestingService”, “Total are”+manager.getRunningServices(Integer.MAX_VALUE).size());
for (RunningServiceInfo vRunningServices : manager.getRunningServices(Integer.MAX_VALUE))
{
Log.i(“TestingService”, “PackageName: “+vRunningServices.service.getPackageName());
Log.i(“TestingService”, “ClassName: “+vRunningServices.service.getClassName());
Log.i(“TestingService”, “ShortClassName: “+vRunningServices.service.getShortClassName());
Log.i(“TestingService”, “——————————————-“);
}
Understanding Android Hierarchyviewer Tool
Using Android SDK Hierarchy Viewer
-
If AUT source code is available, we know the contents used within the application, and it’s pretty easy to work with these contents using Robotium
-
If we don’t have AUT (Application Under Test) code, there is only apk file available, we neither have much idea about the contents used within the app nor even sure about the properties bind with contents and their values, so we have to stay with situation with some assumptions
Run Hierarchy Viewer
- Launch an emulator.
-To preserve security, Hierarchy Viewer can only connect to devices running a developer version of the Android system.
- If you have not done so already, install the application you want to work with. To make things simple we would be using “Notes App”, it is one of the sample apps bundled in Android SDK with source code.
- Run the Notes application, and ensure that its UI is visible.
- From a terminal, launch hierarchyviewer or double click on hierarchyviewer.h from the
/tools/ directory - The first window you see displays a list of devices and emulators. To expand the list of Activity objects for a device or emulator, click the arrow on the left. This displays a list of the Activity objects whose UI is currently visible on the device or emulator. The objects are listed by their Android component name. The list includes both your application Activity and system Activity objects.
You can now look at its view hierarchy using the View Hierarchy window, or look at a magnified image of the UI using the Pixel Perfect window.
UI Identification of Contents on AUT
-
NotesList screen to show list of created notes
-
NoteEditor screen to create and edit notes
-
TitleEditor screen to edit title of specific note
-
imageview to show “Notes” icon
-
textview to show text “Notes”
-
imageview to show “Create Note” icon
-
textview to show “Notes”
-
textview to show sub title which is hidden
-
imageview to show “Notes” icon
-
imagebutton to show “Create Notes” icon
-
Button with text “New Note” which is also hidden
-
imageview to show “Notes” icon
-
textview to show text “Notes” text
-
imageview to show “Create Note” icon
-
textview to show “Monthly Notes” text
-
textview to show “Weekly Lists”text
-
textview to show “Today List” text
-
textview to show “Notes” text
-
textview to show sub title which is hidden
-
imageview to show “Notes” icon
-
imagebutton to show “Create Notes” icon
-
Button with text “New Note” which is also hidden
-
listview to show following notes list
-
textview to show “Monthly Notes” text
-
textview to show “Weekly List” text
-
textview to show “Today List” text
-
imageview to show “Notes” icon
-
textview to show text “Edit: Weekly List” text
-
imageview to show “Create Note” icon
-
imageview to show “Delete Note” icon
-
textview to show “Monthly Notes” text
-
textview to show “Weekly List” text
-
textview to show “1. Task one” text
-
textview to show “2. Task two” text
-
textview to show “3. Task three” text
-
textview to show “4. Task four” text
-
textview to show “5. Task five” text
-
imageview to show “Notes” icon
-
textview to show text “Edit: Weekly List” text
-
textview is hidden for space
-
imageview to show “Create Note” icon
-
Button with text “Save” which is also hidden
-
imageview to show “Delete Note” icon
-
Button with text “Delete” which is also hidden
-
note to show note contents
-
textview to show “Note title” text
-
editview to show “Weekly List” text
-
button with text “Ok”
-
textview to show “Note title” text
-
editview to show “Weekly List”
-
button with text “Ok”