CN110275822A - Performance test methods, device, equipment and the storage medium of application programming interfaces - Google Patents

Performance test methods, device, equipment and the storage medium of application programming interfaces Download PDF

Info

Publication number
CN110275822A
CN110275822A CN201910348415.0A CN201910348415A CN110275822A CN 110275822 A CN110275822 A CN 110275822A CN 201910348415 A CN201910348415 A CN 201910348415A CN 110275822 A CN110275822 A CN 110275822A
Authority
CN
China
Prior art keywords
test
application programming
programming interfaces
performance
current
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
CN201910348415.0A
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.)
Wuhan Zhongbang Bank Co Ltd
Original Assignee
Wuhan Zhongbang Bank 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 Wuhan Zhongbang Bank Co Ltd filed Critical Wuhan Zhongbang Bank Co Ltd
Priority to CN201910348415.0A priority Critical patent/CN110275822A/en
Publication of CN110275822A publication Critical patent/CN110275822A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of performance test methods of application programming interfaces, device, equipment and storage mediums, the described method includes: obtaining the current test event comprising test script and application programming interfaces to be tested when developer uploads test script to warehouse management services device;The test script in the current test event is extracted, test environment is constructed by the test script;When getting test environment construction completion instruction, the current performance parameters information of the application programming interfaces to be tested is received;The performance parameter information is ranked up by time sequencing;Current performance parameters information after sequence is analyzed, obtain current performance test result, user need to only be absorbed in script edit and results of property analysis, script submits automatic trigger after warehouse management services device to construct, results of property achievees the purpose that show in real time, performance test script unified management, saves a large amount of human time.

Description

