CN110764983A - Test method, device, medium and electronic equipment - Google Patents

Test method, device, medium and electronic equipment Download PDF

Info

Publication number
CN110764983A
CN110764983A CN201910911134.1A CN201910911134A CN110764983A CN 110764983 A CN110764983 A CN 110764983A CN 201910911134 A CN201910911134 A CN 201910911134A CN 110764983 A CN110764983 A CN 110764983A
Authority
CN
China
Prior art keywords
test
test operation
preset pressure
acquiring
scene
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910911134.1A
Other languages
Chinese (zh)
Inventor
曾晖斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910911134.1A priority Critical patent/CN110764983A/en
Publication of CN110764983A publication Critical patent/CN110764983A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3409Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment for performance assessment
    • G06F11/3414Workload generation, e.g. scripts, playback

Abstract

The disclosure provides a testing method, a testing device, a testing medium and electronic equipment. The method comprises the following steps: acquiring a test operation message sent by a test server; analyzing the test operation message to obtain a group of test operation instructions associated with the logic flow of a preset pressure test scene; and sequentially executing the test operation instructions based on the logic flow sequence. According to the method and the device, the test operation instruction of the pressure test scene is acquired through the one-time test operation message, the problem of fragmentation of the test caused by repeatedly grabbing the test operation instruction is avoided, and system resources and test time are saved. Meanwhile, the long chain connection with the test service end can ensure the continuity of the test and improve the test efficiency.

Description

