Android SDK Web SDK Interface Test Summary

Source: Internet
Author: User

Article Reference address: http://www.cnblogs.com/milanmi/p/4528031.html

What is the SDK

The SDK is a program that provides methods to invoke these methods to implement some functionality. Such as: Call the bank provides the SDK, can realize the function of online payment.

Currently the main SDK has JS SDK and Android SDK. JS SDK is to give you a JS file, which provides some methods to call. The Android SDK is to provide a jar package, referring to the jar package after the instructions document, invoke the Inside method.

    • How does the SDK measure

1, the entry and the parameter: The General SDK documentation provides the interface's entry and exit parameters, as well as the type of the entry, whether it is required, the boundary value

Required: If the parameter written in the document is required, you can use NULL, "" to write the use case

Boundary Value: General write operation, will have his boundary value, this document should be written in detail. If the argument is of type 1-99 int. The use case is 0,1,99,100 to write use cases. If the type of the argument is a string length of 1-50, the length is 0,1,50,51 to write the use case

Reference types and reference types: If the parameter is a reference type, you need to test for null and "". If the value type can be a positive, negative, 0, and maximum minimum value. This depends on the demand.

Special characters: You can test the keyboard can be hit out of special characters, such as [email protected]#¥%......&* ()--+{}p|: "<>? There are special characters in Chinese.

Special case: Like some query class interfaces, you can write a use case for a wildcard character such as *%

Note the details: many times, many of the arguments are often overlooked. Thought it was right to have parameters. For example, send image interface, return width, height, and size. These may be overlooked, and the returned image address is not able to be opened and the size is correct. And if the picture is compressed, does it meet the requirements?

Note The format of the parameter: for example, sometimes the client and server interact with XML, but the format of the argument is JSON. Sometimes development forgets parsing, it becomes XML, so this is also a bug.

Note the order in which the arguments are returned: If the out parameter is a list, also see if the list is returned in the correct order.

2. Different scene calls

Not logged in and logged in

Poor speed of the situation

If design to IP phone, can measure WiFi 4G 3G 2G, phone wifi switch 4g,wifi toggle 3G and so on

Situation where the user was deleted from the background

You may find an unexpected bug if you do not take the usual path: for example, before testing plus friends/agreeing/rejecting these three interfaces. If these three interfaces are measured separately, there is no problem at all. But this scenario (a gives B a friend application, a calls the consent interface to B, then A and B are friends.) In fact, B should agree with a to each other as friends.

3. Compatibility test:

Android SDK, it is better to find more than a few different mobile phones to do more free testing.

Web SDK, it's best to find a few more browsers and different browser versions to do more free testing.

4, repeated testing:

Some static variables, which are not initialized after exiting, may cause some problems. For example, before the test websdk, login exit login, the requested address becomes http://xxx/Login/Login, the reason is that at the time of login, the requested address is url=url+/login. After exiting, the URL is not initialized, so after multiple logons, there will be a lot of/login behind the URL

5, pay attention to the case of cases and special symbols of the Chinese and English: for example, a colleague search user nickname interface, the user nickname contains English (, but his participation in the Chinese language (, search for a half a day did not search, still think that the problem of development. Also have to find out later, or find development, the development will not be happy.

6, consider a comprehensive: such as testing the history of QQ news, do not feel, send a message and then can get to the line. In fact, we should think about the types of historical messages, such as (text, emoticons (iOS emoticons, etc.), pictures, sounds, files, etc.) message types must be comprehensive. Second, you should consider the QQ client, look at the Web side, Android, iOS, Windows clients, and so on whether the message sent is not a end to get historical messages. Then we'll test the time of the history message. Are these correct, and do the pictures open the saved file address correctly? There are also some special scenes, such as the change of the name of the history of QQ and the history of the renamed after the elimination. There are others and so on to rely on the people think more.

    • Summary of current issues
    1. The boundary value. For example, the maximum length of a user name is 50: You cannot create a meeting, you cannot receive offline messages, and so on.
    2. Special characters: User nickname with special characters cannot receive SMS. Texting excuses, SMS content for special characters, will not receive text messages and text content is empty.
    3. The error message is incorrect.

Android SDK Web SDK Interface Test Summary

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.