CN110058990A - Performance test methods and device, computer equipment, storage medium - Google Patents

Performance test methods and device, computer equipment, storage medium Download PDF

Info

Publication number
CN110058990A
CN110058990A CN201910185646.4A CN201910185646A CN110058990A CN 110058990 A CN110058990 A CN 110058990A CN 201910185646 A CN201910185646 A CN 201910185646A CN 110058990 A CN110058990 A CN 110058990A
Authority
CN
China
Prior art keywords
interface
tested
calling
test
test data
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
CN201910185646.4A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910185646.4A priority Critical patent/CN110058990A/en
Publication of CN110058990A publication Critical patent/CN110058990A/en
Pending legal-status Critical Current

Links

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/3452Performance evaluation by statistical analysis
    • 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5018Thread allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Evolutionary Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

This application discloses a kind of performance test methods and devices, are related to the field of test technology.The described method includes: the whole of analog service system interface to be tested;It makes several interfaces by calling test data is passed in the interface to be tested, the corresponding code of several interfaces of making is for generating the test data;According to set operation system, concurrently corresponding number of threads, triggering multithreading carry out the successively calling of the interface to be tested simultaneously, and test data used in each same interface to be tested of thread dispatching is different.The performance test that can realize multiplex roles multi-thread concurrent to operation system using method provided by the present application, meets testing requirement.

Description

Performance test methods and device, computer equipment, storage medium
Technical field
This application involves interface testing technical field, in particular to a kind of performance test methods and device, computer equipment, Computer readable storage medium.
Background technique
Currently, the operation flow of partial service system be it is linear, the ginseng that enters of next interface needs to be multiplexed a upper interface Part goes out to join, therefore in the performance test, and test data needs are successively called by the total interface of operation system to be passed through, with Test the ability that operation system realizes multiplex roles multi-thread concurrent.But existing performance testing tool can not support connect more The test pattern of mouth multi-thread concurrent, such as Jemter tool only support the multi-thread concurrent test of single interface, are not able to satisfy survey Examination demand.
Therefore, the performance test that multiplex roles multi-thread concurrent how is realized to operation system, is to need in the prior art The technical issues of solution.
Summary of the invention
Based on above-mentioned technical problem, this application provides a kind of performance test methods and device, computer equipment, computers Readable storage medium storing program for executing.
Techniques disclosed in this application scheme includes:
A kind of performance test methods of operation system, which comprises
Further, the whole of analog service system interface to be tested;Several interfaces are made by calling to be passed to test data In the interface to be tested, the corresponding code of several interfaces of making is for generating the test data;According to set business system The concurrent corresponding number of threads of system, triggering multithreading carry out the successively calling of the interface to be tested simultaneously, and each thread dispatching is same Test data used in one interface to be tested is different.
Further, after the whole interface to be tested of the analog service system, the method also includes: it is described Several codes are made in each interface configuration to be tested of operation system, respectively make several codes and are respectively used to generate not the interface to be tested Same parameter;The several codes of making configured are packaged, encapsulation function obtained makes several interfaces to be described.
Further, described by making of being configured before several codes are packaged, the method also includes: it will be configured The title carry out sequence specification for respectively making several codes, the name order and the thread for respectively making several codes carry out the interface to be tested Calling sequence match.
Further, described to make several interfaces by calling test data is passed in the interface to be tested, comprising: to pass through Several interfaces are made described in calling, and according to the name order for making several codes, the parameter for respectively making several code buildings is successively passed to institute In each interface to be tested of simulation.
Further, concurrently corresponding number of threads, triggering multithreading carry out the operation system according to set by simultaneously The successively calling of the interface to be tested, comprising: concurrently corresponding number of threads, definition are initiated according to set operation system Total number of threads;After detecting trigger signal, according to defined total number of threads, multithreading is generated simultaneously in thread pool Simulate the successively calling of each interface to be tested.
Further, the performance test methods further include: according to preset index item, carried out simultaneously in the multithreading Corresponding index value is recorded in the successively calling process of the interface to be tested;The index value recorded is subjected to visualization exhibition Show.
A kind of performance testing device, described device include: interface analog module, and the whole for analog service system is to be measured It tries mouth;Test data is passed in the interface to be tested, institute by test data afferent module for making several interfaces by calling It states and makes the corresponding code of several interfaces for generating the test data;Interface calling module, for according to set operation system Concurrent corresponding number of threads, triggering multithreading carry out the successively calling of the interface to be tested simultaneously, and each thread dispatching is same Test data used in the interface to be tested is different.
A kind of computer equipment, the computer equipment include:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing When device executes, foregoing performance test methods are realized.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor When row, foregoing performance test methods are realized.
The technical solution that embodiments herein provides can include the following benefits:
Compared with prior art, method provided herein passes through the whole interface to be tested of analog service system, and Calling makes several interfaces and test data is passed in interface to be tested, with by trigger multiple threads simultaneously to each interface to be tested into Row successively calls, to realize the performance test of multiplex roles multi-thread concurrent to operation system, can satisfy testing requirement.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited Application.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the application Example, and in specification it is used to explain the principle of the application together.
Fig. 1 is a kind of flow chart of performance test methods shown according to an exemplary embodiment;
Fig. 2 is the flow chart of step 150 in one embodiment according to Fig. 1;
Fig. 3 is a kind of flow chart of the performance test methods shown according to another exemplary embodiment;
Fig. 4 is a kind of block diagram of performance testing device shown according to an exemplary embodiment;
Fig. 5 is a kind of hardware block diagram of computer equipment shown according to an exemplary embodiment.
Through the above attached drawings, it has been shown that the specific embodiment of the present invention will be hereinafter described in more detail, these attached drawings It is not intended to limit the scope of the inventive concept in any manner with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate idea of the invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the application.
Several nouns involved in the embodiment of the present application are explained first:
Interface: its full name is application programming interface, and also referred to as API is some functions predetermined, it is therefore an objective to mention The ability of one group of routine of access is able to based on certain software or hardware for application program and developer, without access source code, or Understand the details of internal work mechanism.
Concurrent: concurrently referring to has greater than one program to run to operation and finish it all in having been turned in a period Between, and these programs are all to run on the same processor, but only one program is on treaters in any one moment point Operation.
Multithreading: thread be program execute stream minimum unit, multithreading refer to realized from software or hardware it is multiple The technology that thread concurrently executes.Computer with multithreading ability can execute multiple due to having hardware supported in the same time Thread, and then promote disposed of in its entirety performance.
Thread pool: thread pool is a kind of multiple threads form, and task is added to queue in treatment process, is then being created It builds and starts these tasks after thread automatically.Thread pool threads are all background threads.
Performance test: be simulated by the testing tool of automation a variety of normal, peak values and abnormal load conditions come pair The performance indexes of system is tested.Applying in the performance test of client mainly includes concurrency performance test, is concurrently surveyed The purpose major embodiment of examination are as follows: using true business as foundation, by simulating hundreds of user, repeat and run survey Examination, to determine performance bottleneck.
Fig. 1 is a kind of flow chart of performance test methods shown according to an exemplary embodiment.As shown in Figure 1, the party Method may comprise steps of:
Step 110, the whole of analog service system interface to be tested.
First it should be noted that performance test methods provided by the present embodiment can be regarded as a kind of test script.It surveys Training is originally the series of instructions of a fc-specific test FC, these instruct the testing tool execution that can be automated.Therefore, this implementation The performance testing tool that performance test methods provided by example can be automated executes, to realize that the performance to operation system is surveyed Examination.
In the present embodiment, operation system should be understood as a kind of software product that need to be tested for the property, such as can be with It is APP product or web page product, this place is not limited.The performance of the provided performance test methods of the present embodiment is provided Testing tool can be the common tools such as Jemter, Loadrunner, HyperPacer, this place is also not limited.Therefore exist In the present embodiment, different test scenes can be reflected by the difference of operation system and performance testing tool.
In order to improve the maintainability and reusability of test script, it is necessary to before executing test script, carry out the survey The initialization of training sheet.In the specific implementation process, test script can be carried out just according to the interface to be tested in operation system Beginningization.
Specifically, due to the partial service process of certain operation systems be it is linear, operation system is executing specific industry When process of being engaged in, performed next operation needs to use the partial information of last action, in code execution level, i.e., next to connect Mouthful the ginseng that enters need to be multiplexed the part of a upper interface and go out ginseng, therefore test script need it is each to be tested in analog service system Interface.
As an example it is assumed that the operation flow of user's registration is " address name → gender → identification card number in operation system Code → phone number ", for the operation flow simulate interface to be tested when, need respectively analog subscriber name input interface, Gender input interface, ID card No. input interface and phone number input interface.
In the performance testing tool that developed due to developer, it is supplied to the detailed interface operation instruction of tester Book, therefore in the present embodiment, tester only need to be according to the related description of selected performance testing tool, needed for simulating The whole of the operation system of test interface to be tested, the Detailed simulation process that this place does not treat test interface then are repeated.
Step 130, several interfaces are made by calling, test data is passed in each interface to be tested.
Wherein, make the application programming interface that several interfaces correspond to make several codes, make several codes for generate progress The test data of performance test, such as generate address name, gender, ID card No. and phone number above-mentioned.
Since in operation system, the type of test parameter corresponding to different interfaces to be tested is different, therefore different It is also different each other that several codes are made corresponding to interface to be tested.Test data then includes that difference makes several codes test ginseng generated Number.
Making several codes need to be pre-configured in test script, and by different interfaces to be tested it is corresponding make several codes into Row encapsulation, encapsulation function obtained are to make several interfaces.By loading the encapsulation function, the calling for making several interfaces is realized.
Every calling for once being made several interfaces, test script successively execute primary then according to the sequence of interface to be tested Several codes are made corresponding to interface to be tested, to generate corresponding test parameter respectively.Wherein, the sequence and industry of interface to be tested During business system executes specific operation flow, the calling sequence for successively carrying out the corresponding interface matches.
In one exemplary embodiment, execute when making several codes referring to interface to be tested sequence, be by respectively to Test interface, which configures, to be obtained after the title carry out sequence specification for making several codes.For example, can be to address name input interface institute Configuration makes several codes and is named as " 001 ", configures to gender input interface and makes several codes and be named as " 002 ", to ID card No. Input interface, which configures, to be made several codes and is named as " 003 ", and is configured to phone number input interface and made several codes and be named as “004”。
By it is be tested for the property when, need to simulate several users and carry out interface calling to be tested, each user Should be a true Business Entity, business meaning representated by each user, business handled by each user and Manipulable data should be all different during processing business, just can more really express business in reality in this way The use of system.Therefore the authenticity in order to guarantee performance test, every calling for once being made several interfaces, making several codes needs to give birth to At different test parameters.
For example, when calling the first time for make several interfaces, test script according to interface to be tested sequence, according to Secondary generation test parameter " address name 1 ", " gender 1 ", " identity card 1 " and " phone number 1 ", and by test parameter generated It is passed in corresponding interface to be tested.
And when make second of calling of several interfaces, test parameter generated successively can be " address name 2 ", " gender 2 ", " identity card 2 " and " phone number 2 ", the test parameter being passed in interface to be tested is corresponding.
It follows that the present embodiment is by being called to making several interfaces, so that the test number of interface to be tested is written According to different, to provide sufficient data basis for the performance test that carries out interface to be tested.
Step 150, according to set operation system, concurrently corresponding number of threads, triggering multithreading simultaneously simulated The successively calling of interface to be tested.
Wherein, concurrently corresponding number of threads refers to operation system, assesses the operation system to be tested for the property and exists The quantity that the user of synchronization can be up to.Therefore, each user simulated is a thread.
Specifically, test script can provide Data entries, the number of threads being manually entered for obtaining tester, right When different operation systems is tested for the property, the number of threads that tester is inputted can be different.Alternatively, the number of threads It is also possible to default by test script, when being tested for the property to different operation systems, need to modifies in scripted code The thread numerical value being accordingly arranged, to adapt to different test environment.
Test script can also be arranged trigger button, tester can by triggering the button, control test script according to The concurrent corresponding number of threads of set operation system initiates the thread of identical quantity simultaneously to each interface to be tested simulated Successively called.Since the test parameter being passed in interface to be tested is different, each thread is same to be tested in calling When interface, used test data is also different each other.
As shown in Fig. 2, in one exemplary embodiment, step 150 can with specifically includes the following steps:
Step 151, number of threads is concurrently corresponded to according to set operation system, defines initiated total number of threads.
Wherein, before initiating multithreading and carrying out the calling of interface to be tested, initiated total number of threads and institute need to be defined Operation system is arranged, and concurrently corresponding number of threads is identical.
For example, " private static final int A=can be used in the realization of illustrative java code 100;" total number of threads initiated every time is defined, wherein " A " indicates specific thread variable.It is also desirable to make several stroke counts into Row definition, such as pass through " int num=1;" define per thread use 1 test data.Therefore, complete used in multithreading Portion's test parameter is num*A.
Step 153, after detecting trigger signal, according to defined total number of threads, multithreading is generated in thread pool The successively calling of simulated each interface to be tested is carried out simultaneously.
Wherein, test script also passes through setting listening thread, to detect the test signal that user is triggered.Detect triggering After signal, then multithreading is generated in thread pool according to defined total number of threads, and it is right simultaneously to control multithreading generated Each interface to be tested is successively called.
Illustratively, it needs to construct thread pool in test script, it is multi-thread can be generated according to defined total number of threads Journey, such as can be realized by following code: " ExecutorService produceExecutorService= Executors.newFixedThreadPool(A);";Then, it needs for thread pool to be placed under the first for circulation, be made with control Number total amount, and the 2nd for of nesting is recycled again under the first for circulation, to control initiated Thread Count.It is if making several interfaces " B " then calls function " produceExecutorService.execute (new B) " by loading to receive in single thread, To realize the successively calling to each interface to be tested.
Each single thread is when being called each interface to be tested as a result, and used test data is by making It counts the calling that interface is carried out and obtains, in other words, each single thread carries out interface to be tested and calls used survey Examination data are all different, to meet testing requirement.
Therefore, performance test methods provided by the present embodiment can realize multiplex roles multi-thread concurrent to operation system Performance test, can satisfy testing requirement.
In a further exemplary embodiment, as shown in figure 3, the method for above-mentioned performance test can with the following steps are included:
Step 210, according to preset index item, in the successively calling process that multithreading carries out each interface to be tested simultaneously Record corresponding index value.
Wherein, preset index item is the default performance parameter for needing to count, for example, may include that concurrent thread is total Response time, resources occupation rate of interface several, to be tested etc..
In the present embodiment, the interface to be tested of operation system is successively called, that is to say to operation system to Test interface is tested for the property, and carrying out primary access to an interface to be tested is the primary test for completing an interface Process.Therefore, during multithreading carries out each interface to be tested simultaneously, each interface to be tested is every once to be tested, Corresponding test result is recorded, the test result data recorded is index value corresponding to index item.More than For stating preset index item, test result should be comprising corresponding in each test process of the every execution of interface to be tested Resources occupation rate and the response time.
In one embodiment, server collects each test result of each test interface to be tested automatically, And the test result of interface to be tested can be filled into pre-set test report template, obtain test report.
Report template is pre-set for filling in every test information obtained in test report, by will be to The test result of test interface is filled into pre-set report template, and complete test report can be obtained.
Step 230, the index value recorded is visualized.
Wherein, it after being recorded according to the completion of preset index item to the test structure of each interface to be tested, will be recorded Result visualized so that tester obtain the performance test results.For example, can be obtained from server corresponding Test report, and test report obtained is shown, so that user obtains corresponding performance test by test report As a result.
Therefore, method provided by the present embodiment enables to user clearly to get corresponding performance test interface, Further satisfaction testing requirement.
Fig. 4 is a kind of performance testing device according to shown by an exemplary embodiment.As shown in figure 4, the device includes Interface analog module 310, test data afferent module 330 and interface calling module 350.
Interface analog module 310 is used for the whole interface to be tested of analog service system.
Test data afferent module 330 is used to make several interfaces by calling, and test data is passed to the interface to be tested In, the corresponding code of several interfaces of making is for generating the test data.
Interface calling module 350 is for according to set operation system, concurrently corresponding number of threads, triggering multithreading to be same The successively calling of interface to be tested described in Shi Jinhang, test data used in each same interface to be tested of thread dispatching is not Together.
In a further exemplary embodiment, described device further includes making several code configuration modules and making several code wrap moulds Block.
Several code configuration modules are made for configuring for each interface to be tested of the operation system and making several codes, respectively make number Code is respectively used to generate different parameters to the interface to be tested.
Several code wrap modules are made for being packaged the several codes of making configured, encapsulation function obtained is described Make several interfaces.
In a further exemplary embodiment, described device further includes name authority module, respectively makes several generations for will configure The title carry out sequence specification of code, respectively makes the name order of several codes and calling that the thread carries out the interface to be tested is suitable Sequence matches.
In a further exemplary embodiment, test data afferent module 330 is specifically used for by making several interfaces described in calling, According to the name order for making several codes, successively by the incoming each interface to be tested simulated of the parameter for respectively making several code buildings In.
It is that interface calling module 350 specifically includes thread definition unit and thread is initiated in exemplary embodiment another Unit.
Thread definition unit is used to define initiated thread according to the concurrent corresponding number of threads of set operation system Sum.
Thread is initiated unit and is used for after detecting trigger signal, according to defined total number of threads, in thread pool Generate the successively calling that multithreading carries out simulated each interface to be tested simultaneously.
In a further exemplary embodiment, described device further includes that test index logging modle and test index show mould Block.
Test index logging modle is used for according to preset index item, carries out described to be measured try simultaneously in the multithreading Corresponding index value is recorded in the successively calling process of mouth.
Test index display module is for visualizing the index value recorded.
It should be noted that method provided by device provided by above-described embodiment and above-described embodiment belongs to same structure Think, the concrete mode that wherein modules execute operation is described in detail in embodiment of the method, no longer superfluous herein It states.
In one exemplary embodiment, the application also provides a kind of computer equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when which is executed by processor, Realize method as previously shown.
Fig. 5 is a kind of hardware block diagram of computer equipment shown according to an exemplary embodiment.As shown in figure 5, The computer equipment may include one or more following component: processing component 401, memory 402, and power supply module 403 is more Media component 404, audio component 405, sensor module 407 and communication component 408.
Wherein, said modules and it is not all necessary, computer equipment can increase other groups according to itself functional requirement Part reduces certain components, and this embodiment is not limited.
Processing component 401 usually control computer equipment integrated operation, such as with display, data communication, camera operation And associated operation of daily record data processing etc..Processing component 401 may include that one or more processors 409 refer to execute It enables, to complete all or part of the steps of aforesaid operations.In addition, processing component 401 may include one or more modules, it is convenient for Interaction between processing component 401 and other assemblies.For example, processing component 401 may include multi-media module, to facilitate more matchmakers Interaction between body component 404 and processing component 401.
Memory 402 is configured as storing various types of data to support the operation in terminal.The example of these data Instruction including any application or method for operating on a computing device.Memory 402 can be by any type Volatibility or non-volatile memory device or their combination realize, such as SRAM (static random access memory), EEPROM (electrically erasable programmable read-only memory), EPROM (Erasable Programmable Read Only Memory EPROM), PROM (programmable Read memory), ROM (read-only memory) etc..One or more modules are also stored in memory 402, the one or more mould Block is configured to be executed by the one or more processors 409, complete in performance test methods shown in above-described embodiment to complete Portion or part steps.
Power supply module 403 provides electric power for the various assemblies of terminal.Power supply module 403 may include power-supply management system, One or more power supplys and other with for computer equipment generate, manage, and distribute the associated component of electric power.
Multimedia component 404 includes the screen of one output interface of offer between the computer equipment and user. In some embodiments, screen may include LCD (liquid crystal display) and TP (touch panel).If screen includes touch surface Plate, screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touches Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding The boundary of movement, but also detect duration and pressure associated with the touch or slide operation.
Audio component 405 is configured as output and/or input audio signal.For example, audio component 405 may include one Microphone, when terminal is in operation mode, when such as logging mode and speech recognition mode, microphone is configured as receiving external sound Frequency signal.The received audio signal can be further stored in memory 402 or send via communication component 408.Audio Component 405 further includes a loudspeaker, output audio signal is used for, to realize the behaviour that conversates between computer equipment and client Make.
Sensor module 407 includes one or more sensors, for providing the state of various aspects for computer equipment Assessment.For example, sensor module 407 can detecte the temperature change for opening/closing state and terminal of terminal.One In a little embodiments, sensor module 407 can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 408 is configured to facilitate the communication of wired or wireless way between computer equipment and other equipment. Terminal can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary reality It applies in example, communication component 408 receives broadcast singal or the related letter of broadcast from external broadcasting management system via broadcast channel Breath.
In the exemplary embodiment, processor can be by one or more ASIC (application specific integrated circuit), DSP (number Word signal processor), PLD (programmable logic device), FPGA (field programmable gate array), controller, microcontroller, Wei Chu It manages device or other electronic components is realized, for executing performance test methods described in detail in above-described embodiment, herein will not Elaborate explanation.
In one exemplary embodiment, the application also provides a kind of computer readable storage medium, is stored thereon with calculating Machine program when the computer program is executed by processor, realizes method as previously shown.
It should be understood that the application is not limited to the precise structure that has been described above and shown in the drawings, and And various modifications and change can executed without departing from the scope.Scope of the present application is only limited by the accompanying claims.

