CN112988572A - Multi-environment multi-channel multi-version simulation test method and device - Google Patents

Multi-environment multi-channel multi-version simulation test method and device Download PDF

Info

Publication number
CN112988572A
CN112988572A CN202110174205.1A CN202110174205A CN112988572A CN 112988572 A CN112988572 A CN 112988572A CN 202110174205 A CN202110174205 A CN 202110174205A CN 112988572 A CN112988572 A CN 112988572A
Authority
CN
China
Prior art keywords
end device
information
parameters
version
environment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110174205.1A
Other languages
Chinese (zh)
Other versions
CN112988572B (en
Inventor
时晓玉
臧奇
仝亚鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202110174205.1A priority Critical patent/CN112988572B/en
Publication of CN112988572A publication Critical patent/CN112988572A/en
Application granted granted Critical
Publication of CN112988572B publication Critical patent/CN112988572B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/368Test management for test version control, e.g. updating test cases to a new software version

Abstract

The invention discloses a multi-environment multi-channel multi-version simulation test method and a device, which are applied to the field of finance, and the method comprises the following steps: configuring different domain name information, channel sources and version parameters for the front-end device to select; receiving required domain name information, channel source and version parameters selected by a front-end device, and input identity information; acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the dyeing parameters to the front-end device; receiving a protocol request which is sent to a corresponding domain name information by a front-end device based on the corresponding domain name information and under a physical environment; and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device. The invention can integrate the business functions of a plurality of versions to different physical environments of the client APP terminal, abandons the complicated steps of logging in each channel, directly selects the business functions of the required environment, channel and version to test, and improves the testing efficiency.

Description

Multi-environment multi-channel multi-version simulation test method and device
Technical Field
The invention relates to the technical field of testing in the financial field, in particular to a multi-environment multi-channel multi-version simulation testing method and device.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
At present, financial online business demands are more and more, a mobile banking APP is used for responding to quick business delivery, environments, channels and versions are numerous, and the 'my customer service' function of an industrial and commercial bank is taken as an example: the multi-environment is verified in a test environment and a pre-production environment before online, and is verified in the production environment after online, and the test environment is divided into a plurality of sets for different types of reasons; the multi-channel refers to the fact that the customer channels comprise an E-bank-merging function, an E-link-merging function, an E-purchase function, a WeChat function, an E-life function, an E-office function, an E-service function, a merchant family function, an online bank function and the like, and the channels are provided with a My customer service module and are connected with a unified text customer service seat platform of the bank; multi-version refers to multiple versions in iterative development, especially multiple versions for functional testing when developed in parallel. In the testing process, for example, the 'my customer service' for testing each channel is switched to a manual access character customer service seat platform, and the following difficulties exist: 1) in the stage of acceptance and adaptability test, the original single-channel single-access character customer service seat platform test mode cannot fully meet the test requirement, and a multi-channel mixed access scene is required to find the test problem; 2) and the method excessively depends on the entity mobile phone, and new test versions are frequently installed. The method has the advantages that the number of environments related to a client is large, the process is long, each channel is influenced by the reasons of networks, version updating, bottom layer interaction environments and the like, the entrance end of 'my customer service' of each channel cannot be interacted with a character customer service seat platform frequently, and as a result, the modified content of the character customer service seat platform cannot be tested due to various reasons of the front-end client; 3) the butt joint personnel of each channel are different, so that the simultaneous online test of the co-workers in multiple channels is difficult to coordinate at the same time, the human resource investment is high, the management is relatively dispersed, and the test efficiency is low. 4) Due to more environmental problems of the client, the effect of automatic testing based on the entity mobile phone client is poor, a script needs to be independently compiled in channels, the reuse rate is low, and automatic testing is difficult to develop. The testing of the general functions of other environments, channels and versions has the same difficulty, such as the functions of binding cards and inquiring balance when each channel is accessed to the background of a bank.
Disclosure of Invention
The embodiment of the invention provides a multi-environment multi-channel multi-version simulation test method, which is used for integrating a plurality of guest APP function test environments, and changing the original mode that a plurality of mobile phones correspond to a plurality of sets of environments, channels and versions into the mode that the environment, the channel and the version are selected after the mobile phones of different models log in, thereby improving the test efficiency, and the method comprises the following steps:
configuring different domain name information, channel sources and version parameters for the front-end device to select;
receiving required domain name information, channel source and version parameters selected by a front-end device, and input identity information;
acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the dyeing parameters to the front-end device;
receiving a protocol request sent by a front-end device to a corresponding physical environment based on corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
The embodiment of the invention provides a multi-environment multi-channel multi-version simulation test method, which is used for integrating a plurality of guest APP function test environments, and changing the original mode that a plurality of mobile phones correspond to a plurality of sets of environments, channels and versions into the mode that the environment, the channel and the version are selected after the mobile phones of different models log in, thereby improving the test efficiency, and the method comprises the following steps:
based on different domain name information, channel sources and version parameters configured by the back-end device, selecting the required domain name information, channel sources and version parameters, sending the domain name information, channel sources and version parameters to the back-end device, and inputting identity information to the back-end device;
receiving the identity parameters acquired and returned by the back-end device according to the identity information and the associated dyeing parameters acquired and returned according to the selected required version parameters;
based on corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in a back-end device, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
and receiving corresponding test service information which is obtained and returned by the back-end device according to the protocol request.
The embodiment of the invention provides a back-end device, which is used for integrating a plurality of guest APP function test environments, and changing the original plurality of mobile phones corresponding to a plurality of sets of environments, channels and versions into different types of mobile phones for selecting the environments, channels and versions after logging in, thereby improving the test efficiency, and the device comprises:
the configuration module is used for configuring different domain name information, channel sources and version parameters for the front-end device to select;
the information receiving module is used for receiving the required domain name information, channel source and version parameters selected by the front-end device and the input identity information;
the information acquisition module is used for acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the associated dyeing parameters to the front-end device;
the information receiving module is further configured to: based on corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in a back-end device, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
the information acquisition module is further configured to: and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
The embodiment of the invention provides a front-end device, which is used for integrating a plurality of guest APP function test environments, and changing the original plurality of mobile phones corresponding to a plurality of sets of environments, channels and versions into different types of mobile phones for selecting the environments, channels and versions after logging in, thereby improving the test efficiency, and the device comprises:
the information selection module is used for selecting the required domain name information, channel source and version parameter to send to the back-end device and inputting the identity information to the back-end device based on different domain name information, channel source and version parameters configured by the back-end device;
the information receiving module is used for receiving the identity parameters which are obtained and returned by the back-end device according to the identity information and the associated dyeing parameters which are obtained and returned according to the selected required version parameters;
the Http protocol request sending module is used for sending a protocol request to a physical environment corresponding to corresponding domain name information in a back-end device through a service function page based on the corresponding domain name information, wherein the protocol request comprises a protocol header and a protocol data body, the protocol header comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
and the test service information receiving module is used for receiving the corresponding test service information which is acquired and returned by the back-end device according to the protocol request.
The embodiment of the invention provides a multi-environment multi-channel multi-version simulation test device, which is used for integrating a plurality of guest APP function test environments, and changing the original plurality of mobile phones corresponding to a plurality of sets of environments, channels and versions into different types of mobile phones for selecting the environments, channels and versions after logging in, thereby improving the test efficiency, and the device comprises: the front end device and the rear end device.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the multi-environment, multi-channel and multi-version test simulation method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multi-environment multi-channel multi-version simulation test method described above.
In the embodiment of the invention, the domain name information, the channel source and the version parameter are configured by the back-end device for the front-end device to select, the entrance channel of the front-end APP can be collected, the interactive application initiated by the multi-environment, multi-channel and multi-version client is simulated, the instability factor and the interference of redundant steps are eliminated, and the APP test is prevented from being switched continuously; the back-end device obtains the associated dyeing parameters according to the selected corresponding version parameters, so that the isolation among a plurality of sets of test clusters can be realized through flow dyeing, and meanwhile, different environments and different clusters can be conveniently switched on the front-end page.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. In the drawings:
FIG. 1 is a block diagram of a multi-environment, multi-channel, multi-version simulation test apparatus according to an embodiment of the present invention;
FIG. 2 is a flow chart (overall view) of a multi-environment multi-channel multi-version simulation test method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating context switching according to an embodiment of the present invention;
FIG. 4 is a diagram of a multi-version flow staining architecture in an embodiment of the present invention;
FIG. 5 is a flowchart of a multi-environment, multi-channel, multi-version simulation test method (back-end device angle) according to an embodiment of the present invention;
FIG. 6 is a block diagram of a backend apparatus according to an embodiment of the present invention;
FIG. 7 is a flowchart of a multi-environment, multi-channel, multi-version simulation test method (front-end device angle) according to an embodiment of the present invention;
FIG. 8 is a block diagram of a front-end device according to an embodiment of the present invention;
fig. 9 is a flowchart of a specific multi-environment multi-channel multi-version simulation test "my customer service" method in an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention are further described in detail below with reference to the accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
Based on the testing difficulties 1) to 4) in the prior art, the invention carries out innovation, provides the multi-environment multi-channel multi-version simulation testing device, collects the inlet channel of the front-end APP, simulates the interactive application initiated by the multi-environment multi-channel multi-version client, eliminates the interference of instability factors and redundant steps, avoids constantly switching the APP test, focuses the testing on the functional verification of the service function, is beneficial to the promotion of the service function testing automation, reduces the investment of manpower and material resources, and simultaneously comprehensively promotes the testing efficiency.
Fig. 1 is a block diagram of a multi-environment multi-channel multi-version simulation test apparatus according to an embodiment of the present invention, as shown in fig. 1, the multi-environment multi-channel multi-version simulation test apparatus includes: a front-end device and a back-end device.
Fig. 2 is a flowchart (overall view) of a multi-environment multi-channel multi-version simulation test method according to an embodiment of the present invention, as shown in fig. 2, the method includes:
step 201: the back-end device configures different domain name information, channel sources and version parameters for the front-end device to select;
step 202: the front-end device selects required domain name information, channel source and version parameters to send to the back-end device based on configured different domain name information, channel source and version parameters, and inputs identity information to the back-end device;
step 203: the back-end device acquires identity parameters according to the identity information and returns the identity parameters to the front-end device, and acquires associated dyeing parameters according to the selected required version parameters and returns the associated dyeing parameters to the front-end device;
step 204: the front-end device sends a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device based on the corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises the requested test service identification information;
step 205: and the back-end device acquires corresponding test service information according to the protocol request and returns the test service information to the front-end device.
Specifically, the channel indicates what the source system of the message is, for example, WeChat APP, a webpage system, and the like. The domain name is selected from specific physical environments, such as pro (production environment), test (test environment), dev (development environment), beta and the like; the version parameter is the selection of the code version number or tag, which version of code is pulled, i.e., which version of code is selected to be deployed to which environment.
And switching between multiple environments, multiple channels and multiple versions is realized through the selection of the different domain name information, the channel sources and the version parameters.
In the embodiment of the invention, the back-end device sets the processing logic of the code, namely different domain names and version parameters (dyeing information) are configured, so that a tester can select specific environment and version through the page of the front-end device.
In the embodiment of the invention, after the front-end device selects the environment, the channel and the version parameters and inputs the identity information, the back-end device performs login authentication based on the input identity information (such as a user name and a password), the identity parameter token ID is obtained from the distributed cache after the login authentication is passed and is returned to the front-end device, and the subsequent front-end device uses the identity parameter token ID without performing authentication login. And obtaining the dyeing parameter envVersion associated with the version parameter from the distributed cache according to the version parameter and returning the dyeing parameter envVersion to the front-end device.
In the embodiment of the invention, various service functions H5 pages can be embedded in the front-end page of the multi-environment multi-channel multi-version simulation test device, and the various service functions can be, for example, a channel general My customer service function, a background text customer service instant communication platform connected through an APP terminal, and can also be an original function page using the APP terminal, such as a card binding function, a balance inquiry function and the like. The protocol request may be an Http protocol request, and data is transmitted according to the Http protocol. The front-end device caches three parameters of a channel source, identity information tokenID and version information envVersion, corresponding domain name information and requested test service identification information in each Http protocol request, and then transmits the Http protocol request to the back-end device through a service function H5 page.
The channel, which is just one parameter in the request, selects a channel and always brings this parameter in the header of the Http request protocol so that the back-end device knows what the source system of the message is, e.g., source: weChat, and then the back-end device knows that the message is from the weChat client channel.
In an embodiment of the present invention, fig. 3 is a flowchart illustrating an environment switching process in an embodiment of the present invention, and as shown in fig. 3, the multi-environment multi-channel multi-version simulation test apparatus implements three processes of multi-environment multi-channel multi-version switching.
1. Selecting multiple environments, wherein the physical environments comprise a development environment, a test environment, a pre-production environment and a production environment, the four environments are isolated by a physical cluster, selecting different physical environments is to select different domain name information, performing DNS domain name service resolution on the selected different domain names, and then routing an Http protocol request to a designated physical cluster to realize the selection of the multiple physical environments.
2. And selecting multiple channels, wherein the back-end device marks a channel icon corresponding to the source prompt at the information source. For example, the chat page with the "my customer service" function can adopt an H5 page, the source is marked by the source parameter of each channel, multiple channels and versions of the "my customer service" are uniformly incorporated into the simulation test device, and chat between the "my customer service" H5 page of each channel and the text customer service is realized.
3. The multi-version switching can select different test versions or iteration versions in a development environment and a test environment, and depending on envVersion parameters set in an http request, a registration center, a gateway and routing services in a back-end device are changed from an original rotation training mechanism to a service name which is preferably selected and established, namely, the flow from the request is dyed, the dyeing service is preferentially adopted for calling among the services of the flow, and when the dyeing service is not available, the original physical machine service of the test environment is called. The back-end device creates the dyeing service, and uses containerization and continuous integration technology to pull the corresponding code branch version to quickly create the container environment to deploy the dyeing service.
In the embodiment of the invention, the back-end device comprises a registration center (service registration and service name registration), a gateway (forwarding request) and a service route. Taking the function of testing my customer service as an example, the following functions are realized:
multi-channel multi-environment on first chunk physical cluster:
my customer service adopts the embedded H5 page form of APP, can update My service function under the condition of not upgrading APP, does not rely on concrete APP at the same time, and is convenient to incorporate My customer service pages of various channels through unified development. Therefore, in the testing stage, the domain name of my customer service and the channel source identifier of each channel are embedded, and different channels are conveniently switched. Each channel corresponds to a plurality of environments and is routed to a specific physical cluster through a specific domain name by means of DNS service. And the identity authentication adopts a uniform authentication code, and a token is obtained from the distributed cache and is used as a user identity.
Multi-environment multi-version on second chunk virtual service:
the multi-environment is divided into a development environment, a test environment, a pre-production environment and a production environment according to physical isolation. The switching of the above four environments is mainly routed to a specific physical cluster by domain name DNS service. In a development environment and a test environment, in order to keep a plurality of versions and a plurality of iterations for parallel development, a plurality of sets of test environments often need to exist at the same time, if the resources are wasted in a DNS routing physical isolation mode at the moment, and the elasticity of the test environments is not convenient to increase or decrease.
The multi-version is characterized in that on the premise that basic facilities are made by containerization and micro-service, the characteristics of convenience in container deployment, good isolation and the like are utilized, and meanwhile, the functional service is also utilized, one or two services can be changed in a certain version, the change of other services is not involved, and middleware such as database cache and the like can be shared in a test environment. The Http request is dyed, namely, envVersion is added in a header to mark the version number of flow, and then the request strategy is forwarded by modifying the service gateway, so that the original service rotation strategy is modified into a service rotation strategy with a dyeing mark, and the purpose of multi-version is achieved.
As shown in the test environment service staining system architecture diagram of fig. 4, the original test environment has four ABCD services and infrastructure, and after only two CD services are changed, version 1 is named, and after only a service a is changed, version 2 is named, so that developers and testers only need to deploy a first set of environment CD and a second set of environment a, and select corresponding version numbers. For a first set of environment CD, when an isolation environment is required to be tested, two services of the CD can be pulled by a continuous integration tool, the code branch of the version is used for quickly constructing the two services of the CD by means of containerization technology, the service is marked in http request flow for dyeing, and then the service is distributed to a specific set of test environment according to different dyeing values through a service registration center to finish the test environment and then divided into a plurality of sets of virtual environments. Therefore, different test versions can be switched in the front-end device, and the A service and the C service which are not changed are not needed to be independently deployed, so that resources are saved, and the switching efficiency of the environment versions is improved.
The embodiment of the invention also provides a flow chart (back-end device angle) of a multi-environment multi-channel multi-version simulation test method, and as shown in fig. 5, the method comprises the following steps:
step 501: configuring different domain name information, channel sources and version parameters for the front-end device to select;
step 502: receiving required domain name information, channel source and version parameters selected by a front-end device, and input identity information;
step 503: acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the dyeing parameters to the front-end device;
step 504: receiving a protocol request sent by a front-end device to a corresponding physical environment based on corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
step 505: and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
In this embodiment of the present invention, step 503, obtaining identity parameters according to the identity information and returning the identity parameters to the front end device, includes:
and performing login authentication based on the identity information, acquiring identity parameters after the login authentication is passed, and returning the identity parameters to the front-end device.
In the embodiment of the invention, the physical environment comprises a development environment, a test environment, a pre-production environment and a production environment, and the physical environment is isolated by a physical cluster;
further comprising:
and performing DNS domain name service analysis on the corresponding domain name information selected by the front-end device, and routing the protocol request to a specified physical cluster.
In the embodiment of the present invention, the method further includes:
deploying test services corresponding to the dyeing parameters by creating a container environment;
obtaining corresponding test service information according to the protocol request and returning the test service information to the front-end device, wherein the method comprises the following steps:
and based on the dyeing parameters in the protocol request, routing the protocol request to a corresponding container environment, and acquiring corresponding test service information and returning the test service information to the front-end device.
In the embodiment of the present invention, the method further includes:
judging whether the associated dyeing parameters exist according to the required version parameters, and if so, returning the associated dyeing parameters to the front-end device;
and if the protocol request does not exist, the dyeing parameter in the protocol request is null, and based on the protocol request, the test service information corresponding to the version parameter is acquired and returned to the front-end device.
Under the same inventive concept, an embodiment of the present invention further provides a backend apparatus, a structural block diagram of which is shown in fig. 6, where the backend apparatus includes:
a configuration module 601, configured to configure different domain name information, channel source and version parameters for the front-end device to select;
an information receiving module 602, configured to receive domain name information, channel source and version parameters selected by a front-end device, and input identity information;
an information obtaining module 603, configured to obtain an identity parameter according to the identity information and return the obtained identity parameter to the front-end device, and obtain an associated dyeing parameter according to a required version parameter and return the obtained dyeing parameter to the front-end device;
the information receiving module 602 is further configured to: receiving a protocol request sent by a front-end device to a corresponding physical environment based on corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
the information obtaining module 603 is further configured to: and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
In this embodiment of the present invention, the information obtaining module 603 is specifically configured to:
and performing login authentication based on the identity information, acquiring identity parameters after the login authentication is passed, and returning the identity parameters to the front-end device.
In the embodiment of the invention, the physical environment comprises a development environment, a test environment, a pre-production environment and a production environment, and the physical environment is isolated by a physical cluster;
the device also includes:
and the routing module is used for performing DNS domain name service analysis on the corresponding domain name information selected by the front-end device and routing the protocol request to the designated physical cluster.
In the embodiment of the present invention, the method further includes:
the container environment creating module is used for deploying the test service corresponding to the dyeing parameter by creating the container environment;
the information obtaining module 603 is specifically configured to:
and based on the dyeing parameters in the protocol request, routing the protocol request to a corresponding container environment, and acquiring corresponding test service information and returning the test service information to the front-end device.
In an embodiment of the present invention, the apparatus further includes:
the judging module is used for judging whether the associated dyeing parameters exist according to the required version parameters, and if the associated dyeing parameters exist, the associated dyeing parameters are returned to the front-end device;
and if the protocol request does not exist, the dyeing parameter in the protocol request is null, and based on the protocol request, the test service information corresponding to the version parameter is acquired and returned to the front-end device.
The embodiment of the invention also provides a flow chart (front-end device angle) of a multi-environment multi-channel multi-version simulation test method, and as shown in fig. 7, the method comprises the following steps:
step 701: based on different domain name information, channel sources and version parameters configured by the back-end device, selecting the required domain name information, channel sources and version parameters, sending the domain name information, channel sources and version parameters to the back-end device, and inputting identity information to the back-end device;
step 702: receiving the identity parameters acquired and returned by the back-end device according to the identity information and the associated dyeing parameters acquired and returned according to the selected required version parameters;
step 703: based on corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in a back-end device, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
step 704: and receiving corresponding test service information which is obtained and returned by the back-end device according to the protocol request.
In the embodiment of the invention, the protocol request is an Http protocol request;
based on the corresponding domain name information, sending the protocol request to the physical environment corresponding to the corresponding domain name information in the back-end device, including:
based on the corresponding domain name information, the Http protocol request is sent to the physical environment corresponding to the corresponding domain name information in the backend device through the service function H5 page.
Under the same inventive concept, an embodiment of the present invention further provides a front-end device, a structural block diagram of which is shown in fig. 8, where the front-end device includes:
an information selection module 801, configured to select, based on different domain name information, channel source, and version parameters configured by a backend device, required domain name information, channel source, and version parameters to send to the backend device, and input identity information to the backend device;
an information receiving module 802, configured to receive an identity parameter obtained and returned by the backend device according to the identity information, and an associated dyeing parameter obtained and returned according to the selected required version parameter;
a protocol request sending module 803, configured to send a protocol request to a physical environment corresponding to corresponding domain name information in a backend device based on the corresponding domain name information, where the protocol request includes a protocol header and a protocol data body, the protocol header includes a channel source, an identity parameter, and a dyeing parameter, and the protocol data body includes test service identification information of the request;
a test service information receiving module 804, configured to receive corresponding test service information that is obtained and returned by the back-end device according to the protocol request.
In the embodiment of the invention, the protocol request is an Http protocol request;
the Http protocol request sending module 803 is specifically configured to:
based on the corresponding domain name information, the Http protocol request is sent to the physical environment corresponding to the corresponding domain name information in the backend device through the service function H5 page.
In the embodiment of the present invention, by taking a business-to-business behavior example, a customer channel includes a business-to-business, and internet bank, and these channels all have a "my customer service" module, and a unified text customer service seat platform of a bank is taken as an example, a multi-environment multi-channel multi-version simulation test simulation apparatus simulates members of "my customer service" of the above channels, fig. 9 is a flowchart of a specific multi-environment multi-channel multi-version simulation test text customer service method in the embodiment of the present invention, as shown in fig. 9, the method includes:
1. setting parameters: starting a member of 'my customer service' to log in and select physical environment and channel source parameters;
2. the back-end device logs in and authenticates and returns the version information: calling a getTokenAndSession interface to obtain an identity parameter tokenID and a version dyeing parameter envVersion;
3. the prepositive device initializes chat parameters: and opening a My customer service H5 page by using the entry address, adding a channel source, identity information tokenID and version information envVersion in an http request Header, and initializing parameters.
4. And starting a customer service chat module: and the chat interaction with the text customer service is realized by sending 'manual to manual' message.
The embodiment of the invention also provides computer equipment which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the multi-environment multi-channel multi-version simulation test method when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multi-environment multi-channel multi-version simulation test method described above.
In the embodiment of the invention, the problem that a series of resources wasting manpower and material resources, such as machine resource application, environment construction, APP rear-end service association and the like, are required by adding a set of test environment in the prior art is solved. The device can integrate a plurality of client function test environments of a bank to customers APP, simulate the test environments and production end environments and form a customer service component on a unified public interaction platform, can abandon complicated steps of logging in each channel, can select a default configuration account number, directly calls the customer service component, initiates manual interaction, directly interacts with a character customer service seat, and facilitates subsequent function tests of the character customer service seat. The device can replace the inconvenience of a plurality of entity mobile phone tests, achieve the aim of high-efficiency parallel test, greatly reduce the time of matching the test of each channel end, shorten the invalid communication time caused by environmental factors, and comprehensively improve the test working efficiency. In addition, it is not practical from the economical and management perspective to provide a set of exclusive test clusters for each developer, the invention realizes the isolation among a plurality of sets of test clusters through the flow dyeing and virtual routing method, and simultaneously, the invention also conveniently switches different environments and different clusters on the front-end page.
The device can be enriched and optimized continuously on the basis of the existing channels, and the uniform function of each newly added channel can be brought into the device subsequently. For the service scenes which relate to more inlet ends and have consistent subsequent flows, the inlet ends can also be unified in the form of the common platform. And has certain reference function for other application combined tests.
From the development perspective, multiple versions can be developed in parallel in the development and test stages, the environment is isolated, the versions are independent in construction and deployment, and the versions cannot affect each other. From the test angle, can realize that APP tests a plurality of function points in parallel in test environment, integrated many environment multi-channel multi-version in an APP, need not install a plurality of APPs, and same APP relies on different environment originally, also needs a plurality of versions. From the resource perspective, under the environment with common containerization and micro-service technology, a plurality of multi-version environments isolated from each other can be flexibly deployed in a test environment, and the cost of a physical machine is solved through a virtual technology. From the aspect of efficacy, the testing environment is still a domain name, the version environment can be rapidly added and deleted, and the working efficiency is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A multi-environment multi-channel multi-version simulation test method is characterized by comprising the following steps:
configuring different domain name information, channel sources and version parameters for the front-end device to select;
receiving required domain name information, channel source and version parameters selected by a front-end device, and input identity information;
acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the dyeing parameters to the front-end device;
receiving a protocol request sent by a front-end device to a corresponding physical environment based on corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
2. The multi-environment multi-channel multi-version simulation test method of claim 1, wherein obtaining identity parameters according to the identity information and returning the identity parameters to the front-end device comprises:
and performing login authentication based on the identity information, acquiring identity parameters after the login authentication is passed, and returning the identity parameters to the front-end device.
3. The multi-environment multi-channel multi-version simulation test method of claim 1, wherein the physical environments comprise a development environment, a test environment, a pre-production environment, and a production environment, the physical environments being isolated by physical clusters;
further comprising:
and performing DNS domain name service analysis on the corresponding domain name information selected by the front-end device, and routing the protocol request to a specified physical cluster.
4. The multi-environment multi-channel multi-version simulation test method of claim 1, further comprising:
deploying test services corresponding to the dyeing parameters by creating a container environment;
obtaining corresponding test service information according to the protocol request and returning the test service information to the front-end device, wherein the method comprises the following steps:
and based on the dyeing parameters in the protocol request, routing the protocol request to a corresponding container environment, and acquiring corresponding test service information and returning the test service information to the front-end device.
5. The multi-environment multi-channel multi-version simulation test method of claim 1, further comprising:
judging whether the associated dyeing parameters exist according to the required version parameters, and if so, returning the associated dyeing parameters to the front-end device;
and if the protocol request does not exist, the dyeing parameter in the protocol request is null, and based on the protocol request, the test service information corresponding to the version parameter is acquired and returned to the front-end device.
6. A multi-environment multi-channel multi-version simulation test method is characterized by comprising the following steps:
based on different domain name information, channel sources and version parameters configured by the back-end device, selecting the required domain name information, channel sources and version parameters, sending the domain name information, channel sources and version parameters to the back-end device, and inputting identity information to the back-end device;
receiving the identity parameters acquired and returned by the back-end device according to the identity information and the associated dyeing parameters acquired and returned according to the selected required version parameters;
based on corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in a back-end device, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
and receiving corresponding test service information which is obtained and returned by the back-end device according to the protocol request.
7. The multi-environment multi-channel multi-version simulation test method of claim 6, wherein the protocol request is an Http protocol request;
based on the corresponding domain name information, sending the protocol request to the physical environment corresponding to the corresponding domain name information in the back-end device, including:
based on the corresponding domain name information, the Http protocol request is sent to the physical environment corresponding to the corresponding domain name information in the backend device through the service function H5 page.
8. A backend device, comprising:
the configuration module is used for configuring different domain name information, channel sources and version parameters for the front-end device to select;
the information receiving module is used for receiving the required domain name information, channel source and version parameters selected by the front-end device and the input identity information;
the information acquisition module is used for acquiring identity parameters according to the identity information and returning the identity parameters to the front-end device, and acquiring associated dyeing parameters according to the required version parameters and returning the associated dyeing parameters to the front-end device;
the information receiving module is further configured to: receiving a protocol request sent by a front-end device to a corresponding physical environment based on corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises requested test service identification information;
the information acquisition module is further configured to: and acquiring corresponding test service information according to the protocol request and returning the test service information to the front-end device.
9. A front-end apparatus, comprising:
the information selection module is used for selecting the required domain name information, channel source and version parameter to send to the back-end device and inputting the identity information to the back-end device based on different domain name information, channel source and version parameters configured by the back-end device;
the information receiving module is used for receiving the identity parameters which are obtained and returned by the back-end device according to the identity information and the associated dyeing parameters which are obtained and returned according to the selected required version parameters;
the protocol request sending module is used for sending the protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device based on the corresponding domain name information, wherein the protocol request comprises a protocol head and a protocol data body, the protocol head comprises a channel source, an identity parameter and a dyeing parameter, and the protocol data body comprises the requested test service identification information;
and the test service information receiving module is used for receiving the corresponding test service information which is acquired and returned by the back-end device according to the protocol request.
10. A multi-environment multi-channel multi-version simulation test device is characterized by comprising: the back-end device of claim 8 and the front-end device of claim 9.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the computer program.
12. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202110174205.1A 2021-02-09 2021-02-09 Multi-environment multi-channel multi-version simulation test method and device Active CN112988572B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110174205.1A CN112988572B (en) 2021-02-09 2021-02-09 Multi-environment multi-channel multi-version simulation test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110174205.1A CN112988572B (en) 2021-02-09 2021-02-09 Multi-environment multi-channel multi-version simulation test method and device

