CN106815142A - A kind of method for testing software and system - Google Patents

A kind of method for testing software and system Download PDF

Info

Publication number
CN106815142A
CN106815142A CN201510874196.1A CN201510874196A CN106815142A CN 106815142 A CN106815142 A CN 106815142A CN 201510874196 A CN201510874196 A CN 201510874196A CN 106815142 A CN106815142 A CN 106815142A
Authority
CN
China
Prior art keywords
software
test
server
software test
testing
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
CN201510874196.1A
Other languages
Chinese (zh)
Inventor
付海涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201510874196.1A priority Critical patent/CN106815142A/en
Publication of CN106815142A publication Critical patent/CN106815142A/en
Pending legal-status Critical Current

Links

Abstract

A kind of method for testing software and system are the embodiment of the invention provides, is applied in software testing system, the computer room that each software under testing is disposed is provided with software testing system, methods described includes:Receive the software test script that web server sends, the software test script is generated according to web page by the software test parameter that http messages are sent to the web server, the software test parameter includes the target computer room that software under testing is disposed, and the software test script is sent to the software testing system according to the target computer room;The software under testing is tested according to the software test script.The scheme of the embodiment of the present invention, need to only receive the software test parameter in the input of terminal web page, the occupancy of terminal space be reduced, relative to conventional method, it is ensured that the speed of service of terminal, take full advantage of terminal resource and computing resource.

Description

