Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Custom script-based automated interface test method and platform

An automated testing and automatic testing technology, applied in software testing/debugging, etc., can solve problems such as complex software interface testing, and achieve the effects of saving manpower, improving coverage, and reducing technical requirements

Inactive Publication Date: 2018-01-12
TONGCHENG NETWORK TECH
View PDF4 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a method and platform for automatic interface testing based on custom scripts to solve the problem of general testers getting started with complex software interface testing

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Custom script-based automated interface test method and platform
  • Custom script-based automated interface test method and platform

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0038] Example 1: Taking travel-related apps as an example, adding, updating, querying, and deleting frequent travelers is a common test scenario for membership items. When implementing this test case, first configure the corresponding items, interfaces, Request parameters, and then customize the Python script through the script editor of the Web UI. The process includes first requesting the frequent passenger addition interface, and if the response is successful, it will return the id of the frequent passenger, and then request the frequent passenger query interface to further confirm the frequent passenger addition correctness; request frequent passengers to update the interface, update the passenger’s information, use the id returned by the add interface as a parameter, and verify the correctness through the query interface; finally request the frequent passenger to delete the interface, use the passenger id as a parameter, and verify the correctness through the query interfa...

Embodiment 2

[0039] Example 2: The processing of orders, submitting orders, modifying orders, querying orders, and canceling orders is a test case for most projects. When implementing this test case, first configure the corresponding project, interface, and request through the Web UI Parameters, and then customize the Python script through the script editor of the Web UI. The process includes first requesting the order submission interface, and if the response is successful, the order id will be returned, and then requesting the query order interface, using the order id as a parameter to verify the returned order information Such as order status, order amount, order product, etc.; request to modify the order interface, use the order id as a parameter, and verify the correctness by querying the order interface; finally request to cancel the order interface, query the information of the order, and verify its status.

[0040] The beneficial effects of applying the interface automation testing ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a custom script-based automated interface test method and platform. The method is characterized by: building a Web platform, which is used for configuring test projects, interfaces, cases and request parameters through a Web UI, and providing an entry of running the test cases and viewing test results; deploying automated test services, which are a set of service interfacesdeveloped by using a Python language on the basis of Django, wherein tasks are received and encapsulated by the interfaces, and encapsulated tasks are inserted into a task queue; constructing the task queue, which is a message queue realized on the basis of Redis, and used for carrying out decoupling for the automated test services and test execution components; building the test execution components, which is used for executing the test cases; and lapping a Mysql database, which is used for storing the projects, the interfaces, the cases and test scripts configured by the Web platform and the test results fed back by the test execution components. By applying the automated interface test method and platform of the invention, technical requirements of automated interface tests are reduced, a coverage rate of the automated interface tests can be increased, and manpower is saved.

Description

technical field [0001] The invention relates to a software interface testing method and platform, in particular to an easy-to-use interface automatic testing method and platform based on a custom script. Background technique [0002] Software interface testing is an important part of quality control in the software development process. Manual interface testing is inefficient and wastes manpower. Automatic interface testing through programs can greatly improve efficiency. At present, interface automation testing technology can automate simple interfaces and test cases, but cannot effectively deal with complex interfaces and test cases. For example, a test case contains multiple interfaces, and there are complex and changeable dependencies between interfaces. The verification logic of the return value of the interface is complex. Currently existing technical solutions require a complete mastery of a programming language and an in-depth understanding of the testing framework. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
Inventor 张伟张愉
Owner TONGCHENG NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Eureka Blog
Learn More
PatSnap group products