CN106598831A - Method and device for testing SDK (software development kit) - Google Patents

Method and device for testing SDK (software development kit) Download PDF

Info

Publication number
CN106598831A
CN106598831A CN201510674187.8A CN201510674187A CN106598831A CN 106598831 A CN106598831 A CN 106598831A CN 201510674187 A CN201510674187 A CN 201510674187A CN 106598831 A CN106598831 A CN 106598831A
Authority
CN
China
Prior art keywords
test case
data
practical operation
operation data
test
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
CN201510674187.8A
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 Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510674187.8A priority Critical patent/CN106598831A/en
Publication of CN106598831A publication Critical patent/CN106598831A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and device for testing an SDK (software development kit), relating to the technical field of computers. The main purpose of the method and device is to solve the problem that the SDK verification mode of manually verifying the accuracy of the data captured from a database is relatively low in efficiency. The main technical scheme of the invention comprises the following steps: acquiring and and executing a test case, wherein the test case contains execution conditions and the preset expected data of an application APP; acquiring the actual operation data based on the communication connection, and ensuring that the actual operation data refers to the data which is reported to a server by the SDK and is actually generated during APP execution when executing the APP in the test case based on the execution conditions; determining whether the preset expected data exists in the actual operation data; and if the preset expected data exists in the actual operation data, determining that the test case is successfully tested. The method and device disclosed by the invention are mainly applied to the process of automatically testing the SDK.

Description