Performance test methods, device, equipment and the storage medium of application programming interfaces
Technical field
The present invention relates to field of computer technology more particularly to a kind of performance test methods of application programming interfaces, device, Equipment and storage medium.
Background technique
Jmeter is the pressure test tool based on Java of Apache (Apache) organization development, for pressing software Power test, it is originally designed for page application test, after script submits warehouse management services device in the performance test, It generally requires tester and carries out environment construction, be then tested for the property, and the performance test results are also unable to reach in real time The purpose showed.
Summary of the invention
It is a primary object of the present invention to propose a kind of performance test methods of application programming interfaces, device, equipment and deposit Storage media, it is intended to solve during the test can not real-time perfoming real-time update the technical issues of.
To achieve the above object, the present invention provides a kind of performance test methods of application programming interfaces, the application program The performance test methods of interface the following steps are included:
When developer uploads test script to warehouse management services device, the current test event comprising test script is obtained And application programming interfaces to be tested;
The test script in the current test event is extracted, test environment is constructed by the test script;
When getting test environment construction completion instruction, the current performance ginseng of the application programming interfaces to be tested is received Number information;
The performance parameter information is ranked up by time sequencing;
Current performance parameters information after sequence is analyzed, current performance test result is obtained.
Preferably, described when developer uploads test script to warehouse management services device, it obtains comprising test script Before current test event and application programming interfaces to be tested, the method also includes:
Jenkins development platform is constructed, webpage is loaded by the Jenkins development platform and monitors application programming interfaces, Application programming interfaces are monitored by webpage and monitor history test event, and the history test event real-time perfoming is fed back;
It is described developer to warehouse management services device upload test script when, obtain include test script current test Event and application programming interfaces to be tested, comprising:
When developer uploads test script to warehouse management services device, the Jenkins development platform feedback is obtained Current test event and application programming interfaces to be tested comprising test script.
Preferably, the test script extracted in the current test event, is constructed by the test script and is tested Environment, comprising:
The test script in the current test event is extracted, the build tool is loaded, so that described the build tool passes through institute State test script building test environment.
Preferably, described when getting test environment construction completion instruction, receive the application programming interfaces to be tested Current performance parameters information before, the method also includes:
The connection status with data acquisition external member is obtained, when being to connect normal with the connection status of data acquisition external member, External member is acquired by the data and acquires historical performance parameter information, and the historical performance parameter information is fed back;
It is described when getting test environment construction and completing instruction, receive the currency of the application programming interfaces to be tested Energy parameter information, comprising:
When getting test environment construction and completing instruction, receives the described of data acquisition external member feedback and to be tested answer With the current performance parameters information of routine interface.
It is preferably, described that the performance parameter information is ranked up by time sequencing, comprising:
Time series database is run, by the time series database database using time sequencing to the performance parameter information It is ranked up.
Preferably, the current performance parameters information by after sequence is analyzed, and obtains current performance test result, packet It includes:
Jmeter test platform is run, is divided the current performance parameters information after sequence by Jmeter test platform Analysis, obtains current performance test result.
Preferably, described pair sequence after current performance parameters information analyze, obtain current performance test result it Afterwards, the method also includes:
Operation visualization external member, carries out visualization exhibition for the current performance test result by the visualization external member Show.
In addition, to achieve the above object, the present invention also proposes a kind of performance testing device of application programming interfaces, feature It is, the performance testing device of the application programming interfaces includes:
Module is obtained, for when developer uploads test script to warehouse management services device, obtaining to include test script Current test event and application programming interfaces to be tested;
Module is constructed, for extracting the test script in the current test event, is constructed and is surveyed by the test script Test ring border;
Receiving module, for receiving the application program to be tested and connecing when getting test environment construction completion instruction The current performance parameters information of mouth;
Sorting module, for being ranked up by time sequencing to the performance parameter information;
Analysis module obtains current performance test result for analyzing the current performance parameters information after sequence.
In addition, to achieve the above object, the present invention also proposes a kind of performance test apparatus of application programming interfaces, described to answer With the performance test apparatus of routine interface include: memory, processor and is stored on the memory and can be in the processing The performance test program of the performance test program of the application programming interfaces run on device, the application programming interfaces is arranged for carrying out The step of performance test methods of application programming interfaces as described above.
In addition, to achieve the above object, the present invention also proposes a kind of storage medium, application is stored on the storage medium The performance test program of routine interface is realized when the performance test program of the application programming interfaces is executed by processor as above The step of performance test methods of the application programming interfaces.
The performance test methods of application programming interfaces proposed by the present invention are uploaded to warehouse management services device in developer and are surveyed This when of training, obtains the current test event comprising test script and application programming interfaces to be tested;Extract the current survey Test script in examination event constructs test environment by the test script;Instruction is completed getting test environment construction When, receive the current performance parameters information of the application programming interfaces to be tested;The performance parameter is believed by time sequencing Breath is ranked up;Current performance parameters information after sequence is analyzed, current performance test result is obtained, user only needs specially Script edit and results of property analysis are infused, script submits automatic trigger after warehouse management services device to construct, and results of property reaches real The purpose of Shi Zhanxian, performance test script unified management, saves a large amount of human time.
Detailed description of the invention
Fig. 1 is the performance test apparatus knot of the application programming interfaces for the hardware running environment that the embodiment of the present invention is related to Structure schematic diagram;
Fig. 2 is the flow diagram of the performance test methods first embodiment of application programming interfaces of the present invention;
Fig. 3 is the data interaction flow diagram of one embodiment of performance test methods of application programming interfaces of the present invention;
Fig. 4 is the flow diagram of the performance test methods second embodiment of application programming interfaces of the present invention;
Fig. 5 is the flow diagram of the performance test methods 3rd embodiment of application programming interfaces of the present invention;
Fig. 6 is the functional block diagram of the performance testing device first embodiment of application programming interfaces of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is that the performance of the application programming interfaces for the hardware running environment that the embodiment of the present invention is related to is surveyed Try device structure schematic diagram.
As shown in Figure 1, the performance test apparatus of the application programming interfaces may include: processor 1001, such as centre It manages device (Central Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, storage Device 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.User interface 1003 may include showing Display screen (Display), input unit such as key, optional user interface 1003 can also include the wireline interface, wireless of standard Interface.Network interface 1004 optionally may include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high-speed random access memory (Random Access Memory, RAM) memory, be also possible to stable deposit Reservoir (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned place Manage the storage device of device 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the property to application programming interfaces The restriction of energy test equipment may include perhaps combining certain components or different portions than illustrating more or fewer components Part arrangement.
As shown in Figure 1, as may include operating system, network communication mould in a kind of memory 1005 of storage medium The performance test program of block, Subscriber Interface Module SIM and application programming interfaces.
In the performance test apparatus of application programming interfaces shown in Fig. 1, network interface 1004 is mainly used for connecting outer net, Data communication is carried out with other network equipments;User interface 1003 be mainly used for connect user equipment, with the user equipment into Row data communication;Present device calls the performance of the application programming interfaces stored in memory 1005 to survey by processor 1001 Program is tried, and executes the implementation method of the performance test of application programming interfaces provided in an embodiment of the present invention.
Based on above-mentioned hardware configuration, the performance test methods embodiment of application programming interfaces of the present invention is proposed.
It is the flow diagram of the performance test methods first embodiment of application programming interfaces of the present invention referring to Fig. 2, Fig. 2.
In the first embodiment, the application programming interfaces performance test methods the following steps are included:
Step S10 is obtained current comprising test script when developer uploads test script to warehouse management services device Test event and application programming interfaces to be tested.
It should be noted that the executing subject of the present embodiment is the performance test apparatus of application programming interfaces, such as using Performance test server of routine interface etc., can also be other equipment, the present embodiment to this with no restriction, wherein the warehouse Management server is Gitlab server.
In the concrete realization, performance test personnel write performance test script by jmeter performance testing tool, and on Gitlab server is reached, carries out the storage management of script, by Gitlab server in order to realize more effective test script Management, can be managed according to the account information of performance test personnel, thus realize to the property stored in Gitlab server The management of energy test script.
Step S20 extracts the test script in the current test event, constructs test wrapper by the test script Border.
It is understood that can be constructed by the Job that test script triggers Jenkins when obtaining test script, Test assignment is distributed to Slave node if more new content is test script, if more new content is that program code is distributing test Code is carried out simultaneously on the basis of task to be packaged compiling deployment, is that test script is then distributed to Slave node in more new content Test assignment is to realize the automatic building of script.
Step S30 receives working as the application programming interfaces to be tested when getting test environment construction completion instruction Preceding performance parameter information.
It should be noted that the current performance parameters information includes response time, throughput of system and Installed System Memory Information, may also include other information, the present embodiment to this with no restriction.
In the concrete realization, the telegaf service that is laid with is set on the system under test (SUT) of the application programming interfaces to be tested Device agency acquires the performance parameters such as central processing unit and the memory of system under test (SUT) by telegaf server agent, is applying The passability energy testing tool acquisition performances such as response time and throughput of system ginseng on the performance test apparatus of routine interface Number information.
In real-time testing process as shown in Figure 3, test user uploads script to git by the native interface that user uses Server, test machine includes Jenkins platform+Ant+Jmeter, and when obtaining uplink time, test machine constructs test wrapper border.
Step S40 is ranked up the performance parameter information by time sequencing.
When in the present embodiment, in order to realize the operation of jmeter script, continue as shown in figure 3, relying on Jmeter's Backend Listener monitor acquires response time, throughput of system TPS data to influxdb database; Telegaf acquisition system resource, comprising: the information such as CPU, memory and disk, and acquisition system resource information is uploaded to It is managed in influxdb database, and test result is visualized by Grafana.
Step S50 analyzes the current performance parameters information after sequence, obtains current performance test result.
Through the above scheme, when developer uploads test script to warehouse management services device, acquisition includes the present embodiment The current test event of test script and application programming interfaces to be tested;Extract the test foot in the current test event This, constructs test environment by the test script;When getting test environment construction completion instruction, receive described to be tested The current performance parameters information of application programming interfaces;The performance parameter information is ranked up by time sequencing;To sequence Current performance parameters information afterwards is analyzed, and current performance test result is obtained, and user need to only be absorbed in script edit and performance Interpretation of result, script submit automatic trigger after warehouse management services device to construct, and the performance test results achieve the purpose that show in real time, Performance test script unified management, saves a large amount of human time.
In one embodiment, as shown in figure 4, proposing the performance test of application programming interfaces of the present invention based on first embodiment Method second embodiment, before the step S10, the method also includes:
Step S101 constructs Jenkins development platform, loads webpage by the Jenkins development platform and monitors application Routine interface, by webpage monitor application programming interfaces monitor history test event, and by the history test event in real time into Row feedback.
It should be noted that it can be monitoring programme that the webpage, which monitors application program, it can also be in Jenkins Webhook plug-in unit can carry out the monitoring of event, by Jenkins platform by laying Jenkins platform so as to obtain in real time Get current operating status.
In the concrete realization, upload event is monitored by the webhook plug-in unit in Jenkins platform, that is, passes through test foot This then triggers Ant to Gitlab and is constructed, and jmeter script execution is triggered after operation, due to the performance in application programming interfaces Test equipment be equipped with Jenkins platform+Ant+Jmeter, by Jenkins platform carry out event monitoring, and by Ant into The building of row test environment, and effective performance test is carried out by Jmeter, to realize effective real-time performance testing.
Correspondingly, step S10, comprising:
When developer uploads test script to warehouse management services device, the Jenkins development platform feedback is obtained Current test event and application programming interfaces to be tested comprising test script.
Further, step S20, comprising:
The test script in the current test event is extracted, the build tool is loaded, so that described the build tool passes through institute State test script building test environment.
In the present embodiment, described the build tool is Ant the build tool, can also be other the build tools, the present embodiment pair This in the present embodiment, is illustrated by taking Ant the build tool as an example with no restriction.
In the concrete realization, the performance test apparatus of application programming interfaces can pass through the structure by loading the build tool Building of the tool realization to test environment is built, can also be realized by the construction procedures to test wrapper by calling construction procedures The building in border, the present embodiment to this with no restriction.
Scheme provided in this embodiment, by the performance test apparatus of application programming interfaces be equipped with Jenkins platform+ Ant+Jmeter carries out event monitoring by Jenkins platform, and carries out the building of test environment by Ant, and pass through Jmeter carries out effective performance test, to realize effective real-time performance testing.
In one embodiment, as shown in figure 5, proposing that application program of the present invention connects based on the first embodiment or the second embodiment Mouthful performance test methods 3rd embodiment be illustrated in the present embodiment based on first embodiment, the step S30 it Before, the method also includes:
Step S301 obtains the connection status with data acquisition external member, is being to connect with the connection status of data acquisition external member When connecing normal, by the data acquire external member acquire historical performance parameter information, and by the historical performance parameter information into Row feedback.
It should be noted that the data acquisition external member can be telegaf server agent, taken by the telegaf Business device agency can obtain the parameter information on system under test (SUT), and the acquisition of data, this implementation can be also carried out by other capture programs Example with no restriction, in the present embodiment, is illustrated this by taking telegaf server agent as an example.
In the concrete realization, in order to realize system under test (SUT) and application programming interfaces performance test apparatus data interaction, The current system parameter of system under test (SUT) can be acquired by telegaf server agent, and the current system parameter is sent to The performance test apparatus of the application programming interfaces, to realize the forwarding of acquisition data.
In order to improve data-handling efficiency, when obtaining the data information of acquisition, needs to obtain first and data acquisition covers The connection status of part when being to connect normal with the connection status of data acquisition external member, then carries out data acquisition, to avoid With data acquisition external member when not connected state, acquisition of information instruction is constantly sent, data processing time is wasted.
Correspondingly, step S30, comprising:
When getting test environment construction and completing instruction, receives the described of data acquisition external member feedback and to be tested answer With the current performance parameters information of routine interface.
Further, the step S40, comprising:
Step S401 runs time series database, by the time series database using time sequencing to the performance parameter Information is ranked up.
It should be noted that the time series database can be influxdb database, it can also be other databases, this implementation Example with no restriction, in the present embodiment, is illustrated this by taking influxdb database as an example.
In the concrete realization, by running influxdb database, time sequencing pair is used by influxdb database The performance parameter information is ranked up, so that the management to performance parameter information is realized, due to passing through the time letter after sequence Breath, can effectively calculate the information processing situation in preset time, achieve the purpose that obtain current performance test.
Further, the step S50, comprising:
Step S501 runs Jmeter test platform, by Jmeter test platform by the current performance parameters after sequence Information is analyzed, and current performance test result is obtained.
In the present embodiment, due to being equipped with Jmeter test platform on the performance test apparatus of application programming interfaces, lead to It crosses the Jmeter test platform and can carry out performance parameter information and analyzed, and obtain current performance test result.
Further, after the step S50, the method also includes:
Operation visualization external member, carries out visualization exhibition for the current performance test result by the visualization external member Show.
It is understood that the visualization external member can visualize plug-in unit for Grafana, it can be also other visualizations Presentation program, the present embodiment with no restriction, in the present embodiment, say this so that Grafana visualizes plug-in unit as an example It is bright.
In the concrete realization, dashboard is added by Grafana and configures relevant inquiring sentence, collect influxdb Performance indicator data in database, comprising: the information such as TPS, response time, CPU, memory and disk, and pass through figure circle It shows, to realize the visual presentation of performance test, user can more intuitively obtain when progress test result is checked Current performance test state achievees the purpose that improve user experience.
Scheme provided in this embodiment is believed performance test parameter according to time series database by running time series database Breath is effectively managed sequentially in time, and runs Jmeter test platform, realizes performance test, and pass through operation visualization External member is visualized the current performance test result by the visualization external member, to make performance test knot Fruit achievees the purpose that show in real time.
The present invention further provides a kind of performance testing devices of application programming interfaces.
Referring to the functional module signal that Fig. 6, Fig. 6 are the performance testing device first embodiment of application programming interfaces of the present invention Figure.
In the performance testing device first embodiment of application programming interfaces of the present invention, the performance test of the application programming interfaces Device includes:
Module 10 is obtained, for obtaining comprising test foot when developer uploads test script to warehouse management services device This current test event and application programming interfaces to be tested.
It should be noted that the executing subject of the present embodiment is the performance test apparatus of application programming interfaces, such as using Performance test server of routine interface etc., can also be other equipment, the present embodiment to this with no restriction, wherein the warehouse Management server is Gitlab server.
In the concrete realization, performance test personnel write performance test script by jmeter performance testing tool, and on Gitlab server is reached, carries out the storage management of script, by Gitlab server in order to realize more effective test script Management, can be managed according to the account information of performance test personnel, thus realize to the property stored in Gitlab server The management of energy test script.
Building module 20 is constructed for extracting the test script in the current test event by the test script Test environment.
It is understood that can be constructed by the Job that test script triggers Jenkins when obtaining test script, Test assignment is distributed to Slave node if more new content is test script, if more new content is that program code is distributing test Code is carried out simultaneously on the basis of task to be packaged compiling deployment, is that test script is then distributed to Slave node in more new content Test assignment is to realize the automatic building of script.
Receiving module 30, for receiving the application program to be tested when getting test environment construction completion instruction The current performance parameters information of interface.
It should be noted that the current performance parameters information includes response time, throughput of system and Installed System Memory Information, may also include other information, the present embodiment to this with no restriction.
In the concrete realization, the telegaf service that is laid with is set on the system under test (SUT) of the application programming interfaces to be tested Device agency acquires the performance parameters such as central processing unit and the memory of system under test (SUT) by telegaf server agent, is applying The passability energy testing tool acquisition performances such as response time and throughput of system ginseng on the performance test apparatus of routine interface Number information.
In real-time testing process as shown in Figure 3, test user uploads script to git by the native interface that user uses Server, test machine includes Jenkins platform+Ant+Jmeter, and when obtaining uplink time, test machine constructs test wrapper border.
Sorting module 40, for being ranked up by time sequencing to the performance parameter information.
When in the present embodiment, in order to realize the operation of jmeter script, continue as shown in figure 3, relying on Jmeter's Backend Listener monitor acquires response time, throughput of system TPS data to influxdb database; Telegaf acquisition system resource, comprising: the information such as CPU, memory and disk, and acquisition system resource information is uploaded to It is managed in influxdb database, and test result is visualized by Grafana.
Analysis module 50 obtains current performance test knot for analyzing the current performance parameters information after sequence Fruit.
Through the above scheme, when developer uploads test script to warehouse management services device, acquisition includes the present embodiment The current test event of test script and application programming interfaces to be tested;Extract the test foot in the current test event This, constructs test environment by the test script;When getting test environment construction completion instruction, receive described to be tested The current performance parameters information of application programming interfaces;The performance parameter information is ranked up by time sequencing;To sequence Current performance parameters information afterwards is analyzed, and current performance test result is obtained, and user need to only be absorbed in script edit and performance Interpretation of result, script submit automatic trigger after warehouse management services device to construct, and the performance test results achieve the purpose that show in real time, Performance test script unified management, saves a large amount of human time.
In addition, the embodiment of the present invention also proposes a kind of storage medium, application programming interfaces are stored on the storage medium Performance test program, the performance test program of the application programming interfaces is executed by processor application program as described above The step of performance test methods of interface.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In computer readable storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are with so that an intelligent terminal is set Standby (can be mobile phone, computer, terminal device, air conditioner or network-termination device etc.) executes each embodiment of the present invention The method.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of performance test methods of application programming interfaces, which is characterized in that the performance test side of the application programming interfaces Method includes:
Developer to warehouse management services device upload test script when, obtain comprising test script current test event and Application programming interfaces to be tested;
The test script in the current test event is extracted, test environment is constructed by the test script;
When getting test environment construction completion instruction, the current performance parameters letter of the application programming interfaces to be tested is received Breath;
The performance parameter information is ranked up by time sequencing;
Current performance parameters information after sequence is analyzed, current performance test result is obtained.
2. the performance test methods of application programming interfaces as described in claim 1, which is characterized in that it is described in developer to storehouse When library management server uploads test script, obtains current test event and application program to be tested comprising test script and connect Before mouthful, the method also includes:
Jenkins development platform is constructed, webpage is loaded by the Jenkins development platform and monitors application programming interfaces, is passed through Webpage monitors application programming interfaces and monitors history test event, and the history test event real-time perfoming is fed back;
It is described developer to warehouse management services device upload test script when, obtain include test script current test event And application programming interfaces to be tested, comprising:
When developer uploads test script to warehouse management services device, obtain the Jenkins development platform feedback includes The current test event of test script and application programming interfaces to be tested.
3. the performance test methods of application programming interfaces as described in claim 1, which is characterized in that the extraction is described current Test script in test event constructs test environment by the test script, comprising:
The test script in the current test event is extracted, the build tool is loaded, so that described the build tool passes through the survey Environment is tested in this building of training.
4. the performance test methods of application programming interfaces as claimed any one in claims 1 to 3, which is characterized in that described When getting test environment construction and completing instruction, receive the application programming interfaces to be tested current performance parameters information it Before, the method also includes:
The connection status with data acquisition external member is obtained, when being to connect normal with the connection status of data acquisition external member, is passed through The data acquisition external member acquires historical performance parameter information, and the historical performance parameter information is fed back;
It is described when getting test environment construction and completing instruction, receive the current performance ginseng of the application programming interfaces to be tested Number information, comprising:
When getting test environment construction completion instruction, the described to be tested using journey of the data acquisition external member feedback is received The current performance parameters information of sequence interface.
5. the performance test methods of application programming interfaces as claimed any one in claims 1 to 3, which is characterized in that described The performance parameter information is ranked up by time sequencing, comprising:
Time series database is run, the performance parameter information is carried out using time sequencing by the time series database database Sequence.
6. the performance test methods of application programming interfaces as claimed any one in claims 1 to 3, which is characterized in that described Current performance parameters information after sequence is analyzed, current performance test result is obtained, comprising:
Jmeter test platform is run, is analyzed the current performance parameters information after sequence by Jmeter test platform, Obtain current performance test result.
7. the performance test methods of application programming interfaces as claimed any one in claims 1 to 3, which is characterized in that described Current performance parameters information after sequence is analyzed, after obtaining current performance test result, the method also includes:
Operation visualization external member, is visualized the current performance test result by the visualization external member.
8. a kind of performance testing device of application programming interfaces, which is characterized in that the performance test of the application programming interfaces fills It sets and includes:
Module is obtained, for obtaining working as comprising test script when developer uploads test script to warehouse management services device Preceding test event and application programming interfaces to be tested;
Module is constructed, for extracting the test script in the current test event, test wrapper is constructed by the test script Border;
Receiving module, for receiving the application programming interfaces to be tested when getting test environment construction completion instruction Current performance parameters information;
Sorting module, for being ranked up by time sequencing to the performance parameter information;
Analysis module obtains current performance test result for analyzing the current performance parameters information after sequence.
9. a kind of performance test apparatus of application programming interfaces, which is characterized in that the performance test of the application programming interfaces is set It is standby to include: memory, processor and be stored in the application programming interfaces that run on the memory and on the processor Performance test program, the performance test program of the application programming interfaces is arranged for carrying out such as any one of claims 1 to 7 The step of performance test methods of the application programming interfaces.
10. a kind of storage medium, which is characterized in that be stored with the performance test journey of application programming interfaces on the storage medium Sequence is realized as described in any one of claims 1 to 7 when the performance test program of the application programming interfaces is executed by processor Application programming interfaces performance test methods the step of.
CN201910348415.0A 2019-04-26 2019-04-26 Performance test methods, device, equipment and the storage medium of application programming interfaces Pending CN110275822A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910348415.0A CN110275822A (en) 2019-04-26 2019-04-26 Performance test methods, device, equipment and the storage medium of application programming interfaces

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910348415.0A CN110275822A (en) 2019-04-26 2019-04-26 Performance test methods, device, equipment and the storage medium of application programming interfaces

Publications (1)

Publication Number Publication Date
CN110275822A true CN110275822A (en) 2019-09-24

Family

ID=67960348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910348415.0A Pending CN110275822A (en) 2019-04-26 2019-04-26 Performance test methods, device, equipment and the storage medium of application programming interfaces

Country Status (1)

Country Link
CN (1) CN110275822A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124370A (en) * 2019-12-24 2020-05-08 深圳我家云网络科技有限公司 Data processing method and related equipment
CN111309633A (en) * 2020-03-23 2020-06-19 上海新炬网络信息技术股份有限公司 Continuous performance testing method based on automatic operation and maintenance
CN111752970A (en) * 2020-06-26 2020-10-09 武汉众邦银行股份有限公司 Distributed query service response method based on cache and storage medium
CN112000582A (en) * 2020-08-31 2020-11-27 深圳市奇虎智能科技有限公司 Server-side automatic test early warning method, device, equipment and storage medium
CN112506762A (en) * 2020-11-27 2021-03-16 北京百度网讯科技有限公司 Application program interface parameter screening method, device, equipment and storage medium
CN113094267A (en) * 2021-04-07 2021-07-09 中国工商银行股份有限公司 Test result collection method and device
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN113220586A (en) * 2021-05-31 2021-08-06 五八到家有限公司 Automatic interface pressure test execution method, device and system
CN113360393A (en) * 2021-06-25 2021-09-07 武汉众邦银行股份有限公司 Continuous verification method and device based on production environment flow monitoring
CN113608981A (en) * 2021-07-27 2021-11-05 远景智能国际私人投资有限公司 Time sequence database testing method and device, computer equipment and storage medium
CN117251382A (en) * 2023-11-17 2023-12-19 北京安锐卓越信息技术股份有限公司 Automatic performance pressure measurement period execution method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
TOMANDY: "基于Jmeter的性能测试框架搭建", 《HTTPS://WWW.JIANSHU.COM/P/3D2D0EE350D4》 *

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124370A (en) * 2019-12-24 2020-05-08 深圳我家云网络科技有限公司 Data processing method and related equipment
CN111124370B (en) * 2019-12-24 2024-04-26 深圳我家云网络科技有限公司 Data processing method and related equipment
CN111309633A (en) * 2020-03-23 2020-06-19 上海新炬网络信息技术股份有限公司 Continuous performance testing method based on automatic operation and maintenance
CN111752970B (en) * 2020-06-26 2024-01-30 武汉众邦银行股份有限公司 Distributed query service response method based on cache and storage medium
CN111752970A (en) * 2020-06-26 2020-10-09 武汉众邦银行股份有限公司 Distributed query service response method based on cache and storage medium
CN112000582A (en) * 2020-08-31 2020-11-27 深圳市奇虎智能科技有限公司 Server-side automatic test early warning method, device, equipment and storage medium
CN112506762A (en) * 2020-11-27 2021-03-16 北京百度网讯科技有限公司 Application program interface parameter screening method, device, equipment and storage medium
CN113094261A (en) * 2021-03-23 2021-07-09 杭州电魂网络科技股份有限公司 Method, system, electronic device and storage medium for automatically updating test environment
CN113094267A (en) * 2021-04-07 2021-07-09 中国工商银行股份有限公司 Test result collection method and device
CN113094267B (en) * 2021-04-07 2024-01-30 中国工商银行股份有限公司 Test result collection method and device
CN113220586A (en) * 2021-05-31 2021-08-06 五八到家有限公司 Automatic interface pressure test execution method, device and system
CN113360393A (en) * 2021-06-25 2021-09-07 武汉众邦银行股份有限公司 Continuous verification method and device based on production environment flow monitoring
CN113360393B (en) * 2021-06-25 2022-04-12 武汉众邦银行股份有限公司 Continuous verification method and device based on production environment flow monitoring
CN113608981B (en) * 2021-07-27 2024-01-05 远景智能国际私人投资有限公司 Time sequence database test method and device, computer equipment and storage medium
CN113608981A (en) * 2021-07-27 2021-11-05 远景智能国际私人投资有限公司 Time sequence database testing method and device, computer equipment and storage medium
CN117251382A (en) * 2023-11-17 2023-12-19 北京安锐卓越信息技术股份有限公司 Automatic performance pressure measurement period execution method and device

Similar Documents

Publication Publication Date Title
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
CN106484622B (en) Test method, apparatus and system
CN104765678B (en) The method and device tested the application on mobile terminal device
CN104579822B (en) Mobile application automated performance testing system and method based on Http agreements
CN107688530B (en) Software testing method and device
Zhang et al. Compatibility testing service for mobile applications
CN104636146A (en) Online visual customizing method and system
CN105095059B (en) A kind of method and apparatus of automatic test
US8819638B2 (en) Application protoyping suite
CN104639653A (en) Self-adaptive method and system based on cloud architecture
CN110162471A (en) A kind of method for testing pressure and system based on container cloud
CN109302522A (en) Test method, device and computer system and medium
CN105607994B (en) A kind of mobile terminal software test method and system
CN102693183A (en) Method and system for realizing automatic software testing
CN102141962A (en) Safety distributed test framework system and test method thereof
CN106815141A (en) A kind of method for testing software and device
CN104021077A (en) Mobile terminal software test system and method
KR20140110520A (en) Method for automatic verification for samrt applications by automatic execution control of test terminals, and computer-readable recording medium for the same
CN107463362A (en) The method and system of lasting deployment based on multiple Jenkins
CN106547687A (en) Application testing method, apparatus and system
CN106815142A (en) A kind of method for testing software and system
CN109684847A (en) Self-repairing method, device, equipment and the storage medium of script loophole
CN108228407A (en) Apparatus function test method, apparatus and readable storage medium storing program for executing
CN111782317A (en) Page testing method and device, storage medium and electronic device
CN107733735A (en) Script recording system and method

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: 20190924