CN109960644A - A kind of test method and system of SDK - Google Patents

A kind of test method and system of SDK Download PDF

Info

Publication number
CN109960644A
CN109960644A CN201711408941.9A CN201711408941A CN109960644A CN 109960644 A CN109960644 A CN 109960644A CN 201711408941 A CN201711408941 A CN 201711408941A CN 109960644 A CN109960644 A CN 109960644A
Authority
CN
China
Prior art keywords
test
data
sdk
tested
ready
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711408941.9A
Other languages
Chinese (zh)
Inventor
喻胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201711408941.9A priority Critical patent/CN109960644A/en
Publication of CN109960644A publication Critical patent/CN109960644A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses the test method of SDK a kind of, system, electronic equipment and computer readable storage mediums.This method comprises: testing the matched test case of ID when receiving the test sign on including the first test ID according to first, generating and the first test corresponding test data of ID and corresponding configuration file;In response to the request of the SDK to be tested acquisition test data sent, test data generated is sent to SDK to be tested;According to test case, control signal is sent to SDK to be tested, so that SDK to be tested completes the operation to test data according to control signal, data are got in generation ready;According to configuration file, obtains the data of getting ready that SDK to be tested is generated and saved;After this test, according to test case, the data of getting ready of preservation are verified.By the technical program, guarantee the accuracy tested SDK;It is time saving and energy saving, improve the efficiency of SDK test.

Description