The method and device of SDK tests
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method and device of SDK tests.
Background technology
SDK (Software Development Kit, i.e. SDK), there is provided one is cased with one The external interface of fixed structure and logic, encapsulates internal service logic;Caller is made according to explanation document Expected function is capable of achieving with corresponding external interface, software development flow is simplified, to a certain degree On ensure that software quality.Wherein, data acquisition SDK is embedded in application program application program In the code library of (Application, App), when user triggers APP, SDK can be recorded and be gathered use The user behavior data of APP is triggered at family, and the user behavior data for collecting is sent in server. As SDK is in the continuous popularization of field of software development, SDK sends the accuracy of user behavior data It is more and more important, that is, the accuracy that SDK sends data is tested, so that it is guaranteed that the quality of software development.
At present, SDK tests are main includes that first aspect is either manually or automatically in APP in terms of two User interface (User Interface, UI) operation is performed, for example, video is opened, is suspended video etc.; Second aspect is to verify that SDK operates corresponding data whether to send and send out to the UI that server sends Accurately whether, for example, when opening video is performed in UI, whether the data of transmission are video to the data sent Whether loading data, video stress state are in loading etc..
Verify that SDK to the corresponding data of UI operations that server sends is above-mentioned second aspect is performed When no accurate, it will usually which in gateway, the Agent of random crawl packet, and manual verification are set The accuracy of data in the packet of crawl, this kind of SDK verification mode are less efficient.
The content of the invention
In view of this, a kind of method and device of the SDK test that the present invention is provided, main purpose is The accuracy of data in the packet of manual verification's crawl is solved, this kind of SDK verification mode is less efficient Problem.
In order to solve the above problems, present invention generally provides following technical scheme:
On the one hand, the invention provides a kind of method of SDK tests, the method includes:
Obtain test case, execution condition of the test case comprising application APP and default phase Hope data;
Implementation of test cases;
Practical operation data are obtained, the practical operation data are described based on execution condition execution The execution that SDK SDK is reported to the server during APP in test case The actual data for producing of APP;
Whether there is the default expected data in determining the practical operation data;
If there is the default anticipatory data in the practical operation data, it is determined that the test case It is successfully tested.
On the other hand, the present invention also provides a kind of device of SDK tests, and the device includes:
First acquisition unit, for obtaining test case, the test case includes application APP Execution condition and default expected data;
Performance element, after acquiring test case in the first acquisition unit, performs institute State test case;
Second acquisition unit, after performing the test case in the performance element, obtains real Border peration data, the practical operation data are to be performed in the test case based on the execution condition The APP when execution APP institutes that report to the server of SDK SDK it is actual The data of generation;
First determining unit, for determining the practical operation data of the second acquisition unit acquisition In with the presence or absence of the first acquisition unit obtain described default expected data;
Second determining unit, for depositing in the practical operation data when first determining unit determines In the default anticipatory data, the testing case success is determined.
By above-mentioned technical proposal, the technical scheme that the present invention is provided at least has following advantages:
The method and device of the SDK tests that the present invention is provided, client set up communication connection with server, Client is obtained and implementation of test cases, the execution condition comprising application APP in the test case And default expected data, practical operation data are obtained based on the communication connection, the practical operation data are During the execution APP that SDK SDK is reported to server during APP in implementation of test cases The actual data for producing, whether there is default expected data, as actual behaviour in determining practical operation data When there is default anticipatory data in making data, it is determined that testing case success;In prior art The mode of manual testing is compared, the practical operation data that the present invention can be sent by server, in visitor Default expected data is verified in the end of family with the presence or absence of in practical operation data, to determine that test case is surveyed Whether examination is successful, improves the efficiency of test SDK.
Description of the drawings
By the detailed description for reading hereafter preferred implementation, various other advantages and benefit for Those of ordinary skill in the art will be clear from understanding.Accompanying drawing is only used for the mesh for illustrating preferred implementation , and it is not considered as limitation of the present invention.And in whole accompanying drawing, with identical with reference to symbol Number represent identical part.In the accompanying drawings:
Fig. 1 shows a kind of schematic diagram of the method for SDK tests provided in an embodiment of the present invention;
Fig. 2 shows the schematic diagram of the method for another kind of SDK tests provided in an embodiment of the present invention;
Fig. 3 shows a kind of composition frame chart of the device of SDK tests provided in an embodiment of the present invention;
Fig. 4 shows the composition frame chart of the device of another kind of SDK tests provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing in accompanying drawing The exemplary embodiment of the disclosure is shown, it being understood, however, that may be realized in various forms the disclosure And should not be limited by embodiments set forth here.On the contrary, there is provided these embodiments are able to more Thoroughly understand the disclosure, and can be by the scope of the present disclosure complete technology for conveying to this area Personnel.
The embodiment of the present invention provides a kind of method of SDK tests, and the method is applied to client-side, should Method includes:
101st, obtain test case.
Before SDK (Software Development Kit, SDK) test is carried out, Client sets up communication connection with server, and user end to server first sends registration information, After server is responded to the registration information, client sets up communication connection with server.
Client obtains test case under default store path, and the test case of acquisition is stored in this In the internal memory of client, and implementation of test cases.In the embodiment of the present invention, client is with terminal unit For carrier, it is installed in terminal unit, and test case is stored in terminal unit, is tester Write, the test case includes the execution condition and default expected data of application APP;This Test case described in inventive embodiments is configurable test case, can be according to the actual demand of test The adjustment carried out by execution condition and default expected data.
In the embodiment of the present invention, client acquisition is held test case and can adopt but be not limited to lower section Formula, for example:Before client terminal start-up, client is set and test case is obtained automatically in terminal unit In default store path, when client terminal start-up, go automatically in default store path, to obtain test and use Example;Or, after client terminal start-up, according to the store path that test case is stored in terminal unit, Test case is obtained manually.Exemplary explanation is these are only, the embodiment of the present invention is obtained to client Specific implementation during test case is not defined.
102nd, perform the test case.
In embodiments of the present invention, implementation of test cases is i.e. according to the execution condition recorded in test case Execution step, APP in implementation of test cases can be adopted when APP is performed but be not limited to following Mode, for example:By user interface (User Interface, UI) automation interface, automatization is called Perform the default script of APP, the APP in automatic implementation of test cases;Exemplary, call iOS UIAutomation methods in system automatically open up APP, perform and play the operation such as video;Or, APP of the mode being manually operated in UI in implementation of test cases.The embodiment of the present invention is to performing The concrete mode of the APP in test case is not specifically limited.
It should be noted that the embodiment of the present invention is in implementation of test cases, it is by automated execution The mode of test case, compared with test case is manually performed in prior art, automated execution test Use-case is able to ensure that the efficiency and accuracy of implementation of test cases.
103rd, practical operation data are obtained.
In execution step 102, SDK is embedded in the code library in test case APP, when holding It is when row test case APP is operated, actual during APP in SDK meeting acquisition operations test cases to produce Practical operation data, by the practical operation data is activation for gathering to server, the present invention is implemented SDK The major function of the server described in example is data receiver and data-pushing.
In order to ensure the safety of data in client, client cannot send real to server in SDK Direct access practical operation data during the peration data of border, therefore client can only be obtained from server Treating excess syndrome border peration data;User end to server obtain practical operation data when, client based on The communication connection that server is set up sends the solicited message for obtaining practical operation data, service to server After device receives the solicited message, the solicited message is responded, i.e., server is returned to client Return practical operation data.
When user end to server obtains practical operation data, can be in the process of implementation of test cases It is middle that the solicited message for obtaining practical operation data is sent to server;All of survey can also performed After example on probation, the solicited message for obtaining practical operation data, the embodiment of the present invention are sent to server The opportunity that client obtains practical operation data is not defined, as long as can be in execution step 104 Practical operation data are obtained before.
104th, whether there is the default expected data in determining the practical operation data.
After obtaining practical operation data in step 103, search whether to deposit in practical operation data There is default expected data.In the embodiment of the present invention, the content included in practical operation data is greater than Default expected data, and default expected data can be adapted to according to the actual requirements, only may be recorded There are the data that there must be during implementation of test cases.
In the specific implementation, whether there is the default expected data in determining the practical operation data Implementation including but not limited in the following manner, APP mistake of the client in implementation of test cases Cheng Zhong, while whether there is the default expected data in performing the determination practical operation data;Or Whether person, as the APP in the complete test case of client executing, determine in the practical operation data There is the default expected data.The embodiment of the present invention is to determining whether deposit in the practical operation data Specifically do not limited in the reality that implements of the default expected data.
If the 105, there is the default anticipatory data in the practical operation data, it is determined that the test Use-case is successfully tested.
When there is default anticipatory data in practical operation data, testing case success is determined;When When practical operation data do not have default anticipatory data, determine that testing case fails, APP exploitations Commissioning staff need to be debugged to APP.
The method of SDK tests provided in an embodiment of the present invention, client set up communication connection with server, Client is obtained and implementation of test cases, the execution condition comprising application APP in the test case And default expected data, practical operation data are obtained based on the communication connection, the practical operation data are During the execution APP that SDK SDK is reported to server during APP in implementation of test cases The actual data for producing, whether there is default expected data, as actual behaviour in determining practical operation data When there is default anticipatory data in making data, it is determined that testing case success;In prior art The mode of manual testing is compared, the practical operation data that the embodiment of the present invention can be sent by server, Default expected data is verified in the client with the presence or absence of in practical operation data, to determine that test is used Example test whether successfully, improve test SDK efficiency.
Further, as refining to above-described embodiment and extending, due to described in the embodiment of the present invention The major function of server is data receiver and data-pushing, and data receiver and data-pushing are right respectively Two request paths are answered, two request paths are respectively/receive and/movement;Wherein, take After solicited message of the suffix of client transmission for/movement is received, server determines visitor to business device The solicited message that family end sends is registration information, and server responded to the registration information, Will the registration of the client corresponding IP address be added in the push address list in server;Service After solicited message of the suffix of client transmission for/receive is received, server determines the request to device Information is user end to server acquisition request practical operation data, and server is with obtaining the IP of client Location, searches in server push list with the presence or absence of the client according to the IP address carried in solicited message The IP address at end, if existing, practical operation data is activation is given the IP based on the IP address by server In the corresponding client in address;If not existing, the solicited message is ignored by server.
When execution step 103 obtains practical operation data, user end to server sends suffix and is The registration information of/movement, carries the IP ground of client itself in the registration information Location, server are responded to the registration information, and after succeeding in registration, client is built with server Vertical long connection, user end to server send the solicited message for obtaining practical operation data, server pair The solicited message is responded, and issues practical operation data, client to client based on long connection The practical operation data that the reception server is issued.It should be noted that building between client and server The purpose of vertical long connection is to be easy to user end to server to obtain practical operation data.Survey in SDK During examination, the long connection between client and server can be maintained always, until SDK tests are completed, The length connection is discharged by client.
Further, determine with the presence or absence of default expected data in practical operation data in order to improve, Client after the practical operation data that server is issued are received, according to preset field by the reality Peration data is parsed into preset field set, whether there is in searching and determining the preset field set Default expected data.
In order to the practical operation data are parsed into preset field collection according to preset field by clearer explanation Close, the embodiment of the present invention will be illustrated with specific example.Exemplary, client is receiving clothes After the practical operation data that business device is issued, by the practical operation data according to preset field session ID, Practical operation data are parsed into into a preset field set, i.e., the data storage of identical session ID in In one preset field set, as shown in table 1.Wherein, 1 exemplary only citing of table, in root When practical operation data being parsed into preset field set according to preset field, the present invention is implemented to predetermined word The particular type of section is not defined.
Table 1
Key(session ID) Value
4BB7DBB5-C5D5-4ABB-80A6 V=1.3.0&json { ... }
5WSDBE5-C5D5-4ABB-RDA6 V=1.3.0&json ...;……}
…… ……
It is when searching and determine in the preset field set with the presence or absence of default expected data, exemplary , when starting client, SDK can gather the data of a client terminal start-up, include in the data Send sequence number field sn, and sn=1, and field sn=1 that will send sequence number is sent to server, and server will Field sn=1 that sends sequence number as practical operation data is activation to client, search and determine pre- by client If whether there is the record of field sn=1 that sends sequence number in set of fields.
It should be noted that above-described embodiment is carried out by taking one test case of client executing as an example Illustrate, and test case in client is concentrated and may include a plurality of test case, when having tested survey During the wherein test case that example on probation is concentrated, other test use that implementation of test cases is concentrated are circulated Example, till it is determined that all test cases of test case concentration are finished, wherein, the survey Examination set of uses case is used to store the test case.
Further, before client executing test case, detection test case is concentrated and be whether there is Test case, the test use cases are stored in client, for storing test case, when test is used Example is concentrated when there is test case, implementation of test cases;Concentrate when test case and there is no test case When, illustrate that the test case that test case is concentrated all is finished, output display test case result. As shown in table 2, table 2 shows output display test case result, wherein, the Pass described in table 2 Represent and determine testing case success, Fail is represented and determined testing case failure.The present invention is implemented Example is not specifically limited to the display format of test case result.
Table 2
Further, the embodiment of the present invention provides a kind of method of SDK tests, and the method is to client The explanation that end is interacted with server, as shown in Fig. 2 the method includes:
201st, user end to server sends registration information.
202nd, server receives the registration information that the client sends, and by the client Corresponding IP address registration is added in push address list.
Optionally, the embodiment of the present invention can arrange default listening components in the server, the default prison Listen component for monitor client transmission solicited message in suffix title be /receive or / movement, if listen to client transmission solicited message in suffix it is entitled/movement, Then server carries out registration response to the solicited message;If listening in the solicited message of client transmission Suffix it is entitled/receive, then server first look for pushing in address list with the presence or absence of client Corresponding IP address, if existing, server receives the practical operation data of SDK transmissions in client, If not existing, the solicited message that client sends is ignored by server.
203rd, after succeeding in registration, client is set up length with the server and is connected.
204th, client obtains test case.
205th, client detection test case is concentrated with the presence or absence of the test case.
The test use cases are used to store the test case.If family end detection test case is concentrated depositing In the test case, then execution step 206;If client detection test case concentration does not exist described Test case, then execution step 212.
206th, test case described in client executing.
In client automation implementation of test cases, the SDK collections being embedded in test case are performed Practical operation data produced during test case, and built with server based on client in step 203 Vertical long connection sends practical operation data to server.
207th, user end to server sends the solicited message for obtaining practical operation data.
The solicited message of the acquisition practical operation data that the 208th, server is received and customer in response end sends.
When server is to client transmission practical operation data, obtaining for client transmission can received After the solicited message for the treatment of excess syndrome border peration data, practical operation data are sent to client;Can also be After server receives SDK based on the practical operation data of long linkup transmit, by practical operation data Client is sent to, the embodiment of the present invention gets the side of implementing of practical operation data to client Formula is not specifically limited.
209th, client whether there is the default expected data in determining the practical operation data.
If there is the default anticipatory data, execution step 210 in the practical operation data, and hold Row step 205;If there is no the default anticipatory data, execution step in the practical operation data 211, and execution step 205.
210th, client determines the testing case success.
211st, client determines the testing case failure.
212nd, test case terminates, client output display test case result.
It should be noted that about the detailed description of step 201 in Fig. 2 to step 212, refer to Relevant description above, embodiment of the present invention here are no longer repeated.
Further, as the realization to method shown in above-mentioned Fig. 1, the embodiment of the present invention provides a kind of The device of SDK tests, as shown in figure 3, the device includes:
First acquisition unit 31, for obtaining test case, the test case includes application APP Execution condition and default expected data;
Performance element 32, after acquiring test case in the first acquisition unit 31, holds The row test case;
Second acquisition unit 33, after performing the test case in the performance element 32, obtains Treating excess syndrome border peration data, the practical operation data are to perform the test based on the execution condition to use The execution APP institutes that report to the server of SDK SDK during the APP in example The actual data for producing;
First determining unit 34, for determining the practical operation of the acquisition of the second acquisition unit 33 The described default expected data obtained with the presence or absence of the first acquisition unit 31 in data;
Second determining unit 35, for determining the practical operation data when first determining unit 34 In when there is the default anticipatory data, determine the testing case success.
Further, as shown in figure 4, the second acquisition unit 33 includes:
First sending module 331, for sending registration information to the server, the registration please The IP address of client itself is carried in seeking information;
Module 332 is set up, and after succeeding in registration, length is set up with the server and is connected;
Acquisition module 333, for obtaining actual based on the described long connection for setting up the foundation of module 332 Peration data.
Further, as shown in figure 4, described device also includes:
Detector unit 36, for, before 32 implementation of test cases of the performance element, detection test is used Example is concentrated with the presence or absence of the test case, and the test use cases are used to store the test case;
The performance element 32, is additionally operable to deposit when the detector unit 36 detects that the test case is concentrated In the test case, the test case is performed.
Further, as shown in figure 4, first determining unit 34 includes:
Parsing module 341, for the practical operation data are parsed into preset field according to preset field Set;
Processing module 342, for searching and determining the preset field of the parsing of the parsing module 351 Whether there is the default anticipatory data in set.
Further, as shown in figure 4, described device also includes:
3rd determining unit 37, in first determining unit 34 determines the practical operation data not When there is the default anticipatory data, the testing case failure is determined.
Further, as shown in figure 4, the performance element 32 includes:
Acquisition module 321, for parsing the test case, obtains the execution bar in the test case Part;
Performing module 322, the execution condition for being obtained according to the acquisition module perform the survey Example on probation.
The device of SDK tests provided in an embodiment of the present invention, client set up communication connection with server, Client is obtained and implementation of test cases, the execution condition comprising application APP in the test case And default expected data, practical operation data are obtained based on the communication connection, the practical operation data are During the execution APP that SDK SDK is reported to server during APP in implementation of test cases The actual data for producing, whether there is default expected data, as actual behaviour in determining practical operation data When there is default anticipatory data in making data, it is determined that testing case success;In prior art The mode of manual testing is compared, the practical operation data that the embodiment of the present invention can be sent by server, Default expected data is verified in the client with the presence or absence of in practical operation data, to determine that test is used Example test whether successfully, improve test SDK efficiency.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment The part being described in detail, may refer to the associated description of other embodiment.
It is understood that said method and the correlated characteristic in device mutually can be referred to.In addition, " first ", " second " in above-described embodiment etc. is, for distinguishing each embodiment, and not represent each enforcement The quality of example.
Those skilled in the art can be understood that, for convenience and simplicity of description, above-mentioned The specific work process of the system, apparatus, and unit of description, may be referred in preceding method embodiment Corresponding process, will not be described here.
Provided herein algorithm and show not with any certain computer, virtual system or miscellaneous equipment It is intrinsic related.Various general-purpose systems can also be used together based on teaching in this.According to above Description, the structure constructed required by this kind of system is obvious.Additionally, the present invention is also not for Any certain programmed language.It is understood that, it is possible to use various programming languages realize described here The content of invention, and the description done to language-specific above is for the optimal reality for disclosing the present invention Apply mode.
In description mentioned herein, a large amount of details are illustrated.It is to be appreciated, however, that Embodiments of the invention can be put into practice in the case where not having these details.In some instances, Known method, structure and technology are not been shown in detail, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help understand in each inventive aspect It is individual or multiple, in above to the description of the exemplary embodiment of the present invention, each feature of the invention Sometimes it is grouped together in single embodiment, figure or descriptions thereof.However, should be by The method of the disclosure is construed to reflect following intention:I.e. the present invention for required protection requires ratio at each The more features of feature being expressly recited in claim.More precisely, as following right will As asking book reflected, inventive aspect is less than all spies of single embodiment disclosed above Levy.Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment party Separate embodiments of the formula, wherein each claim as the present invention itself.
Those skilled in the art are appreciated that can be carried out to the module in the equipment in embodiment Adaptively change and they are arranged in one or more different from embodiment equipment. Module or unit or component in embodiment can be combined into a module or unit or component, and In addition multiple submodule or subelement or sub-component can be divided into.Except such feature and/or Outside at least some in process or unit is excluded each other, can be using any combinations to this explanation All features disclosed in book (including adjoint claim, summary and accompanying drawing) and such as the displosure Any method or all processes or unit of equipment be combined.Unless expressly stated otherwise, originally Each feature disclosed in description (including adjoint claim, summary and accompanying drawing) can be by carrying For identical, equivalent or similar purpose alternative features replacing.
Although additionally, it will be appreciated by those of skill in the art that some embodiments described herein include Some included features rather than further feature in other embodiments, but the feature of different embodiments Combination mean to be within the scope of the present invention and formed different embodiments.For example, under In the claims in face, embodiment required for protection one of arbitrarily can be in any combination Mode is using.
The all parts embodiment of the present invention can be realized with hardware, or with one or more The software module run on reason device is realized, or is realized with combinations thereof.Those skilled in the art It should be appreciated that can be realized using microprocessor or digital signal processor (DSP) in practice Some in denomination of invention (device as determined website internal chaining grade) according to embodiments of the present invention Or some or all functions of whole parts.The present invention is also implemented as performing institute here Some or all equipment of the method for description or program of device (for example, computer program and Computer program).Such program for realizing the present invention can be stored in computer-readable medium On, or can have the form of one or more signal.Such signal can be from the Internet net Download on standing and obtain, or provide on carrier signal, or provided with any other form.
It should be noted that above-described embodiment the present invention will be described rather than the present invention is limited Make, and those skilled in the art can design without departing from the scope of the appended claims Alternative embodiment.In the claims, any reference markss between bracket should not be configured to Limitations on claims.Word "comprising" does not exclude the presence of element not listed in the claims or step Suddenly.Word "a" or "an" before element does not exclude the presence of multiple such elements.The present invention Can come real by means of the hardware for including some different elements and by means of properly programmed computer It is existing.If in the unit claim for listing equipment for drying, several in these devices can be logical Cross same hardware branch to embody.The use of word first, second, and third is not indicated that Any order.These words can be construed to title.

