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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap