Application program interface testing method and application program interface testing system
An application program interface and test method technology, applied in the field of electrical data processing, can solve the problems of low test efficiency, consumption of manpower, material resources cannot be simulated, etc., to save financial costs, save labor costs, improve effectiveness and test efficiency. Effect
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2017-11-24
Smart Images

Figure 1 
Figure 2
Abstract
Description
technical field
[0001] The invention belongs to the field of electric data processing, and in particular relates to a testing method and a testing system of an application program interface. Background technique
[0002] Applications often determine their usefulness and security through testing of their interfaces. The existing technology usually uses manual and automated testing methods when testing the application program interface: artificially means that people test the application program interface, which will consume a lot of labor costs; automated testing is to test each type of application program Write corresponding test scripts to realize automated testing of the application program interface through test scripts, but writing test scripts for each type of application not only consumes labor costs, but also consumes material resources. In addition, the traversal tools for automated testing generally use depth-first or breadth-first logic for testing. First, collect...
Examples
Embodiment 1
[0023] like figure 1 Shown is a flow chart of a testing method for an application program interface shown in an exemplary embodiment of the present invention, and the testing method includes the following steps:
[0024] Step S101, when it is determined that the acquired UI interface of the application program to be tested appears for the first time, convert the UI interface into a picture.
[0025] In the embodiment of the present invention, the application program interface is usually expressed by a UI interface, and the application program to be tested can be scanned by a preset automatic scanning tool during testing. Preferably, the automatic scanning tool is an automatic scanning tool made by Python, such as using Python to write test logic on the open source testing tool Appium to test the application programs of Andorid and IOS. It can be understood that the application program to be tested includes but is not limited to: mobile terminal application program and non-mob...