CN107357715A - Method for testing software and system - Google Patents
Method for testing software and system Download PDFInfo
- Publication number
- CN107357715A CN107357715A CN201610303846.1A CN201610303846A CN107357715A CN 107357715 A CN107357715 A CN 107357715A CN 201610303846 A CN201610303846 A CN 201610303846A CN 107357715 A CN107357715 A CN 107357715A
- Authority
- CN
- China
- Prior art keywords
- execution
- agency
- controller
- task
- test case
- 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
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
-
- 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
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention discloses a kind of method for testing software, comprising controller after task ID is received, test case and mission bit stream are obtained according to the task ID, and decompose the test case and obtain multiple execution steps, and to resource management center application proxy resources, and the execution agency arrived to application sends the execution step performed required for execution agency and mission bit stream, the execution step received is performed according to received task information by performing agency.The invention also discloses a kind of software testing system, enabling shortens the time tested test case, makes full use of controller resource and perform proxy resources, avoid resources idle.
Description
Technical field
The present invention relates to software test field, more particularly to a kind of method for testing software and system.
Background technology
With the continuous increase of software size and the increasingly increase of software complexity, software is tested
Demand is also increasing so that the automatic technology of software test is quietly risen in software test field.
At present when using the automatic technology of software test, usually used is serial test mode, so
And serial test mode has the problem of long to testing time of single test case, and surveyed due to serial
The test resource that examination mode uses is few, the problem of resources idle also be present.
The above is only used for auxiliary and understands technical scheme, does not represent and recognizes that the above is
Prior art.
The content of the invention
It is a primary object of the present invention to provide a kind of method for testing software and system, it is intended to solve existing skill
Test is carried out in art and testing time length and the technical problem of resources idle be present.
To achieve the above object, the present invention provides a kind of method for testing software, including:
Controller obtains test case and mission bit stream after task ID is received, according to the task ID;
The controller decomposes the test case and obtains multiple execution steps, and to resource management center Shen
Please proxy resources;
What the controller performed required for sending the execution agency to the execution agency that application is arrived performs step
Rapid and described mission bit stream, step is performed according to what mission bit stream execution received by the execution agency
Suddenly.
Preferably, methods described also includes:
After each execution step of the test case has performed, by the test case returning resources pond.
Preferably, methods described also includes:
After any one execution step of the test case has performed, the execution step will be performed
Perform agency and return the resource management center.
Preferably, methods described also includes:
The test result information for performing agency's feedback is received, the test result information is the execution
Agency performs what the execution step received obtained;
After the test result information of the multiple execution step is received, by the multiple execution step
Test result information is integrated into the test result file of the test case.
To achieve the above object, a kind of software testing system that the present invention also provides, including:Task center,
Resource management center, controller and perform agency;
The task center, for it is determined that after pending operation, to the resource management center Shen
Please controller resource, and to application to controller send the task identity ID that the operation includes;
The controller, for after task ID is received, obtaining test according to the task ID and using
Example and mission bit stream, decompose the test case and obtain multiple execution steps, and into the resource management
Heart application perform proxy resources, respectively to apply to execution agency send it is described perform act on behalf of required for hold
Capable execution step and the mission bit stream;
It is described to perform agency, for after receiving and performing step and mission bit stream, according to the task
Information performs the execution step;
The resource management center, for being responsible for controller resource and performing the application of proxy resources.
Preferably, the system also includes data server and file server, and the data server is used
In preserving the corresponding relation between task ID and mission bit stream, the file server is used to preserve task ID
The resource pool of corresponding relation and test case between test case;
Then the controller is additionally operable to after the task ID is received, and is obtained from the data server
Mission bit stream corresponding with the task ID, and obtained and the task ID pair from the file server
The test case answered.
Preferably, the execution agency is additionally operable to after the execution step received has been performed, and will be generated
Journal file and it is described perform step test result information feed back to the controller;
The test result information that the controller is additionally operable to receive is integrated into the test of the test case
Destination file, the journal file received and the test result file are sent to the data server
And the file server is preserved.
Preferably, the controller is additionally operable to register to the resource management center after start-up, and protects
Hold heartbeat;The execution agency is additionally operable to after start-up to the resource management center Registering modules type,
And keep heartbeat;
Then the resource management center is additionally operable to be responsible for the registration of the controller and the mould for performing agency
The registration of block type.
Preferably, the controller is additionally operable to after the test case to be decomposed into multiple execution steps,
It is determined that performing module type corresponding to step, and there is equal modules class to the resource management center application
Type performs agency, respectively to application to execution agency send it is described perform agency required for perform hold
Row step and the mission bit stream.
Preferably, it is described to perform agency specifically for receiving the task letter for performing step and performing step
After breath, determine whether corresponding module can use according to the module type of the execution step, if available,
The execution step is then performed by the module according to the mission bit stream.
Method for testing software provided by the invention, in the method, controller after task ID is received,
Test case and mission bit stream are obtained according to the task ID, and decomposes the test case and obtains multiple performing step
Suddenly, and to resource management center application proxy resources, and the execution agency arrived to application sends the execution generation
The execution step and mission bit stream performed required for reason, held by performing agency according to received task information
The execution step that row receives.By the way that test case is decomposed into multiple execution steps, and it is sent respectively to
Different execution agencies are performed, enabling shorten the time tested test case, and it is logical
The mode of concurrent testing is crossed, execution proxy resources can be made full use of, avoid resources idle.
Brief description of the drawings
Fig. 1 is the structural representation of software testing system in first embodiment of the invention;
Fig. 2 is the structural representation of software testing system in second embodiment of the invention;
Fig. 3 is the schematic flow sheet of method for testing software in third embodiment of the invention;
Fig. 4 is the schematic flow sheet of method for testing software in fourth embodiment of the invention;
Fig. 5 is the interaction flow schematic diagram of method for testing software in fifth embodiment of the invention.
The realization, functional characteristics and advantage of the object of the invention will be done further referring to the drawings in conjunction with the embodiments
Explanation.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not used to limit
The fixed present invention.
The problem of long testing time and resources idle be present due in the prior art, carrying out test to software.
Therefore, the present invention proposes a kind of method for testing software and system, it can effectively shorten the testing time,
Testing efficiency is improved, and test resource can be made full use of, avoids resources idle.
Referring to Fig. 1, be the structural representation of software testing system in first embodiment of the invention, including:
Task center 101, resource management center 102, controller 103 and execution agency 104;
Wherein, task center 101, for it is determined that after pending operation, to resource management center
102 application controller resources, and to apply to the task identity that includes of the transmission operation of controller 103
(ID, IDentity);
Controller 103, for after task ID is received, according to the task ID obtain test case and
Mission bit stream, decompose test case and obtain multiple execution steps, and can to the application of resource management center 102
Execution proxy resources, sent respectively to the execution agency 104 that application is arrived needed for execution agency 104
The execution step and mission bit stream to be performed;
Agency 104 is performed, for after execution step and mission bit stream is received, being held according to mission bit stream
The execution step that row receives;
Resource management center 102, for being responsible for controller resource and performing the application of proxy resources.
In embodiments of the present invention, multiple controllers 103 and multiple can be included in the software testing system
Agency 104 is performed, and controller 103 is after start-up, registration will be sent to resource management center 102 please
Ask, resource management center 102 will preserve the note of the controller 103 after the registration request is received
Volume information, to complete the registration of the controller 103, and keeps heartbeat.
In addition, agency 104 is performed after start-up, to the note of the sending module type of resource management center 102
Volume request, resource management center 102 will preserve execution agency's after the registration request is received
Log-on message and module type, to complete to perform the registration of agency 104, and keep heartbeat.
By the above-mentioned means, resource management center 102 can realize controller 103 and perform agency's 104
Registration, i.e. resource management center 102 is used for the registration for being responsible for controller, and performs the module class of agency
The registration of type.
In embodiments of the present invention, resource management center 102 can also to chartered controller 103 and
Agency 104 is performed to be managed, such as:Apply for asking for controller resource receiving task center 102
It is the controller 103 that the free time is distributed at task center 101 based on the request, and receiving controller after asking
It is that controller 103 distributes available execution generation based on the request after 103 applications perform the request of proxy resources
Reason 104.I.e. resource management center 102 is additionally operable to be responsible for controller resource and performs the application of proxy resources.
Wherein, the controller 103 and execution agency 104 that resource management center 102 distributes are in resource pipe
Registration is completed at reason center 102, and is kept the controller 103 of heartbeat and performed agency 104.
In embodiments of the present invention, task center 101 is additionally operable to receive task requests, is wrapped in the task requests
Containing operation and time of the operation is performed, if the time for performing the operation is real-time, shows that the request is
Real-time task is asked, and the operation in the task requests is added in lots queue by task center 101,
Wherein, the lots queue, which is used to preserve, needs the operation that performs, and task center 101 will also be according to
Putting in order in the lots queue determines the operation for being currently needed for processing successively, that is, determines pending
Operation.Or if the time of the execution operation included in task requests is timing, task center
101 are put into the operation in the task requests in timing operation queue, wherein, protected in the timing operation queue
The operation for needing to perform in the set time is deposited, and task center 101 will also be carried out to the timing operation queue
Monitoring, if monitoring to have operation in timing operation queue to when performing the time, the operation is moved into batch and made
Industry queue, to start the configuration processor to the operation.
In embodiments of the present invention, task center 101, will be to resource it is determined that after pending operation
Administrative center 101 applies for controller resource, and the controller 103 arrived to application sends the pending work
The task ID that industry includes.Wherein, if the operation includes a task ID, to resource management center 102
Apply for a controller 103, if the operation includes multiple tasks ID, to the Shen of resource management center 102
Please corresponding number controller 103, i.e. task center 101 is by the number of the task ID included based on operation
Apply for controller 103 so that for each task ID, there is a corresponding controller 103 to be based on
The task ID carries out test process, can be by the multiple tasks ID in an operation by such mode
Different controllers 103 is deployed to, realizes concurrent testing, when can effectively shorten the test to operation
Between, and test resource is made full use of, avoid resources idle.
In embodiments of the present invention, the controller 103 of task ID is received for each, is taken office in reception
It to be engaged in after ID, controller 103 will obtain test case and mission bit stream according to received task ID,
Decompose the test case and obtain multiple execution steps, and apply for that performing agency provides to resource management center 102
Source, send the execution step performed required for it and mission bit stream to the execution agency 104 that application is arrived respectively.
If for example, there are four execution steps, need to perform agency for each execution step application one, make
Obtain the execution step of test case can be deployed on different execution agencies and handled, can be effective
The shortening testing time, and it is multiple execution act on behalf of parallel processing by way of, test can be made full use of
Resource, avoid resources idle.
Wherein, test case is automatic test cases, is come out by automatic test cases tool design,
And test case is made up of execution step, therefore, controller 103 can use the test got
Example resolves into multiple execution steps.
Wherein, in mission bit stream comprising test case is tested when test parameter, such as ambient parameter,
The parameters such as configuration parameter.
Wherein, agency 104 is performed after execution step and mission bit stream is received, and will be believed according to the task
Breath performs the execution step received, for a test case, all distinguishes in each of which execution step
After having been performed by execution agency 104, then the test of the test case is completed.
In embodiments of the present invention, in software testing system comprising task center 101, resource management center 102,
Controller 103 and agency 104 is performed, and it is determined that after pending operation, task center 101 is to money
Controller resource is applied at source control center 102, and is sent in the operation and wrapped to the controller 103 applied
The task ID contained, test case and mission bit stream are obtained according to the task ID by controller 103, decomposing should
Test case obtains multiple execution steps, and applies for execution proxy resources to resource management center 102, point
The execution step performed required for execution agency 104 is not sent to the execution agency 104 that application is arrived and appoint
Business information, and perform the execution steps received according to received task information by performing agency 104.
By the way that test case is decomposed into multiple execution steps, and it is sent respectively to different execution agencies 104 and enters
Row performs, enabling shorten the time tested test case, and by way of concurrent testing,
Controller resource can be made full use of and perform proxy resources, avoid resources idle.
Based on first embodiment shown in Fig. 1, referring to Fig. 2, being software test in second embodiment of the invention
The structural representation of system, in this second embodiment, software testing system include as shown in Figure 1 first
Task center 101, controller 103, execution agency 104 and resource management center 102 in embodiment.
And it is similar to the content described in first embodiment shown in Fig. 1, do not repeat herein.
In embodiments of the present invention, software testing system also includes:Also include data server 201 and text
Part server 202, data server 201 are used to preserve the corresponding relation between task ID and mission bit stream,
File server 202 is used for the money for preserving corresponding relation and test case between task ID and test case
Source pond;
And controller 103 is additionally operable to after task ID is received, obtains and appoint from data server 201
Mission bit stream corresponding to business ID, and obtain test case corresponding with task ID from file server 202.
I.e. controller 103 can be obtained respectively from data server 201 and file server 202 mission bit stream and
Test case.
Wherein, it is that test case is stored by resource pool in file server 202, controller 103 can
With the corresponding relation between task ID and test case saved in first locating file server 202,
To determine test case corresponding with received task ID, and the test case is obtained from resource pool.
It should be noted that in actual applications, can also be by data server 201 and file server
202 are arranged to same server, i.e., preserve on the same server between task ID and mission bit stream
Corresponding relation, and preserve the resource pool of the corresponding relation and test case between task ID and test case.
In embodiments of the present invention, agency 104 is performed to be additionally operable to after the execution step received has been performed,
The journal file of generation and the test result information for performing step are fed back into controller 103;And controller
103 test result informations for being additionally operable to receive are integrated into the test result file of test case, will receive
To journal file and test result file be sent to data server 201 and file server 202 is carried out
Preserve.For example, if execution step A-C is sent respectively to execution by controller 103 acts on behalf of A-C, hold
Row, which acts on behalf of A, to have performed the journal file A and test result information generated after the execution step A that receives
A is sent to controller 103, performs and acts on behalf of B and will perform the day generated after the execution step B that receives
Will file B and test result information B is sent to controller 103, and execution, which is acted on behalf of C and will performed, to be received
Execution step B after the journal file C that generates and test result information C be sent to controller 103, control
Test result information A-C is integrated into a test result file by device 103 processed, and by journal file A-C
And test result file is sent to data server 201 and file server 202, by data server 201
And file server 202 preserves journal file A-C and the test result file.
In embodiments of the present invention, controller 103 test case is decomposed into it is multiple execution steps after,
In order to perform agency 104 accordingly to the plurality of execution step application respectively, controller 103 will determine each
Module type corresponding to individual execution step, and there is equal modules class to the application of resource management center 102
Type performs agency, sends corresponding execution step to the execution agency 104 that application is arrived and performs step
Mission bit stream.For example, if module type corresponding to performing step 1-3 difference is A-C, for performing step
Rapid 1, it is necessary to apply for the execution agency 104 that module type is A, for performing step 2, it is necessary to apply for mould
The execution agency 104 that block type is B, for performing step 3, it is necessary to apply for the execution that module type is C
Agency 104.And resource management center 102 is after application request is received, the module that will apply as needed
Type performs agency 104 to perform step distribution, enabling is each execution step application to having it
The execution agency 104 of required module type.And perform the execution step that agency 104 receives in execution
Before, whether the module for determining to perform the execution step can use.
Wherein, it is component, such as QTP, SilkTest etc., and execution agency 104 to perform the module in agency
When performing the execution step received, performed by invocation component.It should be noted that
Agency 104 is performed when invocation component is run and performs step, it is thus necessary to determine that whether the component has been started up,
Illustrate that the component is currently unavailable, it is necessary to wait the component resources to be released, if the group if having been started up
Part is not actuated, then the component can be called to perform the execution step received according to mission bit stream.
In embodiments of the present invention, data server 201 and text are also included in the framework of software testing system
Part server 202, it is respectively used to store tasks information and test case so that when carrying out software test,
Mission bit stream and test required for being obtained respectively from data server 201 and file server 202
Use-case, data are provided for software test.And perform agency 104 performed the execution step that receives it
Afterwards, the journal file generated in implementation procedure and test result information are sent to controller 103 so that control
The test result information for belonging to same test case is integrated into the test knot of the test case by device 103 processed
Fruit file, and the journal file for belonging to the test case received and the test result file of integration are sent out
Give data server 201 and file server 202, enabling the effective life preserved in test process
Into journal file and preserve test result.
In order to be better understood from the technical scheme in the embodiment of the present invention, referring to Fig. 3, being the present invention the 3rd
The schematic flow sheet of method for testing software in embodiment, the method for testing software are from the angle of controller 103
Degree description, and the method for testing software includes:
Step 301, controller after task ID is received, according to the task ID obtain test case and
Mission bit stream;
Step 302, the controller decompose the test case and obtain multiple execution steps, and to resource pipe
Apply for proxy resources in reason center;
Step 303, the controller send described perform to the execution agency that application is arrived and act on behalf of required perform
Execution step and the mission bit stream, by it is described perform agency according to the mission bit stream perform receive
Execution step.
In embodiments of the present invention, the controller 103 of task ID is received for each, is taken office in reception
It to be engaged in after ID, controller 103 will obtain test case and mission bit stream according to received task ID,
Decompose the test case and obtain multiple execution steps, and apply for that performing agency provides to resource management center 102
Source, send the execution step performed required for it and mission bit stream to the execution agency 104 that application is arrived respectively.
If for example, there are four execution steps, need to perform agency for each execution step application one, make
Obtain the execution step of test case can be deployed on different execution agencies and handled, can be effective
The shortening testing time, and it is multiple execution act on behalf of parallel processing by way of, test can be made full use of
Resource, avoid resources idle.
Wherein, test case is automatic test cases, is come out by automatic test cases tool design,
And test case is made up of execution step, therefore, controller 103 can use the test got
Example resolves into multiple execution steps.
Wherein, in mission bit stream comprising test case is tested when test parameter, such as ambient parameter,
The parameters such as configuration parameter.
Wherein, agency 104 is performed after execution step and mission bit stream is received, and will be believed according to the task
Breath performs the execution step received, for a test case, all distinguishes in each of which execution step
After having been performed by execution agency 104, then the test of the test case is completed.
In embodiments of the present invention, controller 103 is by test case by being decomposed into multiple execution steps,
And it is sent respectively to different execution agencies and is performed, enabling shortening is tested test case
Time, and by way of concurrent testing, execution proxy resources can be made full use of, avoid resource not busy
Put.
Further, in order to realize the recycling of resource, the controller in 3rd embodiment shown in Fig. 3
103 also following steps will be executed:
After each execution step of the test case has performed, by the test case returning resources pond.
In embodiments of the present invention, saved in file server 202 between task ID and test case
Corresponding relation, and test case is stored in the resource pool of test case, controller 103 is based on appointing
After corresponding relation between business ID and test case determines test case, phase will be obtained from the resource pool
The test case answered.
Controller 103 is getting test case, and is based on after test case completion software test,
By the test case returning resources pond, it is easy to the recycling of test case.
Further, in order to realize upgrading in time for test resource, the control in 3rd embodiment shown in Fig. 3
Also following steps will be executed for device 103 processed:
After any one execution step of the test case has performed, the execution step will be performed
Perform agency and return the resource management center.
In embodiments of the present invention, each execution step is being sent respectively to corresponding hold by controller 103
Row agency, and each performs agency after completing to perform, and will all return to test result information, controls
If device 103 receives test result information, show that the execution agency for sending the test result information is complete
Into the execution for performing step, in idle condition, the execution is acted on behalf of returning resources management by controller 103
Center, enabling be updated, be easy to as it to the execution agency in resource management center 102 in time
He performs proxy resources at the distribution of controller 103.
Based on 3rd embodiment shown in Fig. 3, referring to Fig. 4, being software test in fourth embodiment of the invention
The implementation process schematic diagram of method, this method include:
Step 401, controller after task ID is received, according to the task ID obtain test case and
Mission bit stream;
Step 402, the controller decompose the test case and obtain multiple execution steps, and to resource pipe
Apply for proxy resources in reason center;
Step 403, the controller send described perform to the execution agency that application is arrived and act on behalf of required perform
Execution step and the mission bit stream, by it is described perform agency according to the mission bit stream perform receive
Execution step;
Step 401 to step 403 respectively with the step 301 in 3rd embodiment shown in Fig. 3 to step 303
The content of description is similar, does not repeat this time.
Step 404, the test result information for performing agency's feedback is received, the test result information is
It is described to perform what the execution step that agency's execution receives obtained;
Step 405, receive it is the multiple execution step test result information after, held the multiple
The test result information of row step is integrated into the test result file of the test case.
In embodiments of the present invention, controller 103 sends this in the execution agency arrived to application and performs agency
After the execution step and mission bit stream of required execution, performing agency 104 will hold according to the mission bit stream
The execution step that row receives, and after completion is performed, execution agency 104 will be to controller 103
Feedback test object information, survey of the controller 103 in all execution steps for receiving a test case
After test result information, all test result informations are integrated into the test result file of the test case,
In addition, controller 103 will also receive the journal files for performing the feedback of agency 104, and will receive
Journal file and the test result file of synthesis are sent to data server 201 and file server 202 enters
Row preserves.For example, if controller 103 is sent respectively to step A-C is performed execution and acts on behalf of A-C,
Perform and act on behalf of A and will perform the journal file A generated after the executions step A that receives and test result letter
Breath A is sent to controller 103, performs and acts on behalf of B and will perform what is generated after the execution step B that receives
Journal file B and test result information B is sent to controller 103, and C is acted on behalf of in execution will perform reception
To execution step B after the journal file C that generates and test result information C be sent to controller 103,
Test result information A-C is integrated into a test result file by controller 103, and by journal file A-C
And test result file is sent to data server 201 and file server 202, by data server 201
And file server 202 preserves journal file A-C and the test result file.
In embodiments of the present invention, controller 103 test case is decomposed into it is multiple execution steps after,
In order to perform agency 104 accordingly to the plurality of execution step application respectively, controller 103 will determine each
Module type corresponding to individual execution step, and there is equal modules class to the application of resource management center 102
Type performs agency, sends corresponding execution step to the execution agency 104 that application is arrived and performs step
Mission bit stream.For example, if module type corresponding to performing step 1-3 difference is A-C, for performing step
Rapid 1, it is necessary to apply for the execution agency 104 that module type is A, for performing step 2, it is necessary to apply for mould
The execution agency 104 that block type is B, for performing step 3, it is necessary to apply for the execution that module type is C
Agency 104.And resource management center 102 is after application request is received, the module that will apply as needed
Type performs agency 104 to perform step distribution, enabling is each execution step application to having it
The execution agency 104 of required module type.And perform the execution step that agency 104 receives in execution
Before, whether the module for determining to perform the execution step can use.
Wherein, it is component, such as QTP, SilkTest etc., and execution agency 104 to perform the module in agency
When performing the execution step received, performed by invocation component.It should be noted that
Agency 104 is performed when invocation component is run and performs step, it is thus necessary to determine that whether the component has been started up,
Illustrate that the component is currently unavailable, it is necessary to wait the component resources to be released, if the group if having been started up
Part is not actuated, then the component can be called to perform the execution step received according to mission bit stream.
It should be noted that execution step has been performed performing agency 103, and controller 103 performs this
After agency 104 returns to resource management center 102, resource management center 102 will be based on the execution generation
The module type of reason is classified to performing agency, and records the number for the execution agency for belonging to the type.
In embodiments of the present invention, controller 103 is by test case by being decomposed into multiple execution steps,
And it is sent respectively to different execution agencies and is performed, enabling shortening is tested test case
Time, and by way of concurrent testing, execution proxy resources can be made full use of, avoid resource not busy
Put.
In order to be better understood from carrying out based on the software testing system in second embodiment shown in Fig. 2 of the present invention
Software test, method for testing software in the embodiment of the present invention is explained below, referring to Fig. 5, being the present invention
The interaction flow schematic diagram of the method for software test in 5th embodiment, including:
Step 501, task center 101 are in the controller it is determined that after pending operation, arrived to application
The task ID that 103 transmission operations include;
In embodiments of the present invention, multiple controllers 103 and multiple execution generations are included in software testing system
Reason 104, wherein, controller 103 after start-up, will send registration request to resource management center 102,
Resource management center 102 will preserve the log-on message of the controller 103 after registration request is received,
To complete the registration of the controller 103, and keep heartbeat.
In addition, agency 104 is performed after start-up, to the sending module type of resource management center 102
Registration request, resource management center 102 will preserve this and perform agency after the registration request is received
Log-on message and module type, to complete to perform the registration of agency 104, and keep heartbeat.
By the above-mentioned means, resource management center 102 can realize controller 103 and perform agency 104
Registration, i.e. resource management center 102 is used to be responsible for the registration of controller, and performs the module of agency
The registration of type.
In embodiments of the present invention, resource management center 102 can also to chartered controller 103 and
Agency 104 is performed to be managed, after the request of the application of task center 102 controller resource is received,
It is the controller 103 that the free time is distributed at task center 101 based on the request, and is receiving the Shen of controller 103
It is that controller 103 distributes available execution agency 104 based on the request after the request that please perform proxy resources.
I.e. resource management center 102 is additionally operable to be responsible for controller resource and performs the application of proxy resources.Wherein,
The controller 103 and execution agency 104 that resource management center 102 distributes are in resource management center
102 complete registration, and keep the controller 103 of heartbeat and perform agency 104.
In embodiments of the present invention, task center 101 is additionally operable to receive task requests, is wrapped in the task requests
Containing operation and time of the operation is performed, if the time for performing the operation is real-time, shows that the request is
Real-time task is asked, and the operation in the task requests is added in lots queue by task center 101,
Wherein, the lots queue, which is used to preserve, needs the operation that performs, and task center 101 will also be according to
Putting in order in the lots queue determines the operation for being currently needed for processing successively, that is, determines pending
Operation.Or if the time of the execution operation included in task requests is timing, task center
101 are put into the operation in the task requests in timing operation queue, wherein, protected in the timing operation queue
The operation for needing to perform in the set time is deposited, and task center 101 will also be carried out to the timing operation queue
Monitoring, if monitoring to have operation in timing operation queue to when performing the time, the operation is moved into batch and made
Industry queue, to start the configuration processor to the operation.
In embodiments of the present invention, task center 101 will be arrived it is determined that after pending operation to application
Controller 103 send the task ID that includes of operation.
Step 502, controller 103 obtain mission bit stream corresponding with task ID from data server 201,
And obtain test case corresponding with task ID from file server 202;
In embodiments of the present invention, data server 201 is used to preserve between task ID and mission bit stream
Corresponding relation, file server 202 are used to preserve corresponding relation and the survey between task ID and test case
The resource pool of example on probation.
Wherein, after controller 103 receives task ID, obtained from data server 201 and task ID
Corresponding mission bit stream, and obtain test case corresponding with task ID from file server 202.Control
Device 103 processed can obtain mission bit stream and test respectively from data server 201 and file server 202
Use-case.
It should be noted that in actual applications, can also be by data server 201 and file server
202 are arranged to same server, i.e., preserve on the same server between task ID and mission bit stream
Corresponding relation, and preserve the resource pool of the corresponding relation and test case between task ID and test case.
Test case is decomposed into multiple execution steps by step 503, controller 103;
Step 504, controller are sent to the execution agency 104 that application is arrived performs step and mission bit stream;
Step 505, perform the execution step that agency 104 receives according to mission bit stream execution;
In embodiments of the present invention, the controller 103 of task ID is received for each, is being received
After task ID, controller 103 will obtain test case and mission bit stream according to received task ID,
Decompose the test case and obtain multiple execution steps, and apply for that performing agency provides to resource management center 102
Source, send the execution step performed required for it and mission bit stream to the execution agency 104 that application is arrived respectively.
If for example, there are four execution steps, need to perform agency for each execution step application one, make
Obtain the execution step of test case can be deployed on different execution agencies and handled, can be effective
The shortening testing time, and by way of parallel processing, test resource can be made full use of, avoid providing
Leave unused in source.
Wherein, test case is automatic test cases, is come out by automatic test cases tool design,
And test case is made up of execution step, therefore, controller 103 can use the test got
Example resolves into multiple execution steps.
Wherein, in mission bit stream comprising test case is tested when test parameter, such as ambient parameter,
The parameters such as configuration parameter.
Wherein, agency 104 is performed after execution step and mission bit stream is received, and will be believed according to the task
Breath performs the execution step received, for a test case, all distinguishes in each of which execution step
After having been performed by execution agency 104, then the test of the test case is completed.
In embodiments of the present invention, controller 103 will determine each execution when applying for that execution is acted on behalf of
Module type corresponding to step, and there is holding for equal modules type to the application of resource management center 102
Row agency, the task letter that step is performed corresponding to 104 transmissions and performs step is acted on behalf of to the execution that application is arrived
Breath.If for example, perform step 1-3 respectively corresponding to module type be A-C, for execution step 1,
Need to apply for the execution agency 104 that module type is A, for performing step 2, it is necessary to apply for module type
104 are acted on behalf of for B execution, for performing step 3, it is necessary to apply for that module type performs agency for C
104.And resource management center 102 is after application request is received, the module type that will apply as needed
Agency 104 is performed for execution step distribution, enabling performs step application to needed for it for each
The execution agency 104 for the module type wanted.And agency 104 is performed before the execution step received is performed,
Whether the module for determining to perform the execution step can use.
Wherein, it is component, such as QTP, SilkTest etc., and execution agency 104 to perform the module in agency
When performing the execution step received, performed by invocation component.It should be noted that
Agency 104 is performed when invocation component is run and performs step, it is thus necessary to determine that whether the component has been started up,
Illustrate that the component is currently unavailable, it is necessary to wait the component resources to be released, if the group if having been started up
Part is not actuated, then the component can be called to perform the execution step received according to mission bit stream.
Step 506, perform journal file from generation to controller 103 and test result letter that agency 104 feeds back
Breath;
Step 507, controller 103 will integrate obtained test result file and the journal file received is sent out
Give data server 201;
Step 508, controller 103 will integrate obtained test result file and the journal file received is sent out
Give file server 202.
In embodiments of the present invention, perform agency 104 be additionally operable to performed the execution step that receives it
Afterwards, the test result information of the journal file of generation and execution step is fed back into controller 103;And control
The test result information that device 103 is additionally operable to receive is integrated into the test result file of test case, will
The journal file and test result file received is sent to data server 201 and file server 202
Preserved.For example, if controller 103 is sent respectively to step A-C is performed execution and acts on behalf of A-C,
Then perform and act on behalf of A and will perform the journal file A generated after the execution step A that receives and test result
Information A is sent to controller 103, performs to act on behalf of after B will perform the execution step B that receives and generates
Journal file B and test result information B be sent to controller 103, execution, which is acted on behalf of C and will performed, to be connect
The journal file C and test result information C generated after the execution step B received is sent to controller 103,
Test result information A-C is integrated into a test result file by controller 103, and by journal file A-C
And test result file is sent to data server 201 and file server 202, by data server 201
And file server 202 preserves journal file A-C and the test result file.
It should be noted that dotted portion is response in embodiment illustrated in fig. 3.
In embodiments of the present invention, it is determined that after pending operation, task center 101 is to resource pipe
Controller resource is applied at reason center 102, and sends what is included in the operation to the controller 103 applied
Task ID, test case and mission bit stream are obtained according to the task ID by controller 103, decompose the test
Use-case obtains multiple execution steps, and applies to resource management center 102 performing proxy resources, respectively to
The execution agency 104 applied sends the execution step performed required for execution agency 104 and task letter
Breath, and perform the execution step received according to received task information by performing agency 104.Pass through
Test case is decomposed into multiple execution steps, and is sent respectively to different execution agencies 104 and is held
OK, enabling shorten the time tested test case, and by way of concurrent testing, energy
Enough make full use of controller resource and perform proxy resources, avoid resources idle.
In the embodiment shown in Fig. 1 to Fig. 5, controller 103 and perform agency 104 can pass through to
The mode that resource management center 102 sends registration message is completed to register, wherein, note is included in registration message
Volume information.And upon registration, it is also necessary to send detection message come detect registered controller 103 and
Whether online agency 104 is performed, to keep heartbeat.
(1) flow of the transmission registration request of controller 103 is as follows:
And the flow of the reception registration response of controller 103 is as follows:
(2) flow for performing the transmission registration request of agency 104 is as follows:
The flow for performing the reception registration response of agency 104 is as follows:
(3) flow of heartbeat detection is as follows:
<HeartBeat>
<msg>RUOK</msg>
</HeartBeat>
The flow of heartbeat response is as follows:
<HeartBeat>
<queueNum>0</queueNum>
</HeartBeat>
In Fig. 1 into embodiment illustrated in fig. 3, the flow of task center application controller resource is as follows:
<ResourceReq>
<type>controller</type>
</ResourceReq>
The flow that task center meets with a response is as follows:
In Fig. 1 into embodiment illustrated in fig. 3, task center 101 sends task ID to controller 103
Flow is as follows:
Wherein Uid:It is unique mark field;jobid:Represent task ID;
The responding process of controller 103 is as follows:
Wherein returnCode:It is return code, represents to have been received by for 0, represents processed for 1;msg:
The specifying information that the processing of expression task returns.
In Fig. 1 into Fig. 3, the flow that the application of controller 103 performs agency 104 is as follows:
The request of controller 103 performs proxy resources:
<ResourceReq>
<type>agent</type>
</ResourceReq>
Controller 103 receives response:
Through the above description of the embodiments, those skilled in the art can be understood that above-mentioned
Embodiment method can add the mode of required general hardware platform to realize by software, naturally it is also possible to logical
Cross hardware, but the former is more preferably embodiment in many cases.It is of the invention based on such understanding
The part that technical scheme substantially contributes to prior art in other words can in the form of software product body
Reveal and, the computer software product is stored in storage medium (such as ROM/RAM, magnetic disc, a light
Disk) in, including some instructions to cause a station terminal equipment (can be mobile phone, computer, service
Device, air conditioner, or network equipment etc.) method that performs each embodiment of the present invention.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every
The equivalent structure or equivalent flow conversion made using description of the invention and accompanying drawing content, or directly or
Connect and be used in other related technical areas, be included within the scope of the present invention.
Claims (10)
- A kind of 1. method for testing software, it is characterised in that including:Controller obtains test case and mission bit stream after task ID is received, according to the task ID;The controller decomposes the test case and obtains multiple execution steps, and to resource management center Shen Please proxy resources;What the controller performed required for sending the execution agency to the execution agency that application is arrived performs step Rapid and described mission bit stream, step is performed according to what mission bit stream execution received by the execution agency Suddenly.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:After each execution step of the test case has performed, by the test case returning resources pond.
- 3. according to the method for claim 1, it is characterised in that methods described also includes:After any one execution step of the test case has performed, the execution step will be performed Perform agency and return the resource management center, with realize performed in the resource management center agency's and Shi Gengxin.
- 4. according to the method described in claims 1 to 3 any one, it is characterised in that methods described is also Including:The test result information for performing agency's feedback is received, the test result information is the execution Agency performs what the execution step received obtained;After the test result information of the multiple execution step is received, by the multiple execution step Test result information is integrated into the test result file of the test case.
- A kind of 5. software testing system, it is characterised in that including:Task center, resource management center, Controller and perform agency;The task center, for it is determined that after pending operation, to the resource management center Shen Please controller resource, and to application to controller send the task identity ID that the operation includes;The controller, for after task ID is received, obtaining test according to the task ID and using Example and mission bit stream, decompose the test case and obtain multiple execution steps, and into the resource management Heart application perform proxy resources, respectively to apply to execution agency send it is described perform act on behalf of required for hold Capable execution step and the mission bit stream;It is described to perform agency, for after receiving and performing step and mission bit stream, according to the task Information performs the execution step;The resource management center, for being responsible for controller resource and performing the application of proxy resources.
- 6. system according to claim 5, it is characterised in that the system also includes data, services Device and file server, the data server are corresponding between task ID and mission bit stream for preserving Relation, the file server are used to preserve corresponding relation and the test between task ID and test case The resource pool of use-case;Then the controller is additionally operable to after the task ID is received, and is obtained from the data server Mission bit stream corresponding with the task ID is taken, and is obtained and the task ID from the file server Corresponding test case.
- 7. system according to claim 6, it is characterised in that the execution agency is additionally operable to holding Go after the execution step received, by the journal file of generation and the test result for performing step Feedback of the information gives the controller;The test result information that the controller is additionally operable to receive is integrated into the test of the test case Destination file, the journal file received and the test result file are sent to the data server And the file server is preserved.
- 8. system according to claim 5, it is characterised in that the controller is additionally operable to starting The backward resource management center registration, and keep heartbeat;The execution agency is additionally operable in startup The backward resource management center Registering modules type, and keep heartbeat;Then the resource management center is additionally operable to be responsible for the registration of the controller and the mould for performing agency The registration of block type.
- 9. system according to claim 8, it is characterised in that the controller is additionally operable to by institute Test case is stated to be decomposed into after multiple execution steps, it is determined that module type corresponding to step is performed, and to The resource management center application has the agency that performs of equal modules type, the execution arrived respectively to application Agency sends described perform and acts on behalf of the required execution step performed and the mission bit stream.
- 10. system according to claim 8, it is characterised in that the execution agency is specifically used for After the mission bit stream for performing step and execution step is received, according to the module class of the execution step Type determines whether corresponding module can use, if available, is held according to the mission bit stream by the module The row execution step.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610303846.1A CN107357715A (en) | 2016-05-09 | 2016-05-09 | Method for testing software and system |
PCT/CN2017/079617 WO2017193737A1 (en) | 2016-05-09 | 2017-04-06 | Software testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610303846.1A CN107357715A (en) | 2016-05-09 | 2016-05-09 | Method for testing software and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107357715A true CN107357715A (en) | 2017-11-17 |
Family
ID=60266932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610303846.1A Pending CN107357715A (en) | 2016-05-09 | 2016-05-09 | Method for testing software and system |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107357715A (en) |
WO (1) | WO2017193737A1 (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108804311A (en) * | 2018-05-07 | 2018-11-13 | 微梦创科网络科技(中国)有限公司 | A kind of method and device executing test file |
CN109460359A (en) * | 2018-10-26 | 2019-03-12 | 深圳市鼎阳科技有限公司 | A kind of software version test method and system for embedded device |
CN110262967A (en) * | 2019-06-05 | 2019-09-20 | 微梦创科网络科技(中国)有限公司 | A kind of log-output method and device applied to automatic test |
CN110413502A (en) * | 2018-04-28 | 2019-11-05 | 北京京东尚科信息技术有限公司 | Program testing method and system, computer system and computer readable storage medium storing program for executing |
CN113721562A (en) * | 2021-07-22 | 2021-11-30 | 南京轶诺科技有限公司 | Automatic configuration method for production line test resources |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110059008A (en) * | 2019-04-12 | 2019-07-26 | 广东电网有限责任公司信息中心 | A kind of test cloud platform system and test method towards power business |
CN111651349B (en) * | 2020-05-26 | 2023-07-14 | 泰康保险集团股份有限公司 | Test method and device |
EP4208261A1 (en) | 2020-09-03 | 2023-07-12 | Revolution Medicines, Inc. | Use of sos1 inhibitors to treat malignancies with shp2 mutations |
CN112398707B (en) * | 2020-11-03 | 2022-08-30 | 平安普惠企业管理有限公司 | Distributed automatic test management method, device, equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101246448A (en) * | 2008-03-17 | 2008-08-20 | 中兴通讯股份有限公司 | Automatized script implementing method |
CN101847123B (en) * | 2010-05-26 | 2012-11-21 | 北京航空航天大学 | Construction method of airborne computer software testing general system |
CN104536888A (en) * | 2014-12-24 | 2015-04-22 | 网易(杭州)网络有限公司 | Game testing method and system for mobile devices |
-
2016
- 2016-05-09 CN CN201610303846.1A patent/CN107357715A/en active Pending
-
2017
- 2017-04-06 WO PCT/CN2017/079617 patent/WO2017193737A1/en active Application Filing
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413502A (en) * | 2018-04-28 | 2019-11-05 | 北京京东尚科信息技术有限公司 | Program testing method and system, computer system and computer readable storage medium storing program for executing |
CN108804311A (en) * | 2018-05-07 | 2018-11-13 | 微梦创科网络科技(中国)有限公司 | A kind of method and device executing test file |
CN109460359A (en) * | 2018-10-26 | 2019-03-12 | 深圳市鼎阳科技有限公司 | A kind of software version test method and system for embedded device |
CN110262967A (en) * | 2019-06-05 | 2019-09-20 | 微梦创科网络科技(中国)有限公司 | A kind of log-output method and device applied to automatic test |
CN113721562A (en) * | 2021-07-22 | 2021-11-30 | 南京轶诺科技有限公司 | Automatic configuration method for production line test resources |
Also Published As
Publication number | Publication date |
---|---|
WO2017193737A1 (en) | 2017-11-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107357715A (en) | Method for testing software and system | |
CN109739663B (en) | Job processing method, apparatus, device and computer readable storage medium | |
CN108256118B (en) | Data processing method, device, system, computing equipment and storage medium | |
CN101262498B (en) | A distributed message call method and device | |
CN105227595B (en) | A kind of message method and equipment | |
CN109634730A (en) | Method for scheduling task, device, computer equipment and storage medium | |
CN104850491A (en) | Software test method, equipment and system | |
CN110659131A (en) | Task processing method, electronic device, computer device, and storage medium | |
CN108037984A (en) | Method for managing resource, system and the readable storage medium storing program for executing of data analysis | |
CN113342503B (en) | Real-time progress feedback method, device, equipment and storage medium | |
CN105335313A (en) | Basic data transmission method and apparatus | |
CN101562622B (en) | Method for executing user request and corresponding server thereof | |
CN112003986B (en) | Voice outbound method, device, computer equipment and storage medium | |
CN117273628A (en) | Business processing system, method, device and medium based on flow automation | |
CN112035218A (en) | Method, device and equipment for providing model service | |
US9323509B2 (en) | Method and system for automated process distribution | |
CN113342520B (en) | Cross-cluster remote continuous release method and system based on federal implementation | |
CN115437647A (en) | Multi-frame-adaptive micro-service deployment method, device, terminal and storage medium | |
CN112333270B (en) | Method and system for dynamic routing of micro-services | |
CN112637201B (en) | Method, device, equipment and system for processing request of web server | |
CN114443215A (en) | Service application deployment method and device, computer equipment and storage medium | |
CN111294250B (en) | Pressure testing method, device and system | |
CN115915289A (en) | Method, device, network element and medium for determining strategy or allocating resources of computing task | |
CN113743425A (en) | Method and device for generating classification model | |
US8549537B2 (en) | Middleware bridge system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20171117 |