1. Smoke Test-monkey Automation1.Monkey command Simple explanation monkey-v-P com.jh.jhcs.activity--throttle--pct-touch 100 5000; • Command explanation: Monkey refers to the tool name. -v Displays information about the default program. -p Com.jh.jhcs.activity is the procedure for making tests. --throttle 50 Set the delay to 0.5 seconds. --pct-touch Adjust touch events. • 100 specified for 100% execution. •
Monkey is a program running on an Android device or virtual machine that can randomly simulate a series of user actions, click, swipe, and use it for stress testing.During the monkey run, it generates and sends a series of events to the system and listens to the system: when it assigns one or more programs to it, it restricts other programs in the system, prevents them from running, and when the program crashes, the monkey stops, and the feedback error occurs, and when the program responds, Monk
long as we specify the same seed value,It is guaranteed that the sequence of random operations generated by the two Tests is exactly the same, so this sequence of operations is pseudo-random;4) Parameters:--throttle Used to specify the delay between user actions (that is, events), in milliseconds, as an example:adb shell monkey-p com.htc.Weather--throttle 3000 100Note: Delay 3 seconds, execute 100 times;5)
application generates an app that doesn't send an error, Monkey will also block and report the error
Third,how to use Monkey?The basic syntax is:$ adb shell monkey [options] In general, we are relatively simple to use:$ adb shell Monkey-p your.package.name-v 500Next, focus on the meaning of the command line arguments:
Category
Option
Description
General
--help
Prints a simple usage guide.
-v
Each-v on the command line would
Monkey is a command-line tool in Android that can be run in the emulator or in the actual device. It sends pseudo-random user event streams (such as key input, touch input, gesture input, etc.) to the system, enabling stress testing of the application under development.Let's take a look at the monkey command.100000>e:\monkeylog\monkeyscreenlog.logThis monkey command refers to the creation of 100,000 pseudo-random operations (including touch, keystrokes, gestures, etc.) in the Ctrip.android.view,
') { tar.style.background = 'black'; }}
6) throttle and dejitter
Throttle: sets an execution cycle in advance. When the call action is at a time greater than or equal to the execution cycle, the action is executed and enters the next new cycle.
For example, the mousemove event, the resize and scroll events of the window object.
Debounce: this action is executed only after n milliseconds of the call. If the
basic syntax is:$ adb shell monkey [options] In general, we are relatively simple to use:$ adb shell Monkey-p your.package.name-v 500Next, focus on the meaning of the command line arguments:
Category
Option
Description
General
--help
Open Help to see parameter information instantly
-v
Each-v command increases the result with different redundancy levels. Different level, from 0 to 2, can provide more and more detailed content hin
setup.Intercepting SSL InformationCharles does not intercept SSL by default, and if you want to intercept all SSL network requests on a Web site, you can right-click on the request and select SSL Proxy, as shown in:In this way, all SSL requests for the host can be intercepted.Analog Slow networkWhen it comes to iphone development, we often need to simulate a slow network or a high-latency network to test whether the application behaves properly under the mobile network. Charles has provided a g
the kernel.php file.phpnamespace app\http; UseIlluminate\foundation\http\kernel asHttpkernel;classKernelextendshttpkernel{/** * The application ' s global HTTP middleware stack. * * These middleware is run during every request to your application. * * @var Array*/ protected $middleware= [ ]; /** * The application ' s route middleware groups. * * @var Array*/ protected $middlewareGroups= [ ' Web ' =[\app\http\middleware\encryptcookies::class,\illuminate\cookie\middleware\addq
is as follows :--help: Printing Help information-V: Specifies the level of detail for printing information, a -v adds a level , and the default level is 0 . 2: Event OptionsCopy Code The code is as follows :-S: Specifies that random event seed values are generated, and the same seed values produce the same sequence of events. such as: -S 200--throttle: The time interval after each event-reducing the pressure on the system (if not specified, the syste
* * has been doing web testing, a new job new start, decided to try new tests, so chose a never touch app test.How to say, for the people who do the Web test, the app really does not have a bit of difficulty ... The test process is the same, the test method is similar, the difference is that the app test seems to be less demanding for testers ... A wrong transformation. Self-feeling, app testing is a good use of some tools, because the command can be used relatively centralized, so more studious
follows:--HELP: Printing Help information-V: Specifies the level of detail for printing information, a-V adds a level, and the default level is 0.2: Event OptionsCopy CodeThe code is as follows:-S: Specifies that random event seed values are generated, and the same seed values produce the same sequence of events. such as:-S 200--throttle: The time interval after each event-reducing the pressure on the system (if not specified, the system will send th
hidden layer represents a condensing of that information. the output of the hidden layer shoshould contain an encoded representation of the inputs, and can be used as inputs themselves into another neural net. I think that's how I attempted it, but it didn't work, and I didn't have time to wait e it further.
I can't say exactly which inputs I used, as that's got cially sensitive information you know. but, the participating ones I settled on were really down to the nature of the physics model i
executes the request to reach the server through varnish. Expectations can be set to content, title, HTTP response code, or more. Using varnishtest, we can quickly test our sample application and verify whether our request passes or blocks each defined expectations.
First, we need a database with our throttling rules. Using the sqlite3 command, we create the database in/tmp/rules. db3 and add two or three rules.
$ Sqlite3/tmp/rules. db3 "create table t (rule text, path text );"$ Sqlite3/tmp/ru
similar to APM's attitude mode. In the auxiliary mode, it is divided into the height control mode (ALTCTL) and the position control mode (POSCTL) Two sub-modes, the height control mode is similar to the APM's fixed high mode, the throttle corresponds to the aircraft height control. Position mode controls the speed of the aircraft relative to the ground, as well as the throttle and height control modes, yaw
the middleware Group
You can define the middleware group in app \ Http \ Kernel. php. This class has a new array attribute $ middlewareGroups. the key of this array is the name of the middleware group and the value is the corresponding middleware.
Laravel provides the web and api middleware groups by default:
protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illumina
package_whitelist_file][-- Wait-dbg] [-- dbg-no-events][-- Setup scriptfile] [-F scriptfile [-F scriptfile]...][-- Port port][-S seed] [-V [-v]...][-- Throttle millisec] [-- randomize-Throttle]Count
You can enter
User @ User :~ /Workspaces/android-sdk-linux_x86/platform-tools $ ADB Shell
In this way, you enter the ADB shell, and you can directly enter the monkey to execute the command. Otherwise, you mus
/download/4/2/c/42c2b48a-7f1d-4852-95f3-3a859acfbdfb/WindowsXP-KB896256-v4-x86-CHS.exeAfter the patch is installed, You need to modify the Registry to enable it. The method is simple:1. Click Start, click Run, type regedit, and click OK ".2. Right-click "HKEY_LOCAL_MACHINE/system/CurrentControlSet/control/Session Manager", point to "new", and click "item ".3. Type throttle as the name of the new item.4. Right-click "
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.