Application development and testing method and device

A technology for application development and testing environment, which is applied in the field of electronic information, can solve the problems of increasing the complexity of application development and testing environment maintenance, increasing the resource consumption of application development and testing environment, and achieving increased maintenance complexity and saving resource consumption , Reduce maintenance complexity

Active Publication Date: 2018-01-16
上海云犀信创网络科技有限公司
View PDF7 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At the same time, there is a defect in the above two methods, that is, all applications need to be deployed in the project test environment, even if some applications have not been modified in this ...

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
  • Application development and testing method and device
  • Application development and testing method and device
  • Application development and testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] image 3 A flow chart of a method for application development and testing provided by Embodiment 1 of the present invention. This embodiment is applicable to the field of electronic information technology. The method can be executed by a device for application development and testing. The device can use hardware and / or implemented in the form of software, generally can be integrated in a computer or server, the method includes:

[0030] Step 310, obtain the message sent by the producer, wherein the message includes the test environment identifier of the current thread obtained by the producer, the environment of the producer includes a stable test environment or a project test environment, and the stable test environment Including the first client, the full amount of applications, message queue middleware and zookeeper cluster, the project test environment includes the second client and the applications that need to be modified in the current project in the full amoun...

Embodiment 2

[0049] Figure 4 It is a flowchart of a method for application development and testing in Embodiment 2 of the present invention. Based on the method provided in Embodiment 1, this method further includes: before obtaining the message sent by the producer:

[0050] When the producer generates the message, it is judged whether the environment where the producer is located is a development test environment;

[0051] If yes, then obtain the test environment ID from the current thread context as the test environment ID of the current thread;

[0052] The test environment identifier of the current thread is added to the additional attribute of the message, and the message is sent.

[0053] Further, before allowing the consumer to consume the message, it also includes:

[0054] According to the message, the test environment identifier of the thread context of the current thread is set.

[0055] see Figure 4 As shown, the method for developing and testing the application include...

Embodiment 3

[0074] Figure 5 It is a flowchart of a method for application development and testing in Embodiment 3 of the present invention. Based on the method provided in Embodiment 1, this method further includes: before obtaining the message sent by the producer:

[0075] When the consumer's environment is the project test environment, obtain the consumer group name of the consumer corresponding to the consumer in the stable test environment;

[0076] Add a suffix after the consumer group name of the corresponding consumer as the consumer group name of the consumer, wherein the suffix is ​​the environment identifier of the project test environment;

[0077] Determine the path of the node to be created according to the environment identifier of the project test environment, the message topic and the consumer;

[0078] According to the path, create the node in the zookeeper cluster;

[0079] A subscription of the consumer to the message is performed.

[0080] see Figure 5 As shown...

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 an application development and testing method and device. The method comprises the following steps: acquiring a message transmitted by a producer; according to a call chain path of a delivery message in a producer and stable testing environment, determining a message subject corresponding to the delivery message in a message queue middleware; placing the message in the determined message subject, and forwarding the message to a consumer corresponding to the message subject; and when an environmental mark of the consumer environment is the same as that of the testing environment, or the consumer environment is the stable testing environment and a node that takes the testing environment mark, the message subject and the consumer as a path does not exist in a zookeepercluster, then allowing the consumer to consume the message. The application development and testing method provided by the invention solves the problems in the prior art that all applications need tobe deployed in the project testing environment, so that the resource consumption of the application development and testing environment is large and the maintenance complexity is high, and achieves the effects of saving the resource consumption of the application development and testing environment, and reducing the maintenance complexity of the application development and testing environment.

Description

technical field [0001] Embodiments of the present invention relate to electronic information technology, and in particular to a method and device for application development and testing. Background technique [0002] In a distributed service system, there are often such business scenarios. Application A initiates a remote procedure call to application B. The business of application A does not need to wait for the return result of application B, but only needs to trigger the processing logic of application B. However, in a general service structure, remote procedure calls are all synchronous, and application A must wait for application B to complete processing before proceeding, resulting in reduced real-time performance of application A and poor user experience. In the prior art, a common solution to this kind of problem is: use message queue middleware as an intermediary for message (ie, remote procedure call request) transmission between two applications, so that the calli...

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
IPC IPC(8): G06F11/36
Inventor 陈延康彬鲍明宇
Owner 上海云犀信创网络科技有限公司
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