Interface test, want to say love you is not difficult _ automation test
Source: Internet
Author: User
Interface testing is not very advanced, just testing the object is the interface. Case a company found that the value of 100 yuan of goods, the company's online shopping mall was 0.01 yuan to buy a lot. Siege Lions are quick to locate, the problem is quickly found, the original is the purchase of merchandise interface bug. This interface requires 3 parameters: Commodity ID, Commodity unit price, purchase quantity, and the server based on the interface of the commodity price (0.01 yuan) generated orders. The server should have generated the order based on the price of the commodity in the database at 100 yuan. The following figure, we will change the unit price on the page, and then buy, submitted to the server price of the goods is 0.01 yuan. As a test engineer, have you ever done this kind of testing? If there is no strong suggestion you hasten to supplement the test. Luck is one of the biggest predators of test engineers. What the what-interface is. In a computer, an interface is a shared boundary in which two separate parts of a computer system exchange information. For example, I provide the computation interface for addition, you give me two number, I will give you return one and. what-what is interface testing. The narrow interface test refers to the interface test, the last example of the test is different input parameters, I add the return is correct. Generally speaking, the interface test is this. The generalized interface test contains the interface provider, the interface caller's test. For example, if you call my interface to perform addition, I return the wrong response, or I respond to the timeout, when you are handling correctly. Why do interface tests. The above case will illustrate the importance of doing interface testing. Generally do interface testing for the following reasons: The general functional testing, covering less than a variety of situations. (as shown in the example above) from a security perspective, only rely on the front end of the checksum does not meet the requirements, need to do the service end of the check, such as: app on the top of the interface, recharge the amount of input box can not enter negative numbers, testing, we have to ensure that the server There are 10,000 ways to bypass front-end validation. From a security point of view, the user password, other user privacy information transmission needs to be encrypted. When the app's code is not updated, and the server-side code is updated, it is possible to quickly determine whether the app's functionality is affected by automating the testing of the interface directly. Many systems have no interface, only provide interface functions, can not be tested through the interface. 6. Interface testing is relatively easy to automate, but also easy to achieve continuous integration, and relative to the UI Automation is also relatively stable, you can reduce the artificial regression test manpower costs and time, shorten the test cycle, to support the back-end rapid release requirements. Interface continuous integration is the source of why low cost and high yield. how-How to do interface testing. The question of how to do interface testing can be broken down into two questions: How to design an interface test case. How to perform the interface testTry. How to design interface test cases. How to perform an interface test. Fiddler, Soapui, postman can do semi-automatic interface automation testing, using the robot framework to automate the interface Automation testing, automatic testing of their own code interface, such as Java+testng 4. Find other third party platform to do automatic interface Automation test. The paper summarizes the problems of interface test What, why and how, and it will be deepened in the following articles, such as the use of tools, the framework of interface Automation test, and the general analysis of problems in interface testing. A large film just opened, please look forward to. End. If you are interested in software testing, want to know more software testing knowledge, please pay attention to the "51Testing Software Test Network" today's headline number.
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.