Test method, device, medium and electronic equipment
Technical Field
The present disclosure relates to the field of software testing, and in particular, to a testing method, device, medium, and electronic device.
Background
On-line teaching, as the name suggests, is a teaching mode taking a network as a medium, and students and teachers can develop teaching activities even if the students and teachers are separated by ten thousand miles. A good online teaching platform can use teaching software such as videos and voices, so that communication between teachers and students is more convenient, the whole training process is more interactive, and the teachers and the students can enjoy the feeling of face-to-face communication without going out. The technical key point is to simulate a virtual classroom close to reality.
The good platform test is the basis for providing technical service for users by the online teaching platform. Among them, the pressure test is an important link of the platform test.
The pressure test of the online teaching platform is to continuously pressurize the online teaching platform, force the online teaching platform to operate under the limit condition and observe the degree to which the online teaching platform can operate, thereby discovering the performance defect. The pressure test is to send expected number of requests to the platform in the same time or a certain period of time through a test program by building a test environment similar to the actual environment, and test the efficiency conditions under different pressure conditions and the pressure conditions which can be born by the platform. And then, carrying out targeted test and analysis on the platform, finding out bottlenecks affecting the performance of the platform, evaluating the efficiency condition of the platform in an actual use environment, evaluating the performance of the platform and judging whether optimization processing or structural adjustment needs to be carried out on the platform. And further optimizing platform resources.
Generally, in the pressure testing process of an online teaching platform, a student end needs to obtain a test operation instruction returned by a server end in a packet capturing mode in each test operation, and test operation of a corresponding scene is performed according to the test operation instruction. Because each operation action needs to temporarily grab the test operation instruction, the test process is fragmented, which wastes system resources and test time.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
The present disclosure is directed to a method, an apparatus, a medium, and an electronic device for testing, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific embodiment of the present disclosure, in a first aspect, the present disclosure provides a method of testing, including:
acquiring a test operation message sent by a test server;
analyzing the test operation message to obtain a group of test operation instructions associated with the logic flow of a preset pressure test scene;
and sequentially executing the test operation instructions based on the logic flow sequence.
According to a second aspect, the present disclosure provides an apparatus for testing, comprising:
the acquisition unit is used for acquiring a test operation message sent by the test server;
the analysis unit is used for analyzing the test operation message and acquiring a group of test operation instructions related to the logic flow of a preset pressure test scene;
and the test unit is used for sequentially executing the test operation instructions based on the logic flow sequence.
According to a third aspect, the present disclosure provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of testing according to any one of the first aspect.
According to a fourth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out a method of testing according to any one of the first aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a testing method, a testing device, a testing medium and electronic equipment. The method comprises the following steps: acquiring a test operation message sent by a test server; analyzing the test operation message to obtain a group of test operation instructions associated with the logic flow of a preset pressure test scene; and sequentially executing the test operation instructions based on the logic flow sequence. According to the method and the device, the test operation instruction of the pressure test scene is acquired through the one-time test operation message, the problem of fragmentation of the test caused by repeatedly grabbing the test operation instruction is avoided, and system resources and test time are saved. Meanwhile, the long chain connection with the test service end can ensure the continuity of the test and improve the test efficiency.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 shows a flow diagram of a method of testing in accordance with an embodiment of the present disclosure;
FIG. 2 shows a block diagram of elements of a device under test according to an embodiment of the present disclosure;
fig. 3 shows an electronic device connection structure schematic according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
A first embodiment, an embodiment of a method of testing, is provided for the present disclosure.
An embodiment of the present disclosure is described in detail below with reference to fig. 1, where fig. 1 is a flowchart of a testing method provided by the embodiment of the present disclosure.
Step S101, obtaining a test operation message sent by a test service terminal.
The test service end is a server for providing test operation instructions for the test end. The test server and the test end transmit information in a communication mode.
A message refers to a way of interacting and communicating between software objects. Including a message header and a message body.
The test operation message in the embodiment of the present disclosure includes a set of test operation instructions associated with the logic flow of the preset pressure test scenario. Usually, the test operation command is encapsulated in the message body of the test operation message according to the preset encapsulation rule.
Optionally, the obtaining of the test operation message sent by the test server includes the following steps:
and S101-1a, obtaining a test operation message sent by the test service end through long chain connection with the test service end.
The communication links may be divided into long links and short links according to the length of the communication time.
A connection is established between the sender and the receiver once per execution of a task, the task ending, i.e. breaking the connection, is called a short link.
The long link is that the sender and the receiver always keep a connection state regardless of whether a task is executed or not.
The test end and the test server end keep long link, so that the test continuity can be ensured, and the test efficiency is improved.
Step S102, analyzing the test operation message, and acquiring a group of test operation instructions associated with the logic flow of the preset pressure test scene.
Generally, after the message is obtained, the information encapsulated in the message body needs to be restored to each independent available data according to a preset parsing rule.
Each pressure test scene comprises a fixed execution logic flow, the group of test operation instructions associated with the logic flow of the preset pressure test scene refers to a series of test operation instructions which are in accordance with the logic flow and simulate actual operation in the preset pressure test scene, and the logic flow of the preset pressure test scene can be automatically tested through the group of test operation instructions.
And step S103, sequentially executing the test operation instructions based on the logic flow sequence.
The logic flow of the preset pressure test scene can be automatically tested through the group of test operation instructions. Therefore, the problem of fragmentation in testing can be avoided, and system resources and testing time are saved.
Optionally, before the test operation instructions are sequentially executed based on the logic flow sequence, the method further includes the following steps:
and S103-1, acquiring corresponding preset pressure test environment parameters based on a preset pressure test scene.
If the preset pressure test scene needs to be tested at the test end, the test end must have a pressure test environment meeting the preset pressure test scene.
The preset pressure test environment parameters are environment data which can enable the test end to directly reach the pressure test environment, namely the preset pressure test environment parameters are set to enable the test end to reach the pressure test environment, so that the preset pressure test scene can be tested.
Optionally, the obtaining of the corresponding preset pressure test environment parameter based on the preset pressure test scenario at least includes one of the following steps:
and S103-1-1, acquiring corresponding preset pressure test environment parameters from the pressure test environment data set based on the preset pressure test scene.
The stress test environment data set may be a database, a configuration file, or a text file that stores preset stress test environment parameters. The embodiments of the present disclosure do not limit the existence of the stress test environment data set. The stress test environment data set may be stored at the test end, or may be stored at a service end in the network, for example, a test service end.
And step S103-1-2, analyzing the test operation message, and acquiring a preset pressure test environment parameter associated with a preset pressure test scene. .
That is, the test operation message includes not only the test operation instruction but also the preset pressure test environment parameter.
The preset pressure test environment parameters are issued to the test end by the test server, and unified management on the pressure test environment parameters of various pressure test environments is facilitated.
And S103-2, acquiring a pressure test environment based on the preset pressure test environment parameters.
The embodiment of the present disclosure provides a specific application scenario for the method described above:
optionally, before obtaining the test operation message sent by the test server, the method further includes the following steps:
step S100, sending a test request message to the test server.
The test end initiates a test request, which is beneficial to multi-machine simulation multi-scene test.
Optionally, the sending a request test message to the test server includes the following steps:
step S100-1, sending a test request message including preset pressure test scene information to the test server.
The request test message includes preset pressure test scenario information. Namely, the test is initiated by the test terminal, and the pressure test scene needing to be tested is specified, so that the flexibility of the test is improved.
Optionally, the obtaining of the test operation message sent by the test server includes the following steps:
step S101-1b, obtaining the test operation message sent by the test server end responding to the request test message.
Further, the obtaining of the test operation message sent by the test server in response to the request test message includes the following steps:
and S101-1b-1, obtaining the test operation message sent by the test server end responding to the request test message through long chain connection with the test server end.
According to the embodiment of the invention, the test operation instruction of the pressure test scene is acquired through the one-time test operation message, so that the problem of fragmentation caused by repeatedly grabbing the test operation instruction is avoided, and system resources and test time are saved. Meanwhile, the long chain connection with the test service end can ensure the continuity of the test and improve the test efficiency.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, i.e., a device for testing. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 2 illustrates an embodiment of a device for testing provided by the present disclosure. Fig. 2 is a block diagram of elements of a device for testing provided by an embodiment of the present disclosure.
Referring to fig. 2, the present disclosure provides a testing apparatus, including: an acquisition unit 201, an analysis unit 202 and a test unit 203.
An obtaining unit 201, configured to obtain a test operation message sent by a test server;
the analysis unit 202 is configured to analyze the test operation message to obtain a set of test operation instructions associated with a logic flow of a preset pressure test scenario;
the test unit 203 is configured to sequentially execute the test operation instructions based on the logic flow sequence.
Optionally, the obtaining unit 201 includes:
and the first test operation information obtaining subunit is used for obtaining the test operation information sent by the test service end through long-chain connection with the test service end.
Optionally, in the apparatus, the apparatus further includes: a configuration unit;
in the configuration unit, comprising:
the system comprises an obtaining environment parameter subunit, a pressure test environment parameter calculating unit and a pressure test environment parameter setting unit, wherein the obtaining environment parameter subunit is used for obtaining corresponding preset pressure test environment parameters based on a preset pressure test scene;
and the pressure test environment acquisition subunit is used for acquiring a pressure test environment based on the preset pressure test environment parameters.
Optionally, the environment parameter obtaining subunit includes at least one of the following subunits:
the first acquiring environment parameter subunit is used for acquiring corresponding preset pressure test environment parameters from the pressure test environment data set based on a preset pressure test scene;
and the second acquiring environmental parameter subunit is used for analyzing the test operation message and acquiring the preset pressure test environmental parameter associated with the preset pressure test scene.
Optionally, in the apparatus, the apparatus further includes:
and the test message sending request unit is used for sending a test message request to the test server.
Optionally, the sending request test message unit includes:
and the test request message sending subunit is used for sending a test request message including preset pressure test scene information to the test server.
Optionally, the obtaining unit 201 includes:
and the second test operation message acquiring subunit is configured to acquire the test operation message sent by the test server in response to the request test message.
According to the embodiment of the invention, the test operation instruction of the pressure test scene is acquired through the one-time test operation message, so that the problem of fragmentation caused by repeatedly grabbing the test operation instruction is avoided, and system resources and test time are saved. Meanwhile, the long chain connection with the test service end can ensure the continuity of the test and improve the test efficiency.
The third embodiment of the present disclosure provides an electronic device, which is used in a testing method, and includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of testing as described in the first embodiment.
The disclosed embodiments provide a fourth embodiment, a tested computer storage medium storing computer-executable instructions that can perform the method of testing as described in the first embodiment.
Referring now to FIG. 3, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 3 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 3, the electronic device may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)302 or a program loaded from a storage device 308 into a Random Access Memory (RAM) 303. In the RAM 303, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
Generally, the following devices may be connected to the I/O interface 305: input devices 306 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 307 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage devices 308 including, for example, magnetic tape, hard disk, etc.; and a communication device 309. The communication means 309 may allow the electronic device to communicate wirelessly or by wire with other devices to exchange data. While fig. 3 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication means 309, or installed from the storage means 308, or installed from the ROM 302. The computer program, when executed by the processing device 301, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims (10)

