Method and device for automatically generating interface message

A technology for automatic message generation and message generation. It is applied in the fields of instruments, error detection/correction, and calculation. It can solve the problems of cumbersome manual definition steps, incomplete field supplementation, and low execution efficiency, so as to improve the writing efficiency and execution efficiency, reduce the Define steps and improve the effectiveness of execution

Pending Publication Date: 2020-02-18
SUNING CLOUD COMPUTING CO LTD
View PDF2 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to solve the problems in the prior art, the embodiment of the present invention provides a method and device for automatically generating an interface message, so as to overcome the problem of multi-line business data when a new field is added when defining a message in the prior art. The fields in the scene are not fully supplemented, the field output of some scenes needs to redefine the business data branch, the coupling degree with the business is high, the manual definition steps are cumbersome, and the execution efficiency is low.

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
  • Method and device for automatically generating interface message
  • Method and device for automatically generating interface message

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0047] According to the solution provided by the embodiment of the present invention, the field value is divided and defined according to the field level code, and the variable of the message to be generated and the path index corresponding to the variable are generated. Generate a path array. When the path in the path array exists in the initial packet, the in...

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 method and device for automatically generating an interface message, and the method comprises the steps: obtaining an initial message and field basic data for describing a to-be-generated message, the field basic data at least comprising a field value and a field level code, and the field level code describing a field segmentation rule; segmenting and defining the field value according to the field level code, and generating a variable of the message to be generated and a path index corresponding to the variable; if the field value is not null, generating a path arrayby hierarchy according to a path index corresponding to the variable; and if the path in the path array exists in the initial message, analyzing the initial message according to the path, and generating a final message. According to the method, the required input and output messages can be dynamically generated only by inputting the expected variable value, so that the tedious step of manually defining the messages in the middle is omitted, the message definition and the service function are decoupled, the writing cost is greatly reduced, and the writing efficiency and the execution efficiency are improved.

Description

technical field [0001] The present invention relates to the technical field of automated testing, in particular to a method and device for automatically generating interface messages. Background technique [0002] At present, interface packets generally use manually defined packets and manually defined variables, which have relatively large limitations. The branch reusability is not high, and when adding fields, the multi-line business data scenario has incomplete field supplementation, and the maintenance cost is relatively high. Moreover, the problem of manually defining packets and manually defining variables often affects the batch running results of historical cases due to new field definitions. SUMMARY OF THE INVENTION [0003] In order to solve the problems in the prior art, the embodiments of the present invention provide a method and device for automatically generating an interface message, so as to overcome the problem that when a message is manually defined in ...

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/3688
Inventor 孙阳郭婷婷徐梅兰
Owner SUNING CLOUD COMPUTING CO LTD
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
Try Eureka
PatSnap group products