Publications (2)

Publication Number Publication Date
CN112988572A true CN112988572A (en) 2021-06-18
CN112988572B CN112988572B (en) 2024-02-09

Family

ID=76349296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110174205.1A Active CN112988572B (en) 2021-02-09 2021-02-09 Multi-environment multi-channel multi-version simulation test method and device

Country Status (1)

Country Link
CN (1) CN112988572B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411219A (en) * 2021-06-29 2021-09-17 山东派盟网络科技有限公司 Method, device and equipment for publishing front-end service
CN114978696A (en) * 2022-05-24 2022-08-30 中国农业银行股份有限公司 Application access method and mobile office system
CN115426297A (en) * 2022-08-09 2022-12-02 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN116300681A (en) * 2023-05-16 2023-06-23 深圳华龙讯达信息技术股份有限公司 Automatic wiring monitoring method and system for PLC
CN117149264A (en) * 2023-10-31 2023-12-01 山东浪潮科学研究院有限公司 Multi-lane research and development environment construction method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150269056A1 (en) * 2014-03-19 2015-09-24 International Business Machines Corporation Self verifying device driver for multi-version compatible data manipulation devices
CN109669859A (en) * 2018-11-26 2019-04-23 平安科技(深圳)有限公司 Service test method, device, computer equipment and storage medium
CN110851359A (en) * 2019-11-07 2020-02-28 网易(杭州)网络有限公司 Application program testing method and device and server
CN111221565A (en) * 2018-11-27 2020-06-02 无锡雅座在线科技股份有限公司 Step gray release control method of software application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150269056A1 (en) * 2014-03-19 2015-09-24 International Business Machines Corporation Self verifying device driver for multi-version compatible data manipulation devices
CN109669859A (en) * 2018-11-26 2019-04-23 平安科技(深圳)有限公司 Service test method, device, computer equipment and storage medium
CN111221565A (en) * 2018-11-27 2020-06-02 无锡雅座在线科技股份有限公司 Step gray release control method of software application program
CN110851359A (en) * 2019-11-07 2020-02-28 网易(杭州)网络有限公司 Application program testing method and device and server

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113411219A (en) * 2021-06-29 2021-09-17 山东派盟网络科技有限公司 Method, device and equipment for publishing front-end service
CN114978696A (en) * 2022-05-24 2022-08-30 中国农业银行股份有限公司 Application access method and mobile office system
CN114978696B (en) * 2022-05-24 2024-04-12 中国农业银行股份有限公司 Application access method and mobile office system
CN115426297A (en) * 2022-08-09 2022-12-02 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN115426297B (en) * 2022-08-09 2023-12-12 杭州涂鸦信息技术有限公司 Function test method and device of sub-equipment, computer equipment and storage medium
CN116300681A (en) * 2023-05-16 2023-06-23 深圳华龙讯达信息技术股份有限公司 Automatic wiring monitoring method and system for PLC
CN116300681B (en) * 2023-05-16 2023-08-15 深圳华龙讯达信息技术股份有限公司 Automatic wiring monitoring method and system for PLC
CN117149264A (en) * 2023-10-31 2023-12-01 山东浪潮科学研究院有限公司 Multi-lane research and development environment construction method, device, equipment and storage medium
CN117149264B (en) * 2023-10-31 2024-01-30 山东浪潮科学研究院有限公司 Multi-lane research and development environment construction method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112988572B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
CN112988572A (en) Multi-environment multi-channel multi-version simulation test method and device
CN111641675A (en) Multi-tenant access service implementation method, device, equipment and storage medium
CN110442524A (en) It is a kind of for have Certificate Authority web service interface test method and device
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN103077024A (en) Device and method for supporting customization and running of software-as-a-service (SaaS) application processes
CN110413528B (en) Intelligent configuration method and system for test environment
CN106970880A (en) A kind of distributed automatization method for testing software and system
CN110781083B (en) H5 client code setting multi-environment testing method and system
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
US8146111B2 (en) Calling services from a remote client
CN107800781A (en) A kind of configuration data processing method and device
CN110750780B (en) User role permission fusion method, device and equipment based on multi-service system
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN111309624A (en) Test method, device, equipment and storage medium
CN116627849B (en) System test method, device, equipment and storage medium
CN112667204A (en) Data processing method and device for microservice application and computer equipment
CN112379946A (en) Template configuration method and device based on YAML and computer equipment
CN114466000B (en) CDN gateway source returning method and device
CN114691529B (en) gPC interface performance test method and device
CN112905332A (en) Method for realizing English PDF online rapid translation based on LVS load balancing Django architecture
CN113630468B (en) Dynamic proxy method
CN110321507A (en) Browser cross-domain communication method and device
CN108733566A (en) A kind of virtualization system automatization test system and method based on python
CN109960526A (en) A kind of application program packaging method and device
CN113051173A (en) Test flow arrangement execution method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant