[summary of the invention]
The embodiment of the invention provides a kind of test and management method and system and computer readable storage mediums, it is intended to solve
The manual maintenance technical problem cumbersome with test case is updated in the related technology, can effectively simplify in automatic test
Test case updates step, promotes the convenience that test case updates in automatic test.
In a first aspect, the embodiment of the invention provides a kind of test and management methods, comprising: page end, which obtains, surveys automation
The maintenance request of the test case of examination;The maintenance request is sent to the service for being stored with the test case by the page end
End;The server-side judges whether the page end has and is safeguarded to the test case according to the maintenance request
Permission;When the page end is with the permission safeguarded to the test case, the server-side is asked according to the maintenance
It asks, the test case is safeguarded;The server-side, which sends maintenance to the page end, terminates response.
In the above embodiment of the present invention, optionally, the maintenance request includes the subscriber identity information of the page end
With the attribute information of the test case, wherein the attribute information of the test case includes name information, number information and function
It is one or more in energy type;Then the server-side judges whether the page end has to institute according to the maintenance request
The step of stating the permission that test case is safeguarded, specifically includes: the server-side is according to user's body of the page end
Part information, determining that the page end is corresponding can maintenance use case set;Whether there can be category in maintenance use case set described in judgement
Property information and the maintenance request instruction the test case the consistent target detection use-case of attribute information, wherein in institute
It states in the case where can having the target detection use-case in maintenance use case set, determines that the page end has to test use
The permission that example is safeguarded.
In the above embodiment of the present invention, optionally, the page end includes test module and the test and management side
Method further include: the page end obtains automation test request by the test module, and the automatic test is requested
It is sent to the server-side;The server-side is requested according to the automatic test, in mounted automatization test system
The test case indicated in the automatic test request is executed, test result is obtained.
In the above embodiment of the present invention, optionally, the page end includes test report module and the testing tube
Reason method further include: the test result is sent to the page end by the server-side;The page end is according to the execution
As a result, generating test report;The page end shows the test report by the test report module.
In the above embodiment of the present invention, optionally, the page end includes annotations module and the test and management side
Method further include: the page end shows oneself in the functional information and the server-side of the page end by the annotations module
The basic information of dynamicization test macro.
In the above embodiment of the present invention, optionally, the page end includes frame maintenance module and the testing tube
Reason method further include: the page end obtains frame maintenance request by the frame maintenance module, and the frame is safeguarded
Request is sent to the server-side;The server-side is according to the frame maintenance request, to mounted automatization test system
System framework safeguarded;The page end includes environment configurations module and the test and management method further include: described
Page end obtains environment configurations request by the environment configurations module, and environment configurations request is sent to the service
End;The server-side is requested according to the environment configurations, is mapped out the work environment for the mounted automatization test system.
Second aspect, the embodiment of the invention provides a kind of test and management system, including page end and server-side, the nets
Page end includes: that maintenance request obtains module, for obtaining the maintenance request to the test case of automatic test;Maintenance request hair
Module is sent, for the maintenance request to be sent to the server-side for being stored with the test case;The server-side includes: permission
Judgment module safeguards the test case for according to the maintenance request, judging whether the page end has
Permission;Test case maintenance module, for when the page end has the permission safeguarded to the test case, according to
The maintenance request safeguards the test case;The server-side, which is also used to send maintenance to the page end, to be terminated
Response.
In the above embodiment of the present invention, optionally, the maintenance request includes the subscriber identity information of the page end
With the attribute information of the test case, wherein the attribute information of the test case includes name information, number information and function
It is one or more in energy type;Then the permission judgment module of the server-side is specifically used for: according to the page end
The subscriber identity information, determine the page end it is corresponding can maintenance use case set, and judgement described in can maintenance use case collection
The consistent target detection of attribute information of the test case whether indicated with attribute information and the maintenance request in conjunction
Use-case, wherein it is described can have the target detection use-case in maintenance use case set in the case where, determine the page end tool
There is the permission safeguarded to the test case.
In the above embodiment of the present invention, optionally, the page end includes test module, and the test module is used for:
Automation test request is obtained, then the page end is also used to: automatic test request is sent to the server-side;Institute
It states server-side to be also used to: be requested according to the automatic test, executed in mounted automatization test system described automatic
Change the test case indicated in test request, obtains test result.
In the above embodiment of the present invention, optionally, the page end includes test report module and the server-side
It is also used to: the test result is sent to the page end;The page end is also used to: according to the implementing result, being generated
Test report and the test report module are used for: showing the test report.
In the above embodiment of the present invention, optionally, the page end includes annotations module, and the annotations module is used for:
Show the functional information of the page end and the basic information of the automatization test system in the server-side.
In the above embodiment of the present invention, optionally, the page end includes frame maintenance module, and the frame safeguards mould
Block is used for: obtaining frame maintenance request, then the page end is also used to: the frame maintenance request is sent to the service
End;The server-side safeguards the system framework of mounted automatization test system according to the frame maintenance request;
The page end includes environment configurations module, and the environment configurations module is used for: obtaining environment configurations request, then the page end
It is also used to: environment configurations request is sent to the server-side;The server-side is also used to: being asked according to the environment configurations
It asks, maps out the work environment for the mounted automatization test system.
The third aspect, the embodiment of the invention provides a kind of test and management systems, including page end and server-side, wherein
The page end includes: at least one first processor;And first with the communication connection of at least one described first processor
Memory;Wherein, the first memory is stored with the first instruction that can be executed by least one described first processor, described
First instruction is arranged to be used for executing the method flow that the page end executes in any one of above-mentioned first aspect embodiment;
The server-side includes: at least one second processor;And second with the communication connection of at least one described second processor
Memory;Wherein, the second memory is stored with the second instruction that can be executed by least one described second processor, described
Second instruction is arranged to be used for executing the method flow that the server-side executes in any one of above-mentioned first aspect embodiment.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, and it is executable to be stored with computer
Instruction, the computer executable instructions are for executing method flow described in any one of above-mentioned first aspect.
By above technical scheme, asked for the cumbersome technology of manual maintenance in the related technology and update test case
Topic, the test case that can effectively simplify in automatic test update step, promote what test case in automatic test updated
Convenience.
Specifically, automatization test system can be mounted on server-side, each client is connected with server-side, every
The automatization test system of server-side installation is accessed in a client by page end, in this way, needing to carry out test case
When modification, it is only necessary to be operated in any client, the page end of the client is made to get the maintenance request that operation generates.
Then, page end is sent to maintenance request the server-side for being equipped with automatization test system, is asked by server-side according to the maintenance
It asks and carries out the maintenance of test case at itself.
This technical solution, instead of automatization test system is mounted on visitor in a manner of desktop programs in the related technology
The technical solution at family end, is directly installed on client just because of by automatization test system in the related technology, just makes right
Test case must safeguard one by one the test case in each client when being safeguarded.And technical solution of the present invention
In, the page end of client only serves reception and uploads the effect of maintenance request, and all page ends are unified to send maintenance request
The test case in automatization test system to server-side, to change server-side.By this technical solution, it can be achieved that any
Full maintenance operation is carried out in client, and the unified modification of test case can be completed, without being safeguarded one by one to client,
The maintenance times of test case are preferably minimized, the convenience of test case maintenance is improved, and help to reduce test case
The error rate of maintenance improves the accuracy of the validity of test case maintenance or even the result of entire automatic test.Certainly,
This scheme be not necessarily to each client install automatization test system, thus also simplify automatization test system installation and
Maintenance.
Further, since server-side can directly be accessed by multiple page ends, then server-side is according to maintenance request
Before safeguarding to test case, whether the page end for also needing verifying to issue the maintenance request there is permission to carry out test case
Maintenance avoids test case in server-side and its other content in addition from being stolen or modified by illegal web page end, so as to protect
The safety of server-side.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing
It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its
Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments
The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the"
It is also intended to including most forms, unless the context clearly indicates other meaning.
Fig. 1 shows the flow chart of the test and management method of one embodiment of the present of invention.
As shown in Figure 1, the embodiment of the invention provides a kind of test and management methods, comprising:
Step 102, page end obtains the maintenance request to the test case of automatic test.
Page end is installed in the client, can obtain the operation information of user, the operation information of user includes to test
The maintenance content of the attribute information of use-case, page end can generate the dimension to the test case of automatic test according to the operation information
Shield request, then also include the maintenance content to the attribute information of the test case in the maintenance request, so as to by the existing survey
Example on probation is updated and safeguards according to maintenance content.
Step 104, the maintenance request is sent to the server-side for being stored with the test case by the page end.
Page end is sent to maintenance request the server-side for being equipped with automatization test system, by server-side according to the maintenance
It requests to carry out the maintenance of test case at itself.Automatization test system is mounted on server-side, by each client and server-side
It is connected, accesses the automatization test system of server-side installation by page end in each client, in this way, needs to test
When use-case is modified, it is only necessary to be operated in any client, the page end of the client is made to get what operation generated
Maintenance request.
Step 106, the server-side judges whether the page end has and uses the test according to the maintenance request
The permission that example is safeguarded.That is, the permission that page end might not have test case to safeguard, server is needed to net
The legitimacy at page end is tested.
Step 108, when the page end has the permission safeguarded to the test case, the server-side according to
The maintenance request safeguards the test case.
Further, since server-side can directly be accessed by multiple page ends, then server-side is according to maintenance request
Before safeguarding to test case, whether the page end for also needing verifying to issue the maintenance request there is permission to carry out test case
Maintenance avoids test case in server-side and its other content in addition from being stolen or modified by illegal web page end, so as to protect
The safety of server-side.
Step 110, the server-side, which sends maintenance to the page end, terminates response.
By above technical scheme, asked for the cumbersome technology of manual maintenance in the related technology and update test case
Topic, the test case that can effectively simplify in automatic test update step, promote what test case in automatic test updated
Convenience.This technical solution, instead of automatization test system is mounted on visitor in a manner of desktop programs in the related technology
The technical solution at family end, is directly installed on client just because of by automatization test system in the related technology, just makes right
Test case must safeguard one by one the test case in each client when being safeguarded.And technical solution of the present invention
In, the page end of client only serves reception and uploads the effect of maintenance request, and all page ends are unified to send maintenance request
The test case in automatization test system to server-side, to change server-side.By this technical solution, it can be achieved that any
Full maintenance operation is carried out in client, and the unified modification of test case can be completed, without being safeguarded one by one to client,
The maintenance times of test case are preferably minimized, the convenience of test case maintenance is improved, and help to reduce test case
The error rate of maintenance improves the accuracy of the validity of test case maintenance or even the result of entire automatic test.Certainly,
This scheme be not necessarily to each client install automatization test system, thus also simplify automatization test system installation and
Maintenance.
Fig. 2 shows the flow charts of the test and management method of another embodiment of the invention;
As shown in Fig. 2, the test and management method of another embodiment of the invention includes:
Step 202, page end obtains the maintenance request to the test case of automatic test, and the maintenance request is sent out
It send to the server-side for being stored with the test case.
Wherein, the maintenance request includes the subscriber identity information of the page end and the attribute letter of the test case
Breath, the subscriber identity information of the page end be used to be used in other words by the identity of the login user of server-side identification page end by
Server-side identifies the identity of the client where page end, and the attribute information of the test case is then used for server-side in determination
Page end have maintenance test use-case permission after according to the attribute information instruction maintenance content to the test case carry out more
Newly.
Step 204, the subscriber identity information of server-side page end according to the maintenance request, determine described in
Page end is corresponding can maintenance use case set.
Different page ends is since the Permission Levels of its login user are different, or permission of the client as where it etc.
Grade is different, and the test case of all permissions maintenance is also different.For example, being responsible for when testing a sales platform application
The tester of sales order link can call test case a, b, the c tested sales order, be responsible for the network rings of application
The tester in border can call test case d, e, f of the anti-big flow test to sales platform application.In actual scene, no
The test of same type often carries out simultaneously, and therefore, different types of test is simultaneously when carrying out, to avoid a certain tester's mistuning use
Non- is tested required test case and causes test belonging to the test case that can not be normally carried out, or to avoid a certain test
Person's override call non-test needed for test case and caused by system perturbations situations such as, need for different user settings it is each
From can maintenance use case set, and for respectively can the setting of maintenance use case set and label corresponding to subscriber identity information, therefore connect down
Come, can according to the subscriber identity information of any page end, determine there is matched label can maintenance use case set, i.e. net thus
The user at page end has corresponding maintenance the test case set of permission.User described here can use for the login of page end
Family, or client belonging to page end itself.
Step 206, whether can have attribute information and the maintenance in maintenance use case set described in the server-side judgement
Request the consistent target detection use-case of attribute information of the test case of instruction.
The maintenance request instruction needs the attribute information for the test case safeguarded, and in general, test case
Attribute information include but is not limited to one or more in name information, number information and function type, therefore may determine that can
Whether a target detection use-case is had in maintenance use case set, attribute information is consistent with the attribute information that maintenance request indicates,
If so, then explanation can have maintenance request to request the test case safeguarded, in other words, the target detection in maintenance use case set
Use-case is the test case that maintenance request requests maintenance, conversely, then explanation can ask in maintenance use case set without maintenance
Seek the test case for requesting maintenance.
Step 208, it is described can have the target detection use-case in maintenance use case set in the case where, the server-side
Determine that the page end has the permission safeguarded to the test case.
Step 210, the server-side safeguards the test case according to the maintenance request.
Step 212, the server-side, which sends maintenance to the page end, terminates response.
In above technical scheme, all page ends are unified to be sent to server-side for maintenance request, and server-side then judges
Whether the page end has the permission of maintenance test use-case, realizes the examination to the identity legitimacy of page end, so that protection is certainly
The information security of dynamicization test macro and its test case.
Fig. 3 shows the flow chart of the test and management method of yet another embodiment of the present invention.
As shown in figure 3, the process of the test and management method of yet another embodiment of the present invention includes:
Step 302, the page end obtains automation test request by test module.
Step 304, automatic test request is sent to the server-side by the page end.
Step 306, the server-side is requested according to the automatic test, is held in mounted automatization test system
The test case indicated in the row automatic test request, obtains test result.
Step 308, the test result is sent to the page end and shown by the server-side.
The i.e. described page end includes test module, and user only needs to issue test command in page end, can call service
The automatization test system of device and corresponding test case, without disposing test wrapper in the client where the page end
Border and installation test program reduce convenient for carrying out unified maintenance to automatization test system and many test cases in server-side
The cost of labor and time cost of maintenance.
Similarly with Fig. 1 to Fig. 3 embodiment, the page end may include frame maintenance module, and the page end passes through described
Frame maintenance module obtains frame maintenance request, and the frame maintenance request is sent to the server-side;The server-side
According to the frame maintenance request, the system framework of mounted automatization test system is safeguarded.
Similarly with Fig. 1 to Fig. 3 embodiment, the page end may also include environment configurations module, and the page end passes through institute
It states environment configurations module and obtains environment configurations request, and environment configurations request is sent to the server-side;The service
End is requested according to the environment configurations, is mapped out the work environment for the mounted automatization test system.
In the prior art, if necessary to which automated test frame or configuration surroundings are updated and are safeguarded, then necessary
By the automated test frame of each client or configuration surroundings all operationss one time.In the technical scheme, when needs are to certainly
When the system framework or configuration surroundings of dynamicization test macro such as are updated and safeguard at the operation, due to being the page end with client
For the mode of unified management instead of the mode of the installation automatization test system of each client, so there is no need to grasp one by one to each client
Make.In other words, it is only necessary to operate one time, substantially reduce the cost of manual maintenance, improve automated test frame maintenance
And the convenience of configuration surroundings maintenance.
Simultaneously as automatization test system is mounted on server-side, and the ground of client and server-side where page end
Reason position gap is difficult to eliminate, for convenience of the system framework or configuration surroundings of automatization test system are updated and are safeguarded
Operation, the content that directly can need to modify in page end input, that is, realize the test block to the automatization test system of server-side
Frame and environment configuration information are modified, and without directly operating in server-side, improve automatization test system maintenance just
Benefit, to also save maintenance cost.
In a kind of implementation of the invention, optionally, the page end further includes test report module and described
Test and management method further include: the test result is sent to the page end by the server-side;The page end is according to institute
Implementing result is stated, test report is generated;The page end shows the test report by the test report module.
In the technical scheme, without being collected manually with statistical test as a result, but test result is directly displayed at net
In the test report module at page end, manual steps are simplified.In addition, while showing test result, may also display pair
The contents such as the statistics and analysis of multiple historic test results, so that user analyzes test result comprehensively.
In another implementation of the invention, optionally, the page end includes annotations module and the test
Management method further include: the page end by the annotations module show the page end functional information and the server-side
In automatization test system basic information.
In the technical scheme, annotations module being capable of comprehensive function at displayed web page end and the basis of automated test frame
Information smoothly completes test according to the content that annotations module is shown convenient for user.
Fig. 4 shows the block diagram of the test and management system of one embodiment of the present of invention.
As shown in figure 4, the embodiment of the invention provides a kind of test and management system 400, including page end 402 and server-side
404, the page end 402 includes: that maintenance request obtains module 4022, for obtaining the dimension to the test case of automatic test
Shield request;Maintenance request sending module 4024, for the maintenance request to be sent to the service for being stored with the test case
End 404;The server-side 404 includes: permission judgment module 4042, for judging the page end according to the maintenance request
Whether 402 have the permission safeguarded to the test case;Test case maintenance module 4044, for working as the page end
402 when having the permission safeguarded to the test case, according to the maintenance request, ties up to the test case
Shield;The server-side 404, which is also used to send maintenance to the page end 402, terminates response.
Therefore the test and management system 400 is had using scheme described in any one of embodiment shown in Fig. 1 to Fig. 3
Above-mentioned all technical effects, details are not described herein.Test and management system 400 also has following technical characteristic:
In the above embodiment of the present invention, optionally, the maintenance request includes the user identity letter of the page end 402
Breath and the test case attribute information, wherein the attribute information of the test case include name information, number information and
It is one or more in function type;Then the permission judgment module 4042 of the server-side 404 is specifically used for: according to described
The subscriber identity information of page end 402, determine the page end 402 it is corresponding can maintenance use case set, and judge institute
State can in maintenance use case set whether the attribute information of the test case with attribute information and maintenance request instruction
Consistent target detection use-case, wherein it is described can have the target detection use-case in maintenance use case set in the case where, really
The fixed page end 402 has the permission safeguarded to the test case.
In the above embodiment of the present invention, optionally, the page end 402 includes test module, and the test module is used
In: automation test request is obtained, then the page end 402 is also used to: automatic test request is sent to the clothes
Business end 404;The server-side 404 is also used to: being requested according to the automatic test, in mounted automatization test system
The test case indicated in the automatic test request is executed, test result is obtained.
In the above embodiment of the present invention, optionally, the page end 402 includes test report module and the clothes
Business end 404 is also used to: the test result is sent to the page end 402;The page end 402 is also used to: according to described
Implementing result generates test report and the test report module is used for: showing the test report.
In the above embodiment of the present invention, optionally, the page end 402 includes annotations module, and the annotations module is used
In: show the basic information of the automatization test system in the functional information and the server-side 404 of the page end 402.
In the above embodiment of the present invention, optionally, the page end 402 includes frame maintenance module, the frame dimension
Shield module is used for: obtaining frame maintenance request, then the page end 402 is also used to: the frame maintenance request is sent to institute
State server-side 404;The server-side 404 is according to the frame maintenance request, to the system of mounted automatization test system
Frame is safeguarded;The page end 402 includes environment configurations module, and the environment configurations module is used for: obtaining environment configurations
Request, then the page end 402 is also used to: environment configurations request is sent to the server-side 404;The server-side
404 are also used to: being requested according to the environment configurations, mapped out the work environment for the mounted automatization test system.
Fig. 5 shows the block diagram of the test and management system of one embodiment of the present of invention.
As shown in figure 5, the test and management system 500 of one embodiment of the present of invention, including page end 502 and server-side
504。
Wherein, the page end 502 includes: at least one first processor 5022;And with it is described at least one first
The first memory 5024 that processor 5022 communicates to connect;Wherein, the first memory 5024 be stored with can by it is described at least
The first instruction that one first processor 5022 executes, first instruction are arranged to be used for executing above-mentioned Fig. 1 to Fig. 3 implementation
The method flow that page end in any one of example executes.
The server-side 504 includes: at least one second processor 5042;And at least one described second processing
The second memory 5044 that device 5042 communicates to connect;Wherein, the second memory 5044 be stored with can by it is described at least one
The second instruction that second processor 5042 executes, second instruction are arranged to be used for executing above-mentioned Fig. 1 into Fig. 3 embodiment
The method flow that server-side in any one executes.
Therefore, which has and Fig. 1 is to the identical technical effect of any one of Fig. 3 embodiment, herein
It repeats no more.
In addition, computer executable instructions are stored with the embodiment of the invention provides a kind of computer readable storage medium,
The computer executable instructions are used to execute above-mentioned Fig. 1 to the method flow described in any one of Fig. 3 embodiment.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, instead of phase
Automatization test system is mounted on to the technical solution of client in the technology of pass in a manner of desktop programs, is exactly in the related technology
Since automatization test system is directly installed on client, just making must be to each client when safeguarding to test case
Test case in end is safeguarded one by one.And in technical solution of the present invention, the page end of client only serve reception and on
The effect of maintenance request is passed, all page ends are unified to be sent to server-side for maintenance request, surveys to change the automation of server-side
Test case in test system.It, can be complete by this technical solution, it can be achieved that carrying out full maintenance operation in any client
At the unified modification of test case, without being safeguarded one by one to client, the maintenance times of test case is preferably minimized, are mentioned
The convenience of test case maintenance has been risen, and has helped to reduce the error rate of test case maintenance, has improved test case maintenance
Validity so that entire automatic test result accuracy.Certainly, this scheme is not necessarily to install certainly in each client
Dynamicization test macro, to also simplify the installation and maintenance of automatization test system.
Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection
(condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement
Or event) when " or " in response to detection (condition or event of statement) ".
It should be noted that the client for being equipped with page end involved in the embodiment of the present invention may include but unlimited
In personal computer (Personal Computer, PC), personal digital assistant (Personal Digital Assistant,
PDA), radio hand-held equipment, tablet computer (Tablet Computer), mobile phone, MP3 player, MP4 player etc..
In several embodiments provided by the present invention, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the module
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple modules or group
Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown
Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or module it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, each functional module in each embodiment of the present invention can integrate in a processing module
It is that modules physically exist alone, can also be integrated in two or more modules in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
The above-mentioned integrated module realized in the form of software function module, can store and computer-readable deposit at one
In storage media.Above-mentioned software function module is stored in a storage medium, including some instructions are used so that a computer
It is each that device (can be personal computer, server-side or network equipment etc.) or processor (Processor) execute the present invention
The part steps of embodiment the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-
Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. it is various
It can store the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.