CN112988572B - 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
CN112988572B
CN112988572B CN202110174205.1A CN202110174205A CN112988572B CN 112988572 B CN112988572 B CN 112988572B CN 202110174205 A CN202110174205 A CN 202110174205A CN 112988572 B CN112988572 B CN 112988572B
Authority
CN
China
Prior art keywords
end device
parameters
information
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.)
Active
Application number
CN202110174205.1A
Other languages
Chinese (zh)
Other versions
CN112988572A (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a multi-environment multi-channel multi-version simulation test method and a device, which are applied to the financial field, wherein 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, returning the identity parameters to the front-end device, 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 physical environment corresponding to the corresponding domain name information based on the corresponding domain name information; and acquiring corresponding test service information according to the protocol request, and returning the corresponding test service information to the front-end device. The invention can integrate the business functions of a plurality of versions in different physical environments of the guest APP terminal, abandons the complicated step of logging in each channel, directly selects the business functions of the required environment, channel and version for testing, 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, the demands of businesses on financial lines are increasing, and in order to respond to the rapid delivery of businesses, the mobile phone banking APP has numerous environments, channels and versions, and takes the function of 'My customer service' of an industrial and commercial bank as an example: the multi-environment refers to verification in a test environment and a pre-production environment before online, verification in a production environment is needed after online, and the test environment is divided into a plurality of sets due to different types of reasons; the multi-channel refers to a channel with E-line fusion, E-link fusion, E-purchase fusion, weChat fusion, E life, E office, E service, merchant home, online banking and the like, taking a bank 'My customer service' function as an example, and the channels all have 'My customer service' modules which are connected with a unified text customer service seat platform of the bank; multi-version refers to multiple versions in iterative development, especially multiple functional test versions when developed in parallel. In the testing process, for example, the step of testing the 'My customer service' of each channel is changed into the step of manually accessing the text customer service seat platform, and the following difficulties are caused: 1) In the inspection and acceptance and adaptability test stage, the original single-channel single-access text customer service seat platform test mode cannot fully meet the test requirements, and a multi-channel mixed access scene is required to find out test problems; 2) And the entity mobile phone is excessively depended, and new test versions are frequently installed. The client side has multiple related environments and long flow, each channel is influenced by the reasons of network, version updating, bottom interactive environment and the like, the inlet end of each channel 'My customer service' cannot interact with the text customer service seat platform frequently, and as a result, the text customer service seat platform itself is transformed and the content cannot be tested due to various reasons of the front-end client side; 3) The butt joint personnel of each channel are different, so that the online test of the co-workers of multiple channels is difficult to coordinate at the same time, the human resource investment is more, the management is relatively scattered, and the test efficiency is lower. 4) Because of more environmental problems in the client side, the automatic test effect based on the entity mobile phone client side is poor, scripts are required to be independently compiled by channels, the multiplexing rate is low, and the automatic test is difficult to develop. The problems are also existed in the testing of the general functions of other environments, channels and versions, such as the functions of binding cards, inquiring balance and the like when the channels are connected to the background of the 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, changing the original environment, channel and version of a plurality of mobile phones into different types of mobile phones to select the environment, channel and version after logging in, and improving the test efficiency, and 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, returning the identity parameters to the front-end device, 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 header and a protocol data body, the protocol header comprises channel sources, identity parameters and dyeing parameters, 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 corresponding 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, changing the original environment, channel and version of a plurality of mobile phones into different types of mobile phones to select the environment, channel and version after logging in, and improving the test efficiency, and comprises the following steps:
based on different domain name information, channel source and version parameters configured by the back-end device, selecting required domain name information, channel source and version parameters to send to the back-end device, and inputting identity information to the back-end device;
receiving an identity parameter acquired and returned by a back-end device according to the identity information and an associated dyeing parameter acquired and returned according to the selected required version parameter;
based on the corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device, 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 test service identification information of the request;
and receiving corresponding test service information acquired 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, changing the original environment, channel and version corresponding to a plurality of sets of mobile phones into the environment, channel and version selected after the mobile phones with different models are logged in, and improving the test efficiency, and comprises the following steps:
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 dyeing parameters to the front-end device;
the information receiving module is also used for: based on the corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device, 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 test service identification information of the request;
the information acquisition module is also used for: and acquiring corresponding test service information according to the protocol request, and returning the corresponding 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, changing the original environment, channel and version corresponding to a plurality of sets of mobile phones into the environment, channel and version selected after the mobile phones with different models are logged in, and improving the test efficiency, and comprises the following steps:
the information selection module is used for selecting the required domain name information, channel source and version parameters based on different domain name information, channel source and version parameters configured by the back-end device, sending the required domain name information, channel source and version parameters to the back-end device, and inputting identity information to the back-end device;
the information receiving module is used for 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;
the Http protocol request sending module is used for sending a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device through the 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 test service identification information of the request;
and the test service information receiving module is used for receiving the corresponding test service information 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 testing device, which is used for integrating a plurality of guest APP function testing environments, changing the original environment, channel and version of a plurality of mobile phones into the environment, channel and version of the mobile phones with different models after logging in, and improving the testing efficiency, and comprises the following steps: the front end device and the back end device described above.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the multi-environment multi-channel multi-version testing method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, realizes the steps of the multi-environment multi-channel multi-version simulation test method.
In the embodiment of the invention, the front-end device is provided with the domain name information, the channel source and the version parameters for the front-end device to select, so that the front-end APP inlet channel can be collected, the interactive application initiated by the multi-environment multi-channel multi-version client can be simulated, the instability factors and the interference of redundant steps are eliminated, and the APP test is prevented from being continuously switched; the back-end device acquires the associated dyeing parameters according to the selected corresponding version parameters, so that 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 a front-end page.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1 is a block diagram of a multi-environment multi-channel multi-version simulation test device in an embodiment of the invention;
FIG. 2 is a flow chart (overall angle) of a multi-environment multi-channel multi-version simulation test method in an embodiment of the invention;
FIG. 3 is a flow chart of an environmental handoff in an embodiment of the present invention;
FIG. 4 is a diagram of a multi-version flow staining architecture in an embodiment of the 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 device according to an embodiment of the present invention;
FIG. 7 is a flow chart 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 invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the embodiments of the present invention will be described in further detail with reference to the accompanying drawings. The exemplary embodiments of the present invention and their descriptions herein are for the purpose of explaining the present invention, but are not to be construed as limiting the invention.
Based on the testing difficulties of 1) to 4) in the prior art, the invention innovates, provides a multi-environment multi-channel multi-version simulation testing device, gathers the entrance channel of a front-end APP, simulates the interactive application initiated by multi-environment multi-channel multi-version clients, eliminates unstable factors and the interference of redundant steps, avoids continuously switching APP tests, focuses the testing on the functional verification of service functions, is beneficial to the improvement of service function testing automation, reduces the investment of manpower and material resources, and simultaneously comprehensively improves the testing efficiency.
FIG. 1 is a block diagram of a multi-environment multi-channel multi-version simulation test device according to an embodiment of the present invention, as shown in FIG. 1, the multi-environment multi-channel multi-version simulation test device includes: front end devices and back end devices.
FIG. 2 is a flowchart (overall angle) of a multi-environment multi-channel multi-version simulation test method according to an embodiment of the present invention, and 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 the required domain name information, channel source and version parameters based on the configured different domain name information, channel source and version parameters, sends the selected domain name information, channel source and version parameters to the back-end device, 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, acquires associated dyeing parameters according to the selected required version parameters and returns the 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 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 test service identification information of the request;
step 205: and the back-end device acquires corresponding test service information according to the protocol request and returns the corresponding test service information to the front-end device.
Specifically, the channel indicates what the source system of the message is, such as WeChat APP, a web page system, etc. The domain name is a specific physical environment selected, such as pro (production environment), test (test environment), dev (development environment), beta and the like; the version parameter is a selected code version number or tag, and which version of code is pulled, i.e. which version of code is selected to be deployed to which environment.
Through the selection of the different domain name information, channel sources and version parameters, the multi-environment multi-channel multi-version switching is realized.
In the embodiment of the invention, the processing logic of the back-end device setting code, namely, different domain names and version parameters (dyeing information) are configured for a tester to select specific environments and versions through the front-end device page.
In the embodiment of the invention, after the front-end device selects the environment, the channel, the version parameters and the input identity information, the back-end device performs login authentication based on the input identity information (such as a user name and a password), and after the login authentication is passed, the back-end device obtains the identity parameter token ID from the distributed cache and returns the identity parameter token ID to the front-end device, and the subsequent front-end device does not need to perform authentication login again by using the identity parameter token ID. And obtaining dyeing parameters envVersion associated with the version parameters from the distributed cache according to the version parameters, and returning the dyeing parameters 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, universal channel 'My customer service' functions, a background 'text customer service' instant messaging platform is docked through an APP end, and original function pages such as a binding card function, a balance inquiry function and the like of the APP end can be used. The protocol request may be an Http protocol request, and the data is transmitted according to the Http protocol. The front-end device caches the channel source, the identity information token ID, the version information envVersion, the corresponding domain name information and the requested test service identification information in each Http protocol request, and then the front-end device transmits the Http protocol request to the back-end device through a service function H5 page.
The channel is just one parameter in the request, and the channel is selected, the parameter is always carried in the header of the Http request protocol, so that the back-end device can know what the source system of the message is, for example, source: weChat, and then the back-end device knows that the message comes from a WeChat client channel.
In the embodiment of the invention, fig. 3 is a flowchart of environment switching in the embodiment of the invention, and as shown in fig. 3, the multi-environment multi-channel multi-version simulation test device realizes three processes of multi-environment multi-channel multi-version switching.
1. The method comprises the steps of selecting multiple environments, namely, a development environment, a test environment, a pre-production environment and a production environment, wherein the four environments are isolated through physical clusters, different physical environments are selected, namely, different domain name information is selected, DNS domain name service analysis is carried out on different domain names selected, and then, a Http protocol request is routed to a designated physical cluster, so that the selection of the multiple physical environments is realized.
2. And selecting multiple channels, and marking and displaying a source prompt corresponding to the channel icon at the information source by the back-end device. For example, the chat page with the function of 'My customer service' can adopt an H5 page, the source is marked by the source parameter of each channel, the 'My customer service' with multiple rings and multiple versions of multiple channels is uniformly incorporated into the simulation test device, and the chat between the 'My customer service' H5 page of each channel and the text customer service is realized.
3. Different test versions or iteration version numbers can be selected in a development environment and a test environment by multi-version switching, the registration center, the gateway and the routing service which are included in the back-end device are changed from an original training mechanism into a service name which is preferably selected and formulated by virtue of envVersion parameters which are set in http requests, namely, the requested traffic is dyed, the dyeing service is preferably adopted for calling among the traffic services, and when the dyeing service is not available, the original physical machine service of the test environment is called. Backend device creation of a dyeing service the dyeing service is deployed using containerization and persistence integration techniques by pulling a corresponding code branch version quick creation container environment.
In the embodiment of the invention, the back-end device comprises a registry (service registration, service name registration), a gateway (forwarding request) and a service route. Taking the test of My customer service function as an example, the following functions are realized:
multi-channel multi-environment on a first massive physical cluster:
the 'My customer service' adopts the form of an APP embedded H5 page, can update the My service function under the condition of not upgrading the APP, does not depend on the specific APP, and is convenient to uniformly develop and bring in the 'My customer service' page of each channel. Therefore, in the testing stage, the domain name of each channel 'My customer service' and the channel source identifier are embedded, so that the switching of different channels is convenient. Each channel corresponds to a plurality of sets of environments and is routed to a specific physical cluster by means of DNS services through a specific domain name. The identity authentication adopts a unified authentication code, and a token is obtained from the distributed cache and is used as a user identity.
Multiple environment versions on a second large block 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 above four sets of environment switch is mainly routed to a specific physical cluster by domain name DNS service. In the development environment and the test environment, in order to preserve multiple versions and multiple iterations for parallel development, multiple sets of test environments are needed to exist at the same time, and if the multiple sets of test environments are physically isolated according to the DNS route at the moment, resources are wasted, and the flexibility of the test environments is inconvenient to increase and decrease.
The multi-version is characterized in that on the premise that the container and the micro-service are used for making the infrastructure, the characteristics of convenience in container deployment, good isolation and the like are utilized, meanwhile, the function is also utilized for service, one version may only change one or two services, the change of other services is not involved, and middleware such as database cache and the like can be shared in the test environment. The method comprises the steps of dyeing a Http request, namely adding envVersion in a header to mark the version number of the flow, and modifying an original service training strategy into a service re-training strategy with dyeing marks by modifying a service gateway forwarding request strategy so as to achieve the aim of multiple versions.
As shown in the architecture diagram of the test environment service staining system in fig. 4, the original test environment has four services and infrastructures of ABCD, when only two services of CD are changed, version 1 is named, when only service a is changed, version 2 is named, then the developer and the tester only need to deploy the first set of environment CD and the second set of environment a, and the corresponding version numbers are selected. For the first set of environment CD, when the isolated environment is required to be tested, two services of the CD can be pulled by means of a continuous integration tool, the code branches of the version quickly construct the two services of the CD by means of a containerization technology, service staining is marked in http request flow, and then the services are distributed to specific sets of test environments according to different staining values through a service registry, so that the test environment is subdivided into multiple sets of virtual environments. Therefore, different test versions can be switched on the front-end device, and the A and C services which are not changed are not required to be deployed independently, so that resources are saved, and the environment version switching efficiency is improved.
The embodiment of the invention also provides a flow chart (back-end device angle) of the multi-environment multi-channel multi-version simulation test method, 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, returning the identity parameters to the front-end device, 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 header and a protocol data body, the protocol header comprises channel sources, identity parameters and dyeing parameters, 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 corresponding test service information to the front-end device.
In this embodiment of the present invention, step 503 of obtaining the identity parameter according to the identity information returns to the front-end device, including:
and carrying out 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 is isolated by a physical cluster;
further comprises:
and carrying out DNS domain name service analysis on the corresponding domain name information selected by the front-end device, and routing the protocol request to the appointed physical cluster.
In an embodiment of the present invention, the method further includes:
deploying test services corresponding to the dyeing parameters by creating a container environment;
the method for acquiring the corresponding test service information according to the protocol request and returning the corresponding test service information to the front-end device comprises the following steps:
based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is acquired and returned to the front-end device.
In an 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;
if the dyeing parameters do not exist, the dyeing parameters in the protocol request are null, and based on the protocol request, test service information corresponding to the version parameters is acquired and returned to the front-end device.
Under the same inventive concept, the embodiment of the present invention further provides a back-end device, a structural block diagram of which is shown in fig. 6, where the back-end device includes:
a configuration module 601, configured to configure different domain name information, channel sources and version parameters for the front-end device to select;
the information receiving module 602 is configured to receive the required domain name information, channel source and version parameters selected by the front-end device, and input identity information;
the information obtaining module 603 is configured to obtain an identity parameter according to the identity information, return the identity parameter to the front-end device, obtain an associated dyeing parameter according to a required version parameter, and return the 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 header and a protocol data body, the protocol header comprises channel sources, identity parameters and dyeing parameters, and the protocol data body comprises requested test service identification information;
the information acquisition module 603 is further configured to: and acquiring corresponding test service information according to the protocol request, and returning the corresponding test service information to the front-end device.
In the embodiment of the present invention, the information obtaining module 603 is specifically configured to:
and carrying out 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 is isolated by a physical cluster;
the apparatus further comprises:
and the routing module is used for carrying out DNS domain name service analysis on the corresponding domain name information selected by the front-end device and routing the protocol request to the appointed physical cluster.
In an embodiment of the present invention, the method further includes:
the container environment creation module is used for deploying test services corresponding to the dyeing parameters by creating a container environment;
the information acquisition module 603 is specifically configured to:
based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is acquired and returned 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 so, returning the associated dyeing parameters to the front-end device;
if the dyeing parameters do not exist, the dyeing parameters in the protocol request are null, and based on the protocol request, test service information corresponding to the version parameters is acquired and returned to the front-end device.
The embodiment of the invention also provides a flow chart (front-end device angle) of the multi-environment multi-channel multi-version simulation test method, as shown in fig. 7, the method comprises the following steps:
step 701: based on different domain name information, channel source and version parameters configured by the back-end device, selecting required domain name information, channel source and version parameters to send to the back-end device, and inputting identity information to the back-end device;
step 702: receiving an identity parameter acquired and returned by a back-end device according to the identity information and an associated dyeing parameter acquired and returned according to the selected required version parameter;
step 703: based on the corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device, 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 test service identification information of the request;
step 704: and receiving corresponding test service information acquired 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 comprises the following steps:
based on the corresponding domain name information, sending the Http protocol request to the physical environment corresponding to the corresponding domain name information in the back-end device through the service function H5 page.
Under the same inventive concept, the 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 the back-end device, required domain name information, channel source and version parameters to send to the back-end device, and input identity information to the back-end device;
the information receiving module 802 is configured to receive an identity parameter acquired and returned by the back-end device according to the identity information, and an associated dyeing parameter acquired 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 the corresponding domain name information in the back-end 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;
the test service information receiving module 804 is configured to receive corresponding test service information acquired 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, sending the Http protocol request to the physical environment corresponding to the corresponding domain name information in the back-end device through the service function H5 page.
In the embodiment of the invention, taking the business banking as an example, E-line fusion, E-purchase fusion, weChat, E life, E office, E service, merchant home, online banking and the like are carried out on the customer channels, the channels are provided with 'My customer service' modules, a unified text customer service seat platform of a butt joint bank is taken as an example, the multi-environment multi-channel multi-version simulation test simulation device simulates 'My customer service' components of the channels, and FIG. 9 is a specific flow chart of a multi-environment multi-channel multi-version simulation test text customer service method in the embodiment of the invention, and as shown in FIG. 9, the method comprises the following steps:
1. setting parameters: starting a 'My customer service' component to log in and select physical environment and channel source parameters;
2. back-end device login authentication and return version information: calling a getTokenAndSession interface to acquire an identity parameter TokenID and a version dyeing parameter envVersion;
3. the front-end device initializes chat parameters: opening a My customer service H5 page by using an entry address, adding channel source, identity information token ID and version information envVersion into an http request Header, and initializing parameters.
4. Starting a customer service chat module: and chat interaction with text customer service is realized by sending 'transfer manual'.
The embodiment of the invention also provides computer equipment, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the multi-environment multi-channel multi-version simulation test method when executing the computer program.
The embodiment of the invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, realizes the steps of the multi-environment multi-channel multi-version simulation test method.
According to the embodiment of the invention, a series of resources which waste manpower and material resources, such as application of machine resources, environment construction, APP back-end service association and the like, are needed when a set of testing environment is added in the prior art are overcome. The device can integrate a plurality of client function test environments of the APP by banks, simulate the test environments and the production end environment and form a common interaction platform, can abandon complicated steps of logging in each channel, can select default configuration account numbers, directly call the My customer service components, initiate manual transaction, directly interact with the character customer service agents and facilitate the subsequent function test of the character customer service agents. The device can replace the inconvenience of testing a plurality of entity mobile phones, achieves the aim of efficient parallel testing, greatly reduces the matching test time of each channel end, shortens the invalid communication time caused by environmental factors, and comprehensively improves the test work efficiency. In addition, providing a set of exclusive test clusters for each developer is not practical from the economical and management aspects, and the invention realizes isolation among a plurality of sets of test clusters through the traffic dyeing and virtual routing method, and simultaneously, the invention is convenient for switching different environments and different clusters on a front-end page.
The device can be continuously enriched and optimized on the basis of the existing channels, and the unified function of each newly added channel can be subsequently incorporated into the device. For business scenes involving more entry ports and consistent subsequent flows, the entry ports can also be unified in the form of such a common platform. And has a certain reference function for joint tests of other applications.
From the development perspective, the development of multiple versions can be iterated in parallel in the development and test stages, the environment is isolated, and the versions are independent in construction and deployment and cannot influence each other. From the test angle, the APP can realize parallel test of a plurality of functional points in the test environment, multiple environments, multiple channels and multiple versions are integrated in one APP, a plurality of APPs are not required to be installed, the same APP originally depends on different environments, and a plurality of versions are also required. From the resource perspective, in the environment with the common containerization and micro-service technology, a plurality of mutually isolated multi-version environments can be flexibly deployed in a test environment, and the cost of a physical machine is solved through a virtual technology. From the efficacy perspective, the testing environment is still a domain name, version environments can be added and deleted rapidly, and working efficiency is improved.
It will be appreciated by those skilled in the art that 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 flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 foregoing description of the embodiments has been provided for the purpose of illustrating the general principles of the invention, and is not meant to limit the scope of the invention, but to limit the invention to the particular embodiments, and any modifications, equivalents, improvements, etc. that fall within the spirit and principles of the invention are intended to be included within the scope of the invention.

Claims (11)

1. The multi-environment multi-channel multi-version simulation test method is characterized by comprising the following steps of:
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, returning the identity parameters to the front-end device, 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 header and a protocol data body, the protocol header comprises channel sources, identity parameters and dyeing parameters, and the protocol data body comprises requested test service identification information;
acquiring corresponding test service information according to the protocol request and returning the corresponding test service information to the front-end device;
further comprises:
deploying test services corresponding to the dyeing parameters by creating a container environment;
the method for acquiring the corresponding test service information according to the protocol request and returning the corresponding test service information to the front-end device comprises the following steps:
based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is acquired and returned to the front-end device.
2. The multi-environment multi-channel multi-version simulation test method according to claim 1, wherein obtaining the identity parameter according to the identity information returns to the front-end device, comprising:
and carrying out 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 according to claim 1, wherein the physical environment comprises a development environment, a test environment, a pre-production environment and a production environment, and the physical environments are isolated by a physical cluster;
further comprises:
and carrying out DNS domain name service analysis on the corresponding domain name information selected by the front-end device, and routing the protocol request to the appointed physical cluster.
4. 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;
if the dyeing parameters do not exist, the dyeing parameters in the protocol request are null, and based on the protocol request, test service information corresponding to the version parameters is acquired and returned to the front-end device.
5. The multi-environment multi-channel multi-version simulation test method is characterized by comprising the following steps of:
based on different domain name information, channel source and version parameters configured by the back-end device, selecting required domain name information, channel source and version parameters to send to the back-end device, and inputting identity information to the back-end device;
receiving an identity parameter acquired and returned by a back-end device according to the identity information and an associated dyeing parameter acquired and returned according to the selected required version parameter;
based on the corresponding domain name information, sending a protocol request to a physical environment corresponding to the corresponding domain name information in the back-end device, 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 test service identification information of the request;
receiving corresponding test service information acquired and returned by the back-end device according to the protocol request; the back-end device deploys testing services corresponding to the dyeing parameters by creating a container environment; based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is obtained.
6. The multi-environment multi-channel multi-version simulation test method according to claim 5, 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 comprises the following steps:
based on the corresponding domain name information, sending the Http protocol request to the physical environment corresponding to the corresponding domain name information in the back-end device through the service function H5 page.
7. A back-end apparatus, 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 dyeing parameters to the front-end device;
the information receiving module is also used for: 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 header and a protocol data body, the protocol header comprises channel sources, identity parameters and dyeing parameters, and the protocol data body comprises requested test service identification information;
the information acquisition module is also used for: acquiring corresponding test service information according to the protocol request and returning the corresponding test service information to the front-end device;
further comprises:
the container environment creation module is used for deploying test services corresponding to the dyeing parameters by creating a container environment;
the information acquisition module is specifically used for:
based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is acquired and returned to the front-end device.
8. A front-end device, comprising:
the information selection module is used for selecting the required domain name information, channel source and version parameters based on different domain name information, channel source and version parameters configured by the back-end device, sending the required domain name information, channel source and version parameters to the back-end device, and inputting identity information to the back-end device;
the information receiving module is used for 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;
the protocol request sending module is used for sending 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 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 test service identification information of the request;
the test service information receiving module is used for receiving corresponding test service information acquired and returned by the back-end device according to the protocol request; the back-end device deploys testing services corresponding to the dyeing parameters by creating a container environment; based on the dyeing parameters in the protocol request, the protocol request is routed to the corresponding container environment, and corresponding test service information is obtained.
9. A multi-environment, multi-channel, multi-version simulation test device, comprising: the back-end apparatus of claim 7 and the front-end apparatus of claim 8.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 6 when executing the computer program.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
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 CN112988572A (en) 2021-06-18
CN112988572B true 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)

Families Citing this family (5)

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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9389989B2 (en) * 2014-03-19 2016-07-12 International Business Machines Corporation Self verifying device driver for multi-version compatible data manipulation devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN112988572A (en) 2021-06-18

Similar Documents

Publication Publication Date Title
CN112988572B (en) Multi-environment multi-channel multi-version simulation test method and device
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN104142856B (en) Service routine call method, system and its smart machine
CN103401909B (en) Data interactive method based on BS and system, client and server
CN106681922B (en) Response method and system of simulation server
CN106970880A (en) A kind of distributed automatization method for testing software and system
CN106648556A (en) Front end and back end integrated development testing method and device
CN111200523B (en) Method, device, equipment and storage medium for configuring middle platform system
CN111324538B (en) Dynamic routing-based micro-service parallel test environment management method
CN110362490B (en) Automatic testing method and system for integrating iOS and Android mobile applications
CN107291608B (en) Test script generation method, interface subscription/registration method and device
JPH09275428A (en) Device and method for testing multiplex port protocol
CN107800781A (en) A kind of configuration data processing method and device
CN107911251A (en) A kind of method for configuring network equipment, device and medium
CN111522727A (en) Simulation object test method, device and system
CN113055408B (en) Network security test integrated device
CN111078424A (en) Information interaction method and device, computer equipment and storage medium
CN111104336A (en) Online service interface testing method and device based on container and VNC
CN110750780A (en) User role permission fusion method, device and equipment based on multi-service system
CN111698310B (en) Multi-test environment scheduling method and device based on SWIFT network
CN107733743A (en) Realize the method and system that industry ethernet data are tested automatically
CN114466000B (en) CDN gateway source returning method and device
CN107231349A (en) A kind of method and device that MPTCP agreements are realized in intelligent terminal
CN116132344A (en) Container service debugging method and device based on K8s cluster and electronic equipment
CN113495498B (en) Simulation method, simulator, device and medium for hardware device

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