A kind of test method and system of SDK
Technical field
The present invention relates to field of computer technology, and in particular to a kind of test method of SDK, system, electronic equipment and meter Calculation machine readable storage medium storing program for executing.
Background technique
Software Development Kit (Software Development Kit, abbreviation SDK) is typically all some soft projects Teacher is the set of developing instrument when specific software package, software frame, hardware platform, operating system etc. establish application software. It is generally integrated the SDK for realizing specific function in the application program of mobile terminal installation, for example, the application installed in mobile terminal In program operation process, user understands real-time reception to the sending out notice of the application program.For example, newly disappearing in chat application Breath is reminded, and is facilitated user's timely learning message and is handled, the function of the PUSH message is by being integrated in application program SDK realize.In order to guarantee the normal table operation for the SDK being integrated into application program, need to test SDK, i.e., The test got data ready, complete to the SDK returned by test SDK.Carrying out accurately completely test to SDK is SDK The committed step of normal table operation.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State test method, system, electronic equipment and the computer readable storage medium of the SDK of problem.
According to an aspect of the invention, there is provided a kind of test method of SDK, wherein the SDK is for being integrated into end Specified function is realized in the application program of end side, this method comprises:
When receiving the test sign on including the first test ID, the matched test of ID is tested according to described first Use-case generates and the first test corresponding test data of ID and corresponding configuration file;
In response to the request of the SDK to be tested acquisition test data sent, test data generated is sent to institute State SDK to be tested;
The matched test case of ID is tested according to described first, sends control signal to the SDK to be tested, so as to The SDK to be tested calls test simulation program integrated in advance, is completed according to the control signal to the test data Operation, generation get data ready;
According to the configuration file, obtains the data of getting ready that the SDK to be tested is generated and saved;
This test after, according to it is described first test the matched test case of ID, to preservation get ready data into Row verification.
Optionally,
It is described when receive including first test ID test sign on when, according to it is described first test ID it is matched Test case, generating with the first test corresponding test data of ID and corresponding configuration file includes: that control server connects Receive including first test ID test sign on when, according to it is described first test the matched test case of ID, generate with The first test corresponding test data of ID and corresponding configuration file, and the test sign on that will include the first test ID It is sent to execute server, so that the execute server is obtained from the control server according to the test sign on With the first test corresponding test data of ID and corresponding configuration file;
The request of the acquisition test data sent in response to SDK to be tested, test data generated is sent It include: the execute server asking in response to the SDK to be tested acquisition test data sent to the SDK to be tested It asks, accessed test data is sent to the SDK to be tested;
The basis and the first test matched test case of ID, send control signal to the SDK to be tested Include: the control server according to the first test matched test case of ID, send control to the SDK to be tested Signal processed;
It is described according to the configuration file, obtain that the SDK to be tested generates to get that data save ready include: institute Execute server is stated according to the configuration file got, obtain the SDK generation to be tested gets data ready, will be described It gets data ready and is sent to the control server, the control server saves the data of getting ready;
The basis and it is described first test the matched test case of ID, to preservation get ready data carry out verification include: The control server tests the matched test case of ID according to described first, verifies to the data of getting ready of preservation.
Optionally, test simulation program integrated in advance in the SDK to be tested is that the control server is sent to The SDK's to be tested.
Optionally, this method further comprises:
When receiving the test sign on including the second test ID again, according to matched with the second test ID Test case generates and the second test corresponding test data of ID and corresponding configuration file;Wherein, generation with it is described The type of the type of the corresponding test data of second test ID and the test data corresponding with the first test ID generated is not Together.
Optionally, described that the type and the survey that the matched test case of ID includes: test data are tested with described first The type of examination data is corresponding to get data ready;
The basis and it is described first test the matched test case of ID, to preservation get ready data carry out verification include:
Judge that is saved gets that data are corresponding with the type of the test data to get whether data match ready ready.
Optionally, the data of getting ready of preservation are carried out school by the basis and the first test matched test case of ID It tests and includes:
The matched test case of ID and corresponding json-schema file are tested according to described first, to preservation Data are got ready to be verified.
Optionally, the test data is ad data.
According to another aspect of the present invention, the test macro of SDK a kind of is provided, wherein the SDK is for being integrated into end Realize that specified function, the system include: in the application program of end side
Generation unit, suitable for being surveyed according to described first when receiving the test sign on including the first test ID The matched test case of ID is tried, is generated and the first test corresponding test data of ID and corresponding configuration file;
Test data transmission unit is adapted for the request for the acquisition test data that SDK to be tested is sent, will give birth to At test data be sent to the SDK to be tested;
Control signal transmitting element, be suitable for according to and the first test matched test case of ID, to described to be tested SDK send control signal, so that the SDK to be tested calls test simulation program integrated in advance, according to the control Signal completes the operation to the test data, and data are got in generation ready;
Get data capture unit ready, be suitable for obtaining the SDK generation to be tested according to the configuration file gets number ready According to being saved;
Verification unit after being suitable for this test, tests the matched test case of ID according to described first, to preservation Data of getting ready verified.
Optionally, the test data transmission unit and the data capture unit of getting ready are arranged in the execute server In;The generation unit, the control signal transmitting element and the verification unit are arranged in the control server;
The control server further include: storage unit;
The generation unit, when suitable for receiving the test sign on including the first test ID, according to described first The matched test case of ID is tested, generates and tests the corresponding test data of ID and corresponding configuration file with described first, and will Test sign on including the first test ID is sent to the execute server;
The storage unit gets data ready suitable for what the reception execute server was sent, gets data ready for what is received It is saved;
The execute server further include: test data acquiring unit;
The test data acquiring unit, be suitable for obtained from the control server according to the test sign on and The first test corresponding test data of ID and corresponding configuration file;
It is described to get data capture unit ready, it is further adapted for the data of getting ready being sent to the control server.
Optionally, test simulation program integrated in advance in the SDK to be tested is that the control server is sent to The SDK's to be tested.
Optionally,
The generation unit is further adapted for when receiving the test sign on including the second test ID again, root According to the second test matched test case of ID, generate and test the corresponding test data of ID with described second and corresponding match Set file;Wherein, the type of test data corresponding with the second test ID and being tested with described first for generation of generation The type of the corresponding test data of ID is different.
Optionally, described that the type and the survey that the matched test case of ID includes: test data are tested with described first The type of examination data is corresponding to get data ready;
The verification unit, suitable for judging that is saved gets that data are corresponding with the type of the test data to get data ready ready Whether match.
Optionally,
The verification unit is suitable for testing the matched test case of ID and corresponding json- according to described first Schema file verifies the data of getting ready of preservation.
Optionally, the test data is ad data.
According to another aspect of the invention, a kind of electronic equipment is provided, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed Device is managed to execute according to method above-mentioned.
In accordance with a further aspect of the present invention, a kind of computer readable storage medium is provided, wherein described computer-readable Storage medium stores one or more programs, and one or more of programs when being executed by a processor, realize side above-mentioned Method.
According to the technique and scheme of the present invention, when receiving the test sign on including the first test ID, according to the The one test matched test case of ID generates and the first test corresponding test data of ID and corresponding configuration file;In response to Test data generated, is sent to SDK to be tested by the request for the acquisition test data that SDK to be tested is sent;According to With the first test matched test case of ID, control signal is sent to SDK to be tested, so that SDK to be tested is called in advance Integrated test simulation program completes the operation to test data according to control signal, and data are got in generation ready;According to configuration text Part obtains the data of getting ready that SDK to be tested is generated and is saved;After this test, matched according to the first test ID Test case, the data of getting ready of preservation are verified.By the technical program, different test numbers is generated according to test ID According to, to complete the test under corresponding test data to SDK, according to configuration file corresponding with test data verification get number ready According to the accuracy that SDK is tested in guarantee;Meanwhile the test process does not need manually to participate in, and is automatically performed the test to SDK, saves Shi Shengli improves the efficiency of SDK test.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow diagram of the test method of SDK according to an embodiment of the invention;
Fig. 2 shows the structural schematic diagrams of the test macro of SDK according to an embodiment of the invention;
Fig. 3 shows the structural schematic diagram of the test macro of SDK in accordance with another embodiment of the present invention;
Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention;
Fig. 5 shows the structural schematic diagram of computer readable storage medium according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the flow diagram of the test method of SDK according to an embodiment of the invention, the present embodiment SDK realizes specified function for being integrated into the application program of terminal side, the present embodiment be from the server side of the test of SDK or Person's system side is illustrated.
As shown in Figure 1, this method comprises:
Step S110 is matched when receiving the test sign on including the first test ID according to the first test ID Test case, generate and test the corresponding test data of ID and corresponding configuration file with first.
Test case is one group of test input, execution condition and the expected results worked out for some special objective, with Just it tests some Program path or verifies whether meet some particular demands.In the present embodiment, it for the test to SDK, needs Test case is worked out to complete the regulation to the test scene of SDK, which is tester's manual compiling, different Test ID correspond to different test cases, each test case includes the create-rule of the test data of test (as tested The type of data), the corresponding executing rule of test, and expected results (such as the result for getting data ready) of test.Tester After member works out test case, prestored.
In the present embodiment, test sign on can be the test that tester clicks manually and start the survey triggered when control Examination instruction, when being also possible to be triggered according to preset test trigger condition (for example, starting to test every preset time), The test sign on of automatic trigger.
It is triggered whenever testing beginning condition, the test sign on for testing ID with one will be generated, according to the survey Try ID search with the matched test case of test ID, corresponding test data will be generated according to test case and corresponding matched Set file.
Here it is included in SDK in the corresponding configuration file of test data, operation needs air exercise points is carried out to test data According to the rule for carrying out packet capturing, corresponding with test case beat is obtained to control after SDK to be tested carries out corresponding operation Point data.
Step S120, in response to the request of the SDK to be tested acquisition test data sent, by test data generated It is sent to SDK to be tested.
When testing beginning, SDK to be tested can also receive the instruction that test starts, and then be obtained according to instruction transmission Take the request of test data.According to the request of the SDK to be tested acquisition test data sent, the test data of generation is sent To SDK to be tested.
Step S130, tests the matched test case of ID according to first, sends control signal to SDK to be tested, with Just SDK to be tested calls test simulation program integrated in advance, completes the operation to test data according to control signal, generates Get data ready.
Because including that the content for getting data ready needed for the test data (such as is clicked, slided in test case Etc. touch-screen events), in order to enable SDK to be tested can return it is matched get data ready, need according to the test case control SDK to be tested executes corresponding operation.
Because SDK to be tested is also not integrated in corresponding application program, the behaviour to test data can't be completed Make, need to be integrated into test simulation program in SDK to be tested in advance herein, when SDK to be tested receives control letter After number, test simulation program integrated in advance is called, completes the operation to test data.
Here get data ready then and be application program in the process of running, the operation data of user, such as journey is applied to this The click data of an advertisement shown in sequence.In the present embodiment, SDK to be tested is tested, is needed to be tested Some operations of SDK automatic imitation user, so that whether the function of testing SDK to be tested is normal or accurate.
For example, sending the instruction for clicking test data to SDK to be tested, then SDK to be tested can call test simulation Program, executes the operation for clicking test data, and what generation was clicked accordingly gets data ready.
Step S140 obtains the data of getting ready that SDK to be tested is generated and is saved according to configuration file.
Because needing to carry out the test data of this test test that is many-sided or more surveying in primary test and getting ready, SDK i.e. to be tested can be generated according to control signal several gets data ready.In this present embodiment, whenever SDK to be tested is raw As soon as getting data ready at, obtain once, and the data of getting ready that will acquire are stored at this corresponding storage location of test, directly Terminate to this test.It is grabbed because being included in SDK in configuration file and carrying out the operation point data that needs to fight each other to test data The rule of packet is obtained when data are got in acquisition ready according to configuration file.
Step S150 after this test, tests the matched test case of ID according to first, gets number ready to preservation According to being verified.
It as described above, can include corresponding to be got ready in data for the test data of this test in test case Hold (for example, it is desired to type of the data of verification), in order to test SDK to be tested in this test, to the behaviour of test data Whether work is accurate comprehensively, and after this test, by the correspondence of preservation, this data of getting ready tested is verified.Verification is logical Later, then this test of SDK to be tested passes through.
When needing to test SDK to be tested next time, then method and step shown in FIG. 1 is repeated, But above-mentioned test ID can be replaced, i.e., can be tested for different test datas.
As it can be seen that through this embodiment, different test datas is generated according to test ID, to complete corresponding test to SDK Test under data gets data ready according to configuration file corresponding with test data verification, guarantees the accuracy tested SDK; Meanwhile the test process does not need manually to participate in, and is automatically performed the test to SDK, and it is time saving and energy saving, improve the efficiency of SDK test.
In one embodiment of the invention,
In step S110 when receive including first test ID test sign on when, according to first test ID The test case matched, generating with the first test corresponding test data of ID and corresponding configuration file includes: that control server connects When receiving the test sign on including the first test ID, the matched test case of ID is tested according to first, is generated and first The corresponding test data of ID and corresponding configuration file are tested, and will be sent to and hold including the test sign on of the first test ID Row server, so that execute server obtains survey corresponding with the first test ID according to test sign on from control server Try data and corresponding configuration file.
The request of the acquisition test data sent in response to SDK to be tested in step S120, by test generated It includes: execute server asking in response to the SDK to be tested acquisition test data sent that data, which are sent to SDK to be tested, It asks, accessed test data is sent to SDK to be tested.
Basis and the first test matched test case of ID in step S130, send control signal to SDK to be tested Include: control server according to the first test matched test case of ID, send control signal to SDK to be tested.
In step S140 according to configuration file, data save includes: to hold for getting ready of obtaining that SDK to be tested generates For row server according to the configuration file got, obtain SDK generation to be tested gets data ready, will get data ready and is sent to control Control server, control server will get data ready and save.
The data of getting ready of preservation are carried out verification packet by basis and the first test matched test case of ID in step S150 Include: control server tests the matched test case of ID according to first, verifies to the data of getting ready of preservation.
In the present embodiment, different terminals executes different steps, better to carry out to different execution steps It distinguishes, is conducive to going on smoothly for the test to SDK to be tested.In the present embodiment, two terminals are introduced, one is to execute Server, one is control server.
Execute server is when receive control server transmission includes the test sign on of the first test ID, from control Control server obtains and the first test corresponding test data of ID and corresponding configuration file;It is sent in response to SDK to be tested Acquisition test data request, test data generated is sent to SDK to be tested;According to the configuration text got Part, obtain SDK generation to be tested gets data ready, will get data ready and is sent to control server.
When control server receives the test sign on including the first test ID, according to matched with the first test ID Test case generates and tests the corresponding test data of ID and corresponding configuration file with first, and will include the first test ID Test sign on is sent to execute server, so that execute server is obtained from control server according to test sign on With the first test corresponding test data of ID and corresponding configuration file;The matched test case of ID is tested according to first, to SDK to be tested sends control signal;Receive execute server transmission gets data ready, will get data ready and saves;This After test, the matched test case of ID is tested according to first, the data of getting ready of preservation are verified.
In the present embodiment, above-mentioned test sign on is that control server is sent to execute server, and controls The test sign on is also sent to SDK to be tested by server, is obtained so that SDK to be tested is sent to execute server The request of test data.
In one embodiment of the invention, test simulation program integrated in advance in above-mentioned SDK to be tested is control Control server is sent to SDK's to be tested.
For example, test simulation program here can be test demo, when test starts, test dimo receives test and opens Begin to instruct, sends the request for obtaining test data.
In one embodiment of the invention, method shown in FIG. 1 further comprises: surveying when receiving again including second When trying the test sign on of ID, the matched test case of ID is tested according to second, generates survey corresponding with the second test ID Try data and corresponding configuration file;Wherein, generation with the type of the second corresponding test data of test ID and generation with The type of the corresponding test data of first test ID is different.
Because when SDK sends the request for obtaining test data, can not determine to obtain is what kind of test data, So in order to realize the test under the different test datas to SDK to be tested, it, can be according to different test ID in the present embodiment Different test datas is generated, to complete the test under different test datas to SDK, realizes the comprehensive test to SDK.Institute In the present embodiment, when receiving the test sign on including the second test ID, then to generate corresponding with the first test ID The different types of test data of test data, for example, the first corresponding test data generated of test ID is the advertisement of links category, The test data that then the second test ID is generated can be the advertisement of video class.
After generating the second test corresponding test data of ID and corresponding configuration file, then continue to execute shown in Fig. 1 The test under the test data to SDK to be tested can be realized in other steps.
In one embodiment of the invention, working as in step S110, receives the test including the first test ID and starts to refer to When enabling, according to the first test matched test case of ID, generate and test the corresponding test data of ID with first and corresponding match Setting file includes:
When receiving the test sign on including the first test ID, test ID according to the pre-stored data and test case Mapping table, generate and test the corresponding test data of the matched test case of ID and corresponding configuration file with first.
Here the corresponding relation table of test ID and test case are pre-stored.
In one embodiment of the invention, shown in FIG. 1 and the first test matched test case of ID includes: test number According to type, it is corresponding with the type of test data get data ready, to fight each other, point data is accurately verified.
The then basis in step S150 and the first test matched test case of ID, verify the data of getting ready of preservation It include: to judge that is saved gets that data are corresponding with the type of test data to get whether data match ready ready.
For example, the data of getting ready in test case are to get data ready for the click of the advertisement of links category, then when examining, Judge save get ready data whether be click get data ready.
In one embodiment of the invention, the basis in step S150 and the first test matched test case of ID are right Save get ready data carry out verification include: according to and the first test matched test case of ID and corresponding json- Schema file verifies the data of getting ready of preservation.
Json-schema is description JSON data format;Purposes that there are many JSON modes (application program/mode+JSON), One of them is exactly case verification.Verification process can be interactive or non-interactive type.For example, application program can be used JSON mode makes the content of interaction generate the number in addition to user's input checking or the various sources acquisitions of verifying to construct user interface According to.
In the present embodiment, the data that data are JSON data formats are got ready, by json-schema file, according to The first test matched test case of ID verifies the data of getting ready of preservation.
In one embodiment of the invention, the test data in the various embodiments described above is ad data.
That is, in the present embodiment, realizing that the SDK of specified function is in the application program of terminal side for being integrated into The SDK of advertisement pushing function is realized in the application.
In a specific example, SDK to be tested is the SDK for realizing advertisement pushing function.When receiving including ID1 Test sign on when, according to the matched test case 1 of ID1, generate corresponding with ID1 ad data 1 and corresponding match Set file 1;In response to the request of the SDK to be tested acquisition ad data sent, by ad data 1 generated be sent to The SDK of test;According to the matched test case 1 of ID1, control signal is sent to SDK to be tested, so as to SDK to be tested Test simulation program integrated in advance is called, the operation to ad data 1 is completed according to control signal, data are got in generation ready;Root According to configuration file 1, obtains the data of getting ready that SDK to be tested is generated and saved;After this test, matched according to ID1 Test case 1, the data of getting ready of preservation are verified.When carrying out the test of next time, receives the test including ID2 and open Begin instruction when, according to the matched test case 2 of ID2, generate corresponding with ID2 ad data 2 and corresponding configuration file 2; In response to the request of the SDK to be tested acquisition ad data sent, ad data 2 generated is sent to be tested SDK;According to test case 2, control signal is sent to SDK to be tested, so that SDK to be tested calls test integrated in advance Simulation program completes the operation to ad data 2 according to control signal, and data are got in generation ready;According to configuration file 2, obtain to The data of getting ready that the SDK of test is generated are saved;After this test, according to test case 2 ready, data are got to preservation It is verified.
Fig. 2 shows the structural schematic diagram of the test macro of SDK according to an embodiment of the invention, SDK is for integrating Specified function is realized into the application program of terminal side.As shown in Fig. 2, the test macro 200 of the SDK includes:
Generation unit 210, suitable for being tested according to first when receiving the test sign on including the first test ID The matched test case of ID generates and the first test corresponding test data of ID and corresponding configuration file.
Test case is one group of test input, execution condition and the expected results worked out for some special objective, with Just it tests some Program path or verifies whether meet some particular demands.In the present embodiment, it for the test to SDK, needs Test case is worked out to complete the regulation to the test scene of SDK, which is tester's manual compiling, different Test ID correspond to different test cases, each test case includes the create-rule of the test data of test (as tested The type of data), the corresponding executing rule of test, and expected results (such as the result for getting data ready) of test.Tester After member works out test case, prestored.
In the present embodiment, test sign on can be the test that tester clicks manually and start the survey triggered when control Examination instruction, when being also possible to be triggered according to preset test trigger condition (for example, starting to test every preset time), The test sign on of automatic trigger.
It is triggered whenever testing beginning condition, the test sign on for testing ID with one will be generated, according to the survey Try ID search with the matched test case of test ID, corresponding test data will be generated according to test case and corresponding matched Set file.
Here it is included in SDK in the corresponding configuration file of test data, operation needs air exercise points is carried out to test data According to the rule for carrying out packet capturing, corresponding with test case beat is obtained to control after SDK to be tested carries out corresponding operation Point data.
Test data transmission unit 220 is adapted for the request for the acquisition test data that SDK to be tested is sent, will Test data generated is sent to SDK to be tested.
When testing beginning, SDK to be tested can also receive the instruction that test starts, and then be obtained according to instruction transmission Take the request of test data.According to the request of the SDK to be tested acquisition test data sent, the test data of generation is sent To SDK to be tested.
Control signal transmitting element 230 is suitable for testing the matched test case of ID according to first, to SDK to be tested Control signal is sent, so that SDK to be tested calls test simulation program integrated in advance, according to the control complete pairwise testing of signal Data are got in the operation of data, generation ready.
Because including that the content for getting data ready needed for the test data (such as is clicked, slided in test case Etc. touch-screen events), in order to enable SDK to be tested can return it is matched get data ready, need according to the test case control SDK to be tested executes corresponding operation.
Because SDK to be tested is also not integrated in corresponding application program, the behaviour to test data can't be completed Make, need to be integrated into test simulation program in SDK to be tested in advance herein, when SDK to be tested receives control letter After number, test simulation program integrated in advance is called, completes the operation to test data.
Here get data ready then and be application program in the process of running, the operation data of user, such as journey is applied to this The click data of an advertisement shown in sequence.In the present embodiment, SDK to be tested is tested, is needed to be tested Some operations of SDK automatic imitation user, so that whether the function of testing SDK to be tested is normal or accurate.
For example, sending the instruction for clicking test data to SDK to be tested, then SDK to be tested can call test simulation Program, executes the operation for clicking test data, and what generation was clicked accordingly gets data ready.
Get data capture unit 240 ready, be suitable for being obtained according to configuration file SDK to be tested generates get ready data into Row saves.
Because needing to carry out the test data of this test test that is many-sided or more surveying in primary test and getting ready, SDK i.e. to be tested can be generated according to control signal several gets data ready.In this present embodiment, whenever SDK to be tested is raw As soon as getting data ready at, obtain once, and the data of getting ready that will acquire are stored at this corresponding storage location of test, directly Terminate to this test.It is grabbed because being included in SDK in configuration file and carrying out the operation point data that needs to fight each other to test data The rule of packet is obtained when data are got in acquisition ready according to configuration file.
Verification unit 250 after being suitable for this test, tests the matched test case of ID according to first, to preservation Data of getting ready verified.
It as described above, can include corresponding to be got ready in data for the test data of this test in test case Hold (for example, it is desired to type of the data of verification), in order to test SDK to be tested in this test, to the behaviour of test data Whether work is accurate comprehensively, and after this test, by the correspondence of preservation, this data of getting ready tested is verified.Verification is logical Later, then this test of SDK to be tested passes through.
When needing to test SDK to be tested next time, then method and step shown in FIG. 1 is repeated, But above-mentioned test ID can be replaced, i.e., can be tested for different test datas.
As it can be seen that through this embodiment, different test datas is generated according to test ID, to complete corresponding test to SDK Test under data gets data ready according to configuration file corresponding with test data verification, guarantees the accuracy tested SDK; Meanwhile the test process does not need manually to participate in, and is automatically performed the test to SDK, and it is time saving and energy saving, improve the efficiency of SDK test.
In one embodiment of the invention, system shown in FIG. 1 includes execute server and control server.
Test data transmission unit 220 is arranged in execute server with data capture unit 240 is got ready;Generation unit 210, control signal transmitting element 230 and verification unit setting 250 are in control server.
In order to completely realize the technical solution, execute server further include: test data acquiring unit;Control clothes Business device further include: storage unit.
Generation unit 210 tests ID according to first when suitable for receiving the test sign on including the first test ID Matched test case generates and tests the corresponding test data of ID and corresponding configuration file with first, and will include the first survey The test sign on of examination ID is sent to execute server.
Test data acquiring unit is suitable for being obtained from control server and the first ID pairs of test according to test sign on The test data answered and corresponding configuration file.
Get data capture unit 230 ready, data will be got ready by, which being further adapted for, is sent to control server.
In the present embodiment, different terminals executes different steps, better to carry out to different execution steps It distinguishes, is conducive to going on smoothly for the test to SDK to be tested.In the present embodiment, two terminals are introduced, one is to execute Server, one is control server.
Execute server is obtained when receive control server transmission includes the test sign on of the first test ID With the first test corresponding test data of ID and corresponding configuration file;Number is tested in response to the acquisition that SDK to be tested is sent According to request, test data generated is sent to SDK to be tested;According to the configuration file got, obtain to be tested SDK generate get data ready, data will be got ready and be sent to control server.
When control server receives the test sign on including the first test ID, according to matched with the first test ID Test case generates and tests the corresponding test data of ID and corresponding configuration file with first, and will include the first test ID Test sign on is sent to execute server, so that execute server is obtained from control server according to test sign on With the first test corresponding test data of ID and corresponding configuration file;The matched test case of ID is tested according to first, to SDK to be tested sends control signal;Receive execute server transmission gets data ready, will get data ready and saves;This After test, the matched test case of ID is tested according to first, the data of getting ready of preservation are verified.
In the present embodiment, above-mentioned test sign on is that control server is sent to execute server, and controls The test sign on is also sent to SDK to be tested by server, is obtained so that SDK to be tested is sent to execute server The request of test data.
In one embodiment of the invention, test simulation program integrated in advance in above-mentioned SDK to be tested is control Control server is sent to SDK's to be tested.For example, test simulation program here can be test demo, when test starts, Test dimo receives test sign on, sends the request for obtaining test data.
In one embodiment of the invention, generation unit 210 are further adapted for receive again including the second test When the test sign on of ID, the matched test case of ID is tested according to second, generates test corresponding with the second test ID Data and corresponding configuration file;Wherein, generation with the type of the second corresponding test data of test ID and generation and the The type of the corresponding test data of one test ID is different.
Because when SDK sends the request for obtaining test data, can not determine to obtain is what kind of test data, So in order to realize the test under the different test datas to SDK to be tested, it, can be according to different test ID in the present embodiment Different test datas is generated, to complete the test under different test datas to SDK, realizes the comprehensive test to SDK.Institute In the present embodiment, when receiving the test sign on including the second test ID, then to generate corresponding with the first test ID The different types of test data of test data, for example, the first corresponding test data generated of test ID is the advertisement of links category, The test data that then the second test ID is generated can be the advertisement of video class.
After generating the second test corresponding test data of ID and corresponding configuration file, then continue to execute shown in Fig. 1 The test under the test data to SDK to be tested can be realized in other steps.
In one embodiment of the invention, generation unit 210 are particularly adapted to work as the survey for receiving and testing ID including first When trying sign on, the mapping table of test ID and test case according to the pre-stored data are generated and are matched with the first test ID The corresponding test data of test case and corresponding configuration file.
Here the corresponding relation table of test ID and test case are pre-stored.
In one embodiment of the invention, it is above-mentioned with first test the matched test case of ID include: test data Type, it is corresponding with the type of test data get data ready, to fight each other, point data is accurately verified.
Verification unit 250, suitable for judging what is saved gets whether data are corresponding with the type of test data gets data ready ready Matching.
For example, the data of getting ready in test case are to get data ready for the click of the advertisement of links category, then when examining, Judge save get ready data whether be click get data ready.
In one embodiment of the invention, verification unit 250 are suitable for testing the matched test case of ID according to first And corresponding json-schema file, the data of getting ready of preservation are verified.
Json-schema is description JSON data format;Purposes that there are many JSON modes (application program/mode+JSON), One of them is exactly case verification.Verification process can be interactive or non-interactive type.For example, application program can be used JSON mode makes the content of interaction generate the number in addition to user's input checking or the various sources acquisitions of verifying to construct user interface According to.
In the present embodiment, the data that data are JSON data formats are got ready, by json-schema file, according to The first test matched test case of ID verifies the data of getting ready of preservation.
In one embodiment of the invention, the test data in the various embodiments described above is ad data.
That is, in the present embodiment, realizing that the SDK of specified function is in the application program of terminal side for being integrated into The SDK of advertisement pushing function is realized in the application.
Fig. 3 shows the structural schematic diagram of the test macro of SDK in accordance with another embodiment of the present invention.As shown in figure 3, The test macro 300 of the SDK includes: execute server 310 and control server 320.
Execute server 310, suitable for including that the first test for testing ID starts receive the transmission of control server 320 When instruction, obtained and the first test corresponding test data of ID and corresponding configuration file from control server 320;In response to Test data generated, is sent to SDK to be tested by the request for the acquisition test data that the SDK of test is sent;According to obtaining The configuration file got, obtain SDK generation to be tested gets data ready, will get data ready and is sent to control server 320.
Control server 320 is tested when suitable for receiving the test sign on including the first test ID according to first The matched test case of ID generates and tests the corresponding test data of ID and corresponding configuration file with first, and will include first The test sign on of test ID is sent to execute server 310, so as to execute server 310 according to test sign on from control It is obtained in control server 320 and the first test corresponding test data of ID and corresponding configuration file;ID is tested according to first Matched test case sends control signal to SDK to be tested;Receive the transmission of execute server 310 gets data ready, will beat Point data is saved;After this test, the matched test case of ID is tested according to first, data are got ready to preservation It is verified.
The present invention also provides a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, executable instruction executes processor when executed The test method of SDK according to figure 1 and its each embodiment.
Fig. 4 shows the illustrative view of functional configuration of electronic equipment according to an embodiment of the invention.As shown in figure 4, should Electronic equipment 400 includes:
Processor 410;And it is arranged to the memory 420 of storage computer executable instructions (program code), it is depositing In reservoir 420, there is the memory space 430 of storage program code, for executing the program code of steps of a method in accordance with the invention 440 are stored in memory space 430, and it is according to figure 1 and its each which when executed execute processor 410 The test method of SDK in embodiment.
Fig. 5 shows a kind of structural schematic diagram of computer readable storage medium according to an embodiment of the invention.Such as Shown in Fig. 5, which stores one or more programs (program code) 510, one or more programs (program code) 510 when being executed by a processor, realizes the test method of the SDK in shown in FIG. 1 and its each embodiment.
It should be noted that each embodiment of electronic equipment shown in Fig. 4 and computer readable storage medium shown in fig. 5 It is corresponding identical as each embodiment of method shown in FIG. 1, it has been described in detail above, details are not described herein.
In conclusion according to the technique and scheme of the present invention, when receiving the test sign on including the first test ID, According to literary with the first test matched test case of ID, generation and the first test corresponding test data of ID and corresponding configuration Part;In response to the request of the SDK to be tested acquisition test data sent, test data generated is sent to be tested SDK;The matched test case of ID is tested according to first, control signal is sent to SDK to be tested, so as to SDK to be tested Test simulation program integrated in advance is called, the operation to test data is completed according to control signal, data are got in generation ready;According to Configuration file obtains the data of getting ready that SDK to be tested is generated and is saved;After this test, tested according to first The matched test case of ID verifies the data of getting ready of preservation.By the technical program, generated according to test ID different Test data is beaten to complete the test under corresponding test data to SDK according to configuration file corresponding with test data verification Point data guarantees the accuracy tested SDK;Meanwhile the test process does not need manually to participate in, and is automatically performed the survey to SDK Examination, it is time saving and energy saving, improve the efficiency of SDK test.
It should be understood that
Algorithm and display be not inherently related to any certain computer, virtual bench or other equipment provided herein. Various fexible units can also be used together with teachings based herein.As described above, it constructs required by this kind of device Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize test macro, the electronic equipment of SDK according to an embodiment of the present invention With some or all functions of some or all components in computer readable storage medium.The present invention is also implemented as For execute method as described herein some or all device or device program (for example, computer program and Computer program product).It is such to realize that program of the invention can store on a computer-readable medium, or can have The form of one or more signal.Such signal can be downloaded from an internet website to obtain, or on the carrier signal It provides, or is provided in any other form.
For example, Fig. 4 shows the structural schematic diagram of electronic equipment according to an embodiment of the invention.The electronic equipment 400 conventionally comprise processor 410 and are arranged to the memory 420 of storage computer executable instructions (program code).It deposits Reservoir 420 can be such as flash memory, EEPROM (electrically erasable programmable read-only memory), EPROM, hard disk or ROM etc Electronic memory.Memory 420 has storage for executing any method and step in shown in FIG. 1 and each embodiment The memory space 430 of program code 440.For example, the memory space 430 for program code may include being respectively used to realization Each program code 440 of various steps in the method in face.These program codes can be from one or more computer journey It reads or is written in sequence product in this one or more computer program product.These computer program products include all Such as hard disk, the program code carrier of compact-disc (CD), storage card or floppy disk etc.Such computer program product is usually Such as computer readable storage medium 500 described in Fig. 5.The computer readable storage medium 500 can have the electronics with Fig. 4 Memory paragraph, the memory space etc. of 420 similar arrangement of memory in equipment.Program code can be pressed for example in a suitable form Contracting.In general, storage unit is stored with the program code 510 for executing steps of a method in accordance with the invention, it can by such as The program code that 410 etc processor is read causes the electronic equipment to be held when these program codes are run by electronic equipment Each step in row method described above.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of test method of SDK, wherein the SDK is used to be integrated into the application journey of terminal side Specified function is realized in sequence, this method comprises:
When receiving the test sign on including the first test ID, the matched test of ID is tested according to described first Use-case generates and the first test corresponding test data of ID and corresponding configuration file;
In response to the request of the SDK to be tested acquisition test data sent, test data generated is sent to institute State SDK to be tested;
The matched test case of ID is tested according to described first, sends control signal to the SDK to be tested, so as to The SDK to be tested calls test simulation program integrated in advance, is completed according to the control signal to the test data Operation, generation get data ready;
According to the configuration file, obtains the data of getting ready that the SDK to be tested is generated and saved;
This test after, according to it is described first test the matched test case of ID, to preservation get ready data into Row verification.
A2, method as described in a1, wherein
It is described when receive including first test ID test sign on when, according to it is described first test ID it is matched Test case, generating with the first test corresponding test data of ID and corresponding configuration file includes: that control server connects Receive including first test ID test sign on when, according to it is described first test the matched test case of ID, generate with The first test corresponding test data of ID and corresponding configuration file, and the test sign on that will include the first test ID It is sent to execute server, so that the execute server is obtained from the control server according to the test sign on With the first test corresponding test data of ID and corresponding configuration file;
The request of the acquisition test data sent in response to SDK to be tested, test data generated is sent It include: the execute server asking in response to the SDK to be tested acquisition test data sent to the SDK to be tested It asks, accessed test data is sent to the SDK to be tested;
The basis and the first test matched test case of ID, send control signal to the SDK to be tested Include: the control server according to the first test matched test case of ID, send control to the SDK to be tested Signal processed;
It is described according to the configuration file, obtain that the SDK to be tested generates to get that data save ready include: institute Execute server is stated according to the configuration file got, obtain the SDK generation to be tested gets data ready, will be described It gets data ready and is sent to the control server, the control server saves the data of getting ready;
The basis and it is described first test the matched test case of ID, to preservation get ready data carry out verification include: The control server tests the matched test case of ID according to described first, verifies to the data of getting ready of preservation.
A3, method as described in a1, wherein test simulation program integrated in advance is described in the SDK to be tested Control server is sent to the SDK's to be tested.
A4, method as described in a1, wherein this method further comprises:
When receiving the test sign on including the second test ID again, according to matched with the second test ID Test case generates and the second test corresponding test data of ID and corresponding configuration file;Wherein, generation with it is described The type of the type of the corresponding test data of second test ID and the test data corresponding with the first test ID generated is not Together.
A5, method as described in a1, wherein the described and described first test matched test case of ID includes: test number According to type, corresponding with the type of the test data get data ready;
The basis and it is described first test the matched test case of ID, to preservation get ready data carry out verification include:
Judge that is saved gets that data are corresponding with the type of the test data to get whether data match ready ready.
A6, method as described in a1, wherein the basis and the first test matched test case of ID, to preservation Get ready data carry out verification include:
The matched test case of ID and corresponding json-schema file are tested according to described first, to preservation Data are got ready to be verified.
A7, method as described in a1, wherein the test data is ad data.
The invention also discloses B8, a kind of test macro of SDK, wherein the SDK is used to be integrated into the application of terminal side Realize that specified function, the system include: in program
Generation unit, suitable for being surveyed according to described first when receiving the test sign on including the first test ID The matched test case of ID is tried, is generated and the first test corresponding test data of ID and corresponding configuration file;
Test data transmission unit is adapted for the request for the acquisition test data that SDK to be tested is sent, will give birth to At test data be sent to the SDK to be tested;
Control signal transmitting element, be suitable for according to and the first test matched test case of ID, to described to be tested SDK send control signal, so that the SDK to be tested calls test simulation program integrated in advance, according to the control Signal completes the operation to the test data, and data are got in generation ready;
Get data capture unit ready, be suitable for obtaining the SDK generation to be tested according to the configuration file gets number ready According to being saved;
Verification unit after being suitable for this test, tests the matched test case of ID according to described first, to preservation Data of getting ready verified.
B9, the system as described in B8, wherein the system includes execute server and control server;
The test data transmission unit and the data capture unit of getting ready are arranged in the execute server;It is described Generation unit, the control signal transmitting element and the verification unit are arranged in the control server;
The control server further include: storage unit;
The generation unit, when suitable for receiving the test sign on including the first test ID, according to described first The matched test case of ID is tested, generates and tests the corresponding test data of ID and corresponding configuration file with described first, and will Test sign on including the first test ID is sent to the execute server;
The storage unit gets data ready suitable for what the reception execute server was sent, gets data ready for what is received It is saved;
The execute server further include: test data acquiring unit;
The test data acquiring unit, be suitable for obtained from the control server according to the test sign on and The first test corresponding test data of ID and corresponding configuration file;
It is described to get data capture unit ready, it is further adapted for the data of getting ready being sent to the control server.
B10, the system as described in B8, wherein test simulation program integrated in advance is described in the SDK to be tested Control server is sent to the SDK's to be tested.
B11, the system as described in B8, wherein
The generation unit is further adapted for when receiving the test sign on including the second test ID again, root According to the second test matched test case of ID, generate and test the corresponding test data of ID with described second and corresponding match Set file;Wherein, the type of test data corresponding with the second test ID and being tested with described first for generation of generation The type of the corresponding test data of ID is different.
B12, the system as described in B8, wherein the described and described first test matched test case of ID includes: test number According to type, corresponding with the type of the test data get data ready;
The verification unit, suitable for judging that is saved gets that data are corresponding with the type of the test data to get data ready ready Whether match.
B13, the system as described in B8, wherein
The verification unit is suitable for testing the matched test case of ID and corresponding json- according to described first Schema file verifies the data of getting ready of preservation.
B14, the system as described in B8, wherein the test data is ad data.
Invention additionally discloses C15, a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the place when executed It manages device and executes the method according to any one of A1~A7.
The invention also discloses D16, a kind of computer readable storage medium, wherein the computer readable storage medium One or more programs are stored, one or more of programs when being executed by a processor, are realized described in any one of A1~A7 Method.

