思维混乱,是因为大脑没有结构
请你花10秒钟的时间,记住以下的20个数字:


好,我们再来试一组数字,还是花10秒钟来记住它:


其实这2组的20个数字是一样的,但是不是觉得第二组一下子就记住了?
请你花10秒钟的时间,记住以下的20个数字:
好,我们再来试一组数字,还是花10秒钟来记住它:
其实这2组的20个数字是一样的,但是不是觉得第二组一下子就记住了?
Redis is an open source (BSD licensed), in-memory data structure store, used as a database, cache and message broker. It supports data structures such as strings, hashes, lists, sets, sorted sets with range queries, bitmaps, hyperloglogs, geospatial indexes with radius queries and streams. Redis has built-in replication, Lua scripting, LRU eviction, transactions and different levels of on-disk persistence, and provides high availability via Redis Sentinel and automatic partitioning with Redis Cluster.
作者:张建飞 高级技术专家
在日常工作中,我们时常会碰到这样的情况,有的人讲事情逻辑非常混乱,罗列了很多事项,却把握不到重点,无法把一件事情说清楚。这种思维混乱是典型的缺少结构化思维的表现。结构化思维非常重要,不仅仅体现在表达上,也体现在在我们分析问题的过程中。具备结构化思维,才能将问题分析地更全面、更深刻。
Available since 1.0.0.
The INFO command returns information and statistics about the server in a format that is simple to parse by computers and easy to read by humans.
The optional parameter can be used to select a specific section of information:
server
: General information about the Redis serverclients
: Client connections sectionmemory
: Memory consumption related informationpersistence
: RDB and AOF related informationstats
: General statisticsreplication
: Master/replica replication
informationcpu
: CPU consumption statisticscommandstats
: Redis command statisticscluster
: Redis Cluster sectionkeyspace
: Database related statisticsIt can also take the following values:
all
: Return all sectionsdefault
: Return only the default set of sectionsWhen no parameter is provided, the default
option is
assumed.
SHOW
has many forms that provide information about
databases, tables, columns, or status information about the server. This
section describes those following:
1 | SHOW {BINARY | MASTER} LOGS |
If the syntax for a given SHOW
statement includes a
LIKE '*
pattern*'
part,
'*
pattern*'
is a string that can contain the
SQL %
and _
wildcard characters. The pattern
is useful for restricting statement output to matching values.
Several SHOW
statements also accept a WHERE
clause that provides more flexibility in specifying which rows to
display.
In addition, you can work in SQL with results from queries on tables
in the INFORMATION_SCHEMA
database, which you cannot easily
do with results from SHOW
statements.
1 | ALTER {DATABASE | SCHEMA} [db_name] |
ALTER DATABASE
enables you to change the overall
characteristics of a database. These characteristics are stored in the
data dictionary. To use ALTER DATABASE
, you need the
ALTER
privilege on the database. ALTER SCHEMA
is a synonym for ALTER DATABASE
.
The database name can be omitted from the first syntax, in which case the statement applies to the default database.
If you change the default character set or collation for a database, stored routines that use the database defaults must be dropped and recreated so that they use the new defaults. (In a stored routine, variables with character data types use the database defaults if the character set or collation are not specified explicitly.
Replication enables data from one MySQL database server (the master) to be copied to one or more MySQL database servers (the slaves). Replication is asynchronous by default; slaves do not need to be connected permanently to receive updates from the master. Depending on the configuration, you can replicate all databases, selected databases, or even selected tables within a database.
黑盒测试用例设计方法包括等价类划分法、边界值分析法、错误推导法、因果图法、判定表驱动法、正交试验设计法、功能图法、场景图法等。
定义:等价类划分法是把所有可能输入的数据,即程序的输入域划分为若干部分(子集),然后从每一个子集中选取少数具有代表性的数据作为测试用例。等价类方法是一种重要的、常用的黑盒测试用例设计方法。
等价类是指某个输入域的子集合。在该子集合中,各个输入数据对于揭露程序中的错误都是等效的,并合理地假定:测试某等价类的代表值就等于对这一类其他值的测试,因此,可以把全部输入数据合理划分为若干等价类,在每一个等价类中取一个数据作为测试的输入条件就可以用少量代表性的测试数据取得较好的测试结果。等价类划分有两种不同的情况:有效等价类和无效等价类。
有效等价类,是指对于程序的规格说明来说是合理的、有意义的输入数据构成的集合。利用有效等价类可检验程序是否实现了规格说明所规定的功能和性能。
无效等价类,指对程序的规格说明是不合理的或无意义的输入数据所构成的集合。对于具体的问题,无效等价类至少应有一个,也可能多个。
在输入条件规定了取值范围或值的个数的情况下,则可以确立一个有效等价类和两个无效等价类。如:输入值是学生成绩,范围是0~100
在输入条件规定了输入值的集合或者规定了“必须如何”的条件的情况下,可确立一个有效等价类和一个无效等价类:
在输入条件是一个布尔量的情况下,可确定一个有效等价类和一个无效等价类。布尔量是一个二值枚举类型, 一个布尔量具有两种状态: true 和 false 。
在规定了输入数据的一组值(假定n个),并且程序要对每一个输入值分别处理的情况下,可确立n个有效等价类和一个无效等价类。
例:输入条件说明学历可为:专科、本科、硕士、博士四种之一,则分别取这四种的四个值作为四个有效等价类,另外把四种学历之外的任何学历作为无效等价类。
在规定了输入数据必须遵守的规则情况下,可确立一个有效等价类(符合规则)和若干个无效等价类(从不同角度违反规则);
在确知已划分的等价类中各元素在程序处理中的方式不同的情况下,则应在将该等价类进一步的划分为更小的等价类。
Monkey 是一个在模拟器或设备上运行的程序,可生成伪随机用户事件(例如点击、轻触或手势)流以及很多系统级事件。您可以使用 Monkey 以随机且可重复的方式对正在开发的应用进行压力测试。
Monkey 是一个命令行工具,可以在任何模拟器实例或设备上运行。它会将伪随机用户事件流发送到系统中,从而在您正在开发的应用软件上进行压力测试。
Monkey 包含许多选项,主要分为以下四个类别:
Monkey 在运行时会生成事件并将其发送到系统。它还会监视被测系统并查找三种特殊情况:
根据您选择的详细程度级别,您还将看到有关 Monkey 进度和所生成事件的报告。
您可以使用开发计算机上的命令行启动 Monkey,也可以通过脚本启动。由于
Monkey 在模拟器/设备环境中运行,因此您必须从该环境中通过 shell
启动它。为此,您可以在每个命令前面加上
adb shell
,或者直接进入 shell 并输入 Monkey 命令。
基本语法如下:
1 | $ adb shell monkey [options] <event-count> |
如果未指定任何选项,Monkey 将以静默(非详细)模式启动,并将事件发送到目标上安装的任何(及所有)软件包。下面是一个更典型的命令行,它会启动您的应用并向其发送 500 个伪随机事件:
1 | $ adb shell monkey -p your.package.name -v 500 |
一般是指软件测试的自动化,软件测试就是在预设条件下运行系统或应用程序,评估运行结果,预先条件应包括正常条件和异常条件。自动化测试是把以人为驱动的测试行为转化为机器执行的一种过程。