Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Test method based on MOCK technology

A test method and technology, applied in the computer field, can solve the problems of delayed handover test events, low development efficiency, etc., and achieve the effect of shortening online events, high human efficiency, and realizing process efficiency.

Inactive Publication Date: 2019-10-15
重庆天蓬网络有限公司
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the development of mobile Internet technology, mobile phone APPs are more and more widely used. In the entire software development life cycle, the coupling degree of front-end development and back-end development of APP is relatively high. The front-end needs to provide a complete interface for the back-end. Development and debugging, making the development efficiency low, and the event lag of handover test is serious

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
  • Test method based on MOCK technology
  • Test method based on MOCK technology

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] A test method based on MOCK technology, the method comprises the following steps,

[0032] S1, the back-end developer submits the back-end interface document, specifying the input and output parameters;

[0033] S2, configure this interface in the Mock server, mainly configure the URL address of the Mock, the reference template, and the association between the real address and the Mock address;

[0034] In S3, front-end developers and front-end and back-end testers can find the association between the URL of the mock and the real address by connecting to the mock proxy server, and obtain the method of simulating the participation, and carry out their respective work, so that the project schedule can be advanced.

Embodiment 2

[0036] A test method based on MOCK technology, the method comprises the following steps,

[0037] S3.1, the front-end developers find the association between the URL of the mock and the real address by connecting to the mock proxy server, and obtain the method of mocking out parameters, so that the front-end development can be carried out without any actual interface provided by the back-end.

[0038] S3.2, the back-end interface tester finds the association between the URL of the mock and the real address by connecting to the mock proxy server, and obtains the method of simulating the parameters, which can be performed without any actual interface provided by the back-end Interface test script development

[0039] S3.3, the front-end testers and front-end developers cooperate to find the association between the URL of the mock and the real address by connecting to the mock proxy server, and obtain the method of simulating the parameters for front-end testing.

[0040] The re...

Embodiment 4

[0042] A storage medium capable of storing the carrier of the above MOCK technology-based testing method, the carrier may be embodied in the form of program modules, program installation packages, program packaging packages, and the like. The storage medium may be a readable signal medium or a computer-readable storage medium or any combination of the above two, and the computer-readable medium includes but is not limited to optical signals, electrical signals, magnetic signals, photoelectric signals, infrared signals or semiconductor system And its device and device, the combination of any one of the above methods. More specific examples of computer-readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), opti...

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 provides a test method based on an MOCK technology, belongs to the field of computers. The method is used for software development, and the method comprises the following steps: firstly,providing interface definition for rear-end development, defining input parameters and output parameters, and preferably providing an output parameter template; configuring the interface in a Mock server, and mainly configuring a URL address of the Mock, an output parameter template and the association between a real address and the Mock address. At the moment, front-end developers and front-endtesters cooperate to start development and test work of front-end pages, and rear-end interface testers can design interface test cases. Under the condition of the technical scheme, the purposes of short software online time, fewer online defects and higher human efficiency can be achieved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a testing method based on MOCK technology. Background technique [0002] With the development of mobile Internet technology, mobile phone APPs are more and more widely used. In the entire software development life cycle, the coupling degree of front-end development and back-end development of APP is relatively high. The front-end needs to provide a complete interface for the back-end. Development and debugging make the development efficiency low, and the event of handover test lags seriously. With more and more development and testing personnel participating in the project, it is particularly important to quickly follow up, carry out more parallel work arrangements, improve the development efficiency and release speed of the version, and increase human efficiency. Contents of the invention [0003] The purpose of the present invention is to provide a testing method based on ...

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
CPCG06F11/3664G06F11/3688
Inventor 谢一丁
Owner 重庆天蓬网络有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products