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 introduct
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 popul
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 proj
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/
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 simple and powerful tool for android testing. It is simple because Robotium encapsulates two times based on the Android testing framework InstrumentationTestCase2 and simplifies some basic operations. Its documentation only has one Solo class, the configuration steps are fixed steps. It is powerful becaus
Chapter: Basic principles of automation--monkey and improved optimization (fourth)NetEase Cloud Classroom:http://study.163.com/course/courseLearn.htm?courseId=712011#/learn/video?lessonId=876095courseId=712011Main 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
--------------------------------------------------------------------------------------------------------------- -------------Xiao Kee : Monkeyrunner temporarily, learn about Robotium today.**********************2014-11-18: First Edition**********************--------------------------------------------------------------------------------------------------------------- ---------------Environment Construction :Please refer to the previously written
Android Robotium control to get the same ID : http://blog.csdn.net/busjb/article/details/16808551How to determine the same ID in Robotium click which: http://zhidao.baidu.com/link?url= Qmtq86niqfgs8l1xkiytligusng3uzc-c77q3qogtfoc4alzjnqvobbfytfelhfeaexfnmfla3spwc9snufaezgjykalwlidhfvtjuimxpgAndroid Robotium control to
Android test Appium, Robotium, monkey and other frameworks or tool comparisons1. Appium Test (functional test, user acceptance test, black box test)-Rating:8The Appium test is equivalent to a black box test. Just test UI logic correctness. So the Appium test framework provides limited methods. Gets a Appiumdriver object. The object just has a lot of findelements() methods to get to the UI element. UI elemen
1. Download RobotiumOpen: http://code.google.com/p/robotium/Download: Robotium-solo-3.4.1.jar (need to rely on this package when writing test cases)2, need to re-sign the APK, because robotium required to be tested application and test code to have a consistent signature, so we need to download to the APK, through Re-sign.jar to generate the Debug key apk, this r
When testing with Robotium, you can export your test results, using Junitreport to achieveJunit-report:https://github.com/jsankey/android-junit-report1, set up an Android test project, import Robotium package, and establish a good test case;2, right-click Test Project →properties→java Build path→libraries, clicking Add
: Android/ios/web/hybrid
More active Communities
2. Robotium Test (functional test, user acceptance test, black box + White box test)-Rating:8website:https://code.google.com/p/robotium/Pros:
Quite Popular for Android testing
You can test the source code, or you can test the APK
Can test
1. Appium Test (functional test, user acceptance test, black box test)-Rating:8The Appium test is equivalent to a black box test. Just test UI logic correctness. So the Appium test framework provides limited methods. Gets a Appiumdriver object. The object just has a lot of findelements() methods to get to the UI element. UI element is webelement, this class provides the method basically is obtains the information primarily, for example obtains name,class,tagname,location,text,isslected,istouched
1. Appium testing (function testing, user acceptance testing, black box testing)-Rating: 8
Appium testing is equivalent to black box testing. Only test the UI logic correctness. Therefore, the Appium testing framework provides limited methods. Obtain an AppiumDriver object. This object only has a lot of findElements() To obtain the UI element. The UI element is a WebElement. This class provides the primary method for obtaining information, such as name, class, tagName, location, text, isSlected
1. Configure the Android SDK, Java environment2. Re-sign the apk fileIn the user directory, there will be a. Android directory, put Re-sign.jar in the directory. Execute command Java-jar Re-sign.jarThen take the apk file off to the open re-sign. Save the re-signed file.Note that the pop-up needs to be followed by the following.You can also use scripts to manipulate them directly. The bat script is as follow
Transferred from: http://blog.sina.com.cn/s/blog_68f262210102v75t.htmlRecently learned the Robotium test framework, of course, before learning any framework or language, the first step is to build the environment. But in the process of setting up the environment, I encountered a problem: After creating an Android test Project, a dialog box will pop up to report the error on the face:Errors running builder '
Today, when using Robotium to test the fragmentactivity, the class cannot find an exception. Toss a half-day, finally find a solution, the android-support-v4 selected to remove on the line. Base class Encapsulation Publicabstractclassbaseinstrumentationtestcase Android Robotium Fragmentactivity
Tag: Reg order number func NES pad run add listDirectory of this document
1. run all the test cases
2. run a single test class or a testsuite
3. run A test method inside a test class
4. run a method in two different test classes or classes
Command line run Android robotium Automation use case or unit Test case1.RunAll theTestCaseGive me a chestnut: run All the use cases under the
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.