1. A method of testing, comprising:
acquiring a test operation message sent by a test server;
analyzing the test operation message to obtain a group of test operation instructions associated with the logic flow of a preset pressure test scene;
and sequentially executing the test operation instructions based on the logic flow sequence.
2. The method of claim 1, wherein the obtaining of the test operation message sent by the test service comprises:
and obtaining the test operation message sent by the test service end through the long chain with the test service end.
3. The method of claim 1, further comprising, prior to the sequentially executing the test operation instructions based on the logic flow order:
acquiring corresponding preset pressure test environment parameters based on a preset pressure test scene;
and acquiring a pressure test environment based on the preset pressure test environment parameters.
4. The method according to claim 3, wherein the obtaining of the corresponding preset stress test environment parameter based on the preset stress test scenario comprises at least one of the following steps:
acquiring corresponding preset pressure test environment parameters from the pressure test environment data set based on a preset pressure test scene;
and analyzing the test operation message to acquire a preset pressure test environment parameter associated with a preset pressure test scene.
5. The method according to claim 1, before acquiring the test operation message sent by the test service, further comprising:
and sending a test request message to the test server.
6. The method of claim 5, wherein sending the request test message to the test service comprises:
and sending a test request message including preset pressure test scene information to the test server.
7. The method of claim 6, wherein the obtaining the test operation message sent by the test service includes:
and acquiring the test operation message sent by the test server end responding to the request test message.
8. An apparatus for testing, comprising:
the acquisition unit is used for acquiring a test operation message sent by the test server;
the analysis unit is used for analyzing the test operation message and acquiring a group of test operation instructions related to the logic flow of a preset pressure test scene;
and the test unit is used for sequentially executing the test operation instructions based on the logic flow sequence.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
CN201910911134.1A 2019-09-25 2019-09-25 Test method, device, medium and electronic equipment Pending CN110764983A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910911134.1A CN110764983A (en) 2019-09-25 2019-09-25 Test method, device, medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910911134.1A CN110764983A (en) 2019-09-25 2019-09-25 Test method, device, medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN110764983A true CN110764983A (en) 2020-02-07