A kind of method for testing software and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method for testing software and a kind of software Test system.
Background technology
Software test is that program is operated under conditions of regulation, with discovery procedure mistake, is weighed soft Part quality, and whether the process that design requirement is estimated can be met to it.
At present, pretest software under testing from related web site, it is necessary to download client and install.It is most of mutual Networking company, the software test personnel for being provided with sole duty carry out pressure survey to the software of research and development of software staff development Examination, analyzes test result, determines whether software performance.Specifically, software test personnel download software , it is necessary to for software under testing builds test environment, record script using software client, and hold after client The script that row is recorded is tested software.
But, in equipment end download software client, perform cumbersome script configuration operation and software survey Examination operation, occupies the more device space, so that the speed of service of equipment is reduced, to device resource Waste is caused with computing resource.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes above mentioned problem or at least portion to provide one kind The software testing system for solving the above problems with dividing.
According to one aspect of the present invention, there is provided a kind of method for testing software, apply in software test system System, the computer room that each software under testing is disposed is provided with software testing system, and methods described includes:
The software test script that web server sends is received, the software test script is according to Web page Face is generated by the software test parameter that http messages are sent to the web server, the software test Parameter includes the target computer room that software under testing is disposed, and the software test script is according to the target computer room Send to the software testing system;
The software under testing is tested according to the software test script.
Alternatively, each software testing system has subscribed to the first dedicated channel, the reception web services respectively The software test script that device sends includes:
The web server is monitored to send to the software test script of first dedicated channel;
The pressure server that the software test script is sent to the software testing system is tested.
Alternatively, each software testing system has subscribed to the second dedicated channel respectively, and methods described also includes:
The web server is monitored to send to the software test script of second dedicated channel;
At least one software server to software under testing deployment carries out condition monitoring.
Alternatively, at least one software server to software under testing deployment carries out performance monitoring Including:
By accessing the software server, and/or, by calling the target interface of management server, Obtain at least one running state parameter of the software server.
Alternatively, methods described also includes:
Obtain the test log of the pressure server generation;
Test result of the test log acquisition to the software under testing is parsed, and in the web page Request feeds back to the web server when checking test result.
Alternatively, methods described also includes:
The test result of different software is contrasted, and is fed back when comparing result is checked in web page request To the web server.
According to another aspect of the present invention, there is provided a kind of software testing system, it is deployed in software test System, the computer room that each software under testing is disposed is provided with software testing system, and the system includes Control server and pressure server;
The control server includes:
Software test script receiver module, the software test script for receiving web server transmission, The software test script sends soft to the web server according to web page by http messages Part test parameter is generated, and the software test parameter includes the target computer room that software under testing is disposed, institute Software test script is stated to be sent to the software testing system according to the target computer room;
The pressure server, for being surveyed to the software under testing according to the software test script Examination.
Alternatively, each software testing system has subscribed to the first dedicated channel, the software test script respectively Receiver module includes:
Software test script monitoring submodule, sends to described first for monitoring the web server The software test script of dedicated channel;
Software test script transmits submodule, for the software test script to be sent to the software The pressure server of test system is tested.
Alternatively, each software testing system has subscribed to the second dedicated channel respectively, and the system also includes prison Control server, the monitoring server includes:
Software test Script controlling module, sends to described second special for monitoring the web server With the software test script of channel;
Software server monitoring module, at least one software service disposed to the software under testing Device carries out condition monitoring.
Alternatively, the software server monitoring module, specifically for by accessing the software service Device, and/or, by calling the target interface of management server, obtain the software server at least One running state parameter.
Alternatively, the control server also includes:
Test log acquisition module, the test log for obtaining the pressure server generation;
Test log parsing module, for parsing survey of the test log acquisition to the software under testing Test result, and feed back to the web server when test result is checked in web page request.
Alternatively, the control server also includes:
Test result contrast module, the test result for contrasting different software, and in the web nets Page request feeds back to the web server when checking comparing result.
By the embodiment of the present invention, the software test parameter that user is input into terminal web page is received, led to Cross http messages to send to the web server software test parameter, web server foundation connects Receipts software test parameter generation software test script, according further to software test parameter include it is to be measured The target computer room that software is disposed, so as to the software test script of generation is sent to the target computer room Target software test system is tested.The scheme of the embodiment of the present invention, need to only receive in terminal Web page The software test parameter of face input, without in the cumbersome script configuration of terminal downloads software client, execution Operation and software test operation, reduce the occupancy of terminal space, relative to conventional method, it is ensured that The speed of service of terminal, takes full advantage of terminal resource and computing resource.
In addition, the computer room that each software under testing is disposed is provided with software testing system, using to be measured soft The software testing system of the computer room that part is disposed, can reduce data transmission distance, reduce to the network bandwidth Occupancy, further shorten the software test time, improve Efficiency of Software Testing.
Described above is only the general introduction of technical solution of the present invention, of the invention in order to better understand Technological means, and being practiced according to the content of specification, and in order to allow it is of the invention above-mentioned and Other objects, features and advantages can become apparent, below especially exemplified by specific embodiment party of the invention Formula.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantage and benefit for Those of ordinary skill in the art will be clear understanding.Accompanying drawing is only used for showing the mesh of preferred embodiment , and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol Number represent identical part.In the accompanying drawings:
The step of Fig. 1 has gone out's 1 a kind of method for testing software according to embodiments of the present invention flow chart;
The step of Fig. 2 has gone out's 2 a kind of method for testing software according to embodiments of the present invention flow chart;
The step of Fig. 3 has gone out's 3 a kind of method for testing software according to embodiments of the present invention flow chart;
Fig. 4 is shown according to a FB(flow block) for a kind of method for testing software of example of the invention;
Fig. 5-13 shows the web terminal multiple web page schematic diagram of example of the present invention;
A kind of according to embodiments of the present invention 1 structured flowcharts of software testing system of Figure 14;
A kind of according to embodiments of the present invention 2 structured flowcharts of software testing device of Figure 15;
A kind of according to embodiments of the present invention 3 structured flowcharts of software testing device of Figure 16.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although being shown in accompanying drawing The exemplary embodiment of the disclosure, it being understood, however, that may be realized in various forms the disclosure without Should be limited by embodiments set forth here.Conversely, there is provided these embodiments are able to more thoroughly Understand the disclosure, and can by the scope of the present disclosure it is complete convey to those skilled in the art.
Reference picture 1, flow chart the step of show 1 a kind of method for testing software according to embodiments of the present invention, The present embodiment is applied in software testing system, specifically may include steps of:
Step 101, receives the software test script that web server sends, the software test script root Generated by the software test parameter that http messages are sent to the web server according to web page, institute The target computer room that software test parameter is disposed including software under testing is stated, the software test script is according to institute Target computer room is stated to send to target software test system.
Software test generally using pressure test method, pressure test (Stress Test), also referred to as by force Degree test, load testing, the system that process is used by the hardware environment and user of simulating practical application Load, for a long time or super large load ground testing results software, tested with this system under test (SUT) performance, can By property and stability etc..Software test script is often referred to a series of instructions for fc-specific test FC, and foundation is matched somebody with somebody The software test parameter generation put, software test parameter is surveyed for the software that configuration is needed in software test procedure Examination parameter.
In the embodiment of the present invention, web server can be input into and by http according to the web page for receiving The software test parameter that message sends, generates software test script and sends to the target software and test system System.
The computer room that each software under testing is disposed is provided with software testing system, using portion of software under testing institute The software testing system of the computer room of administration, can obtain processing speed faster.Therefore, the embodiment of the present invention In, the software test parameter can include the target computer room that software under testing is disposed, to use mesh accordingly The software testing system disposed in mark computer room is tested software, can reduce data transmission distance, is subtracted Few occupancy to the network bandwidth, further shortens the software test time, improves Efficiency of Software Testing.Specifically Ground, the computer room that target computer room can be disposed by software under testing.
In implementing, pressure test can be carried out to software using JMeter pressure tests instrument. JMeter is Apache tissues (Apache Software Foundation, referred to as ASF) exploitations Pressure test instrument based on Java, for carrying out pressure test to software.JMeter can be to service The simulation of device, network, software or other test objects is from the huge load under different pressures classification, test Their strength character.
For example, what web server can be input into and be sent by http messages according to the web page for receiving JMeter conventional software test parameter, generates JMeter software test scripts, and described by identification The computer room 1 included in software test parameter, computer room 1 is delivered to by the JMeter software test human hair combing wastes of generation Software testing system 1.Software testing system 1 receives the JMeter software test pin that web server sends After this, the JMeter software test scripts can be performed, test the software under testing.
Step 102, tests software under testing according to the software test script.
In the embodiment of the present invention, after the software test script for receiving web server transmission, institute is performed Software test script is stated, the software under testing is tested, test result, such as software performance test knot is obtained Really, the performance test results of at least one software server of software under testing deployment or different software The performance test results.
In the embodiment of the present invention, it is preferred that each software testing system has subscribed to the first dedicated channel respectively, The software test script for receiving the corresponding web server transmission of web page can include:Monitoring The web server is sent to the software test script of first dedicated channel;By the software test Script sends to the pressure server of the software testing system and is tested.
Channel is passage that signal is transmitted in a communications system also known as channel.The software test of each computer room System can subscribe to different channels, i.e., each software testing system can have dedicated channel, Ke Yitong Cross different dedicated channels and individually transmit data-signal from different software testing systems.
Pressure testing system is used to test the performances such as performance, the reliability and stability of system under test (SUT), specifically Control server and pressure server machine can be included, there can be one or more respectively.Pressure server Be simulate practical application hardware environment and user use the system loading of process, for a long time or super large is negative Lotus ground testing results software, the performances such as performance, the reliability and stability of system under test (SUT) are tested with this Equipment.Control server is used to monitor the performance and operation shape of the software server that software under testing is disposed State.
In implementing, the target software test system of the target computer room can subscribe to the first special frequency Road, monitors the web server and sends to the software test script of first dedicated channel, and will be raw Into software test script send to the pressure server of the software testing system and tested, pressure garments Business device performs the software test script, and the software under testing is tested, and obtains software test result. Specifically, pressure server can test the letter such as QPS, response time and handling capacity of the software under testing Partial information or full detail in breath.The software that control server can obtain the generation of pressure server is surveyed Test result, the software test result that will can be obtained is stored to the preset data of the software testing system Storehouse, such as mango databases, for transferring and checking.
When software test result is checked in web page request, it is possible to use first dedicated channel Software test result is transmitted to web server.
In the embodiment of the present invention, it is preferable that each software testing system has subscribed to the second dedicated channel respectively, Methods described can also include:The web server is monitored to send to the software of second dedicated channel Test script;At least one software server to software under testing deployment carries out condition monitoring.
In implementing, each software testing system can also subscribe to the second dedicated channel, it is possible to use pressure At least one software server carries out state prison in the equipment that power server is disposed to the software under testing Control, obtains monitored results.Specifically, control server can be used with the CPU of monitoring software server Rate, memory usage and hard disk occupancy etc..After software under testing test terminates, server is controlled The monitored results that will can be obtained are stored to the initialized data base of the software testing system, such as mango Database, for transferring and checking.Wherein, the software test result and control that pressure server is obtained take The monitored results that business device is obtained can be stored in same initialized data base, it is also possible to be stored in different preset Database, not invention is not limited herein.
Afterwards, when the web page asks checking monitoring result, it is possible to use the second special frequency Road is transmitted to web server by monitored results.
In the embodiment of the present invention, it is preferable that at least one software clothes to software under testing deployment Business device carries out condition monitoring can be included:By accessing the software server, and/or, by calling pipe The target interface of server is managed, at least one running state parameter of the software server is obtained.
The running state parameter of software server can include CPU usage, the internal memory of software server The parameter such as occupancy and hard disk occupancy.
It is further preferred that after software under testing test terminates, the equipment that software under testing is disposed Software server can record the running state parameter of its own, while controlling server or other servers The running status of internal each software server can be monitored, the running status of each software server is recorded Parameter.In therefore, it can by accessing the software server and calling the target interface of management server At least one mode, obtains at least one running state parameter of the software server.In implementing, Can by the way of any suitable monitoring software server running state parameter, the present invention do not do herein Limitation.
In the embodiment of the present invention, it is preferable that methods described can also include:Obtain the pressure server The test log of generation;Parse the test log and obtain test result to the software under testing, and The web page request feeds back to the web server when checking test result.
After the pressure server of target software test system is completed to the test of the software under testing, can be with Test result is write into daily record, with the test result that the storage of daily record form is obtained.Because test log is except bag Outside containing required test result, also comprising more redundant data, so needs enter to the test log Row parsing, the test data needed for extracting, to obtain more accurate test result, will can be solved afterwards The test result of analysis is stored to the initialized data base of target software test system.
When web server receives the web page request checks software test result, Ke Yijie The request for calling software test result that web server sends is received, solution can be called from initialized data base The software test result of analysis, and send to web server, further, web server will can be received Software test result feeds back to terminal, so that web page shows.
In the embodiment of the present invention, it is preferable that methods described can also include:Contrast the test of different software As a result, and when comparing result is checked in web page request feed back to the web server.
The control server of the software testing system can also be to obtaining multiple softwares software test Result is contrasted, analysis different software exist performance difference, and the comparing result that will be obtained store to The preset database of operation system of software.Specifically, can be to the different soft of same or similar performance The software performance of part is contrasted, or the software performance with a software different editions is contrasted Deng, such that it is able to obtain the comparing result of the response time of different software, the success rate of different software it is right Than result and other comparing results.
After web server receives the instruction of comparing result that different software is checked in the web page, The instruction for transferring comparing result, the target software test can be sent to the target software test system After system receives the instruction, required comparing result can be transferred from initialized data base and is fed back to Web server, and the web page is further fed back to by the web server, for displaying and Check.
According to the embodiment of the present invention, the software test parameter that user is input into terminal web page is received, led to Cross http messages to send to the web server software test parameter, web server foundation connects Receipts software test parameter generation software test script, according further to software test parameter include it is to be measured The target computer room that software is disposed, so as to the software test script of generation is sent to the target computer room Target software test system is tested.The scheme of the embodiment of the present invention, need to only receive in terminal Web page The software test parameter of face input, without in terminal downloads software client, and without being performed in terminal Cumbersome script configuration and software test operation, reduces taking up room for terminal, relative to conventional method, The speed of service of terminal is ensure that, terminal resource and computing resource is taken full advantage of.
In addition, the computer room that each software under testing is disposed is provided with software testing system, using to be measured soft The software testing system of the computer room that part is disposed, can reduce data transmission distance, reduce to the network bandwidth Occupancy, further shorten the software test time, improve Efficiency of Software Testing.
Reference picture 2, flow the step of show a kind of according to embodiments of the present invention 2 method for testing software Figure, the present embodiment is applied in web terminal, specifically may include steps of:
Step 201, receives the software test parameter being input into web page, the software test parameter Including the target computer room that software under testing is disposed.
In the embodiment of the present invention, the software test parameter in the input of terminal web page is received, specifically, Can show that various software test parameters are selected for user in web page, and support user increase needed for Software test parameter.Software test parameter described in the embodiment of the present invention can set according to actual test demand Put, such as basic test script and the parameter related to test scene, software test parameter is used for further The test script of generation test when institute's foundation.
The computer room that each software under testing is disposed is provided with software testing system, using portion of software under testing institute The software testing system of the computer room of administration, can obtain processing speed faster.Therefore, the embodiment of the present invention In, the software test parameter can include the target computer room that software under testing is disposed, to use mesh accordingly The software testing system disposed in mark computer room is tested software, can reduce data transmission distance, is subtracted Few occupancy to the network bandwidth, further shortens the software test time, improves Efficiency of Software Testing.
Specifically, the computer room that target computer room can be disposed by software under testing.If for example, software is disposed Computer room be located in the first computer room, then can be according to nearby principle, in multiple computer rooms of web page displaying The computer room numbering of the first computer room of middle selection, such that it is able to use the first software testing system in the first computer room The software is tested.
Step 202, is sent to web server the software test parameter by http messages, with root Software test script is generated according to the software test parameter and send to the target software of the target computer room Test system is tested.
Communicated by http messages between web page and server, received in the web page Triggering create software test script instruction after, by http messages by the software test parameter send to Web server.Web server generates software test script according to the software test parameter for receiving, and passes through The target computer room recorded in software test parameter is read, the software test script of generation is sent to the mesh The target software test system for marking computer room is tested.
User can be completed to software test parameter with postponing in the web page, can be by clicking on Script associated button on web page, the software test parameter of configuration is sent to web server.
For example, the software test parameter of JMeter can be shown in terminal web page, selecting or increasing Plus after software test parameter, can be according to the finger that establishment software test script is triggered in the web page Show, the software test parameter that the JMeter of the configuration is commonly used is sent to web by http messages is taken Business device, web server can generate JMeter according to the conventional software test parameters of the JMeter for receiving Software test script, and the target machine disposed according to the software under testing that the software test parameter includes Room, the JMeter software test scripts of generation send to the target software test system of the target computer room Row test.
In the embodiment of the present invention, it is preferable that may be received in the software test being input into the web page Basic script and the test scene parameter of correspondence configuration.Software test basis script be it is conventional or The test script that history is used, can be needed for selection in multiple software test scripts of web page displaying Software test script, it is also possible to create needed for software test script.Specifically, software test is created During basic script, basic script name, basic script description, script ginseng can be input on web page The number file information related to other, clicks on associated button, completes the establishment of software test basis script. The test scene parameter is the test scene relevant parameter for the script configuration of software test basis, for example Scene title, scene description, compact model, unit concurrent user number and test machine number.Further, The test scene of software test basis script and correspondence configuration can be directed to, corresponding software test be created and is appointed It is engaged in and sends to web server, it is soft that web server can be carried according to the software test task for receiving The basic script of part test and the test scene parameter, the software needed for the generation test software under testing are surveyed Training sheet.
While the software under testing is tested, at least one software that software under testing can also be disposed Server is tested, and accordingly, can also receive soft needed for the instruction of input in the web page The performance test parameter of the test performance of part test system.The performance test parameter can include target machine Room, basic script perform the time, basic script cycle-index, web server and DB (DateBase, Database) parameter such as server.
In the embodiment of the present invention, it is preferable that sent out the software test parameter by http messages described Before delivering to web server, methods described can also include:Triggered according in the web page The instruction of software test task is created, software test task is created, and receiving the instruction of startup task Afterwards, the software test task is sent to the web server.Wherein, the software test task It can be the carrying software test basis script and test scene parameter of the task.
Specifically, the software test basis script and correspondence configuration being input into the web page are received Test scene parameter after, can create software and survey by triggering the task associated button on web page Trial is engaged in.By web server will create software test task record in software test task list, After the instruction for starting the software test task is received, extract described from software test task list Software test task, and the software test task is sent to the web server.
Selected software test script can be sent according to the trigger action on web page for receiving To web server;Can also be according to preset time interval, by the software test in software test task list Task timing is sent to web server.
In the embodiment of the present invention, it is preferable that can also include:Reception checks soft in the web page The performance test results or not of part test result, at least one software server of software under testing deployment With the instruction of the comparing result of software, obtain corresponding data from the web server and show.
The target software test system of the target computer room can be tested the software under testing, obtained Software test result, software test result can include much information, the QPS of such as software under testing (Query Per Second, query rate per second), response time and handling capacity.Described treating can also be tested The performance of at least one software server of software deployment is surveyed, the performance of at least one software server is obtained Test result, the performance test results of software server can include much information, such as software server CPU usage, memory usage and hard disk occupancy.Different software can also be compared, is obtained not With the comparing result of software, comparing result can include much information, the comparing result of such as response time With the comparing result of handling capacity.Specifically, the different software with same or similar performance can be carried out Contrast, learns that the performance of different software is good and bad according to comparing result.The test result that to can obtain and right Stored than result to the initialized data base of software testing system.
Software test result, at least the one of software under testing deployment are checked in reception in the web page During the instruction of the performance test results of individual software server or the comparing result of different software server, can be with Corresponding data is obtained to Web server request, web server receives the backward software testing system hair of request Test result or contrast knot needed for sending association requests, software testing system to be transferred from preset database Really, and web server is fed back to, web server further feeds back to test result or comparing result Web terminal, for showing and checking in web page.
According to the embodiment of the present invention, by the embodiment of the present invention, receive user and be input into terminal web page Software test parameter, the software test parameter is sent to the web server by http messages, Web server is surveyed according to the software test parameter generation software test script for receiving according further to software The target computer room that the software under testing that examination parameter includes is disposed, so as to the software test script that will be generated sends Target software test system to the target computer room is tested.The scheme of the embodiment of the present invention, only needs The software test parameter in the input of terminal web page is received, without in terminal downloads software client, with And without performing cumbersome script configuration and software test operation in terminal, the occupancy for reducing terminal is empty Between, relative to conventional method, it is ensured that the speed of service of terminal, take full advantage of terminal resource and calculating Resource.
In addition, the computer room that each software under testing is disposed is provided with software testing system, using to be measured soft The software testing system of the computer room that part is disposed, can reduce data transmission distance, reduce to the network bandwidth Occupancy, further shorten the software test time, improve Efficiency of Software Testing.
Reference picture 3, flow the step of show a kind of according to embodiments of the present invention 3 method for testing software Figure, the present embodiment is applied in web server, specifically may include steps of:
Step 301, the software test parameter that reception is input into by web page and is sent by http messages, The software test parameter includes the target computer room that software under testing is disposed.
In the embodiment of the present invention, the software test ginseng for being input into or selecting by terminal web page can be received Number, the software test parameter can be sent by http messages.The software that the embodiment of the present invention is received is surveyed Examination parameter can actual test demand is set in web terminal according to parameter, such as basic test script, The parameter related to test scene, such as scene title, scene description, compact model, unit concurrent user The parameter such as number and test machine number, software test parameter is used for the test of further generation test when institute's foundation Script.
The computer room that each software is disposed can be provided with software testing system, because the software test is joined Number can include the target computer room that software under testing is disposed, it is possible to the mesh disposed using software under testing The software testing system for marking computer room is tested software under testing, can reduce data transmission distance, is reduced To the occupancy of the network bandwidth, further shorten the software test time, improve Efficiency of Software Testing.
Further, since the software test parameter in the input of terminal web page need to be only received, without in terminal Software client is downloaded, cumbersome script configuration and software test operation is performed without in terminal, reduced Taking up room for terminal, relative to conventional method, it is ensured that the speed of service of terminal, takes full advantage of Terminal resource and computing resource.
Step 302, software test script is generated according to the software test parameter.
Software test script is often referred to a series of instructions for fc-specific test FC, can be according to the software of configuration Test parameter is generated.In the embodiment of the present invention, after the software test parameter that receiving terminal sends, Ke Yiti The test parameter for software test included in the software test parameter is taken, and according to test parameter life Into software test script.
Step 303, system is tested by the target software that the software test script is sent to the target computer room System, is surveyed according to the software test script by the target software test system to the software under testing Examination.
In the embodiment of the present invention, the target machine that software to be tested is disposed is recognized from software test parameter Room, can send to the target computer room software test script according to the target computer room of identification Target software test system.The target software test system is received after the software test script, The software test script is performed, the software under testing is tested.
In the embodiment of the present invention, it is preferred that described to send to the target machine software test script The target software test system in room can include:According to the target machine that the software test parameter includes Room, it is determined that target software test system corresponding with the target computer room;By software test script hair Deliver to the target software test system.
Based on being provided with software testing system in each computer room, it is possible to join according to the software test The target computer room that number includes, determines the corresponding target software test system of the target computer room, afterwards will The software test script is sent to the target software test system.Target software test system can be held The software test script that row is received, tests the software under testing.
In the embodiment of the present invention, it is preferred that the reception is input into and by http messages by web page The software test parameter of transmission can include:The software test task that the web terminal is created is received, addition To preset task queue, and pending mark is added, the software test task carries the software and surveys Examination parameter.
Can be after the software test task that the web page is created be received, the carrying that will be received is described soft The software test task of part test parameter is added to preset task queue.Due to different in task queue Mark can indicate different execution status of task, such as pending mark can indicate task be in do not hold Row state, performing mark can indicate task to be in the state that is carrying out, and performing end of identification can indicate Task is in and performs done state, so for the software test task of new addition in task queue, can be with Pending mark is configured to it, state is not carried out for indicating the software test task to be in.Wherein, Mark for indicating execution status of task can be the numeral or character of word and execution state relation, The present invention is not limited herein.
It is used to indicate the mark of execution status of task can be with the change of execution status of task in task queue Change and change, specifically, extracting the software test task, generating software according to software test task Test script is simultaneously sent to target software test system, and pending mark can be changed to perform and terminate mark Know.
In the embodiment of the present invention, it is preferred that generate software test according to the software test parameter described Before script, methods described can also include:For carrying the soft of pending mark in the task queue Part test assignment, periodic detection simultaneously determines that the target software test system meets the software test task The test performance indicated by the software test parameter for carrying.
The software test task can carry the software test parameter, and the software test parameter can be with The test performance of the target software test system needed for indicating.Specifically, can be recognized from task list Pending mark, for the software test task for carrying pending mark, target software described in periodic detection Whether test system meets the testability indicated by the software test parameter that the software test task is carried Can, however, it is determined that meet test performance condition, then carry out next step, generated according to the software test parameter Software test script;If it is determined that being unsatisfactory for test performance condition, then continue periodic detection and tested until meeting Performance condition, just carries out the generation of next step software test script.
If for example, the test equipment number of the target software test system needed for the software test parameter is indicated Mesh, the i.e. number of pressure server, and pressure number of servers needed for setting software under testing is 2, Then for the software test task for carrying pending mark, target software test system is described in periodic detection It is no to there are more than 2 vacant pressure servers, when there is more than 2 vacant pressure servers, carry out Next step, software test script is generated according to the software test parameter;When in the absence of vacant pressure service When device or the vacant pressure number of servers of presence are 1, continue periodic detection until meeting pressure server Number condition, just carries out the generation of next step software test script.
In the embodiment of the present invention, it is preferred that described to generate software test pin according to the software test parameter Originally can include:The software test task is extracted from the task list, according to the software test The software test parameter that task is carried, generates the software test script.
Determine that the target software test system meets the software survey that the software test task is carried After test performance indicated by examination parameter, the software test can be extracted from the task list and is appointed Business, according to the software test parameter that the software test task is carried, for example, can survey according to software The basic script of examination and test scene parameter, such as unit number of concurrent parameter, generate the software test script.
In the embodiment of the present invention, it is preferred that each software testing system has subscribed to dedicated channel respectively, described The target software test system that the software test script is sent to the target computer room can be included:Will The software test script sends the dedicated channel subscribed to the target software test system, and further Send to the target software test system.
Channel is passage that signal is transmitted in a communications system also known as channel.The software test of each computer room System can subscribe to different channels, i.e., each software testing system can have dedicated channel, Ke Yitong Cross different dedicated channels and individually transmit data-signal from different software testing systems.By taking Redis as an example, Redis is free high performance key-value databases of increasing income completely, in accordance with BSD agreements, Redis Client can subscribe to any number of channel.
In implementing, determine that the target software test system meets the software test parameter signified After the test performance for showing, the software test parameter that can be carried according to the software test task generates software Test script, afterwards by the software test script send to the target software test system subscribe to it is special With channel, and sent to the target software test system by the dedicated channel.
In the embodiment of the present invention, it is preferred that methods described can also include:The target software is received to survey The test result of test system feedback, and the request feedback of software test result is checked according to the web page It is shown to the web page.
After receiving the test result of the target software test system feedback, test result can be carried out Storage, after receiving the web page and checking the request of software test result, extracts the test of storage As a result, and send to terminal web page for showing and check.
In implementing, the test result can include software test result, be taken for other softwares The performance test results of device of being engaged in and the comparing result of different software.Wherein, the software test result can be with Including query rate per second, response time and information etc. success rate;The performance test results can include soft The information such as the CPU usage of part server, memory usage and hard disk occupancy;The different software Comparing result can include with same or similar performance different software performance comparison result, or With the performance comparison result of a software different editions, such as the comparing result of the response time of different software, The comparing result of the success rate of different software.
To make those skilled in the art be better understood from the present invention, below by way of an example to of the invention A kind of mechanism of method for testing software is illustrated.
Reference picture 4, shows a FB(flow block) for a kind of method for testing software of example of the invention, by Fig. 4 understands, comprising three computer rooms, each computer room is equipped with control server and pressure server, described Method may comprise steps of:
First, the software test parameter that user is input into the terminal web page is received, the software is surveyed Examination parameter includes computer room C, software test basis script and the scrnario testing parameter that software under testing is disposed, By receiving the instruction related to the task of establishment, software test task is created according to software test parameter, and After the instruction for receiving startup task, the software test task is sent to the web server.
Secondly, web server is by the software test task of reception is added to default task queue and stores To initialized data base.In task queue, the software test task to newly increasing adds pending mark, For the software test task that pending mark is carried in task queue, periodic detection simultaneously determines computer room C's Software testing system C whether there is 3 vacant pressure servers, if in the presence of from task queue Extract the software test task and generate software test script, the software test script is sent to machine The software testing system C of room C.
Again, the control server of software testing system C can by the software test result of acquisition store to Preset mango databases;The monitoring server of software testing system C can monitor at least one The running status of software server, and the monitored results of acquisition are stored to preset mango databases. Wherein, software server can record the running state parameter of itself.It should be noted that specific real In existing, control server and monitoring server may be located at same server or same server cluster, The present invention is not limited herein.
Finally, web server receive terminal web page transmission check instruction after, to computer room C Software testing system C send related instruction of checking, software testing system C is from preset mango Required test result is transferred in database, while by accessing the software server, obtaining described soft At least one running state parameter of part server, test result and the running state parameter feedback that will be obtained To web server, web page is further fed back to for showing and checking by web server.
To make those skilled in the art be better understood from the present invention software is created in web terminal web page The process of test assignment, below by way of Fig. 5-Figure 13, illustrates to said process.
Reference picture 5, shows web terminal the first web page schematic diagram of example of the present invention, can by Fig. 5 Know, the first web page left side illustrates overview, test script (as in the embodiment of the present invention Software test basis script), test scene, test assignment and test result five divide mark, pass through Clicking on any mark that divides in left side can show respective page, can check overview or Input Software test ginseng Number checks test result.The first web page right side illustrates overview and divides the corresponding page of mark Content, specifically, illustrates the basic script number 7 of software test, test that the web terminal has been generated The software test result number 10 of number of scenes 8, the software test task number 9 of generation and feedback. User can increase script, scene or task newly, or check by clicking on the associated button on the right side of the page Test result.In addition, also showing software test task generation prompting letter below first web page Breath, notifies that user has new software test task to generate, user can be checked by triggering associative operation or Ignore the task of generation, for example, can check and " appoint _ business 2015-11-18 by clicking on " checking " button 23:05:06 " creating for task.
Reference picture 6, shows web terminal the second web page schematic diagram of example of the present invention, can by Fig. 6 Know, second web page illustrates test script and divides same in the corresponding page of mark.Specifically, Four test scripts set up are illustrated, script name, the pin of each test script is further illustrated This description, script creation time and last modification time, while being provided with " checking ", " editor " and " deleting Except " button, for checking, editing or deleting corresponding test script.
Can be after the pre- script name searched of input in the input frame above second web page, point Inquiry button is hit, the script needed for searching.Can be by clicking on addition button, displaying one is used for newly-built pin This script argument configuration page, after being input into relevant parameter on the script argument configuration page, clicks on Save button, generates test script.Reference picture 7, shows the web of web terminal the 3rd of example of the present invention Page schematic diagram, as shown in Figure 7, the 3rd web page schematic diagram illustrates script argument configuration page Face.The script argument configuration page illustrates the multiples such as script name, script description, Parameter File and affairs and treats The message identification of selection is input into or treats, user can be in script name, script description and the association of affairs input Inframe input relevant parameter, the Parameter File from the association column of Parameter File needed for option and installment script with And other configurations operation.After test script parameter configuration terminates, save button, generation test can be clicked on Script.
Reference picture 8, shows the web page schematic diagram of web terminal the 4th of example of the present invention, can by Fig. 8 Know, the 4th web page illustrates test scene and divides same in the corresponding page of mark.Specifically, Four test scenes set up are illustrated, scene title, the pressure of each test scene is further illustrated Power number of servers, concurrent user number, script name, scene description and last modification time, while also " checking " button, the Edit button and " deletion " button are configured with, it is corresponding for checking, editing or delete Test scene.
Can be after the pre- script name searched of input in the input frame above the 4th web page, point Inquiry button is hit, the corresponding test scene of script needed for searching.Can be by clicking on addition button, exhibition Show that the scenario parameters for being used for newly-built test scene configure the page, it is defeated on the scenario parameters configuration page After entering relevant parameter, save button is clicked on, generate test script.Reference picture 9, shows that the present invention shows The web page schematic diagram of web terminal the 5th of example, as shown in Figure 9, the 5th web page schematic diagram Illustrate scenario parameters configuration the page, scenario parameters configuration the page illustrate scene title, scene description, The multiple letters to be entered or treating selection of script name, pressure pattern, unit concurrent user number and pressing machine number Breath mark, can know defeated in corresponding input frame in scene title, scene description unit concurrent user book label Enter the parameter of correlation;The corresponding constant pressure mode of pressure pattern identification or gradient can be selected to press, for example, selected Select constant pressure mode;Can be identified from script name and required test script is selected in corresponding drop-down menu, Such as " panda_eoom_ without log in ";Needed for being selected in the corresponding drop-down menu of pressing machine number Pressing machine number, such as 1.After test scene parameter configuration terminates, save button can be clicked on, generated Test scene.
Reference picture 10, shows the web page schematic diagram of web terminal the 6th of example of the present invention, by Figure 10 Understand, the 6th web page illustrates test assignment and divides same in the corresponding page of mark.Specifically, Four test assignments set up are illustrated, the task names of each test assignment is further illustrated, is appointed Business description, scene title and state, while being provided with " checking " button, the Edit button and " deletion " Button, for checking, editing or deleting corresponding test assignment.
Can be after the pre- script name searched of input in the input frame above the 6th web page, point Inquiry button is hit, the corresponding test assignment of script needed for searching.Can be by clicking on addition button, exhibition Show that the task parameters for being used for newly-built test assignment configure the page, it is defeated on the task parameters configuration page After entering relevant parameter, save button is clicked on, generate test assignment.Reference picture 11, shows that the present invention shows The web page schematic diagram of web terminal the 7th of example, as shown in Figure 11, the 7th web page schematic diagram Illustrate the task parameters configuration page.Task parameters configuration the page illustrate task names, task description, Time started, duration, cycle-index, pressure computer room, binding scene, web server and DB The multiple message identifications to be entered or treating selection of server, can in task names, task description, continue Time, cycle-index, the interior input of web server input frame corresponding to DB server identifications are related Parameter;The time started can be selected to identify corresponding operation or scheduler immediately, for example, select to run immediately; Pressure computer room title or numbering needed for being selected in pressure computer room identifies corresponding drop-down menu or Other marks, for example, select ZWT;Institute can be selected in the corresponding drop-down menu of binding scene identity The test scene for needing.After test assignment parameter configuration terminates, submitting button can be clicked on, generation test is appointed Business.
Reference picture 12, shows the web page schematic diagram of web terminal the 8th of example of the present invention, by Figure 12 Understand, the 8th web page illustrates test result and divides same in the corresponding page of mark.Specifically, Illustrate four test results of feedback, further illustrate the task names of each test result, OPS, RT, success rate, beginning and ending time, duration and running status, while being provided with " checking details " Button and " deletion " button, for checking or deleting corresponding test result.
For a certain test result, " checking details " button, the bullet above the 8th web page are clicked on Go out the result displayed page of a display test result.Specifically, task names can be shown above the page, Show that summary, details and monitoring three divide mark below the task names of displaying.Reference picture 13, shows The web page schematic diagram of web terminal the 9th of example of the present invention, as shown in Figure 13, the described 9th are gone out Web page illustrates summary and divides same in the corresponding page of mark.Specifically, respectively show and hair Amount mesh, TPS, mortality and response time corresponding data, illustrate result general introduction, operational indicator And monitor control index.User can tentatively learn test result by reading summary info;Can be by reading Details divide the software test result that the corresponding content of pages of mark further learns software under testing, such as page The content that face shows can include task names, QPS, running status, initial time, scene title, Response time, food selection, duration, script name and success rate, and OPS, handling capacity with The graph of a relation of response time;Can further be learned by reading the corresponding content of pages of monitoring division mark The content that the monitored results of the software server that software under testing is disposed, such as page show can include choosing The software server selected, and CPU usage and response time the datagram such as graph of a relation.
In sum, user can be checked for submission by reading the partial web page of web terminal The test result of test assignment;According to selection or test script-foundation test script and correlation can be created Parameter creates test scene-foundation test scene and relevant parameter creates the operation order of test assignment, complete Into the establishment of test assignment.
Reference picture 14, shows a kind of structural frames of according to embodiments of the present invention 1 software testing system Figure, as shown in Figure 14, the software testing system can be deployed in software testing system, and each is to be measured The computer room that software is disposed is provided with software testing system, the system can include control server and Pressure server;
The control server 401 includes:
Software test script receiver module 4011, the software test pin for receiving web server transmission This, the software test script is sent to the web server according to web page by http messages The generation of software test parameter, the software test parameter includes the target computer room disposed of software under testing, The software test script is sent to the software testing system according to the target computer room;
The pressure server 402, for being carried out to the software under testing according to the software test script Test.
In the embodiment of the present invention, it is preferable that each software testing system has subscribed to the first dedicated channel respectively, The software test script receiver module 4011 includes:
Software test script monitoring submodule, sends to described first special for monitoring the web server With the software test script of channel;
Software test script transmits submodule, is surveyed for the software test script to be sent to the software The pressure server of test system is tested.
In the embodiment of the present invention, it is preferable that each software testing system has subscribed to the second dedicated channel respectively, The system also includes monitoring server, and the monitoring server includes:
Software test Script controlling module, sends to described second special for monitoring the web server The software test script of channel;
Software server monitoring module, at least one software server disposed to the software under testing Carry out condition monitoring.
In the embodiment of the present invention, it is preferable that the software server monitoring module, specifically for by visiting The software server is asked, and/or, by calling the target interface of management server, obtain the software At least one running state parameter of server.
In the embodiment of the present invention, it is preferable that the control server 402 also includes:
Test log acquisition module, the test log for obtaining the pressure server generation;
Test log parsing module, for parsing test of the test log acquisition to the software under testing As a result, and when test result is checked in web page request feed back to the web server.
In the embodiment of the present invention, it is preferable that the control server 402 also includes:
Test result contrast module, the test result for contrasting different software, and in the web page Request feeds back to the web server when checking comparing result.
Reference picture 15, shows a kind of structural frames of according to embodiments of the present invention 2 software testing device Figure, as shown in Figure 15, the software testing device can be deployed in web terminal, each software under testing institute The computer room of deployment can be provided with software testing system, and described device can include:
First software test parameter receiver module 501, surveys for receiving the software being input into web page Examination parameter, the software test parameter includes the target computer room that software under testing is disposed;
First software test parameter sending module 502, for being joined the software test by http messages Number is sent to the web server, with concurrent according to software test parameter generation software test script The target software test system for delivering to the target computer room is tested.
In the embodiment of the present invention, it is preferable that the first software test parameter receiver module 501, specifically Test for receiving the software test being input into web page basis script and correspondence configuration Scenario parameters.
In the embodiment of the present invention, it is preferable that described device also includes:
Software test task creation module, for it is described by http messages by the software test parameter Send to before web server, software test task is created according to being triggered in the web page Indicate, create software test task, and after the instruction for receiving startup task, by the software test Task is sent to the web server.
In the embodiment of the present invention, it is preferable that described device also includes:
Receiver module is indicated, software test result is checked in the web page, described is treated for receiving Survey the performance test results or the comparing result of different software of at least one software server of software deployment Instruction, obtained from the web server and corresponding data and shown.
Reference picture 16, shows a kind of structural frames of according to embodiments of the present invention 3 software testing device Figure, as shown in Figure 16, the software testing device can be deployed in web server, and each is to be measured soft The computer room that part is disposed can be provided with software testing system, and described device can include:
Second software test parameter receiver module 601, is input into by webpage for receiving and is reported by http The software test parameter that text sends, the software test parameter includes the target machine that software under testing is disposed Room;
Software test script generation module 602, for generating software test according to the software test parameter Script;
Software test script sending module 603, for the software test script to be sent to the target The target software test system of computer room, by the target software test system according to the software test script The software under testing is tested.
In the embodiment of the present invention, it is preferable that the software test script sending module 603 includes:
Target software test system determination sub-module, for the mesh included according to the software test parameter Mark computer room, it is determined that target software test system corresponding with the target computer room;
Software test script transmission submodule, for the software test script to be sent into soft to the target Part test system.
In the embodiment of the present invention, it is preferable that the second software test parameter receiver module 601 includes:
The software test task that the web terminal is created is received, added to preset task queue, and is added Pending mark, the software test task carries the software test parameter.
In the embodiment of the present invention, it is preferable that described device also includes:
Test performance detection module, for sending to the target machine software test script described Before the target software test system in room, for the software test task for carrying pending mark, periodically inspection Survey and determine that the target software test system meets the test performance indicated by the software test parameter.
In the embodiment of the present invention, it is preferable that each software testing system has subscribed to dedicated channel respectively, described Software test script sending module 603, specifically for the software test script is sent to the target The dedicated channel that software testing system is subscribed to, and further send to the target software test system.
In the embodiment of the present invention, it is preferable that described device also includes:
Test result receiver module, the test result for receiving the target software test system feedback, And check that the request of software test result feeds back to the webpage and is shown according to the webpage.
For device embodiment, because it is substantially similar to embodiment of the method, so the comparing of description Simply, the relevent part can refer to the partial explaination of embodiments of method.
Provided herein algorithm and display not with any certain computer, virtual system or miscellaneous equipment It is intrinsic related.Various general-purpose systems can also be used together with based on teaching in this.According to above Description, the structure constructed required by this kind of system is obvious.Additionally, the present invention is not also directed to Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here The content of invention, and the description done to language-specific above is to disclose optimal reality of the invention Apply mode.
In specification mentioned herein, numerous specific details are set forth.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case of without these details.In some instances, Known method, structure and technology is not been shown in detail, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and helping understand in each inventive aspect one Individual or multiple, in above to the description of exemplary embodiment of the invention, each feature of the invention Sometimes it is grouped together into single embodiment, figure or descriptions thereof.However, should be by The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requirement ratio is at each The more features of feature being expressly recited in claim.More precisely, as following right will As asking book to reflect, inventive aspect is all spies less than single embodiment disclosed above Levy.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment party Formula, wherein each claim are in itself as separate embodiments of the invention.
Those skilled in the art are appreciated that can be carried out to the module in the equipment in embodiment Adaptively change and they are arranged in one or more equipment different from the embodiment. Module or unit or component in embodiment can be combined into a module or unit or component, and In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or Outside at least some in process or unit exclude each other, can be using any combinations to this explanation All features disclosed in book (including adjoint claim, summary and accompanying drawing) and so disclosed All processes or unit of any method or equipment are combined.Unless expressly stated otherwise, this theory Each feature disclosed in bright book (including adjoint claim, summary and accompanying drawing) can be by offer phase The alternative features of same, equivalent or similar purpose replace.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include Some included features are rather than further feature, but the feature of different embodiments in other embodiments Combination mean to be within the scope of the present invention and formed different embodiments.For example, under In the claims in face, the one of any of embodiment required for protection can be in any combination Mode is used.
All parts embodiment of the invention can realize with hardware, or with one or more The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice One of some or all parts in the corresponding equipment of method for testing software according to embodiments of the present invention A little or repertoire.The present invention is also implemented as perform method as described herein one Point or whole equipment or program of device (for example, computer program and computer program product). It is such to realize that program of the invention be stored on a computer-readable medium, or can have one The form of individual or multiple signals.Such signal can be downloaded from internet website and obtained, or There is provided on carrier signal, or provided in any other form.
It should be noted that above-described embodiment the present invention will be described is limited rather than to the present invention Make, and those skilled in the art can design without departing from the scope of the appended claims Alternative embodiment.In the claims, any reference symbol being located between bracket should not be configured to Limitations on claims.Word "comprising" does not exclude the presence of element or step not listed in the claims Suddenly.Word "a" or "an" before element does not exclude the presence of element as multiple.The present invention Can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be logical Same hardware branch is crossed to embody.The use of word first, second, and third is not indicated that Any order.These words can be construed to title.
The invention discloses A1, a kind of method for testing software, wherein, apply in software testing system, The computer room that each software under testing is disposed is provided with software testing system, and methods described includes:
The software test script that web server sends is received, the software test script is according to Web page Face is generated by the software test parameter that http messages are sent to the web server, the software test Parameter includes the target computer room that software under testing is disposed, and the software test script is according to the target computer room Send to the software testing system;
The software under testing is tested according to the software test script.
A2, the method according to A1, wherein, it is special that each software testing system has subscribed to first respectively Channel, the software test script that the reception web server sends includes:
The web server is monitored to send to the software test script of first dedicated channel;
The pressure server that the software test script is sent to the software testing system is tested.
A3, the method according to A1, wherein, it is special that each software testing system has subscribed to second respectively Channel, methods described also includes:
The web server is monitored to send to the software test script of second dedicated channel;
At least one software server to software under testing deployment carries out condition monitoring.
A4, the method according to A3, wherein, it is described at least one of software under testing deployment Software server carries out performance monitoring to be included:
By accessing the software server, and/or, by calling the target interface of management server, Obtain at least one running state parameter of the software server.
A5, the method according to A1, wherein, methods described also includes:
Obtain the test log of the pressure server generation;
Test result of the test log acquisition to the software under testing is parsed, and in the web page Request feeds back to the web server when checking test result.
A6, the method according to A1, wherein, methods described also includes:
The test result of different software is contrasted, and is fed back when comparing result is checked in web page request To the web server.
The invention also discloses B7, a kind of software testing system, wherein, it is deployed in software test system System, the computer room that each software under testing is disposed is provided with software testing system, and the system includes control Control server and pressure server;
The control server includes:
Software test script receiver module, the software test script for receiving web server transmission, The software test script sends soft to the web server according to web page by http messages Part test parameter is generated, and the software test parameter includes the target computer room that software under testing is disposed, institute Software test script is stated to be sent to the software testing system according to the target computer room;
The pressure server, for being surveyed to the software under testing according to the software test script Examination.
B8, the system according to B7, wherein, it is special that each software testing system has subscribed to first respectively Channel, the software test script receiver module includes:
Software test script monitoring submodule, sends to described first for monitoring the web server The software test script of dedicated channel;
Software test script transmits submodule, for the software test script to be sent to the software The pressure server of test system is tested.
B9, the system according to B7, wherein, it is special that each software testing system has subscribed to second respectively Channel, the system also includes monitoring server, and the monitoring server includes:
Software test Script controlling module, sends to described second special for monitoring the web server With the software test script of channel;
Software server monitoring module, at least one software service disposed to the software under testing Device carries out condition monitoring.
B10, the system according to B9, wherein:
The software server monitoring module, specifically for by accessing the software server, and/ Or, the target interface by calling management server, obtains at least one fortune of the software server Row state parameter.
B11, the system according to B7, wherein, the control server also includes:
Test log acquisition module, the test log for obtaining the pressure server generation;
Test log parsing module, for parsing survey of the test log acquisition to the software under testing Test result, and feed back to the web server when test result is checked in web page request.
B12, the system according to B7, wherein, the control server also includes:
Test result contrast module, the test result for contrasting different software, and in the web nets Page request feeds back to the web server when checking comparing result.

Claims (10)

1. a kind of method for testing software, wherein, apply in software testing system, each software under testing institute The computer room of deployment is provided with software testing system, and methods described includes:
The software test script that web server sends is received, the software test script is according to Web page Face is generated by the software test parameter that http messages are sent to the web server, the software test Parameter includes the target computer room that software under testing is disposed, and the software test script is according to the target computer room Send to the software testing system;
The software under testing is tested according to the software test script.
2. method according to claim 1, wherein, each software testing system has subscribed to respectively One dedicated channel, the software test script that the reception web server sends includes:
The web server is monitored to send to the software test script of first dedicated channel;
The pressure server that the software test script is sent to the software testing system is tested.
3. method according to claim 1, wherein, each software testing system has subscribed to respectively Two dedicated channels, methods described also includes:
The web server is monitored to send to the software test script of second dedicated channel;
At least one software server to software under testing deployment carries out condition monitoring.
4. method according to claim 3, wherein, it is described to software under testing deployment extremely A few software server carries out performance monitoring to be included:
By accessing the software server, and/or, by calling the target interface of management server, Obtain at least one running state parameter of the software server.
5. method according to claim 1, wherein, methods described also includes:
Obtain the test log of the pressure server generation;
Test result of the test log acquisition to the software under testing is parsed, and in the web page Request feeds back to the web server when checking test result.
6. method according to claim 1, wherein, methods described also includes:
The test result of different software is contrasted, and is fed back when comparing result is checked in web page request To the web server.
7. a kind of software testing system, wherein, software testing system is deployed in, each software under testing institute The computer room of deployment is provided with software testing system, and the system includes control server and pressure service Device;
The control server includes:
Software test script receiver module, the software test script for receiving web server transmission, The software test script sends soft to the web server according to web page by http messages Part test parameter is generated, and the software test parameter includes the target computer room that software under testing is disposed, institute Software test script is stated to be sent to the software testing system according to the target computer room;
The pressure server, for being surveyed to the software under testing according to the software test script Examination.
8. system according to claim 7, wherein, each software testing system has subscribed to respectively One dedicated channel, the software test script receiver module includes:
Software test script monitoring submodule, sends to described first for monitoring the web server The software test script of dedicated channel;
Software test script transmits submodule, for the software test script to be sent to the software The pressure server of test system is tested.
9. system according to claim 7, wherein, each software testing system has subscribed to respectively Two dedicated channels, the system also includes monitoring server, and the monitoring server includes:
Software test Script controlling module, sends to described second special for monitoring the web server With the software test script of channel;
Software server monitoring module, at least one software service disposed to the software under testing Device carries out condition monitoring.
10. system according to claim 9, wherein:
The software server monitoring module, specifically for by accessing the software server, and/ Or, the target interface by calling management server, obtains at least one fortune of the software server Row state parameter.
CN201510874196.1A 2015-12-02 2015-12-02 A kind of method for testing software and system Pending CN106815142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510874196.1A CN106815142A (en) 2015-12-02 2015-12-02 A kind of method for testing software and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510874196.1A CN106815142A (en) 2015-12-02 2015-12-02 A kind of method for testing software and system