Claims (10)

1. a kind of test method of SDK, wherein the SDK realizes specified function for being integrated into the application program of terminal side, This method comprises:
When receiving the test sign on including the first test ID, used according to the matched test of the first test ID Example generates and the first test corresponding test data of ID and corresponding configuration file;
In response to the request of SDK to be tested the acquisitions test data sent, by test data generated be sent to described in The SDK of test;
The matched test case of ID is tested according to described first, control signal is sent to the SDK to be tested, so as to described SDK to be tested calls test simulation program integrated in advance, completes the behaviour to the test data according to the control signal Make, data are got in generation ready;
According to the configuration file, obtains the data of getting ready that the SDK to be tested is generated and saved;
After this test, the matched test case of ID is tested according to described first, school is carried out to the data of getting ready of preservation It tests.
2. the method for claim 1, wherein
It is described when receive including first test ID test sign on when, according to it is described first test the matched test of ID Use-case, generating with the first test corresponding test data of ID and corresponding configuration file includes: that control server receives Including first test ID test sign on when, according to it is described first test the matched test case of ID, generate with it is described The first test corresponding test data of ID and corresponding configuration file, and the test sign on transmission that will include the first test ID To execute server, so that the execute server is obtained from the control server and institute according to the test sign on State the corresponding test data of the first test ID and corresponding configuration file;
The request of the acquisition test data sent in response to SDK to be tested, is sent to institute for test data generated Stating SDK to be tested includes: request of the execute server in response to the SDK to be tested acquisition test data sent, will Accessed test data is sent to the SDK to be tested;
The basis and the first test matched test case of ID, sending control signal to the SDK to be tested includes: The control server tests the matched test case of ID according to described first, sends control letter to the SDK to be tested Number;
It is described according to the configuration file, obtain that the SDK to be tested generates to get that data save ready include: described hold For row server according to the configuration file got, obtain the SDK generation to be tested gets data ready, gets ready described Data are sent to the control server, and the control server saves the data of getting ready;
The basis and the first test matched test case of ID, to the data of getting ready of preservation, to carry out verification include: described Control server tests the matched test case of ID according to described first, verifies to the data of getting ready of preservation.
3. the method for claim 1, wherein test simulation program integrated in advance in the SDK to be tested is institute It states control server and is sent to the SDK's to be tested.
4. the method for claim 1, wherein this method further comprises:
When receiving the test sign on including the second test ID again, the matched test of ID is tested according to described second Use-case generates and the second test corresponding test data of ID and corresponding configuration file;Wherein, generation with described second The type of test data corresponding from the first test ID testing the type of the corresponding test data of ID and generating is different.
5. testing the matched test case of ID with described first described in the method for claim 1, wherein includes: test The type of data corresponding with the type of the test data gets data ready;
The basis and it is described first test the matched test case of ID, to preservation get ready data carry out verification include:
Judge that is saved gets that data are corresponding with the type of the test data to get whether data match ready ready.
6. the method for claim 1, wherein basis and the first test matched test case of ID, to guarantor Deposit get ready data carry out verification include:
The matched test case of ID and corresponding json-schema file are tested according to described first, preservation is got ready Data are verified.
7. the method for claim 1, wherein the test data is ad data.
8. a kind of test macro of SDK, wherein the SDK realizes specified function for being integrated into the application program of terminal side, The system includes:
Generation unit, suitable for testing ID according to described first when receiving the test sign on including the first test ID Matched test case generates and the first test corresponding test data of ID and corresponding configuration file;
Test data transmission unit is adapted for the request for the acquisition test data that SDK to be tested is sent, will be generated Test data is sent to the SDK to be tested;
Control signal transmitting element is suitable for testing the matched test case of ID according to described first, to the SDK to be tested Control signal is sent, it is complete according to the control signal so that the SDK to be tested calls test simulation program integrated in advance Data are got in the operation of the pairs of test data, generation ready;
Get data capture unit ready, be suitable for according to the configuration file, obtain that the SDK to be tested generates get ready data into Row saves;
Verification unit after being suitable for this test, is tested the matched test case of ID according to described first, is beaten preservation Point data is verified.
9. a kind of electronic equipment, wherein the electronic equipment includes:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction makes the processor when executed Execute method according to any one of claims 1 to 7.
10. a kind of computer readable storage medium, wherein the computer-readable recording medium storage one or more program, One or more of programs when being executed by a processor, realize method according to any one of claims 1 to 7.
CN201711408941.9A 2017-12-22 2017-12-22 A kind of test method and system of SDK Pending CN109960644A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711408941.9A CN109960644A (en) 2017-12-22 2017-12-22 A kind of test method and system of SDK

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711408941.9A CN109960644A (en) 2017-12-22 2017-12-22 A kind of test method and system of SDK