Claims (10)

1. a kind of performance test methods, which is characterized in that the described method includes:
The whole of analog service system interface to be tested;
It makes several interfaces by calling test data is passed in the interface to be tested, the corresponding code of several interfaces of making is used for Generate the test data;
According to the concurrent corresponding number of threads of set operation system, triggering multithreading carry out simultaneously the interface to be tested according to Secondary calling, test data used in each same interface to be tested of thread dispatching are different.
2. the method according to claim 1, wherein the analog service system whole interface to be tested it Afterwards, the method also includes:
Several codes are made for each interface configuration to be tested of the operation system, several codes is respectively made and is respectively used to described to be tested Interface generates different parameters;
The several codes of making configured are packaged, encapsulation function obtained makes several interfaces to be described.
3. according to the method described in claim 2, it is characterized in that, being packaged it in the several codes of making that will be configured Before, the method also includes:
The title carry out sequence specification for respectively making several codes will be configured, the name order and the thread for respectively making several codes carry out institute The calling sequence for stating interface to be tested matches.
4. according to the method described in claim 3, it is characterized in that, described make several interfaces test data be passed to institute by calling It states in interface to be tested, comprising:
By making several interfaces described in calling, according to the name order for making several codes, the ginseng of several code buildings successively will be respectively made In the incoming each interface to be tested simulated of number.
5. the method according to claim 1, wherein the concurrent corresponding thread of the operation system according to set by Quantity, triggering multithreading carry out the successively calling of the interface to be tested simultaneously, comprising:
According to the concurrent corresponding number of threads of set operation system, initiated total number of threads is defined;
After detecting trigger signal, according to defined total number of threads, multithreading is generated in thread pool and carries out institute simultaneously Simulate the successively calling of each interface to be tested.
6. the method according to claim 1, wherein the method also includes:
According to preset index item, phase is recorded in the successively calling process that the multithreading carries out the interface to be tested simultaneously The index value answered;
The index value recorded is visualized.
7. a kind of performance testing device, which is characterized in that described device includes:
Interface analog module, the whole interface to be tested for analog service system;
Test data is passed in the interface to be tested by test data afferent module for making several interfaces by calling, described The corresponding code of several interfaces is made for generating the test data;
Interface calling module, for concurrently corresponding number of threads, triggering multithreading to carry out simultaneously according to set operation system The successively calling of the interface to be tested, test data used in each same interface to be tested of thread dispatching are different.
8. device as claimed in claim 7, which is characterized in that described device further include:
Test index logging modle, for carrying out the interface to be tested simultaneously in the multithreading according to preset index item Successively calling process in record corresponding index value;
Test index display module, for visualizing the index value recorded.
9. a kind of computer equipment, which is characterized in that the equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is held by the processor When row, such as method as claimed in any one of claims 1 to 6 is realized.
10. a kind of computer readable storage medium, which is characterized in that be stored thereon with computer program, the computer program When being executed by processor, such as method as claimed in any one of claims 1 to 6 is realized.
CN201910185646.4A 2019-03-12 2019-03-12 Performance test methods and device, computer equipment, storage medium Pending CN110058990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910185646.4A CN110058990A (en) 2019-03-12 2019-03-12 Performance test methods and device, computer equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910185646.4A CN110058990A (en) 2019-03-12 2019-03-12 Performance test methods and device, computer equipment, storage medium

Publications (1)

Publication Number Publication Date
CN110058990A true CN110058990A (en) 2019-07-26

Family

ID=67316233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910185646.4A Pending CN110058990A (en) 2019-03-12 2019-03-12 Performance test methods and device, computer equipment, storage medium

Country Status (1)

Country Link
CN (1) CN110058990A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609781A (en) * 2019-08-29 2019-12-24 凡普数字技术有限公司 Interface test method, device and storage medium
CN110618924A (en) * 2019-09-19 2019-12-27 浙江诺诺网络科技有限公司 Link pressure testing method of web application system
CN111797015A (en) * 2020-06-30 2020-10-20 中国工商银行股份有限公司 Testing method and device based on dynamic byte codes
CN112052163A (en) * 2020-08-19 2020-12-08 北京天融信网络安全技术有限公司 High-concurrency webpage pressure testing method and device, electronic equipment and storage medium
CN112162915A (en) * 2020-08-27 2021-01-01 杭州大搜车汽车服务有限公司 Test data generation method, device, equipment and storage medium
CN112346962A (en) * 2019-08-09 2021-02-09 腾讯科技(深圳)有限公司 Comparison data testing method and device applied to comparison testing system
CN112948275A (en) * 2021-04-27 2021-06-11 平安普惠企业管理有限公司 Test data generation method, device, equipment and storage medium
CN113760777A (en) * 2021-10-12 2021-12-07 平安国际智慧城市科技股份有限公司 Application program pressure testing method, device, equipment and storage medium
CN113836032A (en) * 2021-09-30 2021-12-24 东风汽车有限公司东风日产乘用车公司 Android interface concurrent testing method, device, equipment and storage medium
CN117453553A (en) * 2023-10-30 2024-01-26 中科驭数(北京)科技有限公司 Performance test analysis method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805383A (en) * 2006-01-16 2006-07-19 中国移动通信集团公司 Automatization testing device and method for service system
CN103838654A (en) * 2012-11-27 2014-06-04 重庆新媒农信科技有限公司 Multithreading and concurrency testing simulator and testing method thereof
CN107729250A (en) * 2017-10-19 2018-02-23 国云科技股份有限公司 A kind of performance test methods that automatic Iterative is realized based on JAVA
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
WO2019037203A1 (en) * 2017-08-25 2019-02-28 上海壹账通金融科技有限公司 Application program performance testing method, device, computer equipment, and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1805383A (en) * 2006-01-16 2006-07-19 中国移动通信集团公司 Automatization testing device and method for service system
CN103838654A (en) * 2012-11-27 2014-06-04 重庆新媒农信科技有限公司 Multithreading and concurrency testing simulator and testing method thereof
WO2019037203A1 (en) * 2017-08-25 2019-02-28 上海壹账通金融科技有限公司 Application program performance testing method, device, computer equipment, and storage medium
CN107729250A (en) * 2017-10-19 2018-02-23 国云科技股份有限公司 A kind of performance test methods that automatic Iterative is realized based on JAVA
CN107861870A (en) * 2017-11-02 2018-03-30 平安科技(深圳)有限公司 Interface testing and test data generating method, device, terminal and storage medium
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112346962B (en) * 2019-08-09 2023-10-20 腾讯科技(深圳)有限公司 Control data testing method and device applied to control testing system
CN112346962A (en) * 2019-08-09 2021-02-09 腾讯科技(深圳)有限公司 Comparison data testing method and device applied to comparison testing system
CN110609781A (en) * 2019-08-29 2019-12-24 凡普数字技术有限公司 Interface test method, device and storage medium
CN110618924A (en) * 2019-09-19 2019-12-27 浙江诺诺网络科技有限公司 Link pressure testing method of web application system
CN111797015A (en) * 2020-06-30 2020-10-20 中国工商银行股份有限公司 Testing method and device based on dynamic byte codes
CN111797015B (en) * 2020-06-30 2024-02-09 中国工商银行股份有限公司 Dynamic byte code based test method and device
CN112052163A (en) * 2020-08-19 2020-12-08 北京天融信网络安全技术有限公司 High-concurrency webpage pressure testing method and device, electronic equipment and storage medium
CN112052163B (en) * 2020-08-19 2023-11-10 北京天融信网络安全技术有限公司 High concurrency webpage pressure testing method and device, electronic equipment and storage medium
CN112162915A (en) * 2020-08-27 2021-01-01 杭州大搜车汽车服务有限公司 Test data generation method, device, equipment and storage medium
CN112948275A (en) * 2021-04-27 2021-06-11 平安普惠企业管理有限公司 Test data generation method, device, equipment and storage medium
CN113836032A (en) * 2021-09-30 2021-12-24 东风汽车有限公司东风日产乘用车公司 Android interface concurrent testing method, device, equipment and storage medium
CN113760777A (en) * 2021-10-12 2021-12-07 平安国际智慧城市科技股份有限公司 Application program pressure testing method, device, equipment and storage medium
CN113760777B (en) * 2021-10-12 2024-01-23 平安国际智慧城市科技股份有限公司 Application program pressure test method, device, equipment and storage medium
CN117453553A (en) * 2023-10-30 2024-01-26 中科驭数(北京)科技有限公司 Performance test analysis method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN110058990A (en) Performance test methods and device, computer equipment, storage medium
US10671368B2 (en) Automatic creation of delivery pipelines
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
CN109240924A (en) A kind of test method and equipment of application program
CN107122301A (en) Interface detection method and device
CN109634728A (en) Job scheduling method, device, terminal device and readable storage medium storing program for executing
US20130298110A1 (en) Software Visualization Using Code Coverage Information
US20170277620A1 (en) Systems and methods for providing dynamic and real time simulations of matching resources to requests
CN106407446B (en) Network questionnaire construction method and device
US10592703B1 (en) Method and system for processing verification tests for testing a design under test
CN107807841B (en) Server simulation method, device, equipment and readable storage medium
CN109117141A (en) Simplify method, apparatus, the electronic equipment, computer readable storage medium of programming
CN108959067A (en) Test method, device and the computer readable storage medium of search engine
CN103049374B (en) Automatic testing method and device
CN112463634A (en) Software testing method and device under micro-service architecture
CN105975367A (en) Mobile equipment test method and device
CN112905451A (en) Automatic testing method and device for application program
CN106528429A (en) UI testing method and device
CN102789401B (en) Test process control method and device on basis of flexible testing technology
CN109542764A (en) Webpage automated testing method, device, computer equipment and storage medium
CN210016474U (en) Distribution network test control equipment and system
CN112257362A (en) Verification method, verification device and storage medium for logic code
CN110752964B (en) Network equipment testing method and device
US9256700B1 (en) Public service for emulation of application load based on synthetic data generation derived from preexisting models
CN109284222A (en) Project testing method, device and equipment in software unit, data processing system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
CB02 Change of applicant information

Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary)

Applicant after: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A

Applicant before: PING AN PUHUI ENTERPRISE MANAGEMENT Co.,Ltd.

CB02 Change of applicant information
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

Application publication date: 20190726

RJ01 Rejection of invention patent application after publication