Family

ID=69329980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910911134.1A Pending CN110764983A (en) 2019-09-25 2019-09-25 Test method, device, medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110764983A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367791A (en) * 2020-02-19 2020-07-03 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating test case
CN112764978A (en) * 2021-01-18 2021-05-07 北京开拓鸿业高科技有限公司 Pressure measurement simulation degree determination method and device, storage medium and electronic equipment
CN112863545A (en) * 2021-01-13 2021-05-28 北京字节跳动网络技术有限公司 Performance test method and device, electronic equipment and computer readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470133A (en) * 2015-08-20 2017-03-01 阿里巴巴集团控股有限公司 System pressure method of testing and device
CN107508725A (en) * 2017-08-24 2017-12-22 航天中认软件测评科技(北京)有限责任公司 For the method for automatic test, apparatus and system
CN108959047A (en) * 2018-06-11 2018-12-07 北京奇安信科技有限公司 A kind of method for testing pressure and device based on business scenario
CN109614318A (en) * 2018-11-14 2019-04-12 金色熊猫有限公司 Automated testing method, device, electronic equipment and computer-readable medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106470133A (en) * 2015-08-20 2017-03-01 阿里巴巴集团控股有限公司 System pressure method of testing and device
CN107508725A (en) * 2017-08-24 2017-12-22 航天中认软件测评科技(北京)有限责任公司 For the method for automatic test, apparatus and system
CN108959047A (en) * 2018-06-11 2018-12-07 北京奇安信科技有限公司 A kind of method for testing pressure and device based on business scenario
CN109614318A (en) * 2018-11-14 2019-04-12 金色熊猫有限公司 Automated testing method, device, electronic equipment and computer-readable medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111367791A (en) * 2020-02-19 2020-07-03 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating test case
CN111367791B (en) * 2020-02-19 2023-08-01 北京字节跳动网络技术有限公司 Method, device, medium and electronic equipment for generating test case
CN112863545A (en) * 2021-01-13 2021-05-28 北京字节跳动网络技术有限公司 Performance test method and device, electronic equipment and computer readable storage medium
CN112863545B (en) * 2021-01-13 2023-10-03 抖音视界有限公司 Performance test method, device, electronic equipment and computer readable storage medium
CN112764978A (en) * 2021-01-18 2021-05-07 北京开拓鸿业高科技有限公司 Pressure measurement simulation degree determination method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110795022B (en) Terminal testing method, system and storage medium
CN108494860B (en) WEB access system, WEB access method and device for client
CN110753089B (en) Method, device, medium and electronic equipment for managing client
CN110764983A (en) Test method, device, medium and electronic equipment
CN111786939B (en) Method, device and system for testing management platform of Internet of things
CN110909521A (en) Synchronous processing method and device for online document information and electronic equipment
CN115640285B (en) Power abnormality information transmission method, device, electronic equipment and medium
CN111694757B (en) Application program testing method and device, electronic equipment and computer readable storage medium
CN112995712A (en) Method, device and equipment for determining stuck factors and storage medium
CN110837334B (en) Method, device, terminal and storage medium for interactive control
CN111309304A (en) Method, device, medium and electronic equipment for generating IDL file
CN110910469A (en) Method, device, medium and electronic equipment for drawing handwriting
CN115022328B (en) Server cluster, testing method and device of server cluster and electronic equipment
CN111752644A (en) Interface simulation method, device, equipment and storage medium
CN115134254B (en) Network simulation method, device, equipment and storage medium
CN112084441A (en) Information retrieval method and device and electronic equipment
CN113031950A (en) Picture generation method, device, equipment and medium
CN112306858A (en) Test method and device and electronic equipment
CN112486826B (en) Test method, test device, electronic equipment and computer readable medium
CN111831530A (en) Test method and device
CN113435528B (en) Method, device, readable medium and electronic equipment for classifying objects
CN116866229A (en) Network delay monitoring method, message response method, device and electronic equipment
CN115562751A (en) Service data processing method, system, electronic device and storage medium
CN116149983A (en) Script testing method, device, equipment and storage medium
CN110765002A (en) Method, device, medium and electronic equipment for obtaining operation behavior information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207