CN107797918A - Method of testing and test device - Google Patents
Method of testing and test device Download PDFInfo
- Publication number
- CN107797918A CN107797918A CN201710147237.6A CN201710147237A CN107797918A CN 107797918 A CN107797918 A CN 107797918A CN 201710147237 A CN201710147237 A CN 201710147237A CN 107797918 A CN107797918 A CN 107797918A
- Authority
- CN
- China
- Prior art keywords
- test
- test case
- request
- database
- result
- 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.)
- Granted
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
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The present invention relates to a kind of method of testing, methods described includes:The test case for obtaining the test object selected by testing tool and input identifies, the test object is generated according to the type of service of the first system, the testing tool is operated in same one end with the first system, identified according to the test object and the test case, test case, which is sent, to second system performs request, receive second system implementing result caused by test case according to corresponding to the test case performs the request execution test case mark, implementing result, which is sent, to the second system returns to request, receive the second system and the returning result for asking that the implementing result is returned to the first system is returned according to the implementing result.The testing efficiency of joint test between multisystem can be improved using the method for testing.In addition, additionally provide a kind of test device.
Description
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method of testing and test device.
Background technology
In order to improve the operational efficiency of system, it will usually keep system functionalized, i.e. the general function of system has single
Property, and the partial function for forming general function needs to realize by other systems.Such as the overall work(of insurance company's operation system
Miscellaneous service information can be to provide, generate operation flow list, and generated for the pay status in operation flow list systematic function
Function, then it is responsible for related data being committed to payment system after treatment by intermediate system, so that payment system is according to centre
The corresponding payment record of data search that system is submitted, and the payment record is returned into intermediate system, intermediate system is again
The payment record is returned into insurance company's operation system.Now, just need to survey simultaneously to test the general function of the system
Try the function of other systems associated therewith.
But the joint test between traditional this multisystem needs to be mutually related, the tester of multiple systems exists
Respective system is tested on webpage respectively in the identical period, human cost is larger, and is difficult to coordinate on the time, makes
It is low to obtain testing efficiency.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of method of testing for improving testing efficiency and test fill
Put.
A kind of method of testing, methods described include:
The test case for obtaining the test object selected by testing tool and input identifies, and the test object is basis
The type of service generation of the first system, the testing tool is operated in same one end with the first system;
Identified according to the test object and the test case, sending test case to second system performs request;
Receive second system survey according to corresponding to the test case performs the request execution test case mark
Implementing result caused by example on probation;
Implementing result, which is sent, to the second system returns to request;
Receive the second system and the implementing result is returned to described first according to implementing result return request
The returning result of system.
In one of the embodiments, identified described according to the test object and the test case, to the second system
Before system sends test case execution request, in addition to:According to the test object, database name is sent to the second system
Claim to obtain request;
Receive second system test object according to database-name obtains acquisition request currently connects first
Database-name;
If first database-name is different from the database-name needed for current test, the second number of input is received
Database update request is sent according to library name, and to the second system;
Receive the database update that the second system currently connects test object according to database update request
To update result caused by the second database.
In one of the embodiments, identified described according to the test object and the test case, to the second system
Before system sends test case execution request, in addition to:Identified according to the test object and the test case, to described the
Two system sends test data and obtains request;Receive the second system according to the test data obtain acquisition request with it is described
The acquisition result of test data corresponding to test case mark.
In one of the embodiments, methods described also includes:If the acquisition result is that test data obtains failure,
Secondary obtain of test data is sent to the second system to ask;The second system is received to obtain according to the test data is secondary
Request is taken to obtain the acquisition result with the corresponding test data of test case mark from the first system.
In one of the embodiments, if the implementing result is runs succeeded and the returning result is to return successfully,
Then accreditation request is sent to the second system;Receive the second system and voucher making request is performed according to the test case
The execution time of test case corresponding to the test case mark is obtained, and the test case is identified into corresponding test number
According to the test case mark corresponding to test case the executions time according to prestore document format progress accreditation accreditation knot
Fruit.
A kind of test device, described device include:
Test object receiving module, for obtaining the test object selected by testing tool, the test object is root
Generated according to the type of service of the first system, the testing tool is operated in same one end with the first system;
Test case identifies receiving module, is identified for receiving the test case inputted by testing tool;
Test case performs request sending module, for according to the test object and test case mark, to the
Two system sends test case and performs request;
Test case implementing result receiving module, request is performed according to the test case for receiving the second system
Perform implementing result caused by test case corresponding to the test case mark;
Test case implementing result returns to request sending module, please for sending implementing result return to the second system
Ask;
Test case implementing result returning result receiving module, for receiving the second system according to the implementing result
Return to the returning result that request returns to the implementing result the first system.
In one of the embodiments, described device also includes:Database-name obtains request sending module, for basis
The test object, send database-name to the second system and obtain request;First database-name receiving module, receive
The first database-name that second system test object according to database-name obtains acquisition request currently connects;The
Two database-name receiving modules, if different from the database-name needed for current test for first database-name,
Then receive the second database-name of input;Database update request sending module, for sending data to the second system
Storehouse renewal request;Database update result acquisition module, asked for receiving the second system according to the database update
The database update that test object is currently connected is to update result caused by the second database.
In one of the embodiments, described device also includes:Test data obtains request sending module, for according to institute
Test object and test case mark are stated, sending test data to the second system obtains request;Test data obtains
As a result receiving module, acquisition request and the test case mark are obtained according to the test data for receiving the second system
The acquisition result of test data corresponding to knowledge.
In one of the embodiments, described device also includes:The secondary acquisition request sending module of test data, if for
The acquisition result is that test data obtains failure, then sending secondary obtain of test data to the second system asks;It is described
Test data obtain result receiving module be additionally operable to receive the second system according to the test data it is secondary obtain request from
The first system obtains the acquisition result with the corresponding test data of test case mark.
In one of the embodiments, described device also includes:Accreditation request sending module, if for the implementing result
To run succeeded and the returning result is to return successfully, then accreditation request is sent to the second system;Accreditation result receives
Module, for receiving second system test case mark according to the test case performs voucher making acquisition request
The execution time of corresponding test case, and test data and the test case corresponding to test case mark are identified
The execution time of corresponding test case carries out the accreditation result of accreditation according to the document format that prestores.
Above-mentioned method of testing and device, by the test case for obtaining the test object selected by testing tool and input
Mark, test object is generated according to the type of service of the first system, and testing tool is operated in same one end with the first system,
Identified according to test object and test case, sending test case to second system performs request, receives second system according to survey
Example on probation, which performs, asks implementing result caused by test case corresponding to implementation of test cases mark, is performed to second system transmission
As a result request is returned, second system is received and the return knot for asking that implementing result is returned to the first system is returned according to implementing result
Fruit.Because the operation in testing tool completes the complete test to function associated with the first system in second system,
And testing tool and the first system be in same one end, then for the first system and the joint test of second system, it is only necessary to the first system
The tester of system is tested according to the testing process of itself, when the function associated with second system is arrived in test, is made
The test to the function is completed with testing tool, then reduces tester's cost, the survey for solving joint test between multisystem
The problem of time of examination personnel is difficult to coordinate, so as to improve the testing efficiency of joint test between multisystem.
Brief description of the drawings
Fig. 1 is the applied environment figure of one embodiment method of testing;
Fig. 2 is the cut-away view of terminal in one embodiment;
Fig. 3 is the flow chart of method of testing in one embodiment;
Fig. 4 is the flow chart that the database of Fig. 3 in one embodiment connects the method for testing of correctness;
Fig. 5 is the flow chart of the method for testing of Fig. 3 test data presence or absence in one embodiment;
Fig. 6 is the flow chart of method of testing in another embodiment;
Fig. 7 is the surface chart of testing tool in one embodiment;
Fig. 8 is the structured flowchart of test device in one embodiment;
Fig. 9 is the structured flowchart of test device in another embodiment;
Figure 10 is the structured flowchart of test device in another embodiment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
Method of testing provided in an embodiment of the present invention can be applied in environment as shown in Figure 1.With reference to shown in figure 1, first
Terminal 102 where system and testing tool can perform test case the server 104 where request is sent to second system,
Also can the test case implementing result that returns of the reception server 104, wherein the first system is operation system, and second system is and the
The associated interconnected system of one system, such as the transferring system between operation system and payment system;Testing tool is used to test second
System;The first system and testing tool are in same terminal 102 so that the tester of the first system using testing tool complete with
The associated functional test of second system.Specifically, the terminal 102 where the first system and testing tool passes through network and second
Server 104 where system is communicated, and the terminal 102 where the first system and testing tool obtains test object and test
Use-case identifies, and sending test case to the server 104 where second system performs request, receives the service where second system
Test execution result that device 104 returns etc..Here terminal includes but is not limited to various personal computers, notebook computer, intelligence
Energy mobile phone, tablet personal computer, portable wearable device etc..
In one embodiment, as shown in Fig. 2 additionally providing a kind of terminal, the terminal includes connecting by system bus
Processor, non-volatile memory medium, built-in storage, network connection mouth, display screen and input unit, non-volatile memories be situated between
Operating system and computer executable instructions are stored with matter, the computer executable instructions are used to realize in the embodiment of the present application
A kind of method of testing suitable for terminal provided.The processor is used to improve calculating and control ability, supports whole terminal
Operation.Built-in storage is used to provide ring for the operating system in non-volatile memory medium and the operation of computer executable instructions
Border.Network interface is used to carry out network service with server.The display screen of terminal can be LCDs or electric ink
Display screen etc., input unit can be set on the touch layer or mobile terminal case covered on display screen button,
Trace ball or Trackpad or external keyboard, Trackpad or mouse etc..It will be understood by those skilled in the art that in Fig. 2
The block diagram of the structure shown, the only part-structure related to application scheme, do not form and application scheme is applied
The restriction of terminal thereon, specifically terminal can include than more or less parts shown in figure, or combine some
Part, or arranged with different parts.
In one embodiment, as shown in Figure 3, there is provided a kind of method of testing, this method is with applied to as shown in Figure 1
Terminal is illustrated, including:
Step 302, the test case for obtaining the test object selected by testing tool and input identifies, and test object is
Generated according to the type of service of the first system, testing tool is operated in same one end with the first system.
In the present embodiment, the first system is operation system, the insurance business processing system of such as insurance company;Test object
It is to be generated according to the type of service of the first system, for example the first system is the operation system of an insurance company, the business system
The type of service of system has property insurance and personal insurance, then test object is the program module of property insurance and the journey of personal insurance
Sequence module;Test case identifies the unique mark for being to discriminate between test case, such as business serial number.
Step 304, identified according to test object and test case, sending test case to second system performs request.
In the present embodiment, second system is the interconnected system associated with the first system, if the first system is operation system,
Second system is the transferring system between operation system and payment system, and the sales information of service product passes through transfer in operation system
System submits to payment system, so that payment system returns to the payment performance of the service product;Test case is and test
Use-case identifies corresponding to reach one group of test input, the execution the condition whether correct execution of test object function is worked out
And expected results.
In order to complete test the first system institute it is functional, when test arrive the function associated with second system when, it is necessary to
The functions associated of second system is tested, such as in order to test the correct execution of the whole shopping process of shopping website with
It is no, when the performance of test to purchase order, it is necessary to test payment system whether the successful execution payment of purchase order,
So being identified according to test object and test case, sending test case to second system performs request.
In other embodiments, the second system associated with the first system may have multiple, such as because of project development demand
And the transferring system of different editions be present etc., now, testing tool interface can show multiple second systems, according to the selection of user
To determine to be currently needed for carry out the second system of translocation with the first system.In the present embodiment, multiple different second system difference
When carrying out translocation with the first system, user need to be only switched fast by way of selection, compared to traditional by inputting net
The switching mode of location, improves testing efficiency.
Step 306, second system test according to corresponding to test case performs request implementation of test cases mark is received to use
Implementing result caused by example.
After test case is sent to second system and performs request, receive corresponding to second system implementation of test cases mark
Implementing result caused by test case.
Step 308, send implementing result to second system and return to request.
Implementing result can be returned to the first system, so that the first system by second system after the completion of test case execution
Test to functions associated is completed according to the implementing result.
Step 310, receive second system and implementing result is returned to by returning for the first system according to implementing result return request
Return result.
In the present embodiment, after the implementing result of test case is returned success to the first system by second system, one can be generated
Individual success flag.If receiving the success flag, show that implementing result returns successfully;If not receiving success flag, show to hold
Row result returns to failure.
In the present embodiment, because the operation in testing tool is completed to associated with the first system in second system
The complete test of function, and testing tool and the first system are then surveyed for the joint of the first system and second system in same one end
Examination, it is only necessary to which the tester of the first system is tested according to the testing process of itself, when test is arrived and second system phase
During the function of association, the test to the function is completed using testing tool, then reduces tester's cost, solves multisystem
Between the problem of being difficult to coordinate time of tester of joint test, so as to improve the test of joint test between multisystem effect
Rate.
In one embodiment, as shown in figure 4, before step 304, in addition to:
Step 402, according to test object, send database-name to second system and obtain request.
In more complicated project development process, same test object may correspond to multiple databases, now test
Personnel need to test the database of the current connection of test object according to testing requirement.Specifically, in test second system
Before success implementation of test cases, test whether the database that test object currently connects in second system is test case mark
Database where test data corresponding to knowledge.
Step 404, second system currently connects according to database-name acquisition acquisition request test object first is received
Database-name.
In the present embodiment, the first database is the database that test object currently connects in second system.
Step 406, if the first database-name is different from the database-name needed for current test, the of input is received
Two database-names.
In the present embodiment, the second database is the data of test data connection corresponding with the test case mark of input
Storehouse.
Step 408, database update request is sent to second system.
After the second database-name for receiving tester's input, according to second database-name, to second system
Database update request is sent, so that the databases comparison that second system currently connects test object is the test use with input
The database of test data connection corresponding to example mark.
Step 410, the database update that second system currently connects test object according to database update request is received
To update result caused by the second database.
The databases comparison that second system currently connects test object according to database update request is the second database,
Database corresponding to the test case mark subsequently inputted where test data, and return to renewal result.
In the present embodiment, before second system success implementation of test cases is tested, test pair in second system is tested
Database as corresponding to whether the database currently connected is test case mark where test data, facilitates subsequently received
Test case implementing result for failure when quickly search reason.
In one embodiment, as shown in figure 5, also including before step 304:
Step 502, identified according to test object and test case, sending test data to second system obtains request.
Before second system success implementation of test cases is tested, it can test in second system and be identified with test case
Corresponding test data whether there is.
Step 504, receive second system and acquisition request test corresponding with test case mark is obtained according to test data
The acquisition result of data.
Second system identifies according to test case, is searched in the database currently connected relative with test case mark
The test data answered, if lookup result is sky, the test data corresponding with test case mark is not present in second system,
Conversely, the test data corresponding with test case mark in second system then be present.
In the present embodiment, before second system success implementation of test cases is tested, test in second system and whether deposit
In test data corresponding to test case mark, facilitate subsequently received test case implementing result quickly to be searched during failure
Reason.
In one embodiment, after step 504, in addition to:If it is that test data obtains failure to obtain result, to
Second system sends secondary obtain of test data and asked;Receive second system and obtain request from the first system according to test data is secondary
System obtains the acquisition result with the corresponding test data of test case mark.
Because second system is the transferring system associated with the first system, the data source in second system is in the first system
System, then obtained in second system less than corresponding to test case mark during test data, it is necessary to which second system is from the first system
Middle acquisition test data.
In the present embodiment, asked by sending secondary obtain of test data to second system, further test second system
In whether there is with the corresponding test data of test case mark, facilitate subsequently received test case implementing result for fail
When quickly search reason.
In one embodiment, also include after step 310:If implementing result is runs succeeded and returning result is returns
Return successfully, then send accreditation request to second system;
Second system test according to corresponding to test case performs voucher making acquisition request test case mark is received to use
Example the execution time, and by test case identify corresponding to test data and test case mark corresponding to test case execution
Time carries out the accreditation result of accreditation according to the document format that prestores.In the present embodiment, second system is in successful execution test case
And successfully implementing result is returned into the first system after, second system by test case identify corresponding to test data and test
Use-case execution time etc. is shown according to the document format that prestores, that is, accreditation function is realized, so tester need to be to the accreditation
Function is tested.
In one embodiment, as shown in Figure 6, there is provided another method of testing, including:
Step 602, the second system and test object that translocation is carried out with the first system selected by testing tool is obtained,
Test object is generated according to the type of service of the first system, and testing tool is operated in same one end with the first system.
In the present embodiment, because the continuous change of project demands, the second system of multiple versions be present, tested
When, it is necessary to tester selected in multiple test systems be currently needed for the first system carry out translocation second system.Such as
The surface chart of testing tool shown in Fig. 7, the second system of the multiple versions of the first behavior.
Step 604, according to test object, the first database-name that test object currently connects in second system is obtained.
In the present embodiment, same test object corresponds to multiple databases, and tester tests in second system survey first
Try the database correctness of object connection.
Step 606, if the first database-name is different from the database-name needed for current test, the of input is received
Two database-names.
In the present embodiment, the second database is the number of test data connection corresponding with the test case mark subsequently inputted
According to storehouse.
Step 608, according to the second database-name, the database update that second system currently connects test object is obtained
For the renewal result of the second database.
In the present embodiment, the database that test object currently connects is may be updated in second system, and tester is needed to the number
Tested according to storehouse more New function.
Step 610, the test case inputted by testing tool is received to identify.
In the present embodiment, test case identifies the unique mark for being to discriminate between test case, such as business serial number.
Step 612, identified according to test object and test case, it is corresponding to obtain inquiry test case mark in second system
Test data caused by Query Result.
In the present embodiment, after the database correctness that test object in testing second system connects, test second
With the presence or absence of test data corresponding to test case mark in system.
Step 614, identified, obtained corresponding to second system implementation of test cases mark according to test object and test case
Implementing result caused by test case.
In the present embodiment, test object connects in second system is tested database correctness and second system
In with the presence or absence of after test data, the execution of test case corresponding to test case mark can be carried out corresponding to test case mark
Test.
Step 616, the returning result that second system returns to implementing result the first system is obtained.
In the present embodiment, second system can return to implementing result the first system after test case has been performed, so
Tester needs to test implementing result return function.
Step 618, if implementing result for run succeeded and returning result be returns successfully, acquisition second system in will hold
The execution time of test case corresponding to test data corresponding to row use-case mark and execution use-case mark is according to the document lattice that prestore
The accreditation result of formula accreditation.
In the present embodiment, second system is in successful execution test case and implementing result successfully is returned into the first system
Afterwards, second system by test case identify corresponding to test data and test case perform time etc. according to the document format that prestores
It has been shown that, that is, realize accreditation function, so tester need to be tested the accreditation function.
In the present embodiment, the test object connection correctness of database in second system, test data are tested successively
The success or not of presence or absence, the success or not that test case performs and accreditation, conveniently occurs fast during the situation of test crash
Failure cause is looked in quick checking.
In one embodiment, to be applied to the operation system of insurance company and the transferring system associated with operation system
Between joint test exemplified by illustrate.After client have purchased certain insurance in insurance company, operation system is according to client
Purchase information generation purchase order, have business serial number on the purchase order, insure title, insurance price and pay shape
State, wherein, business serial number, insure title and insurance price can directly obtain from operation system, and pay status needs
Obtained from intermediate system.Therefore, operation system tester is tested operation system, is insured purchase when test to client and is ordered
, it is necessary to test the function of associated transferring system during payout status in list.The interface of testing tool with reference to shown in Fig. 7
Figure, due to the demand of software development, the transferring system associated with operation system may have multiple versions, be selected by testing tool
The transferring system (such as STG2) that translocation is carried out with operation system is selected, can be to insuring order with operation system in the transferring system
Functions associated is tested.The insurance title on purchase order provided first according to operation system is selected on testing tool
Coverage (such as endowment insurance), by clicking on " inquiry " button, to the database that currently connects of transferring system transmission endowment insurance
The inquiry request of title, so as to test out the correctness of database connection;If the database-name received and current test
Required database-name is inconsistent, then receives the database-name of input, by clicking on Update button, is sent out to transferring system
Database update is sent to ask, so as to test out the success or not of database update;The business serial number of input is received, passes through click
" inquiry " button, the inquiry request of purchase order data is sent to transferring system, so as to test out the presence of purchase order data
Whether;If inquiry clicks on " taking out shelves " button, sending the secondary inquiry of purchase order to transferring system please less than purchase order data
Ask so that transferring system from operation system obtain purchase order data, so as to test out the acquisition of purchase order data success with
It is no;According to the business serial number of input, click on " formation batch ", batch processed request sent to transferring system so that in transfer from one department to another
System stores purchase order data corresponding to business serial number into same file according to Net silver data storage method, then should
File is sent to internet banking system, so that internet banking system is by parsing the payment result of this document inquiry purchase order and being tied paying
Fruit returns to transferring system, so as to test out whether the running succeeded of batch processed (if transferring system successful execution batch processed,
Then generate batch number and be shown in the text box of testing tool);By clicking on " fund confirmation " button, sent to transferring system
Results of execution back ask so that transferring system by the results of execution back of batch processed to operation system, held so as to test out
The correctness of row result write-back;By clicking on " accreditation " button, accreditation request is sent to transferring system, so that transferring system system
Make the voucher of execution batch processed, including accreditation mark, time of payment, payment and payment result.
In one embodiment, as shown in Figure 8, there is provided a kind of test device, including:
Test object receiving module 802, for obtaining the test object selected by testing tool, test object is basis
The type of service generation of the first system, testing tool is operated in same one end with the first system;
Test case identifies receiving module 804, is identified for receiving the test case inputted by testing tool;
Test case performs request sending module, for according to the test object and test case mark, to the
Two system sends test case and performs request;
Test case implementing result receiving module 806, request is performed according to test case for receiving the second system
Implementing result caused by test case corresponding to implementation of test cases mark;
Test case implementing result returns to request sending module 808, please for sending implementing result return to second system
Ask;
Test case implementing result returning result receiving module 810, is returned for receiving second system according to implementing result
Request returns to implementing result the returning result of the first system.
In one embodiment, as shown in figure 9, test device also includes:
Database-name obtains request sending module 902, for according to the test object, data to be sent to second system
Library name obtains request;
First database-name receiving module 904, receive second system and acquisition request test is obtained according to database-name
The first database-name that object currently connects;
Second database-name receiving module 906, if the database required with current test for the first database-name
Title is different, then receives the second database-name of input;
Database update request sending module 908, for sending database update request to second system;
Database update result acquisition module 910, for receive second system according to database update request will test pair
As the database update currently connected updates result caused by the second database.
In one embodiment, as shown in Figure 10, test device also includes:
Test data obtains request sending module 1002, for being identified according to test object and test case, to the second system
System sends test data and obtains request;
Test data obtains result receiving module 1004, and acquisition request is obtained according to test data for receiving second system
With the acquisition result of the corresponding test data of test case mark.
In one embodiment, above-mentioned test device also includes:The secondary acquisition request sending module of test data, if for
It is that test data obtains failure to obtain result, then sending secondary obtain of test data to second system asks;Test data obtains
As a result receiving module 1004 is additionally operable to reception second system and obtains request from the first system acquisition and survey according to test data is secondary
The acquisition result of test data corresponding to example mark on probation.
In one embodiment, test device also includes:Accreditation request sending module, if for implementing result for perform into
Work(and returning result are to return successfully, then send accreditation request to second system;Accreditation result receiving module, for receiving second
The execution time of system test case according to corresponding to test case performs voucher making acquisition request test case mark, and will
The execution time of test case corresponding to test data corresponding to test case mark and test case mark is according to the document that prestores
Form carries out the accreditation result of accreditation.
It should be noted that " first ", " second " in each embodiment of the present invention are used only as distinguishing, it is not used as to big
The restriction of small, subordinate, sequencing etc..
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, described program can be stored in a non-volatile computer and can be read
In storage medium, the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage is situated between
Matter can be magnetic disc, CD, read-only memory (Read-OnlyMemory, ROM) etc..
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope that this specification is recorded all is considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously
Can not therefore it be construed as limiting the scope of the patent.It should be pointed out that come for one of ordinary skill in the art
Say, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of method of testing, methods described include:
The test case for obtaining the test object selected by testing tool and input identifies, and the test object is according to first
The type of service generation of system, the testing tool is operated in same one end with the first system;
Identified according to the test object and the test case, sending test case to second system performs request;
Second system test according to corresponding to the test case performs the request execution test case mark is received to use
Implementing result caused by example;
Implementing result, which is sent, to the second system returns to request;
Receive the second system and the implementing result is returned to by the first system according to implementing result return request
Returning result.
2. according to the method for claim 1, it is characterised in that described according to the test object and the test case
Mark, before sending test case execution request to second system, in addition to:
According to the test object, send database-name to the second system and obtain request;
Receive the first data that second system test object according to database-name obtains acquisition request currently connects
Library name;
If first database-name is different from the database-name needed for current test, the second database of input is received
Title, and send database update request to the second system;
It is that the second system, which is received, according to the database update request database update that currently connects test object
Renewal result caused by two databases.
3. according to the method for claim 1, it is characterised in that described according to the test object and the test case
Mark, before sending test case execution request to second system, in addition to:
Identified according to the test object and the test case, sending test data to the second system obtains request;
Receive the second system and acquisition request test corresponding with test case mark is obtained according to the test data
The acquisition result of data.
4. according to the method for claim 3, it is characterised in that methods described also includes:
If the acquisition result is that test data obtains failure, sending the secondary acquisition of test data to the second system please
Ask;
Receive the second system and obtain request from the first system acquisition and the test case according to the test data is secondary
The acquisition result of test data corresponding to mark.
5. according to the method for claim 1, it is characterised in that methods described also includes:
If the implementing result for run succeeded and the returning result be returns successfully, to the second system transmission accreditation
Request;
It is corresponding to receive second system test case mark according to the test case performs voucher making acquisition request
Test case the execution time, and test data and the test case corresponding to test case mark identified corresponding
Test case the execution time according to prestore document format carry out accreditation accreditation result.
6. a kind of test device, it is characterised in that described device includes:
Test object receiving module, for obtaining the test object by testing tool selection, the test object is according to the
The type of service generation of one system, the testing tool is operated in same one end with the first system;
Test case identifies receiving module, is identified for receiving the test case inputted by testing tool;
Test case performs request sending module, for being identified according to the test object and the test case, to the second system
System sends test case and performs request;
Test case implementing result receiving module, request execution is performed according to the test case for receiving the second system
Implementing result caused by test case corresponding to the test case mark;
Test case implementing result returns to request sending module, and request is returned for sending implementing result to the second system;
Test case implementing result returning result receiving module, is returned for receiving the second system according to the implementing result
Request returns to the implementing result returning result of the first system.
7. device according to claim 6, it is characterised in that described device also includes:
Database-name obtains request sending module, for according to the test object, database to be sent to the second system
Name acquiring is asked;
First database-name receiving module, receive second system test according to database-name obtains acquisition request
The first database-name that object currently connects;
Second database-name receiving module, if the database-name required with current test for first database-name
Difference, then receive the second database-name of input;
Database update request sending module, for sending database update request to the second system;
Database update result acquisition module, for receive the second system according to the database update request will test pair
As the database update currently connected updates result caused by the second database.
8. device according to claim 6, it is characterised in that described device also includes:
Test data obtains request sending module, for according to the test object and test case mark, to described the
Two system sends test data and obtains request;
Test data obtains result receiving module, and acquisition request is obtained according to the test data for receiving the second system
With the acquisition result of the corresponding test data of test case mark.
9. device according to claim 8, it is characterised in that described device also includes:
The secondary acquisition request sending module of test data, if being that test data obtains failure for the acquisition result, to institute
State second system and send the secondary acquisition request of test data;
The test data obtains result receiving module and is additionally operable to receive the second system to be obtained according to the test data is secondary
Request is taken to obtain the acquisition result with the corresponding test data of test case mark from the first system.
10. device according to claim 6, it is characterised in that described device also includes:
Accreditation request sending module, if for the implementing result to run succeeded and the returning result is to return successfully,
Accreditation request is sent to the second system;
Accreditation result receiving module, voucher making acquisition request is performed according to the test case for receiving the second system
The execution time of test case corresponding to test case mark, and by test data corresponding to test case mark and
The execution time of test case carries out the accreditation result of accreditation according to the document format that prestores corresponding to the test case mark.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710147237.6A CN107797918B (en) | 2017-03-13 | 2017-03-13 | Test method and test device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710147237.6A CN107797918B (en) | 2017-03-13 | 2017-03-13 | Test method and test device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107797918A true CN107797918A (en) | 2018-03-13 |
CN107797918B CN107797918B (en) | 2020-05-05 |
Family
ID=61530182
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710147237.6A Active CN107797918B (en) | 2017-03-13 | 2017-03-13 | Test method and test device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107797918B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694124A (en) * | 2018-06-19 | 2018-10-23 | 链家网(北京)科技有限公司 | A kind of house prosperity transaction system test data building method and system based on Mock |
CN109617755A (en) * | 2018-11-22 | 2019-04-12 | 银清科技(北京)有限公司 | The acceptance method and device of access system |
CN110489325A (en) * | 2019-07-09 | 2019-11-22 | 微民保险代理有限公司 | Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro |
CN110597736A (en) * | 2019-10-31 | 2019-12-20 | 口碑(上海)信息技术有限公司 | Test data generation method and device |
CN111787089A (en) * | 2020-06-28 | 2020-10-16 | 中国建设银行股份有限公司 | Method, device and system for network integration service of process robot |
CN112783788A (en) * | 2021-02-05 | 2021-05-11 | 北京同邦卓益科技有限公司 | Test system, test method, electronic device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102148729A (en) * | 2011-05-20 | 2011-08-10 | 烽火通信科技股份有限公司 | Automatic test method for private SNMP (simple network management protocol) management instruction of passive optical network equipment |
CN102855182A (en) * | 2011-06-28 | 2013-01-02 | 乐活在线(北京)网络技术有限公司 | Web system test method and device |
US20160314065A1 (en) * | 2015-04-23 | 2016-10-27 | International Business Machines Corporation | Resource-constrained test automation |
-
2017
- 2017-03-13 CN CN201710147237.6A patent/CN107797918B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102148729A (en) * | 2011-05-20 | 2011-08-10 | 烽火通信科技股份有限公司 | Automatic test method for private SNMP (simple network management protocol) management instruction of passive optical network equipment |
CN102855182A (en) * | 2011-06-28 | 2013-01-02 | 乐活在线(北京)网络技术有限公司 | Web system test method and device |
US20160314065A1 (en) * | 2015-04-23 | 2016-10-27 | International Business Machines Corporation | Resource-constrained test automation |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108694124A (en) * | 2018-06-19 | 2018-10-23 | 链家网(北京)科技有限公司 | A kind of house prosperity transaction system test data building method and system based on Mock |
CN109617755A (en) * | 2018-11-22 | 2019-04-12 | 银清科技(北京)有限公司 | The acceptance method and device of access system |
CN110489325A (en) * | 2019-07-09 | 2019-11-22 | 微民保险代理有限公司 | Vehicle insurance data test method, apparatus, test platform and vehicle insurance test macro |
CN110597736A (en) * | 2019-10-31 | 2019-12-20 | 口碑(上海)信息技术有限公司 | Test data generation method and device |
CN111787089A (en) * | 2020-06-28 | 2020-10-16 | 中国建设银行股份有限公司 | Method, device and system for network integration service of process robot |
CN112783788A (en) * | 2021-02-05 | 2021-05-11 | 北京同邦卓益科技有限公司 | Test system, test method, electronic device, and storage medium |
CN112783788B (en) * | 2021-02-05 | 2023-12-05 | 北京同邦卓益科技有限公司 | Test system, method, electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107797918B (en) | 2020-05-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107797918A (en) | Method of testing and test device | |
US8234692B2 (en) | System and method for processing an upload of a program with export compliance information | |
CN106164822B (en) | Method, system, and machine-readable medium for preserving state of a communication session | |
US20100293221A1 (en) | Apparatuses, Methods And Systems For Integrated, Information-Engineered And Self-Improving Advertising, E-Commerce And Online Customer Interactions | |
US9386109B1 (en) | Web page associated with a node in a website traffic pattern | |
CN103608834A (en) | Priority dimensional data conversion path reporting | |
US20150039442A1 (en) | Multiple-Resolution, Information-Engineered, Self-Improving Advertising and Information Access Apparatuses, Methods and Systems | |
JP6302188B2 (en) | System and method for improved information visualization | |
CN103748608A (en) | Path explorer visualization | |
CN103748605A (en) | Conversion type to conversion type funneling | |
CN109416699A (en) | For showing the user interface element of correlated results | |
EP4120207A1 (en) | Methods, systems, articles of manufacture and apparatus to label text on images | |
US20140122299A1 (en) | System and method for facilitating selection of real estate agents | |
CN112948521B (en) | Object handling method and device | |
JP5728630B1 (en) | Information processing apparatus, information processing method, program, and storage medium | |
KR20160076162A (en) | Parts brokerage system with price searching function | |
CN113781149A (en) | Information recommendation method and device, computer-readable storage medium and electronic equipment | |
US8171429B2 (en) | Application navigation | |
US20090276316A1 (en) | Interactive advertisements in a sponsored search environment | |
CN110276660A (en) | A kind of goods distribution method, device and its system | |
CN116628349A (en) | Information recommendation method, device, equipment, storage medium and program product | |
US9818143B2 (en) | Ensuring appearance of merchant offering in network sites | |
US20130138502A1 (en) | Method for Determining Marketing Communications Sales Attribution and a System Therefor | |
CN116594683A (en) | Code annotation information generation method, device, equipment and storage medium | |
US20210216599A1 (en) | Integrated, Information-Engineered and Self- Improving Advertising, E-Commerce and Online Customer Interactions Apparatuses, Processes and System |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |