Robotium dual-client testing framework and robotium framework
The essence of the Internet is information exchange, especially for mobile Internet. Therefore, many mobile Internet service applications have two different identities (for example, buyers and sellers in transactions, teachers and students in teaching, car owners and passengers in taxi hailing ). The most recent work is to establish an android cl
control
FromX, ToX, x-axis drag from point to point
FromY, ToY, y-axis drag from point to point
SOLO.D Rag (FromX, ToX, ToY, stepcount);
Solo.clickonscreen (x, y);
Solo.scrolldown () Drag the screen down
Solo.scrolltobottom () Scroll to the bottom of the screen
Solo.scrollup () scrolling up the screen
Solo.scrolltotop () scroll to the top of the screen
Assertion method
Used to verify that the current activity name
Transferred from: http://blog.csdn.net/qingchunjun/article/details/42580937February 3, 2015 update:Some friends throw a InputStream cannot be null exception when attempting this method with a real machine. This exception is due to the fact that ADB runs in the Robotium framework when it is fully running on the phone, and its permissions are limited by the Android system. The original frame was used on the PC side, which led to the appearance of the ex
It has been nearly a year since the previous comparison of robotium and nativedriver tools (see http://kongqingyun123.blog.163.com/blog/static/637728352011614111010446/ for the last time), and a year has certainly changed a lot for an open-source tool. At the same time, many of the original views on the tool will be somewhat different. At the beginning, nativedriver was chosen for automated testing on some mobile phones, but some problems were also fo
First, IntroductionRobotium is a foreign Android Automation testing framework, mainly for Android platform applications for black box Automation testing, it provides simulation of various gesture operations (click, Long Press, swipe, etc.), find and assert the mechanism of the API, to be able to manipulate the various controls. Robotium combines Android's official testing framework to automate the testing of applications. In addition, the
The simplest practice of cross-process operations in Robotium in history -- Based on the ADB framework, robotiumadb
Original Author, not easy to share, please indicate the source for reprinting, thank you.
Robotium is an excellent automated testing framework on the Android platform. The advantages of its automation on the android platform must be clear to anyone who has read this article. However, there ar
Recently has been completed some robotium small function, for more convenient to complete a number of small functions of the test, or can be said to be used for entertainment, kidnap group inside the Great God ideas, this extension, and finally to realize this function---------------encapsulate the Robotium script as an apk and use the button to control how much coverage the use case runs, and the test resu
Can only be an analysis, dare not say what analysis, compare the online big god detailed analysis, can only from the whole to analyze the relevant things, when can depth of the algorithm level it?
OverviewBefore we analyze the source code, let's take a look at what kind of class Robotium gives us.EntranceAfter having a sense of the whole, we go from the solo class, because Solo is the Robotium class an
1. First create a project to be tested, named "Robotium"; a very simple Android app; The main page has only a TextView control;2. Building a project for testing, named "Robotiumtestcase"; check if there is a word like "hello" or "World" on the page of the apk being tested;2.1 Choose file-"new--" project----"Android test Project"2.2 Enter the name of the test project Robotiumtestcase2.3 Select the tested project "R
IntroductionEspresso and Robotium are both Android UI Automation test frameworks and are open source libraries. Robotium, the most widely used testing framework in the early Android world, has expanded a number of effective testing methods for the Android UI based on JUnit.Espresso is a new tool that, relatively speaking, is more accurate and helps developers write more concise UI test code for the app. Esp
I have previously written a description of how the Appium and Uiautomator frameworks locate controls on the Android interface.
Uiautomator ways to locate Android controls practice and advice
Appium practice and suggestion on the control location method of various findelement based on Android
Today we change a source more long, today's more popular framework robotium, in practice, see how it is positioning the control.1. Background to
Analysis on program suspension caused by calling getActivity () method in Robotium, getactivity1. Problem background description
In work, you need to directly use robotium to test the target android platform launcher without the project source code. The platform version is based on the latest android 4.4.2. Previously, I used my android 4.4.2 Test mobile phone htc incredable s to perform the same verificati
1. Create an android Project
This step is only suitable for beginners. If you have a certain foundation, you can skip this step and go directly to step 2.
1. New Project
2. Select the android project to go to
3. Enter the project name and click Next.
4. Click Next and enter the package name on the displayed page.
5. Click Finish to complete a simple Android project. The directory structure of the project is as follows:
6. Run the interface
Ii. Use of r
click to save ...Here the re-signature is actually also debug_keystore this signature, so the signature with a debug, this is the Guess ha ....Then Re-sign.jar will pop the window to prompt for the package name and mainactivity of the re-signed APK file:2. Command line signatureView re-signed PackageName and mainactivity with the AAPT badging commandPrinciple: Why do robotium need to re-sign the program?(1) What is a signature? Why does the Android p
Problem:You want to use the Robotium Library to test activity.Solution:Add robotium dependencies and write your own test scripts.Discuss:The Android Test Support library provides classes to manipulate the widgets in the activity, but has an easier way to manipulate the Android UI. Although this book is not an introduction to testing, it is easy to add robotium de
The Robotium Framework supports WebView, getwebelements (), getwebelements (by), and other methods in Robotium to acquire WebView elements in Android and provides The Clickonwebelement method is used to complete the Click event. Native controls in Android are better captured, so how do you get the framework for WebView? The first step: using JS to get all the elements in the page on a PC, the elements that
Chapter: Basic Principles of--robotium Automation (fourth Lecture)Main content and notes:First, control-based1. spinner--drop-down menu2, tabhost--slide Selection menu, similar to phone book3. gallery--Graphics4. progressbar--progress bar5. datepicker--date and time selection control6, checkbox--single box; radiobutton--Mutual exclusion single box; button--General button7. togglebutton--Two-state button controls: Select and not select both states, and
Robotium is a recently popular open-source Android automated testing tool. It can be used for both white-box testing and black-box testing. It depends on the needs of your project. The advantage of robotium is that it uses the android instrument automated testing framework for Secondary Development of the kernel, and does not require high or even zero root permissions during the real machine testing process
Robotium Common APIThe most important class solo class in Robotium: It provides a way to simulate user activity by clicking, searching, and dragging.English API (frequent disconnection is not open): HTTP://WWW.JARVANA.COM/JARVANA/VIEW/COM/JAYWAY/ANDROID/ROBOTIUM/ROBOTIUM-SOLO/2.0.1/
Android's automated testing framework is not much to choose from, then Robotium (https://code.google.com/p/robotium/), its syntax and ease of use is quite like the kif we use in iOS.The official document does not mention how to build it in Android Studio, and later found an answer in stack overflow: http://stackoverflow.com/questions/23275602/ robotium-with-andro
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.