Robotium is based on the instrumentation framework, and its test scripts are written in the same process as the program being tested, so this requires the test program to have the same signature as the program being tested, otherwise it will not be able to communicate.In the case of APK only, the program can be signed with the method of "sign and sign again". And
Summarize the contents of the PPT and explain the problem:The basic steps out, with the Notepad program, directly install the APK, as is not know the source code is good!Just use your own phone on the line!!First, re-sign:Steps:1, directly run Re-sign.jar to signPrecautions:(1) Direct search on the website:(2) for Android 4.4.2 (API19) as if the signature has a problem, from the image to be able to sign the successful, go to the program run as Android
When running the Appium apk, it is often reported that the apk could not be found, or it appears that the APK was opened, but flashed over, and then reported that the activity could not find the error. There are generally the following reasons:1. The first thing to look at when running the APK is what the first activit
I accidentally found that only the test package of APK could be used for automated testing. I was curious, so I recorded it and shared it with you.1. Environment Configuration:Android-SDKRobotium-solo-3.0.jar has been downloaded to localRe-sign.jarTest package coup0.apk
2. Create a coupon0 project in eclipse, package name and activity name and
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
Today we are familiar with the test environment:1. Download the server code and rungit clone https://github.com/SecurityCompass/LabServer.git2. This server is the APK client side, running:To run the HTTP server on port 80808443--ssl--port 84433. Open the Android virtual machine and install the APK.Open Android SDK Manager, select "Tools" for Android virtual Device Manager, then click Launch. If this virtual
("//android.widget.textview[10]") XPath subscript starting from 1, using the full classname
Location by ID: Findelementbyid ("com.xwtec.zhy.xwlottery:id/grid_item_tv_red");
Find_element_by_name (name corresponds to the content of the text after Uiautomator scan)
find_element_by_id (ID corresponds to Resource-id)
Find_element_by_class_name (class_name corresponds to Class)
FIND_ELEMENT_BY_ACCESSIBILITY_ID (accessibility_id corresponds to CONTENT-DESC)
Navigate to a text b
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.