I ' ve develop a test application in Xamarin Studio (Android with C #) and wanted to test it on my phone.The application worked just fine in the Device emulator (same OS version) if I install/open it on my phone, it jus t says "TestApplication stopped working" I know from the online search that thousands of issues could cause this error MES Sage but my questions are:is exporting my app on my droid as simple as:
Compiling the App
Taking th
In the past two years, we have been conducting wireless tests and will continue to do wireless tests. However, we have not carefully understood the code layer for time reasons. Recently, I have made some app development by myself. I decided that if I want to do a good job in mobile testing, it is necessary to have a certain degree of app development experience, because only such a lot of things can be truly understood. On the other hand, this is also
I. Introduction
Monkey is a command line tool that can run in a simulator or a real device. It sends a pseudo-random user event stream to the system to perform stress testing on developing applications. Monkey includes many options, which are roughly divided into four categories:
· Basic configuration options, such as setting the number of attempted events.
· Run constraint options, such as setting to test only one package.
· Event type and frequency.
Android Studio--Real machine test as simulator
On the computer to configure the Android environment, to the last found that the computer does not support the creation of the simulator AVD, the online said is AMDCPU does not support the like, found to solve the problem need to get a lot of things, so simply change the direction, directly with the physical machine forget, just have a phone
Create
Android Automation test: Top-down Essentials SummaryFirst, the test method1, functional test Monkeyrunner, Uiautomator2. Random Event Test MonkeySecond, the discovery of the problem3. Monitor memory for Leak tool4. Monitor if there is a ANR log (/DATA/ANR)5, monitoring whether there is crash log (/data/system/dropbox)6. Monitor CPU for problem log (/DATA/ANR)7, monitoring the flow of whether there are problem toolsThird, solve the problem8, learn java
Appium + Robotframework for automated testing of Android applications-3: an essential tool introduction, appuim
Everything is ready. Now we are about to write a test script.
However, an important problem has not been solved. We know that the RobotFramework mainly relies on the element id, name, or xpath in web pages to locate the elements on the page. We rely on the browser plug-in firepath to achieve thi
MemoryCpuFlowElectricityStart speedSliding speedInterface switching speedNetwork speed for interacting with the serverExpected standard designation principle: 1) Analysis of competitor's products, all indicator keys are stronger than competing items2) Expected performance data from the product manager3) Meet industry standardsTest methods and tools:1: Memory, test with ADB shell script, view log data. adb shell dump Meminfo2:CPU: Test with adb shell script, view log data, adb shell top3: Traffic
Automated Testing of the android function of robotium
When robotium is used for automated functional testing, some edittext and other virtual keyboard pop-up problems often lead to additional workload to handle the problem of the virtual keyboard.Now, specify a method to handle the virtual keyboard:Inputmethodmanager:Central system API to the overall inp
PublicActivitytestruleNewActivitytestruleclass); @Test Public voidSayHello () {Onview (Withid (R.id.edittext)). Perform (TypeText (string_to_be_typed), Closesoftkeyboard ()); //gets the ID of the EditText and writes the value toOnview (Withtext ("Say hello") . Perform (click ()); //Use the Text position button of the control and implement the Click actionString Expectedtext = "Hello," + string_to_be_typed + "!"; //the correct output contentOnview (Withid (R.id.textview)). Check (Matches (Withte
Android automated testing: MonkeyRunner-getProperty, getSystemPropertyobject getProperty (string key) Given the name of a system environment variable, returns its value for this device. argumentskeyThe name of the system environment variable. the available variable names are listed inTable 1. property variable names at the end of this topic. returns · The value of the variable. the data format varies accord
, "down_and_up")9. #执行adb shell command;Device.shell ("Input text Goup01")Press the HOME button device.press (' Keycode_home ', ' down_and_up ')Press the back key device.press (' Keycode_back ', ' down_and_up ')Press the Down navigation key device.press (' Keycode_dpad_down ', ' down_and_up ')Press the upper navigation key device.press (' keycode_dpad_up ', ' down_and_up ')Press the OK key device.press (' Keycode_dpad_center ', ' down_and_up ')The corresponding keys correspond to the following n
1. Prepare a class to be tested Package Com.example.Service; Public class Personservice { publicvoid Save (String userName) { = Username.substring (5); } Public int Add (int A,int b) { return a +B; }}2. Create a new unit test project with the option "Android TestProject", select the project you want to testCreate a new class of test cases, note: to inherit from (superclass): Android.test.AndroidTestCase Packagec
Again, the second test method:Prerequisites: Requires your test engineering to run in a unified process with the project being tested, using instrumentationtestcase related subclasses.1. Obtain the DB list of the application being tested, by calling ApplicationContext's databaselist;2, custom a sqliteopenhelper such as the operation interface, such as: public class Databaseutil extends Sqliteopenhelper3, according to the first step to get the DB list array, get the db to be measured, call the co
How to perform Android unit testing
menifest.xml add: join in: outside join:Android:label= "Test for my App"/>
Writing Unit test code: must inherit from Androidtestcase class Package name.feisky.android.test;Import Android.test.AndroidTestCase;Import Junit.framework.Assert;public class MyTest extends Androidtestcase {private static final String tag= "MyTest";public void Testsave () throws Throwabl
Daily Development and Application of Android Handler message mechanism and code Testing
In many cases, we need to create and maintain a View for each component or all UI threads. For example, to update the display of a TextView
We cannot directly create sub-threads in the UI thread. We need to use the message mechanism: handler
This blog will show you the Handler we are familiar with, along with an example
Using monkey, the stability and robustness of the application can be measured, and the results of the test are very important for the operation of the product in the complex environment.Here is an example, with the corresponding comments, simple and clear, for everyone to refer to.#!/bin/bash# Define case Base Informationcase_name= "Monkey case" case_ver= "1.0.2" Case_package_name= " Cn.packagename.platform "Case_event_scale=5000echo"-------------------------------------"echo" Job Name:${case_ N
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.