CN106815141A - A kind of method for testing software and device - Google Patents
A kind of method for testing software and device Download PDFInfo
- Publication number
- CN106815141A CN106815141A CN201510873151.2A CN201510873151A CN106815141A CN 106815141 A CN106815141 A CN 106815141A CN 201510873151 A CN201510873151 A CN 201510873151A CN 106815141 A CN106815141 A CN 106815141A
- Authority
- CN
- China
- Prior art keywords
- software
- software test
- test
- target
- script
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 238000012360 testing method Methods 0.000 claims abstract description 284
- 238000013515 script Methods 0.000 claims abstract description 205
- 238000013522 software testing Methods 0.000 claims abstract description 92
- 230000005540 biological transmission Effects 0.000 claims description 20
- 238000011056 performance test Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 12
- 230000000737 periodic effect Effects 0.000 claims description 9
- 230000001960 triggered effect Effects 0.000 claims description 8
- 241000208340 Araliaceae Species 0.000 claims description 6
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims description 6
- 235000003140 Panax quinquefolius Nutrition 0.000 claims description 6
- 235000008434 ginseng Nutrition 0.000 claims description 6
- 230000008901 benefit Effects 0.000 abstract description 8
- 238000007796 conventional method Methods 0.000 abstract description 4
- 238000012544 monitoring process Methods 0.000 description 16
- 238000010586 diagram Methods 0.000 description 13
- 230000004044 response Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 235000004936 Bromus mango Nutrition 0.000 description 5
- 241001093152 Mangifera Species 0.000 description 5
- 235000014826 Mangifera indica Nutrition 0.000 description 5
- 235000009184 Spondias indica Nutrition 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 239000000284 extract Substances 0.000 description 4
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 238000013142 basic testing Methods 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 240000002853 Nelumbo nucifera Species 0.000 description 1
- 235000006508 Nelumbo nucifera Nutrition 0.000 description 1
- 235000006510 Nelumbo pentapetala Nutrition 0.000 description 1
- 238000001545 Page's trend test Methods 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
- 238000012549 training Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
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
A kind of method for testing software and device are the embodiment of the invention provides, is applied in web terminal, the computer room that each software under testing is disposed is provided with software testing system, methods described includes:The software test parameter being input into web page is received, the software test parameter includes the target computer room that software under testing is disposed;The software test parameter is sent to corresponding web server by http messages, is tested with generating software test script and sending to the target software test system of the target computer room according to the software test parameter.The scheme of the embodiment of the present invention, the software test parameter in the input of terminal web page need to only be received, without in terminal downloads software client, execution cumbersome script configuration operation and software test operation, reduce the occupancy of terminal space, relative to conventional method, the speed of service of terminal is ensure that, terminal resource and computing resource is taken full advantage of.
Description
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 device.
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 method for testing software and corresponding software testing device 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 web terminal, respectively
The computer room that individual software under testing is disposed is provided with software testing system, and methods described includes:
The software test parameter being input into web page is received, the software test parameter includes to be measured soft
The target computer room that part is disposed;
The software test parameter is sent to corresponding web server by http messages, with according to institute
State software test parameter generation software test script and send to the target software of the target computer room and test
System is tested.
Alternatively, the software test parameter that the reception is input into web page includes:
Receive the test of the software test basis script and correspondence configuration being input into the web page
Scenario parameters.
Alternatively, the software test parameter is sent to corresponding web by http messages described
Before server, methods described also includes:
According to the instruction that establishment software test task is triggered in the web page, create software test and appoint
Business, and after the instruction for receiving startup task, the software test task is sent to corresponding web
Server.
Alternatively, methods described also includes:
Software test result, at least the one of software under testing deployment are checked in reception in the web page
The instruction of the performance test results of individual software server or the comparing result of different software, from web clothes
Business device obtains corresponding data and shows.
According to another aspect of the present invention, there is provided a kind of method for testing software, apply in web services
Device, the computer room that each software under testing is disposed is provided with software testing system, and methods described includes:
The software test parameter that reception is input into by webpage and is sent by http messages, the software test
Parameter includes the target computer room that software under testing is disposed;
Software test script is generated according to the software test parameter;
The software test script is sent to the target software test system of the target computer room, by described
Target software test system is tested the software under testing according to the software test script.
Alternatively, it is described to test the target software that the software test script is sent to the target computer room
System includes:
According to the target computer room that the software test parameter includes, it is determined that corresponding with the target computer room
Target software test system;
The software test script is sent to the target software test system.
Alternatively, it is described to receive the software test parameter bag for being input into by webpage and being sent by http messages
Include:
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.
Alternatively, the target software that the software test script is sent to the target computer room is surveyed described
Before test system, methods described also includes:
For the software test task for carrying pending mark, periodic detection simultaneously determines that the target software is surveyed
Test system meets the test performance indicated by the software test parameter.
Alternatively, each software testing system has subscribed to dedicated channel respectively, described by the software test pin
This transmission to the target software test system of the target computer room includes:
The software test script is sent the dedicated channel subscribed to the target software test system, and
Further send to the target software test system.
Alternatively, methods described also includes:
The test result of the target software test system feedback is received, and software is checked according to the webpage
The request of test result feeds back to the webpage and is shown.
According to another aspect of the present invention, there is provided a kind of software testing device, web terminal is deployed in,
The computer room that each software under testing is disposed is provided with software testing system, and described device includes:
First software test parameter receiver module, for receiving the software test being input into web page ginseng
Number, the software test parameter includes the target computer room that software under testing is disposed;
First software test parameter sending module, for being sent out the software test parameter by http messages
Corresponding web server is delivered to, software test script and is sent with being generated according to the software test parameter
Target software test system to the target computer room is tested.
Alternatively, the first software test parameter receiver module, specifically for receiving in the web
The software test basis script and the test scene parameter of correspondence configuration being input into the page.
Alternatively, described device also includes:
Software test task creation module, for being joined the software test by http messages described
Number is sent to before corresponding web server, and software survey is created according to being triggered in the web page
The instruction of trial business, creates software test task, and after the instruction for receiving startup task, by institute
Software test task is stated to send to corresponding web server.
Alternatively, described device also includes:
Receiver module is indicated, software test result, described is checked in the web page for receiving
The performance test results or the contrast knot of different software of at least one software server of software under testing deployment
The instruction of fruit, obtains corresponding data and shows from the web server.
According to another aspect of the present invention, there is provided a kind of software testing device, web clothes are deployed in
Business device, the computer room that each software under testing is disposed is provided with software testing system, described device bag
Include:
Second software test parameter receiver module, is input into and by http messages for receiving by webpage
The software test parameter of transmission, the software test parameter includes the target machine that software under testing is disposed
Room;
Software test script generation module, for generating software test pin according to the software test parameter
This;
Software test script sending module, for the software test script to be sent to the target machine
The target software test system in room, by the target software test system according to the software test script
The software under testing is tested.
Alternatively, the software test script sending module includes:
Target software test system determination sub-module, for what is included according to the software test parameter
Target 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 to the target
Software testing system.
Alternatively, the second software test parameter receiver module includes:
The software test task that the web terminal is created is received, added to preset task queue, and is added
Plus pending mark, the software test task carrying software test parameter.
Alternatively, described device also includes:
Test performance detection module, for sending to the target software test script described
It is fixed for the software test task for carrying pending mark before the target software test system of computer room
Phase is detected and determines that the target software test system meets the test indicated by the software test parameter
Performance.
Alternatively, each software testing system has subscribed to dedicated channel respectively;
The software test script sending module, specifically for the software test script is sent to institute
The dedicated channel of target software test system subscription is stated, and is further sent to target software test
System.
Alternatively, described device also includes:
Test result receiver module, the test knot for receiving the target software test system feedback
Really, and according to the webpage check that the request of software test result feeds back to the webpage and is shown.
By the embodiment of the present invention, the software test parameter that user is input into terminal web page is received, led to
Http messages are crossed to send to corresponding web server, web server foundation the software test parameter
The software test parameter generation software test script of reception, according further to treating that software test parameter includes
The target computer room that software is disposed is surveyed, so as to the software test script of generation is sent to the target computer room
Target software test system tested.The scheme of the embodiment of the present invention, need to only receive in terminal web
The software test parameter of page input, without matching somebody with somebody in the cumbersome script of terminal downloads software client, execution
Operation and software test operation are put, the occupancy of terminal space are reduced, 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 shows a kind of according to embodiments of the present invention 1 method for testing software flow chart;
The step of Fig. 2 shows a kind of according to embodiments of the present invention 2 method for testing software flow chart;
The step of Fig. 3 shows a kind of according to embodiments of the present invention 3 method for testing software 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;
Figure 14 shows a kind of structured flowchart of according to embodiments of the present invention 1 software testing device;
Figure 15 shows a kind of structured flowchart of according to embodiments of the present invention 2 software testing device;
Figure 16 shows a kind of structured flowchart of according to embodiments of the present invention 3 software testing system.
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 the step of show a kind of according to embodiments of the present invention 1 method for testing software
Figure, the present embodiment is applied in web terminal, specifically may include steps of:
Step 101, 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.
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 parameter can join for the test that configuration is needed in software test procedure
Number, for recording script.
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 software under testing is disposed can be target machine room.If for example, software under testing institute
The computer room of deployment is 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 102, is sent to corresponding web server the software test parameter by http messages,
With according to the software test parameter generate software test script and transmission to the target computer room target
Software testing system is tested.
Communicated by http messages between web page and web server, received in the web
After the instruction for creating software test script is triggered in the page, by http messages by the software test parameter
Send to corresponding web server.Web server is surveyed according to the software test parameter generation software for receiving
Training sheet, by reading the target computer room recorded in software test parameter, the software test script that will be generated
Send to the target software test system of the target computer room and 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 corresponding web services
Device.
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, 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, sent to corresponding the software test parameter that the JMeter of the configuration is commonly used by http messages
Web server, web server can be according to the JMeter for receiving conventional software test parameter generation
JMeter software test scripts, and the mesh disposed according to the software under testing that the software test parameter includes
Mark computer room, the JMeter software test scripts of generation are sent to the target software of the target computer room tests system
System is tested.
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 corresponding web server, web server can be taken according to the software test task for receiving
The software test basis script of band and the test scene parameter, needed for the generation test software under testing
Software test script.
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 corresponding web server, methods described can also include:According in the web page
Middle triggering creates the instruction of software test task, creates software test task, and receiving startup task
Instruction after, the software test task is sent to corresponding web server.Wherein, the software
Test assignment 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 corresponding web server.
Selected software test script can be sent according to the trigger action on web page for receiving
To corresponding web server;Can also be according to preset time interval, will be soft in software test task list
The timing of part test assignment is sent to corresponding 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 corresponding web services by http messages
Device, web server generates software test script according to the software test parameter for receiving, according further to
The target computer room that the software under testing that software test parameter includes is disposed, so as to the software test pin that will be generated
This transmission to the target software test system of the target computer room is tested.The side of the embodiment of the present invention
Case, need to only receive the software test parameter in the input of terminal web page, without in terminal downloads software visitor
Family end, and without performing cumbersome script configuration and software test operation in terminal, reduce terminal
Take up room, relative to conventional method, it is ensured that the speed of service of terminal, take 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.
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 server, specifically may include steps of:
Step 201, 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 202, software test script is generated according to the software test parameter.
Test script is often referred to a series of instructions for fc-specific test FC, can be according to the test parameter of configuration
Generation.In the embodiment of the present invention, after the software test parameter that receiving terminal sends, can extract described soft
The test parameter for software test included in part test parameter, and surveyed according to test parameter generation software
Training sheet.
Step 203, 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.
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 software testing system, specifically may include steps of:
Step 301, 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.
In the embodiment of the present invention, web server can be input into and pass through according to the web page for receiving
The software test parameter that http messages send, generates software test script and sends to the target software and survey
Test 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 the target computer room can be disposed by software under testing.
For example, web server can be input into according to the web page for receiving and be sent by http messages
The conventional software test parameters of JMeter, generate JMeter software test scripts, and by recognizing
The computer room 1 included in software test parameter is stated, the JMeter software test human hair combing wastes of generation are delivered into computer room 1
Software testing system 1.Software testing system 1 receives the JMeter software tests that web server sends
After script, the JMeter software test scripts can be performed, test the software under testing.
Step 302, 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 corresponding 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 corresponding 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 corresponding 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 sending to corresponding web server, further, web server can be by
The software test result of reception 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 corresponding 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
Corresponding web server, and the web page is further fed back to by the web server, with
For showing and checking.
According to the embodiment of the present invention, the software test parameter that user is input into terminal web page is received, led to
Http messages are crossed to send to corresponding web server the software test parameter, web server according to
Software test script is generated according to the software test parameter for receiving, is included according further to software test parameter
The target computer room that software under testing is disposed, so as to the software test script of generation is sent to the target machine
The target software test system in room is tested.The scheme of the embodiment of the present invention, need to only receive in terminal
The software test parameter of web page input, without in terminal downloads software client, and without at end
End performs cumbersome script configuration and software test operation, taking up room for terminal is reduced, relative to biography
System 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.
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 corresponding web services
Device.
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 corresponding web server, web page is further fed back to for showing and looking into by web server
See.
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, at the same be provided with " checking ", " editor " and
" deletion " 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, for checking, editing or delete
Except corresponding 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 " deleting
Except " 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 is clicked on, above the 8th web page
Ejection one shows the result displayed page of test result.Specifically, task name can be shown above the page
Claim, show that summary, details and monitoring three divide mark below the task names of displaying.Reference picture 13,
Show the web page schematic diagram of web terminal the 9th of example of the present invention, as shown in Figure 13, the described 9th
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 device
Figure, as shown in Figure 14, 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 401, 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 402, for being joined the software test by http messages
Number is sent to corresponding web server, and software test script is generated simultaneously with according to the software test parameter
Send to the target software test system of the target computer room and tested.
In the embodiment of the present invention, it is preferable that the first software test parameter receiver module 401, 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 corresponding web server, software test is created according to being triggered in the web page
The instruction of task, creates software test task, and after the instruction for receiving startup task, will be described soft
Part test assignment is sent to corresponding 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 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 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 501, 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 502, for generating software test according to the software test parameter
Script;
Software test script sending module 503, 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 503 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 501 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 503, 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.
Reference picture 16, shows a kind of structural frames of according to embodiments of the present invention 3 software testing system
Figure, as shown in Figure 16, 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 601 includes:
Software test script receiver module 6011, 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 602, 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 6011 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 602 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 corresponding web server.
In the embodiment of the present invention, it is preferable that the control server 602 also includes:
Test result contrast module, the test result for contrasting different software, and in the web page
Request feeds back to corresponding web server when checking comparing result.
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, to apply in web terminal, each is treated
The computer room that survey software is disposed is provided with software testing system, and methods described includes:
The software test parameter being input into web page is received, the software test parameter includes to be measured soft
The target computer room that part is disposed;
The software test parameter is sent to corresponding web server by http messages, with according to institute
State software test parameter generation software test script and send to the target software of the target computer room and test
System is tested.
A2, the method according to A1, wherein, the software that the reception is input into web page is surveyed
Examination parameter includes:
Receive the test of the software test basis script and correspondence configuration being input into the web page
Scenario parameters.
A3, the method according to A1, wherein, it is described by http messages by the software test
Parameter is sent to before corresponding web server, and methods described also includes:
According to the instruction that establishment software test task is triggered in the web page, create software test and appoint
Business, and after the instruction for receiving startup task, the software test task is sent to corresponding web
Server.
A4, the method according to A1, wherein, methods described also includes:
Software test result, at least the one of software under testing deployment are checked in reception in the web page
The instruction of the performance test results of individual software server or the comparing result of different software, from web clothes
Business device obtains corresponding data and shows.
The invention also discloses B5, a kind of method for testing software, wherein, apply in web server,
The computer room that each software under testing is disposed is provided with software testing system, and methods described includes:
The software test parameter that reception is input into by webpage and is sent by http messages, the software test
Parameter includes the target computer room that software under testing is disposed;
Software test script is generated according to the software test parameter;
The software test script is sent to the target software test system of the target computer room, by described
Target software test system is tested the software under testing according to the software test script.
B6, the method according to B5, wherein, it is described to send to described the software test script
The target software test system of target computer room includes:
According to the target computer room that the software test parameter includes, it is determined that corresponding with the target computer room
Target software test system;
The software test script is sent to the target software test system.
B7, the method according to B5, wherein:
The software test parameter for being input into by webpage and being sent by http messages that receives is included:
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.
B8, the method according to B5, wherein, the software test script is sent to institute described
Before stating the target software test system of target computer room, methods described also includes:
For the software test task for carrying pending mark, periodic detection simultaneously determines that the target software is surveyed
Test system meets the test performance indicated by the software test parameter.
B9, the method according to B5, wherein, each software testing system has subscribed to dedicated channel respectively,
It is described to include the target software test system that the software test script is sent to the target computer room:
The software test script is sent the dedicated channel subscribed to the target software test system, and
Further send to the target software test system.
B10, the method according to B5, wherein, methods described also includes:
The test result of the target software test system feedback is received, and software is checked according to the webpage
The request of test result feeds back to the webpage and is shown.
The invention also discloses C11, a kind of software testing device, wherein, web terminal is deployed in, each
The computer room that software under testing is disposed is provided with software testing system, and described device includes:
First software test parameter receiver module, for receiving the software test being input into web page ginseng
Number, the software test parameter includes the target computer room that software under testing is disposed;
First software test parameter sending module, for being sent out the software test parameter by http messages
Corresponding web server is delivered to, software test script and is sent with being generated according to the software test parameter
Target software test system to the target computer room is tested.
C12, the device according to C11, wherein:
The first software test parameter receiver module, is input into specifically for receiving in the web page
Software test basis script and correspondence configuration test scene parameter.
C13, the device according to C11, wherein, described device also includes:
Software test task creation module, for being joined the software test by http messages described
Number is sent to before corresponding web server, and software survey is created according to being triggered in the web page
The instruction of trial business, creates software test task, and after the instruction for receiving startup task, by institute
Software test task is stated to send to corresponding web server.
C14, the device according to C11, wherein, described device also includes:
Receiver module is indicated, software test result, described is checked in the web page for receiving
The performance test results or the contrast knot of different software of at least one software server of software under testing deployment
The instruction of fruit, obtains corresponding data and shows from the web server.
The invention also discloses D15, a kind of software testing device, wherein, web server is deployed in,
The computer room that each software under testing is disposed is provided with software testing system, and described device includes:
Second software test parameter receiver module, is input into and by http messages for receiving by webpage
The software test parameter of transmission, the software test parameter includes the target machine that software under testing is disposed
Room;
Software test script generation module, for generating software test pin according to the software test parameter
This;
Software test script sending module, for the software test script to be sent to the target machine
The target software test system in room, by the target software test system according to the software test script
The software under testing is tested.
D16, the device according to D15, wherein, the software test script sending module includes:
Target software test system determination sub-module, for what is included according to the software test parameter
Target 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 to the target
Software testing system.
D17, the device according to D15, wherein, the second software test parameter receiver module bag
Include:
The software test task that the web terminal is created is received, added to preset task queue, and is added
Plus pending mark, the software test task carrying software test parameter.
D18, the device according to D15, wherein, described device also includes:
Test performance detection module, for sending to the target software test script described
It is fixed for the software test task for carrying pending mark before the target software test system of computer room
Phase is detected and determines that the target software test system meets the test indicated by the software test parameter
Performance.
D19, the device according to D15, wherein, each software testing system has subscribed to special frequency respectively
Road;
The software test script sending module, specifically for the software test script is sent to institute
The dedicated channel of target software test system subscription is stated, and is further sent to target software test
System.
D20, the device according to D15, wherein, described device also includes:
Test result receiver module, the test knot for receiving the target software test system feedback
Really, and according to the webpage check that the request of software test result feeds back to the webpage and is shown.
Claims (10)
1. a kind of method for testing software, wherein, apply in web terminal, what each software under testing was disposed
Computer room is provided with software testing system, and methods described includes:
The software test parameter being input into web page is received, the software test parameter includes to be measured soft
The target computer room that part is disposed;
The software test parameter is sent to corresponding web server by http messages, with according to institute
State software test parameter generation software test script and send to the target software of the target computer room and test
System is tested.
2. method according to claim 1, wherein, what the reception was input into web page
Software test parameter includes:
Receive the test of the software test basis script and correspondence configuration being input into the web page
Scenario parameters.
3. method according to claim 1, wherein, it is described will be described soft by http messages
Part test parameter is sent to before corresponding web server, and methods described also includes:
According to the instruction that establishment software test task is triggered in the web page, create software test and appoint
Business, and after the instruction for receiving startup task, the software test task is sent to corresponding web
Server.
4. method according to claim 1, wherein, methods described also includes:
Software test result, at least the one of software under testing deployment are checked in reception in the web page
The instruction of the performance test results of individual software server or the comparing result of different software, from web clothes
Business device obtains corresponding data and shows.
5. a kind of method for testing software, wherein, apply in web server, each portion of software under testing institute
The computer room of administration is provided with software testing system, and methods described includes:
The software test parameter that reception is input into by webpage and is sent by http messages, the software test
Parameter includes the target computer room that software under testing is disposed;
Software test script is generated according to the software test parameter;
The software test script is sent to the target software test system of the target computer room, by described
Target software test system is tested the software under testing according to the software test script.
6. method according to claim 5, wherein, it is described to send the software test script
Target software test system to the target computer room includes:
According to the target computer room that the software test parameter includes, it is determined that corresponding with the target computer room
Target software test system;
The software test script is sent to the target software test system.
7. method according to claim 5, wherein:
The software test parameter for being input into by webpage and being sent by http messages that receives is included:
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.
8. method according to claim 5, wherein, described by software test script hair
Before delivering to the target software test system of the target computer room, methods described also includes:
For the software test task for carrying pending mark, periodic detection simultaneously determines that the target software is surveyed
Test system meets the test performance indicated by the software test parameter.
9. a kind of software testing device, wherein, web terminal is deployed in, what each software under testing was disposed
Computer room is provided with software testing system, and described device includes:
First software test parameter receiver module, for receiving the software test being input into web page ginseng
Number, the software test parameter includes the target computer room that software under testing is disposed;
First software test parameter sending module, for being sent out the software test parameter by http messages
Corresponding web server is delivered to, software test script and is sent with being generated according to the software test parameter
Target software test system to the target computer room is tested.
10. a kind of software testing device, wherein, web server is deployed in, each software under testing institute
The computer room of deployment is provided with software testing system, and described device includes:
Second software test parameter receiver module, is input into and by http messages for receiving by webpage
The software test parameter of transmission, the software test parameter includes the target machine that software under testing is disposed
Room;
Software test script generation module, for generating software test pin according to the software test parameter
This;
Software test script sending module, for the software test script to be sent to the target machine
The target software test system in room, by the target software test system according to the software test script
The software under testing is tested.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510873151.2A CN106815141A (en) | 2015-12-02 | 2015-12-02 | A kind of method for testing software and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510873151.2A CN106815141A (en) | 2015-12-02 | 2015-12-02 | A kind of method for testing software and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106815141A true CN106815141A (en) | 2017-06-09 |
Family
ID=59105686
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510873151.2A Pending CN106815141A (en) | 2015-12-02 | 2015-12-02 | A kind of method for testing software and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106815141A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107678965A (en) * | 2017-09-30 | 2018-02-09 | 千寻位置网络有限公司 | It is automatically integrating method of testing and system, service terminal, memory |
CN108459850A (en) * | 2017-11-21 | 2018-08-28 | 广州视源电子科技股份有限公司 | method, device and system for generating test script |
CN109002398A (en) * | 2018-07-26 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of Auto-matching formula server software test terminal |
CN109144865A (en) * | 2018-08-14 | 2019-01-04 | 深圳壹账通智能科技有限公司 | Method, apparatus, computer equipment and the storage medium of head end test |
CN109284115A (en) * | 2017-07-20 | 2019-01-29 | 北京国双科技有限公司 | A kind of method and device generating tracker script |
CN109408379A (en) * | 2018-09-30 | 2019-03-01 | 福建星瑞格软件有限公司 | One kind is based on promotion jmeter interface automatic test data matching method |
CN109426611A (en) * | 2017-08-31 | 2019-03-05 | 贵州白山云科技股份有限公司 | A kind of method for testing software and device |
CN109815105A (en) * | 2017-11-20 | 2019-05-28 | 北京京东尚科信息技术有限公司 | Applied program testing method and device based on Btrace |
CN110032514A (en) * | 2019-04-11 | 2019-07-19 | 华夏天信(北京)智能低碳技术研究院有限公司 | A kind of mine motor can configure Red-Sensing monitoring software test method in remotely monitoring |
CN110134574A (en) * | 2019-04-19 | 2019-08-16 | 平安普惠企业管理有限公司 | A kind of software performance testing method, system, medium and electronic equipment |
CN110196806A (en) * | 2019-04-12 | 2019-09-03 | 石化盈科信息技术有限责任公司 | A kind of dynamic adaptation method of testing service device |
CN110865935A (en) * | 2019-10-24 | 2020-03-06 | 广州永融科技股份有限公司 | Automated testing auxiliary software system |
CN110874304A (en) * | 2018-09-03 | 2020-03-10 | 广州神马移动信息科技有限公司 | Pressure testing method, device, equipment and computer readable storage medium |
CN110895510A (en) * | 2019-11-19 | 2020-03-20 | 通号城市轨道交通技术有限公司 | Software testing method and device, electronic equipment and storage medium |
CN111447113A (en) * | 2020-03-25 | 2020-07-24 | 中国建设银行股份有限公司 | System monitoring method and device |
-
2015
- 2015-12-02 CN CN201510873151.2A patent/CN106815141A/en active Pending
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284115A (en) * | 2017-07-20 | 2019-01-29 | 北京国双科技有限公司 | A kind of method and device generating tracker script |
CN109426611A (en) * | 2017-08-31 | 2019-03-05 | 贵州白山云科技股份有限公司 | A kind of method for testing software and device |
CN107678965A (en) * | 2017-09-30 | 2018-02-09 | 千寻位置网络有限公司 | It is automatically integrating method of testing and system, service terminal, memory |
CN109815105A (en) * | 2017-11-20 | 2019-05-28 | 北京京东尚科信息技术有限公司 | Applied program testing method and device based on Btrace |
CN108459850A (en) * | 2017-11-21 | 2018-08-28 | 广州视源电子科技股份有限公司 | method, device and system for generating test script |
CN108459850B (en) * | 2017-11-21 | 2021-07-09 | 广州视源电子科技股份有限公司 | Method, device and system for generating test script |
CN109002398A (en) * | 2018-07-26 | 2018-12-14 | 郑州云海信息技术有限公司 | A kind of Auto-matching formula server software test terminal |
CN109144865A (en) * | 2018-08-14 | 2019-01-04 | 深圳壹账通智能科技有限公司 | Method, apparatus, computer equipment and the storage medium of head end test |
CN110874304A (en) * | 2018-09-03 | 2020-03-10 | 广州神马移动信息科技有限公司 | Pressure testing method, device, equipment and computer readable storage medium |
CN109408379A (en) * | 2018-09-30 | 2019-03-01 | 福建星瑞格软件有限公司 | One kind is based on promotion jmeter interface automatic test data matching method |
CN110032514A (en) * | 2019-04-11 | 2019-07-19 | 华夏天信(北京)智能低碳技术研究院有限公司 | A kind of mine motor can configure Red-Sensing monitoring software test method in remotely monitoring |
CN110196806A (en) * | 2019-04-12 | 2019-09-03 | 石化盈科信息技术有限责任公司 | A kind of dynamic adaptation method of testing service device |
CN110134574A (en) * | 2019-04-19 | 2019-08-16 | 平安普惠企业管理有限公司 | A kind of software performance testing method, system, medium and electronic equipment |
CN110865935A (en) * | 2019-10-24 | 2020-03-06 | 广州永融科技股份有限公司 | Automated testing auxiliary software system |
CN110895510A (en) * | 2019-11-19 | 2020-03-20 | 通号城市轨道交通技术有限公司 | Software testing method and device, electronic equipment and storage medium |
CN111447113A (en) * | 2020-03-25 | 2020-07-24 | 中国建设银行股份有限公司 | System monitoring method and device |
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 | |
CN105760286B (en) | Application database dynamic property detection method and detection device | |
CN111124850A (en) | MQTT server performance testing method, system, computer equipment and storage medium | |
CN108959059B (en) | Test method and test platform | |
CN110275822A (en) | Performance test methods, device, equipment and the storage medium of application programming interfaces | |
US20100153780A1 (en) | Techniques for generating a reusable test script for a multiple user performance test | |
CN110750458A (en) | Big data platform testing method and device, readable storage medium and electronic equipment | |
US20220198025A1 (en) | Web Attack Simulator | |
US8291068B2 (en) | Automatic protocol detection | |
CN106603296A (en) | Log processing method and device | |
CN108958992A (en) | test method and device | |
CN106547687A (en) | Application testing method, device and system | |
US20140330618A1 (en) | Interactive survey system | |
US10775751B2 (en) | Automatic generation of regular expression based on log line data | |
CN112463588A (en) | Automatic test system and method, storage medium and computing equipment | |
WO2017164856A1 (en) | Comparable user interface object identifications | |
CN111782317A (en) | Page testing method and device, storage medium and electronic device | |
CN115033876A (en) | Log processing method, log processing device, computer device and storage medium | |
CN109739704A (en) | A kind of interface test method, server-side and computer readable storage medium | |
CN110740081A (en) | Data visualization method for page performance of standard multiple companies | |
CN105045717B (en) | Test environment dispositions method, device and system | |
CN108399122A (en) | Test script operation method and system | |
CN114610689B (en) | Recording and analyzing method for request log in distributed environment | |
CN111158979A (en) | Service dial testing method, system, device and storage medium |
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 |