Publications (1)

Publication Number Publication Date
CN106815142A true CN106815142A (en) 2017-06-09

Family

ID=59106445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510874196.1A Pending CN106815142A (en) 2015-12-02 2015-12-02 A kind of method for testing software and system

Country Status (1)

Country Link
CN (1) CN106815142A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832207A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Interface performance test method, apparatus, storage medium and computer equipment
CN108038013A (en) * 2017-11-30 2018-05-15 海尔优家智能科技(北京)有限公司 Distributed performance test method and device and computer-readable recording medium
CN108199923A (en) * 2018-01-23 2018-06-22 平安普惠企业管理有限公司 Server test method, device, computer equipment and readable storage medium storing program for executing
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN108572916A (en) * 2018-03-22 2018-09-25 平安科技(深圳)有限公司 Method for testing pressure, device, equipment based on Jmeter and storage medium
CN109144865A (en) * 2018-08-14 2019-01-04 深圳壹账通智能科技有限公司 Method, apparatus, computer equipment and the storage medium of head end test
CN109753438A (en) * 2019-01-14 2019-05-14 上海挚极信息科技有限公司 Testing Platform and method based on jmeter
CN111104304A (en) * 2018-10-25 2020-05-05 武汉斗鱼网络科技有限公司 Multi-task scene performance testing method, storage medium, electronic device and system
CN111625443A (en) * 2019-02-28 2020-09-04 阿里巴巴集团控股有限公司 Pressure testing method, device, equipment and storage medium
CN116257220A (en) * 2023-05-16 2023-06-13 长春慧程科技有限公司 Cloud edge collaboration-based software development data management method and system

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107832207A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Interface performance test method, apparatus, storage medium and computer equipment
CN108038013A (en) * 2017-11-30 2018-05-15 海尔优家智能科技(北京)有限公司 Distributed performance test method and device and computer-readable recording medium
CN108199923A (en) * 2018-01-23 2018-06-22 平安普惠企业管理有限公司 Server test method, device, computer equipment and readable storage medium storing program for executing
CN108572916B (en) * 2018-03-22 2021-09-28 平安科技(深圳)有限公司 Pressure testing method, device, equipment and storage medium based on Jmeter
CN108572916A (en) * 2018-03-22 2018-09-25 平安科技(深圳)有限公司 Method for testing pressure, device, equipment based on Jmeter and storage medium
CN108415847A (en) * 2018-05-08 2018-08-17 平安普惠企业管理有限公司 Performance test methods, device, computer equipment and storage medium
CN109144865A (en) * 2018-08-14 2019-01-04 深圳壹账通智能科技有限公司 Method, apparatus, computer equipment and the storage medium of head end test
CN111104304A (en) * 2018-10-25 2020-05-05 武汉斗鱼网络科技有限公司 Multi-task scene performance testing method, storage medium, electronic device and system
CN109753438A (en) * 2019-01-14 2019-05-14 上海挚极信息科技有限公司 Testing Platform and method based on jmeter
CN111625443A (en) * 2019-02-28 2020-09-04 阿里巴巴集团控股有限公司 Pressure testing method, device, equipment and storage medium
CN111625443B (en) * 2019-02-28 2023-04-18 阿里巴巴集团控股有限公司 Pressure testing method, device, equipment and storage medium
CN116257220A (en) * 2023-05-16 2023-06-13 长春慧程科技有限公司 Cloud edge collaboration-based software development data management method and system
CN116257220B (en) * 2023-05-16 2023-08-08 长春慧程科技有限公司 Cloud edge collaboration-based software development data management method and system