Publications (1)

Publication Number Publication Date
CN109960644A true CN109960644A (en) 2019-07-02

Family

ID=67019795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711408941.9A Pending CN109960644A (en) 2017-12-22 2017-12-22 A kind of test method and system of SDK

Country Status (1)

Country Link
CN (1) CN109960644A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031378A (en) * 2019-12-20 2020-04-17 山东云缦智能科技有限公司 Method for dotting video and recording EPG (electronic program guide) information
CN111651366A (en) * 2020-07-06 2020-09-11 Oppo广东移动通信有限公司 SDK test method, device, equipment and storage medium
CN111695882A (en) * 2020-06-18 2020-09-22 行吟信息科技(武汉)有限公司 Dotting test method and platform
CN111786939A (en) * 2020-03-16 2020-10-16 北京京东尚科信息技术有限公司 Method, device and system for testing management platform of Internet of things
CN112068878A (en) * 2020-09-08 2020-12-11 北京字节跳动网络技术有限公司 Software development kit state detection method, device and storage medium
CN112667509A (en) * 2020-12-28 2021-04-16 郑州阿帕斯数云信息科技有限公司 SDK access test method and device
CN113485914A (en) * 2021-06-09 2021-10-08 镁佳(北京)科技有限公司 Vehicle-mounted voice SDK testing method, device and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20160342501A1 (en) * 2015-05-18 2016-11-24 Hcl Technologies Limited Accelerating Automated Testing
CN106294102A (en) * 2015-05-20 2017-01-04 腾讯科技(深圳)有限公司 The method of testing of application program, client, server and system
CN106294101A (en) * 2015-05-19 2017-01-04 阿里巴巴集团控股有限公司 The page gets method of testing and device ready
CN106649107A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automated testing method and device for stability of Android system
CN106886494A (en) * 2017-03-07 2017-06-23 深圳国泰安教育技术股份有限公司 A kind of automatic interface testing method and its system
CN107357728A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150356001A1 (en) * 2014-06-06 2015-12-10 Ebay Inc. Unit test automation for business rules and applications
US20160342501A1 (en) * 2015-05-18 2016-11-24 Hcl Technologies Limited Accelerating Automated Testing
CN106294101A (en) * 2015-05-19 2017-01-04 阿里巴巴集团控股有限公司 The page gets method of testing and device ready
CN106294102A (en) * 2015-05-20 2017-01-04 腾讯科技(深圳)有限公司 The method of testing of application program, client, server and system
CN106649107A (en) * 2016-12-09 2017-05-10 武汉斗鱼网络科技有限公司 Automated testing method and device for stability of Android system
CN106886494A (en) * 2017-03-07 2017-06-23 深圳国泰安教育技术股份有限公司 A kind of automatic interface testing method and its system
CN107357728A (en) * 2017-07-07 2017-11-17 广东中星电子有限公司 The method and electronic equipment of test software

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郑炜: "基于模型的软件验证与测试", vol. 01, 西北工业大学出版社, pages: 74 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031378A (en) * 2019-12-20 2020-04-17 山东云缦智能科技有限公司 Method for dotting video and recording EPG (electronic program guide) information
CN111786939A (en) * 2020-03-16 2020-10-16 北京京东尚科信息技术有限公司 Method, device and system for testing management platform of Internet of things
CN111786939B (en) * 2020-03-16 2022-09-30 北京京东尚科信息技术有限公司 Method, device and system for testing management platform of Internet of things
CN111695882A (en) * 2020-06-18 2020-09-22 行吟信息科技(武汉)有限公司 Dotting test method and platform
CN111695882B (en) * 2020-06-18 2023-10-31 行吟信息科技(武汉)有限公司 Dotting test method and platform
CN111651366A (en) * 2020-07-06 2020-09-11 Oppo广东移动通信有限公司 SDK test method, device, equipment and storage medium
CN111651366B (en) * 2020-07-06 2023-08-08 Oppo广东移动通信有限公司 SDK test method, device, equipment and storage medium
CN112068878A (en) * 2020-09-08 2020-12-11 北京字节跳动网络技术有限公司 Software development kit state detection method, device and storage medium
CN112068878B (en) * 2020-09-08 2023-08-08 抖音视界有限公司 Method, device and storage medium for detecting software development kit state
CN112667509B (en) * 2020-12-28 2023-04-07 郑州阿帕斯数云信息科技有限公司 SDK access test method and device
CN112667509A (en) * 2020-12-28 2021-04-16 郑州阿帕斯数云信息科技有限公司 SDK access test method and device
CN113485914B (en) * 2021-06-09 2022-03-08 镁佳(北京)科技有限公司 Vehicle-mounted voice SDK testing method, device and system
CN113485914A (en) * 2021-06-09 2021-10-08 镁佳(北京)科技有限公司 Vehicle-mounted voice SDK testing method, device and system

Similar Documents

Publication Publication Date Title
CN109960644A (en) A kind of test method and system of SDK
US10642721B2 (en) Generation of automated testing scripts by converting manual test cases
CN109446059A (en) The generation method and device of test template script
Gupta et al. An experimental evaluation of the effectiveness and efficiency of the test driven development
US7913229B2 (en) Computer-implemented system for generating automated tests from a web application
US20130305212A1 (en) Dry-run design time environment
US20030033592A1 (en) Software debugger and software development support system
CN108347356B (en) Multi-protocol unit testing method and device, electronic equipment and storage medium
Neto et al. A regression testing approach for software product lines architectures
Khanam et al. Evaluating the effectiveness of test driven development: advantages and pitfalls
CN110196809B (en) Interface testing method and device
CN106776334A (en) Based on annotation generation method of test example and device
CN109960648A (en) A kind of test method of application program, device
Do et al. Debugging static analysis
Colombo et al. Verifying web applications: from business level specifications to automated model-based testing
Haendler et al. An interactive tutoring system for training software refactoring
Williams et al. Examination of the software architecture change characterization scheme using three empirical studies
Zheng et al. Agentstudio: A toolkit for building general virtual agents
Gruner et al. Software testing in small IT companies: a (not only) South African problem
Rodriguez et al. Crowd-based mining of reusable process model patterns
Guana et al. How Do Developers Solve Software-engineering Tasks on Model-based Code Generators? An Empirical Study Design.
Mao Multi-objective search-based mobile testing
Liu et al. Efficient testing based on logical architecture
US20160246708A1 (en) Recording an application test
Trad Integration testing for enterprise web applications

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190702