What API and SDK is? What's the difference? How to test SDK?


API: The concept: API (the Application Programming Interface, Application Programming Interface) is a function of a number of pre-defined in order to provide application developers with a set of routines based on the ability of a software or hardware to access, but without having to access the source code, or understand the details of the inner workings.
SDK: Concepts: development of some software engineers are generally established for a specific application software package, software framework, hardware platform, operating system, when the software development kit (Software Development Kit foreign language acronym:: SDK, the full name of a foreign language) a collection of tools.  In layman's terms , api can be compared to house keys. In one house, each room has its different uses and resources. When you want to get the appropriate resources to the room, we need to open the door with a key. For example, we take a book from the library, go to the bedroom with a pillow, we all need to find the appropriate room key, then enter the room to take the book, take a pillow. Api call process, that is, with a key to open the door of the process. 

And these are sdk keychain together, the api integrated together. Has sdk, you will be able to smooth in the house, which room you want access to resources, open the door with the key in the hands of, you can go pick up.
 

Difference between the two: API is a determined function, has made it clear its role (such as making additions). The SDK is a collection of like a lot of ways, is a tool. For example, you have to do addition, you can call the computer SDK API implementations addition, subtraction is called to do subtraction API, no matter what you want to calculate the complete, SDK there is always a method that can be achieved.

Another example , for example, you want to drive to a place where the car is SDK, allowing you to complete the purpose of reaching the destination. Car steering wheel, lights, engine, throttle, brake like one API, when you use the SDK, is to call one API function. If the intimate little car, possibly with instructions for use (SDK documentation). Api is divided into open api and private API . Open api definition, that is public interface that allows anyone to call it and get to the data behind it. It is like in a library, you just need to make the appropriate authentication, you can get into the inside to the appropriate books and resources, and access to resources is your authentication key. Many companies are now opening up their own open api, and for the convenience of the user calls, most of them using sdk documentation is packaged. When calling user only needs to download the sdk document, to be called according to the corresponding specification. This eliminates the need to rewrite the function package http, https and other requests, saving more time to do more valuable things. Such as:

App sign when you can use the selection of micro-channel, microblogging, QQ and other third parties to log in, which is actually a third-party access to your App sign-sdk;

App which will support third-party platform to share content micro letter, microblogging, QQ space, which is actually your App sdk access to a shared third party;

App electricity supplier class which supports micro-channel, Alipay, Baidu wallet and other payment methods, which in fact is your App access to third-party payment sdk;

……

 In addition, some companies now also sold as a product . Baidu's market as ai, voice recognition, speech synthesis and recognition, such as the sale beauty sdk, sdk developed using readily available, saving development time. 


Free resources such as speech recognition and Documentation Department has developed sdk download 

 

The access of third party sdk, testing needs to pay attention to what the process

 

This is a third party sdk admission test for reference

https://blog.csdn.net/FlyPigYe/article/details/92800209

 

Also since it is a third party sdk, we need clear and specific third party responsible;

bug tracking bug and should also distinguish assigned to the team, because when you submit the bug bug management system, usually a third-party personnel and no internal authority, without permission, then it should be another way to collect, track, such as excel;

If the administrator assign permissions to open, then the third parties do not usually concerned about the defect management system to non-self side, which also requires you to follow up timely feedback to prevent problems processing cycle is too long.

 

With more than personal experience summary, if less than welcome private letter.

No article first appeared in public: Software Testing er

Guess you like

Origin www.cnblogs.com/lrence/p/12052867.html