Similar Documents

Publication Publication Date Title
CN106815141A (en) A kind of method for testing software and device
CN106815142A (en) A kind of method for testing software and system
CN104915296B (en) Buried point testing method, data query method and device
US10050848B2 (en) Data-driven profiling for distributed applications
CN111124850A (en) MQTT server performance testing method, system, computer equipment and storage medium
CN108959059B (en) Test method and test platform
CN107992409A (en) Method for generating test case, device, computer equipment and storage medium
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN106357457B (en) A kind of alarm test method, apparatus and system
CN108038051A (en) Dissemination method, device, computer equipment and the storage medium of micro services
CN110275822A (en) Performance test methods, device, equipment and the storage medium of application programming interfaces
US20030177417A1 (en) System and method for remote performance analysis and optimization of computer systems
US20050229043A1 (en) System and method for software testing
US20100153087A1 (en) Techniques for generating a reusable test script for a single user performance test
CN106603296A (en) Log processing method and device
US11436133B2 (en) Comparable user interface object identifications
CN105095059A (en) Method and device for automated testing
CN106897207A (en) Ui testing method and apparatus
US20070189509A1 (en) Data path identification and analysis for distributed applications
CN108153672A (en) The automatization test system and test method of a kind of mobile application
US10775751B2 (en) Automatic generation of regular expression based on log line data
US20190034325A1 (en) Evidence gathering system and method
CN106713011A (en) Method and system for obtaining test data
CN115033876A (en) Log processing method, log processing device, computer device and storage medium
CN105045717B (en) Test environment dispositions method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170609

WD01 Invention patent application deemed withdrawn after publication