Claims (10)

1. a kind of method that SDK is tested, it is characterised in that include:
Obtain test case, execution condition of the test case comprising application APP and default phase Hope data;
Perform the test case;
Practical operation data are obtained, the practical operation data are described based on execution condition execution The execution that SDK SDK is reported to the server during APP in test case The actual data for producing of APP;
Whether there is the default expected data in determining the practical operation data;
If there is the default anticipatory data in the practical operation data, it is determined that the test case It is successfully tested.
2. method according to claim 1, it is characterised in that obtaining practical operation data includes:
Registration information is sent to the server, in the registration information, client is carried The IP address of itself;
After succeeding in registration, length is set up with the server and be connected;
Practical operation data are obtained based on the long connection.
3. method according to claim 2, it is characterised in that before implementation of test cases, Methods described also includes:
Detection test case is concentrated with the presence or absence of the test case, and the test use cases are used to store The test case;
The implementation of test cases includes:
If the test case is concentrated has the test case, the test case is performed.
4. method according to claim 3, it is characterised in that determine the practical operation data In include with the presence or absence of the default expected data:
The practical operation data are parsed into into preset field set according to preset field;
Whether there is the default anticipatory data in searching and determining the preset field set.
5. the method according to any one of claim 1-4, it is characterised in that methods described is also Including:
If there is no the default anticipatory data in the practical operation data, it is determined that the test is used Example test crash.
6. method according to claim 5, it is characterised in that implementation of test cases includes:
The test case is parsed, the execution condition in the test case is obtained;
The test case is performed according to the execution condition.
7. the device that a kind of SDK is tested, it is characterised in that include:
First acquisition unit, for obtaining test case, the test case includes application APP Execution condition and default expected data;
Performance element, after acquiring test case in the first acquisition unit, performs institute State test case;
Second acquisition unit, after performing the test case in the performance element, obtains real Border peration data, the practical operation data are to be performed in the test case based on the execution condition The APP when execution APP institutes that report to the server of SDK SDK it is actual The data of generation;
First determining unit, for determining the practical operation data of the second acquisition unit acquisition In with the presence or absence of the first acquisition unit obtain described default expected data;
Second determining unit, for depositing in the practical operation data when first determining unit determines In the default anticipatory data, the testing case success is determined.
8. device according to claim 7, it is characterised in that the second acquisition unit includes:
First sending module, for sending registration information, the registration request to the server The IP address of client itself is carried in information;
Module is set up, and after succeeding in registration, length is set up with the server and is connected;
Acquisition module, for obtaining practical operation number based on the described long connection for setting up module foundation According to.
9. device according to claim 8, it is characterised in that described device also includes:
Detector unit, for, before the performance element implementation of test cases, detecting test use cases In whether there is the test case, the test use cases be used for store the test case;
The performance element, is additionally operable to detect that the test case concentration has institute when the detector unit When stating test case, the test case is performed.
10. device according to claim 9, it is characterised in that the first determining unit bag Include:
Parsing module, for the practical operation data are parsed into preset field collection according to preset field Close;
Processing module, for searching and determining in the preset field set of parsing module parsing With the presence or absence of the default anticipatory data.
CN201510674187.8A 2015-10-16 2015-10-16 Method and device for testing SDK (software development kit) Pending CN106598831A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510674187.8A CN106598831A (en) 2015-10-16 2015-10-16 Method and device for testing SDK (software development kit)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510674187.8A CN106598831A (en) 2015-10-16 2015-10-16 Method and device for testing SDK (software development kit)

Publications (1)

Publication Number Publication Date
CN106598831A true CN106598831A (en) 2017-04-26

Family

ID=58553980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510674187.8A Pending CN106598831A (en) 2015-10-16 2015-10-16 Method and device for testing SDK (software development kit)

Country Status (1)

Country Link
CN (1) CN106598831A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943688A (en) * 2017-11-02 2018-04-20 北京奇虎科技有限公司 A kind of SDK inspection methods, device, terminal device and storage medium
CN108763074A (en) * 2018-05-21 2018-11-06 陕西学前师范学院 A kind of method and device of SDK tests
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN110119350A (en) * 2019-04-02 2019-08-13 深圳市腾讯信息技术有限公司 Software Development Kit test method, device and equipment and computer storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755643A (en) * 2004-09-27 2006-04-05 华为技术有限公司 Software testing method
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN101930400A (en) * 2010-08-20 2010-12-29 北京神州泰岳软件股份有限公司 SDK (Software Development Kit) automatic test system and method
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN104462811A (en) * 2014-12-05 2015-03-25 云中万维(北京)科技有限公司 Network game data processing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1755643A (en) * 2004-09-27 2006-04-05 华为技术有限公司 Software testing method
CN101521899A (en) * 2009-03-31 2009-09-02 大连海事大学 System and method for on-computer test of mobile applications
CN101930400A (en) * 2010-08-20 2010-12-29 北京神州泰岳软件股份有限公司 SDK (Software Development Kit) automatic test system and method
CN103136095A (en) * 2011-11-28 2013-06-05 阿里巴巴集团控股有限公司 Method, device and system of test application program interface
CN104462811A (en) * 2014-12-05 2015-03-25 云中万维(北京)科技有限公司 Network game data processing method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张书豪: "基于IOS的移动游戏数据统计分析平台的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
马威: "《压制武器火力与指挥控制系统试验》", 31 August 2015, 北京:国防工业出版社 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943688A (en) * 2017-11-02 2018-04-20 北京奇虎科技有限公司 A kind of SDK inspection methods, device, terminal device and storage medium
CN108763074A (en) * 2018-05-21 2018-11-06 陕西学前师范学院 A kind of method and device of SDK tests
CN109032956A (en) * 2018-09-11 2018-12-18 郑州云海信息技术有限公司 A kind of interface test method and device
CN109032956B (en) * 2018-09-11 2022-03-22 郑州云海信息技术有限公司 Interface testing method and device
CN110119350A (en) * 2019-04-02 2019-08-13 深圳市腾讯信息技术有限公司 Software Development Kit test method, device and equipment and computer storage medium
CN110119350B (en) * 2019-04-02 2023-02-03 深圳市腾讯信息技术有限公司 Software development kit testing method, device and equipment and computer storage medium

Similar Documents

Publication Publication Date Title
CN104598380B (en) A kind of automated testing method and system based on control
US8930772B2 (en) Method and system for implementing a test automation results importer
CN106598831A (en) Method and device for testing SDK (software development kit)
CN105429826A (en) Fault detection method and device for database cluster
CN106603296A (en) Log processing method and device
CN104539605B (en) Website XSS leak detection methods and equipment
CN105260318A (en) Automatic testing method and device based on web pages
CN102970282B (en) website security detection system
US20070124305A1 (en) Automated test script for communications server
CN108197311A (en) Source of houses data aggregate methods of exhibiting, device, equipment and readable storage medium storing program for executing
CN103581909B (en) The localization method of a kind of doubtful mobile phone Malware and device thereof
CN108845949A (en) A kind of performance test methods and platform
CN105302707B (en) The leak detection method and device of application program
KR101443071B1 (en) Error Check System of Webpage
CN107948120A (en) leak detection method and device
CN103581185A (en) Cloud searching and killing method, device and system for resisting anti-antivirus test
CN109831429A (en) A kind of Webshell detection method and device
CN107038372A (en) Leaking data interface detection method and device
CN109828920A (en) A kind of log analysis method, device and computer readable storage medium
CN105577799A (en) Method and device for detecting fault of database cluster
CN105117340B (en) URL detection methods and device for iOS browser application quality evaluations
CN109271316A (en) Android device and its automated testing method, memory
CN108075933A (en) A kind of network interworking test method and device
CN105512020B (en) Test method and device
CN105893502A (en) Code synchronization method and device

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
CB02 Change of applicant information

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: Beijing Guoshuang Technology Co.,Ltd.

Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing

Applicant before: Beijing Guoshuang Technology Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication