com.shjt.map-v 100//default, only provides a small amount of information such as startup prompts, test completion, and final results
Level 1:adb Shell monkey-p com.shjt.map-v-V 100//provides more detailed logs, including each event information sent to the activity
Level 2:adb Shell monkey-p com.shjt.map-v-v-v 100//The most detailed log, including selected/unchecked activity information in the test
-S (random number of seeds)
Specifies the seed value of the pseudo-random number generator, an
Fs.writefilesync (Output_path, template); Console.log (' [Build entry] Done: ', output_path);
In the above code, you first define three template, and then use the Render method to render the template. Finally, a primary template is generated to be exported as a file. The second parameter in the render function is the data for {{name}} in template.This render method comes from the Json-templater library, which compiles strings into JS code. Dependency Relationships
See what the element is depen
than 4.5, the official program of this parameter is 4.5), and then adjust the inner ring, the inner ring is the angular velocity ring, the process is not smooth mainly look at the inner ring adjustment is good or bad. We need to pay attention to, must be able to take off the throttle around the adjustment, or there will be many students have encountered the problem: I am low throttle when the four-axis ver
-p com.htc.weather–s 10 100The effect of the two Tests is the same, because the simulated sequence of user actions (a sequence of operations consisting of each operation in a certain order) is the same. The sequence of operations is randomly generated, but as long as we specify the same seed value, we can guarantee that the random sequence of operations generated by the two Tests is exactly the same, so this sequence of operations is pseudo-random.4) Parameters:--
3.11 are shown.Note: "pct" is preceded by two bars "--" in the English input state.You can also specify how often two events occur, using the following command:Monkey--pct-touch--pct-trackball 40 200The above command indicates that the probability of a touch event and trajectory event is 50% and 40%, the total test 200 times, 3.12 and figure 3.13 are shown.specifying the interval between events by "--throttle" can delay the occurrence of an event, as
Golden Sun Video:Http://v.youku.com/v_show/id_XODcyMjM1MDA4.html?from=y1.2-1-87.4.4-1.1-1-2-31. Installing JDK,SDK,TT2. Stress test (performance test) of the app, both simulator and real machine can send pseudo-random event stream (not repeat for a period of time) (random event stream: coin toss)3.monkey is the Android system comes with, location/system/bin/monkey/monkey.jar4.ADB Shell Monkey + optionsThe ADB shell enters the shell side and then monkey+ optionsInstall Android Terminal Simulator
changes to the backup file until you manually delete the xtrabackup_susponded file.
-- Throttle = #
The number of I/O operations per second, which limits the I/O operations used for backup, minimizing the impact of backup on normal business of the database
-- Log-stream
This parameter is used during backup. the content of xtrabackup_logfile is output to the standard output. When this parameter is used, the suspend-at-end parameter is automatically
; } }}
Assume that we calculate the daily spending for one month as an example:
var currying = function(fn) {debugger; var args = []; return function() { if (arguments.length === 0) { return fn.apply(this, args); } else { Array.prototype.push.apply(args, arguments); return arguments.callee; } }}cost = function(){ var sum = 0; for (var i = 0, len = arguments.length; i
Event throttling in some scenarios, some event
Function throttling plays a large role in daily DOM interface data interactions, reducing server requests while reducing client memory impactUnderscore.js This province contains the functions of function throttling_.throttle and _.debounceThe simple tests are used as follows:The class library you need to use is jquery, underscoreThe method of testing is: MouseMove eventThe test page code is as follows:DOCTYPE HTML>HTML>Head> Scriptsrc= "Jquery-1.11
class-based views
The Django ' s class-based views is a welcome departure from the Old-style.
-Reinout van Rees
The rest framework provides a APIView class that which subclasses Django ' s View class.APIViewA class differs View from a normal class in the following ways:
The requests passed to the handler methods will be an Request instance of the rest framework, not a Django HttpRequest instance.
Handler methods may return Response to the rest frame instead
-after-errorDescription: Used to specify whether to stop execution of the current application error when it occurs. Assuming this parameter is specified, the application stops and remains in its current state when the user application error occurs[option]--throttle Description: Used to specify the interval of time for the Monkey action event, in milliseconds[option]--pct-trackball Description: Adjust the percentage of track events[option]--pct-nav Des
beautiful, but the speed of the reply a little bit slow.The outer ring is the height of the control, there are several points to note:1. The height must be limited, can not be too high;2. When the drone starts to take off from the ground, to set a fixed large height value, provide a stable pid control, more than a certain height and then change the target height, for example, when the UAV is still measured 20CM, then open the throttle set target heig
Innobackupex and innobackupex
First introduce the environment:
MySQL: 5.6.19 installation path:/u01/mysql data File:/u01/mysql/data backup source:/u02/backup
I am recovering from a different machine, and the operation is the same as that on the local machine.
I. Full backup
Steps:
. /Innobackupex -- user = root -- password = root -- host = 172.17.210.112 -- parallel = 4 -- throttle = 400 -- stream = tar/mysqlbak/innobackupex 2>/mysqlbak/innobackupex/b
) is the same.
Although the operation sequence is randomly generated, as long as we specify the same Seed value,
This ensures that the random operation sequence generated by the two tests is identical, so the operation sequence is pseudo-random;4) parameter: -- throttle This parameter is used to specify the latency between user operations (events) in milliseconds. For example:
adb shell monkey -p com.htc.Weather --
, enabling stress testing of the application under development. Monkey testing is a fast and effective method to test the stability and robustness of the software.Characteristics of Monkey1, the test object is only the application package, there are certain limitations.2. The event stream data stream used by the Monky test is random and cannot be customized.3, can set the Monkeytest object, the number of events, type, frequency, etc.Basic commands and parameters for Monkey:-VEach-V of the comman
; minimum_to_wake )){Kill_fasync ( tty-> fasync, sigio, poll_in );If (waitqueue_active ( tty-> read_wait ))Wake_up_interruptible ( tty-> read_wait );}
/** Check the remaining room for the input Canonicalization* Mode. We don't want to throttle the driver if we're in* Canonical mode and don't have a newline yet!*/If (n_tty_receive_room (TTY) /* Check tty_throttled first so it indicates our state */If (! Test_and_set_bit (tty_throttled, tty-> flags )Tt
We'll learn how centralized updates in Redux let us log every state change to the console along with the action that Cau Sed it.Import {CreateStore} from ' Redux '; import Throttle from' Lodash/throttle '; import Todoapp from'./reducers '; import {loadState, saveState} from'./localstorge '; Const Addloggingtodispatch= (store) = ={Const Rawdispatch=Store.dispatch; //If Browser not support Console.group if
Monkey all options available on the command lineExampleadb shell monkey-p cn.lejiayuan.alpha--pct-touch--pct-motion--pct-trackball 1--pct-nav 1--pct-majornav--pc T-syskeys--pct-appswitch 20-v-v-v--throttle 200-s 3333333--kill-process-after-error 10000Conventional--helpLists the simple usage.-VEach-V of the command line increases the level of feedback information.Level 0 (default) provides less information than startup prompts, test completion, and end
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.