complete the dragThis API uses a called coordinates, of course, the android simulator coordinates are fixed, you can rely on experience to get the screen coordinates, but this is not reliable ...Here is a tool: MonkeyrunnerMonkeyrunner Recording mode can help you get to the android screen coordinatesFor Monkeyrunner, refer to: http://luwenjie.blog.51cto.com/925779/925659This test example is mainly to expla
Follow the steps in this link to automatically generate Ant's Build.xml files for an existing Robotium project: http://xiaomaozi.blog.51cto.com/925779/932284/
Follow the steps in this link to import android-junit-report.jar items and manipulate them according to the links: http://www.xuebuyuan.com/2148574.html
Http://www.tuicool.com/articles/RzayieAdd the following code to the Build.xml file:
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.
Encounter problem: Prompt Sdk\tools\zipalign.exe does not have this file. Resolution: Copy one to this di
1. JUnit's Testsuite can centrally store test classes and run test cases in batches of test classes, with the following source code:Package com.coolwi.km.user.testsuites;Import Com.coolwi.km.user.testcase.MyCardRecord;Import Com.coolwi.km.user.testcase.MyCardUserTestcase1;Import Junit.framework.JUnit4TestAdapter;Import Junit.framework.Test;Import Junit.framework.TestSuite;Import junit.sampling.*;public class Testall {public static Test Suite (){TestSuite Suite = new TestSuite ("All Tests from Pa
Issue: After using Re-sign.jar to re-sign the APK file, display the re-signing successfully, but during the actual installation process prompt: Failure [install_parse_failed_no_certificates]Cause: An error occurred while searching the web for re-signing.WORKAROUND: Use the command line to re-sign, such as:1. Generate the re-signed file Debug.storeD:\>keytool-genkey-keyalg rsa-keystore debug.store-alias debug-keysize 2048-validity 3652. Related applications:D:\>jarsigner-verbose-certs-keystore De
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
operation
Solo.clicklongontext (text);
Depending on the text position in the control, and the same interface has multiple identical text in the following way, where match is of type int, which represents the search for the first text
Solo.clicklongontext (Text,match);
Sometimes a space is not found on the current screen, you need to scroll the screen in the following way, where scroll is Boolean, true when the control is not found automatically scroll
Solo.clicklongontext (t
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 P
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 an
on the PC side to solve these problems, at the same time, you can use simple configurations to automatically run automatic tests on Simulators of different versions.On the PC end framework can be achieved by reference: http://kongqingyun123.blog.163.com/blog/static/63772835201262534056673/1. robotium sometimes crash when running test cases, directly causing the test to stop, and your test results cannot be collected.My personal solution to this probl
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 officia
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,
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 program need to signSignature is to mark themselves, to mark their own programs, let others see the signature when you know this is related to you (whethe
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 p
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.E
new RuntimeException (e); 179}180}181}After rewriting the Instrumentationtestrunner class, you need to set the run configurations under our test project, right--move to run As-run configurations-android JUnit on your test project Test, change your project run instrumentation Runner, if not changed, default is Android.test.InstrumentationTestRunnerThe position of the red box body circled needs to be changed to the Instrumentationtestrunner path you re
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
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 d
1. Import the tested source codeWe first download add your calculator source code,:
Https://robotium.googlecode.com/files/AndroidCalculator.zip
If the address is not available under the wall now the following Web address can also be downloaded:
Link: Http://pan.baidu.com/s/1c2e8McC Password: vsj8
Open Eclipse, click File-import Select existing Projects into Workspace, click Next Choose Select Archive file, select the downloaded source tarball, click Finish. I
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.