WO2020164289A1 - Application testing method, system and apparatus, and storage medium - Google Patents

Application testing method, system and apparatus, and storage medium Download PDF

Info

Publication number
WO2020164289A1
WO2020164289A1 PCT/CN2019/120295 CN2019120295W WO2020164289A1 WO 2020164289 A1 WO2020164289 A1 WO 2020164289A1 CN 2019120295 W CN2019120295 W CN 2019120295W WO 2020164289 A1 WO2020164289 A1 WO 2020164289A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
test environment
test
server
chain
Prior art date
Application number
PCT/CN2019/120295
Other languages
French (fr)
Chinese (zh)
Inventor
康豪
Original Assignee
北京大米科技有限公司
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 北京大米科技有限公司 filed Critical 北京大米科技有限公司
Publication of WO2020164289A1 publication Critical patent/WO2020164289A1/en

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

Definitions

  • This application relates to the field of testing, in particular to an application testing method, system, device and storage medium.
  • Application testing is a process of evaluating the correctness, completeness, safety, and quality of an application.
  • software testing is to operate the program under specified conditions to find program errors, measure the software quality, and treat it.
  • the test environment includes test services, which are the operating units in the test process, such as programs, processes, threads, etc. that implement specific functions.
  • the test services use pre-configured test instances to test applications.
  • different test environments need to be constructed. The capacities in each test environment are very large, and the cost of deploying and maintaining these test environments is very high.
  • this application provides an application testing method, system, related device, and storage medium, which can call services in different test environments to test software, and services between different test environments can be shared , Which reduces the redundancy of service types in the test environment on different servers, thereby reducing the deployment and maintenance costs of deploying the test environment.
  • this application provides an application testing method, including:
  • the second service is the next service of the first service, and the first service is deployed in the first test environment.
  • the method before determining the second service corresponding to the first service according to the service chain information, the method further includes:
  • test request for the target application is received, wherein the test request carries one or more of the domain name of the first test environment, the service chain information, and the network address of the server deploying the first test environment.
  • the method further includes:
  • the last service in the service chain sends a test completion message to the proxy server, where the test completion message indicates the completion of the test of the target application, and the test completion message carries the running result of the second service.
  • the method further includes:
  • the service chain information it is determined that the second service is not the last service in the service chain, and the third service corresponding to the second service is determined, where the third service is the service in the service chain.
  • the next service of the second service
  • the third service When the third service is retrieved in the first test environment, run the third service in the first test environment; and/or, if the third service is not retrieved in the first test environment A third service, sending a second call request to the second test environment, where the second call request is used to instruct to retrieve the third service in the second test environment.
  • it also includes:
  • it also includes:
  • the fourth service is retrieved in the first test environment
  • the first test environment is a full-scale test environment
  • the second test environment is a dedicated test environment for the target application; or the first test environment is a dedicated test environment for the target application.
  • the second test environment is a full test environment or other dedicated test environment.
  • the dedicated test environment means a dedicated service of the test target application.
  • this application provides an application testing method, including:
  • the second service is retrieved in the deployed second test environment
  • the second server sending the running result of the second service includes:
  • the invocation chain information indicates the invocation sequence of multiple services in the service chain, and the service chain includes multiple services that are required to test the target application. ;
  • test completion message indicates that the test of the target application is completed, and the test completion message carries the operation result of the second service.
  • the method further includes:
  • the third service is the next service of the second service in the service chain;
  • the third service is retrieved in the second test environment, run the third service in the second test environment, and send the running result of the third service.
  • the method further includes:
  • the second server sends a third call request to the first server, and the third call request is used to indicate that the service is in the first test environment To retrieve the third service.
  • this application provides an application testing system, including: a first server and a second server that are communicatively connected, wherein the first server determines the second service of the first service according to service chain information; wherein, The service chain information indicates the calling sequence of multiple services in the service chain, the service chain includes multiple services that are required to be called for testing the target application, and the second service is the first service in the service chain
  • the next service of the first server is deployed with a first test environment, and the first test environment includes the first service; and, when the second service is not retrieved in the first test environment, The first server sends the first call request to the second server;
  • the second server is deployed with a second test environment, and the second test environment includes a second service; the second server runs the second service of the server in the second test environment according to the first call request.
  • the method further includes: a third server, which is in communication connection with the second server, receiving the running result of the second service sent by the second server.
  • the device may be a chip (such as a baseband chip, or a communication chip, etc.) or a server.
  • the above method can be implemented by software, hardware, or by hardware executing corresponding software.
  • the structure of the device includes a processor and a memory; the processor is configured to support the device to perform corresponding functions in the above application testing method.
  • the memory is used for coupling with the processor, and it stores the necessary programs (instructions) and/or data of the device.
  • the device may further include a communication interface for supporting communication between the device and other network elements.
  • the device may include unit modules that perform corresponding actions in the foregoing method.
  • a processor and a transceiver device are included, the processor is coupled with the transceiver device, and the processor is used to execute a computer program or instruction to control the transceiver device to receive and receive information. Send; when the processor executes the computer program or instruction, the processor is also used to implement the above method.
  • the transceiving device may be a transceiver, a transceiving circuit or an input/output interface. When the device is a chip, the transceiving device is a transceiving circuit or an input/output interface.
  • the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface.
  • the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
  • Another aspect of the present application provides a device, which includes: a memory and a processor; wherein a set of program codes is stored in the memory, and the processor is used to call the program codes stored in the memory to execute each The method described in the aspect.
  • Another aspect of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, which when run on a computer, causes the computer to execute the methods described in the above aspects.
  • Another aspect of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the methods described in the above aspects.
  • Figure 1 is a network structure diagram of an existing application test system
  • Figure 2 is a network architecture diagram of an application testing system provided by an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of an application testing method provided by an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of the application testing method provided by the embodiment of the present application.
  • FIG. 5 is another schematic flowchart of the application testing method provided by the embodiment of the present application.
  • FIG. 6 is another schematic flowchart of the application testing method provided by the embodiment of the present application.
  • FIG. 7A is another network architecture diagram of the application test system provided by an embodiment of the present application.
  • FIG. 7B is an interactive schematic diagram of an application testing method provided by an embodiment of the present application.
  • FIG. 8A is another network architecture diagram of the application test system provided by an embodiment of the present application.
  • FIG. 8B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application.
  • FIG. 9A is another network architecture diagram of the application test system provided by an embodiment of the present application.
  • FIG. 9B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application.
  • FIG. 10A is another network architecture diagram of the application test system provided by an embodiment of the present application.
  • 10B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of an apparatus provided by an embodiment of the present application.
  • FIG. 12 is another schematic diagram of the structure of a device provided by an embodiment of the present application.
  • the application testing system includes a proxy server, a server 11, a server 12, and a server 1n, where n is an integer greater than or equal to 1.
  • test environments are deployed on different servers for different function tests.
  • the test environment 111 is deployed on the server 11, the test environment 121 is deployed on the server 12, ..., the test environment 1n1 is deployed on the server 1n.
  • a large number of services are deployed in different test environments.
  • the test environment 111 includes service A1, service B1, service C1, service D1, service E1, and service F1;
  • test environment 121 includes service A2, service B2, service C2 Service D2, service E2, and service F2.
  • the test environment 1n1 includes service An, service Bn, service Cn, service Dn, service En, and service Fn. While the number of functions that need to be tested for the target application is very large, the number of test environments that need to be deployed and the number of services have increased rapidly, and the deployment and maintenance costs of the test environment remain high.
  • an embodiment of the present application provides a network architecture diagram of a test system, an example of which can be seen in FIG. 2.
  • the test system of the embodiment includes a proxy server 20, a first server 21, and a second server 22.
  • the proxy server 20 is provided with a communication interface for mutual communication with the first server 21 and the second server 22, and the first server 21 and A communication interface for mutual communication is provided between the second servers 22.
  • the first server 21 is deployed with a first test environment 211
  • the second server 22 is deployed with a second test environment 221.
  • the first test environment 211 includes one or more services
  • the second test environment 221 includes one or more services.
  • the service types in the first test environment 211 and the second test environment 221 may be different. Taking FIG. 2 as an example, the first test environment 211 includes service A, service B, service C, service D, service E, and service F , The second test environment 221 includes service A2 and service B2.
  • the service in the embodiment of the present application refers to an application that performs a specific test on a target application, and the specific test includes a function test, an integrity test, a stress test, and the like.
  • Test environment refers to the general term for computer hardware, software, network equipment, and historical data necessary to complete software testing. Among them, one or more test environments can be deployed on the server, and different test environments can test different functions of the target application.
  • the server can be used exclusively for testing, or it can support other functions while providing testing functions.
  • Figure 2 only shows an example.
  • the system may include a third server 23, ..., mth server 2m, in addition to the first server 21 and the second server 22, each of which has Corresponding test environment can be configured.
  • a test environment may be implemented by multiple servers, for example, a server group consisting of a first server 21, a second server 22, and a third server 23 jointly supports the realization of the first test environment 211, that is, a certain One or some test environments are implemented by a server group composed of multiple servers.
  • some servers may also be configured with one or more test environments, for example, the first server 21, the second server 22, the third server 23, etc. are configured with multiple different test environments.
  • different servers configured with multiple test environments can be configured with several identical test environments, such as a first server 21 configured with five test environments and a second server 21 configured with three test environments.
  • the server 22 can have two identical test environments.
  • the proxy server 20 may be pre-stored or pre-configured with the mapping relationship between the domain name of the test environment and the server's network address (such as IP address).
  • the proxy server retrieves the mapping relationship to determine the domain name correspondence according to the domain name of the test environment carried in the test request According to the network address (such as IP address), send a test request to the corresponding server according to the network address (such as IP address).
  • the server in this application may be a computing device such as a rack server, a blade server, a tower server, or a cabinet server.
  • the server 1 may be an independent server or a server cluster composed of multiple servers.
  • Fig. 3 is a schematic flowchart of a test method provided in an embodiment of the present application.
  • the method includes:
  • S301 Determine a second service corresponding to the first service according to the service chain information.
  • the first server may determine service chain information according to an external test request and/or service chain, and may also receive external service chain information.
  • the first server may also pre-store or pre-configure service chain information, service chain information, and
  • the target application is related to the function of the target application test.
  • the service chain information indicates the calling sequence of multiple services included in the service chain, and the multiple services are used to test specific functions of the target application.
  • the first service and the second service are services in the service chain, and the second service is the next service of the first service in the service chain.
  • the first service in the embodiment of the present application is any service in the service chain and this service is not the last service in the service chain.
  • the first server determines multiple services in the service chain according to the service chain information, and the calling sequence between the services, thereby determining the second service corresponding to the first service.
  • the first server determines the service chain information associated with the function 1 of the target application APP1 according to an external request.
  • the service chain indicated by the service chain information is: Service A ⁇ Service B1 ⁇ Service C1 ⁇ Service D1 ⁇ Service E, this service chain represents running service A, service B1, service C1, service D1, and service E in sequence to test function 1 of the target application APP1.
  • the first server determines that the next service of service A is service B1 according to the service chain information.
  • the first server pre-stores or preconfigures the service chain information associated with the function 2 of the target application APP1.
  • the service chain indicated by the service chain information is: Service A1 ⁇ Service B1 ⁇ Service C ⁇ Service D ⁇ Service E1. Assuming that the first service is service C, the first server determines that the next service of service C is service E1 according to the service chain information.
  • a first test environment may be deployed by the first server.
  • the first test environment includes one or more services.
  • the first server may perform retrieval processing to retrieve whether the second service exists in the first test environment. If not, Then, a first call request is sent to the second test environment.
  • the first call request is used to instruct to retrieve the second service in the deployed second test environment.
  • the first call request may carry the identifier of the second service.
  • the second test environment can be deployed on other servers different from the first server, such as: the second server or a cluster composed of the second server, and thus, through the first server and the second server or the second server cluster Inter-communication transfer information, for example, the first server sends the first call request to the second server or the second server cluster.
  • the second test environment can also be deployed on the first server.
  • the first server runs multiple different test environments.
  • communication between the first test environment and the second test environment can be realized by using virtual machine communication. Communication, such as sending the first call request to the second test environment.
  • the test environment can be classified into an exclusive test environment and a full-scale test environment.
  • the exclusive test environment is oriented to the testing of specific target applications and/or functions
  • the full-scale test environment can be oriented to the target application and/or of the whole system. Or functional testing.
  • the first test environment is an exclusive test environment
  • the exclusive test environment includes all or part of the services required for the testing of a specific target application
  • the second test environment is a full test environment, which includes All services required for testing of multiple specific target applications.
  • the services included in the first test environment ie, dedicated test environment
  • the second test environment ie, full test environment
  • the first test environment includes services A, C, and D
  • the second test environment includes services A, B, C, D, D, F, and G.
  • Test target application 1 needs to call services A, C
  • test target Application 2 needs to call services A, B, C, and D
  • test target application 3 needs to call services A, C, D, and F.
  • the second test environment alone can meet the test of the target application 1-3
  • the first test environment can only meet the test of the target application 1 alone.
  • test target application 1 can only complete service calls in the first test environment; and when testing target application 2, it can also be tested in the first test environment.
  • the environment (exclusive test environment) first calls service A, but because service B cannot be retrieved, a request to call service B can be sent to the second test environment (full test environment); similarly, when testing target application 3, when calling service F , A request to call service F can be sent to the second test environment.
  • both the first test environment and the second test environment can be dedicated test environments, and different services are deployed in the first test environment and the second test environment, which can reduce the number of services between the two test environments. Redundancy.
  • the first test environment includes service A1, service B1, and service C1.
  • service A, service B, service C, service D, service E, and service F are deployed.
  • the first service is service C1.
  • the second service is service D.
  • the first server has not retrieved service D in the first test environment, and may send a second call request to the second test environment.
  • the second call request carries the identifier of service D.
  • the dedicated test environment may include the services required for the specific functional test of the target application, and the full test environment includes the target application The services required for complete functional testing.
  • the complete functions that the target application needs to test include: Function 1, Function 2, and Function 3.
  • the full test environment includes services that can test functions 1 to 3, and the exclusive test environment for function 1 may only include functions that 1.
  • the exclusive test environment cannot meet the test of function 2 and function 3 alone.
  • the full-scale test environment can also concentrate multiple target applications or "heavy-duty" services for the functions of the target application.
  • the "heavy-duty” service can be a service with a longer execution time and higher processing capacity, and a dedicated test environment can Only "light” services required for specific target applications or functional tests of target applications are provided.
  • “Light” services can be services that have a short execution time and consume less processing resources, etc.
  • test environment is only an example description of the test environment, and this application does not limit the type of the test environment and the services included.
  • FIG. 4 is a schematic diagram of another flow chart of an application testing method provided in an embodiment of this application.
  • the method includes:
  • the test request for the target application may be received by the first server.
  • the proxy server generates a test request according to the test instruction triggered by the user.
  • the test instruction includes one or more of the identification of the target application and/or the identification of the function to be tested of the target application, and the domain name of the test environment, for example: the user clicks on the proxy server
  • the test button on the graphical interface displayed on the display generates test instructions.
  • the identity of the target application indicates the identity of the target application
  • the identity of the function to be tested of the target application indicates the identity of the function that the target application needs to test.
  • the proxy server is pre-stored or pre-configured with a first mapping relationship, the first mapping relationship identifies the mapping relationship between the application identifier and/or the function identifier of the application and the service chain information, and the proxy server determines the target application and/or according to the first mapping relationship Or the service chain corresponding to the function of the target application.
  • the proxy server is pre-stored or pre-configured with a second mapping relationship.
  • the second mapping relationship identifies the mapping relationship between the domain name of the test environment and the network address of the server deployed in the first test environment.
  • the proxy server is based on the domain name of the test environment.
  • the network address of the server deploying the first test environment in the corresponding test environment is determined, and the proxy server sends the test request to the first server and/or the test environment corresponding to the network address of the server deploying the first test environment.
  • the user-triggered test instruction is used to test the function 3 of the target application APP2, and the proxy server determines the first mapping relationship to determine the service chain information associated with the function 3 of the target application APP2.
  • the service chain indicated by the service chain information is: Service A1 ⁇ Service B1 ⁇ Service C ⁇ Service D ⁇ Service E1.
  • the test instruction carries the domain name of the test environment 2: http://qa5-t-ep-1.vip.com, and the proxy server determines that the IP address associated with the domain name is 10.32 according to the pre-stored or pre-configured second mapping relationship.
  • the proxy server sends a test request to the first server corresponding to the IP address, and the test request carries service chain information and the IP address.
  • S402 Determine a second service corresponding to the first service according to the service chain information.
  • the service chain information indicates the calling sequence of multiple services included in the service chain, and the multiple services are used to test specific functions of the target application.
  • the first service and the second service are services in the service chain, and the second service is the next service of the first service in the service chain.
  • the first service in the embodiment of the present application is any service in the service chain and this service is not the last service in the service chain.
  • the first server can determine the multiple services in the service chain and the calling sequence between the services according to the service chain information, so that the second service corresponding to the first service can be determined.
  • the first server pre-stores or pre-configures the service chain information associated with the function 2 of the target application APP1.
  • the service chain represented by the service chain information is: Service A ⁇ Service B1 ⁇ Service C1 ⁇ Service D1 ⁇ Service E, the service chain represents running service A, service B1, service C1, service D1, and service E in sequence.
  • the output result of service A is input to service B1 for operation, and the output result of service B1
  • the output result of service C1 is input into service D1 for operation
  • the output result of service C1 is input into service E for operation.
  • the first server determines that the next service of the first service B1 is service C1 according to the service chain information.
  • the first server pre-stores or preconfigures the service chain information associated with the function 3 of the target application APP2.
  • the service chain indicated by the service chain information is service A1 ⁇ service B ⁇ Service C ⁇ Service D ⁇ Service E1. Assuming that the first service is service D, the first server determines that the next service of service D is service E1 according to the service chain information.
  • S403 Determine whether the second service is retrieved in the first test environment.
  • the first test environment is deployed with a first test environment.
  • the first test environment includes one or more services.
  • the first server can retrieve the second service corresponding to the identifier of the second service in the first test environment, for example: Search algorithms (such as binary search, Hash algorithm), etc., or use retrieval methods such as traversal.
  • the first test environment includes service A1, service B1, and service C1.
  • service A, service B, service C, service D, service E, and service F are deployed.
  • the first service is service C1.
  • the second service is service D, and the first server cannot retrieve service D in the first test environment.
  • the first test environment is deployed with service A, service B, service C, service D, service E, and service F.
  • the second test environment is deployed with service A1, service B1, and service C1.
  • the first service is service C.
  • the second service is service D, and the first server retrieves service D in the first test environment.
  • the first server retrieves the second service in the first test environment, it calls and runs the second service in the first test environment. If the second service is not the last service in the service chain, continue to retrieve it. A service. According to the execution logic of the test, the running result of the second service can also be used as the input data of the next service of the second service.
  • S405 Send the running result of the second service to the proxy server.
  • this step is an optional step.
  • the running result of the second service is the intermediate result of the test, and the running result of the second service is sent to the proxy server according to
  • the execution logic of the test may also use the running result of the second service as the input data of the next service of the second service.
  • S406 Send a first call request to the second test environment.
  • the call request is sent to the second test environment, such as: the first test server sends the first call request to the second test server where the second test environment is deployed, A call request is used to request the second test server to retrieve the second service in the second test environment, and the first call request may carry the identifier of the second service.
  • S407 Determine whether the second service is the last service in the service chain.
  • the first server (after executing the second service in the first server) or the second server (after executing the second service in the second server) can determine whether the second service is the last one according to the service chain. Service, if yes, execute S408, if no, execute S409.
  • S408 Determine a third service corresponding to the second service, and turn to S410.
  • the second service is not the last service in the service chain, and then the next service is determined, for example, by the first server (after the second service is executed in the first server) or the second server (when the After the second service is executed in the second server, the third service corresponding to the second service is determined, and the third service is the next service of the second service.
  • the second service is the last service in the service chain
  • the first server when the second service is executed in the first server
  • the second server when the execution in the second server is finished
  • the second service sends a test completion message to the proxy server
  • the test completion message indicates that the test of the target application is completed
  • the test completion message carries the running result of the second service.
  • S410 Determine whether the third service is retrieved in the first test environment.
  • the first server may retrieve the third service in the first test environment, if the third service is retrieved, execute S411, and if the third service is not retrieved, proceed to execute S412.
  • the third service is retrieved in the first test environment, and the third service is run in the first test environment.
  • the first server sends the running result of the third service to the proxy server.
  • S412 Send a first call request to the second test environment.
  • the third call request carries the identifier of the third service, and the third call request is used to instruct the second server to retrieve the third service in the deployed second test environment.
  • FIG. 5 is a schematic diagram of another flow chart of an application testing method according to an embodiment of this application.
  • the method includes:
  • the first call request carries the identifier of the second service, such as: the first server is deployed with a first test environment, the second server is deployed with a second test environment, and the combination of the first test environment and the second test environment is set to The service for testing specific functions of the target application, the service types in the first test environment and the second test environment are different.
  • the first call request is generated by the first service in the first test environment, and both the first service and the second service belong to the service chain that tests the specific function of the target application.
  • the second server is pre-stored or pre-configured with service chain information
  • the service chain information indicates the calling sequence of multiple services in the service chain
  • the service chain includes multiple services called for testing the target application .
  • the service chain information indicates that the service chain for testing function 1 of the target application APP1 is: service A ⁇ service B1 ⁇ service C1 ⁇ service D ⁇ service E ⁇ service F
  • the first test environment is deployed with service A, service B, and service C , Service D, Service E, and Service F.
  • the second test environment is deployed with Service A1, Service B1, and Service C1. Assuming that the first service is Service A, the second service is Service B1, and the first server is not in the first test environment.
  • the first server sends a first call request to the second test environment, and the second server receives the first call request from the first test environment.
  • the first call request carries the identifier of the service B1.
  • S502 retrieve the second service in the second test environment.
  • multiple services tested by the target application can be combined and deployed in the first test environment and the second test environment, or the second test environment is a full test environment, that is, for any one of the multiple services, if If the service is not in the first test environment, then the service is in the second test environment.
  • S503 Run the second service in the second test environment, and send the running result of the second service.
  • the second server can run the second service in the second test environment, and the second server sends the running result of the second service to the proxy server. If the second service is not the last application in the service chain, according to the test
  • the execution logic of the second service can be used as the input data of the next service of the second service.
  • the next service of the second service B1 is the service C1
  • the operation result of the second service B1 is used as the input data of the service C1.
  • the first test environment is a dedicated test environment of the target application
  • the second test environment is a full test environment or other dedicated test environments.
  • FIG. 6 another schematic flow chart of an application testing method provided by an embodiment of this application.
  • the method includes:
  • the second server may receive service tuning information.
  • the service chain information is related to the target application and the function that needs to be tested.
  • the service chain information indicates the calling sequence of multiple services included in the service chain. Specific functions of the target application are tested.
  • the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application.
  • the first call request carries the identifier of the second service
  • the first server is deployed with a first test environment
  • the second server is deployed with a second test environment
  • the first test environment and the second test environment are combined to set the target application
  • the service types in the first test environment and the second test environment are different.
  • the first call request is generated by the first service in the first test environment, and both the first service and the second service belong to the service chain that tests the specific function of the target application.
  • the situation is similar when the first server configures the first test environment and the second test environment at the same time.
  • the service chain information indicates that the service chain for testing function 1 of the target application APP1 is: service A ⁇ service B1 ⁇ service C1 ⁇ service D ⁇ service E ⁇ service F, and the first test environment is deployed with service A and service B. Service C, Service D, Service E, and Service F.
  • the second test environment is deployed with Service A1, Service B1, and Service C1.
  • the first service is Service A
  • the second service is Service B1
  • the first server is in the first Service B1 is not retrieved in the test environment
  • the first server sends a first call request to the second test environment
  • the second server receives the first call request from the first test environment.
  • the first call request carries the identifier of service B1.
  • the second service is retrieved in the second test environment, and the second service is run in the second test environment.
  • S605 Send a test completion message to the proxy server.
  • test completion message indicates that the test of the specific function of the target application is completed, and the test completion message carries the operation result of the second service.
  • next service of the second service is determined according to the calling sequence of multiple services in the service chain information, and the next service of the second service is the third service of this application.
  • S607 Determine whether the third service is retrieved in the second test environment.
  • the second server traverses and retrieves the third service in the second test environment, if the third service is retrieved, execute S608, and if the third service is not retrieved, execute S609.
  • the third service is run using the hardware resources and software resources provided by the second test environment, and the running result of the third service is sent to the proxy server.
  • the input data of the third service can be that of the second service. operation result.
  • the second call request is used to request the first server to retrieve the third service in the deployed first test environment, and the second call request carries the identifier of the third service.
  • the application testing system includes a first server 11, a second server 12, and a proxy server (not shown).
  • the first server is deployed with a first test environment 111, and the first test environment 111 includes services.
  • the second test environment 121 includes service A2 and service B2.
  • the service chain of the embodiment of this application is: service A2 ⁇ service B2 ⁇ service C ⁇ service D.
  • FIG. 7B is an interactive schematic diagram of an application testing method provided by an embodiment of the application.
  • the method includes:
  • the proxy server sends a test request to the first server 11, and the first server 11 receives the test request sent from the proxy server.
  • test request includes service chain information
  • service chain information the service chain represented by the service chain information is shown in Figure 7A.
  • the first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A2.
  • the first server 11 retrieves the service A2 in the first test environment 111, and runs the service A2 in the first test environment 111.
  • the first server 11 uses the operation result of the service A2 as the input data of the next service B3 of the service A2, and at the same time, the first server 11 may send the operation result of the service A2 to the proxy server.
  • the first server 11 determines that the next service of the service A2 in the service chain is the service B3.
  • the first server 11 retrieves the service B3 in the first test environment, and runs the service B3 in the first test environment. According to the execution logic of the test, the first test server 11 can use the running result of the service B3 as the input data of the service C, and can also send the running result of the service B3 to the proxy server.
  • S706 The first server 11 determines that the next service of service B3 in the service chain is service C.
  • the first server 11 retrieves the service C in the first test environment.
  • the first server 11 sends a first call request to the second server 12, and the second test server 12 receives the first call request from the first server 11.
  • the second server 12 retrieves the service C in the second test environment, and runs the service C in the second test environment. According to the execution logic of the test, the second server 12 can use the running result of the service C as the input data of the next service, and can also send the running result of the service C to the proxy server.
  • the second server 12 determines that the next service of the service C in the service chain is the service D.
  • the second server 12 retrieves the service D in the second test environment, and runs the service D in the second test environment.
  • S712 The second server 12 determines that service D in the service chain is the last service in the service chain.
  • the second server 12 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the second server 12.
  • the test completion message carries the running result of service D.
  • FIG. 8A is a network architecture diagram of an application testing system provided by an embodiment of this application.
  • the application testing system includes a first server 11, a second server 12, and a proxy server (shown in the figure).
  • the first server 11 is deployed with a first test environment 111, and the first test environment 111 includes service A3, service B3, service E3, and service F3.
  • a second test environment 121 is deployed on the second server 12, and the second test environment 121 includes services A3 and C3.
  • the service chain in the embodiment of this application is: service A3 ⁇ service B ⁇ service C3.
  • FIG. 8B provides an interactive schematic diagram of an application testing method.
  • the method includes:
  • the proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application.
  • the test request carries service chain information, and the service chain represented by the service chain information is shown in FIG. 8A.
  • the proxy server sends a test request to the dedicated test environment, and the dedicated test environment is associated with the target application.
  • the first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A3.
  • the first server 11 retrieves the service A3 in the first test environment, and runs the service A3 in the first test environment.
  • the first server 11 retrieves the service A3 in the first test environment, and runs the service A3 in the first test environment.
  • S804 The first server 11 determines that the next service of service A3 in the service chain is service B.
  • S805 The first server 11 retrieves service B in the first test environment.
  • the first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11, and the first call request carries the identifier of the service B.
  • the second server 12 retrieves service B in the second test environment, and runs service B in the second test environment.
  • the second server 12 determines that the next service of service B in the service chain is service C3.
  • the second server 12 does not retrieve the service C3 in the second test environment.
  • the second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12.
  • the second call request carries the identifier of the service C3.
  • the first server 11 retrieves the service C3 in the first test environment, and runs the service C3.
  • the first server 11 determines that service C3 is the last service in the service chain.
  • the first server 11 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the first server 11.
  • the application testing system includes a first server 11, a second server 12, and a proxy server (not shown).
  • the first server 11 is deployed with a first test Environment 111, the first test environment 111 includes service A, service B, service C, service D, service E, and service F.
  • a second test environment 121 is deployed on the second server 12, and the second test environment 121 includes service A1, service A2, service B2, service B4, and service C4.
  • the service chain of the embodiment of this application is: service A ⁇ service B4 ⁇ service C4 ⁇ service D.
  • FIG. 9B provides an interactive schematic diagram of an application testing method.
  • the method includes:
  • the proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application.
  • the first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A.
  • the first server 11 retrieves service A in the first test environment, and runs service A in the first test environment.
  • the first server 11 determines that the next service of service A in the service chain is service B4.
  • the first server 11 does not retrieve the service B4 in the first test environment.
  • the first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11.
  • the second server 12 retrieves the service B4 in the second test environment, and runs the service B4 in the second test environment.
  • the second server 12 determines that the next service of service B4 in the service chain is service C4.
  • the second server 12 retrieves the service C4 in the second test environment, and runs the service C4 in the second test environment.
  • the second server 12 determines that the next service of the service C4 is the service D.
  • S911 The second server 12 does not retrieve service D in the second test environment.
  • the second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12.
  • the first server 11 retrieves the service D in the first test environment, and runs the service D in the first test environment.
  • S914 The first server 11 determines that service D is the last service in the service chain.
  • S915 The first server 11 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the first server 11.
  • FIG. 10A is a network architecture diagram of an application testing system provided by an embodiment of this application.
  • the application testing system includes a first server 11, a second server 12, and a proxy server (not shown).
  • the first server 11 is deployed with a first test environment 111, and the first test environment 111 includes service A, service B, service C, service D, service E, and service F.
  • a second test environment 121 is deployed on the second server 12, and the second test environment 121 includes a service B2 and a service D2.
  • the service chain of the embodiment of this application is: service A ⁇ service B2 ⁇ service C ⁇ service D2.
  • FIG. 10B provides an interactive schematic diagram of an application testing method.
  • the method includes:
  • the proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application.
  • the first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A.
  • the first server 11 retrieves service A in the first test environment, and runs service A in the first test environment.
  • the first server 11 determines that the next service of service A in the service chain is service B2.
  • the first server 11 does not retrieve the service B2 in the first test environment.
  • the first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11.
  • the second server 12 retrieves the service B2 in the second test environment, and runs the service B2.
  • the second server 12 determines that the next service of the service B2 in the service chain is the service C.
  • the second server 12 does not retrieve the service C in the second test environment.
  • the second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12.
  • the first server 11 retrieves the service C in the first test environment, and runs the service C in the first test environment.
  • the first server 11 determines that the next service of service C is service D2.
  • the first server 11 does not retrieve the service D2 in the first test environment.
  • the first server 11 sends a third call request to the second server 12, and the second server 12 receives the third call request from the first server 11.
  • the second server 12 retrieves the service D in the second test environment, and runs the service D in the second test environment.
  • the second server 12 determines that service D is the last service in the service chain.
  • the second server 12 sends a test completion message to the first server 11, and the first server receives the test completion message from the second server 12.
  • FIG. 11 is a schematic structural diagram of an apparatus 11 provided by an embodiment of the present application.
  • the apparatus 11 may include a transceiver unit 1101 and a processing unit 1102.
  • the processing unit 1101 is configured to determine the second service corresponding to the first service according to the service chain information; wherein the service chain information represents the invocation sequence of multiple services in the service chain, and the service chain includes the requirements for testing the target application Multiple services called, the second service is the next service of the first service in the service chain, and the first service is deployed in a first test environment;
  • the transceiver unit 1102 is configured to send a first call request to the second test environment if the processing unit 1101 does not retrieve the second service in the first test environment; wherein, the first call request is used to indicate The second service is retrieved in the second test environment.
  • Optional also includes:
  • the transceiver unit 1101 is further configured to receive a test request for the target application; wherein the test request carries the domain name of the first test environment, the network address of the server deploying the first test environment, and the service chain information One or more of.
  • the processing unit 1102 retrieves the second service in the first test environment, run the second service in the first test environment; and/or determine all services based on the service chain information
  • the second service is the last service in the service chain
  • the transceiver unit 1101 sends a test completion message; wherein, the test completion message indicates that the test of the target application is completed, and the test completion message carries the second The running result of the service.
  • the processing unit 1102 determines according to the service chain information that the second service is not the last service in the service chain, and determines a third service corresponding to the second service; wherein, the third service is The next service of the second service in the service chain;
  • the transceiver unit 1101 When the third service is retrieved in the first test environment, run the third service in the first test environment; and/or, if the third service is not retrieved in the first test environment For the third service, the transceiver unit 1101 sends a second call request to the second test environment; wherein, the second call request is used to instruct to retrieve the third service in the second test environment.
  • the processing unit 1102 determines according to the service chain information that the second service is not the last service in the service chain, and determines a third service corresponding to the second service; wherein, the third service is The next service of the second service in the service chain;
  • the transceiver unit 1101 When the third service is retrieved in the second test environment, run the third service in the second test environment; and/or, if the third service is not retrieved in the second test environment
  • the transceiver unit 1101 sends a second call request to the first test environment; wherein, the second call request is used to instruct to retrieve the third service in the first test environment.
  • the first test environment is a full-scale test environment
  • the second test environment is a dedicated test environment for the target application; or the first test environment is a dedicated test environment for the target application, and the second The test environment is a full test environment or other dedicated test environment.
  • the transceiver unit 1101 is configured to receive a first call request from the first test environment; wherein the first call request carries identification information of the second service;
  • the processing unit 1102 is configured to retrieve the second service in the second test environment
  • the processing unit 1102 is further configured to run the second service in the second test environment, and instruct the transceiver unit 1101 to send the running result of the second service.
  • the operation result of the second service sent by the transceiver unit 1101 includes:
  • the processing unit 1102 determines that the second service is the last service in the service chain according to the service chain information; wherein, the service chain information represents the calling sequence of multiple services in the service chain, and the service chain includes the requirements for testing the target application Multiple services called;
  • test completion message indicates that the test of the target application is completed, and the test completion message carries the operation result of the second service.
  • the processing unit 1101 determines the third service corresponding to the second service according to the service chain information; wherein, the service chain information indicates the invocation sequence of multiple services in the service chain, and the service chain includes performing the target application Multiple services to be called for testing, where the third service is the next service of the second service in the service chain;
  • the transceiver unit 1101 sends the running result of the third service.
  • the transceiver unit 1101 sends a second call request to the first test environment; wherein, the second call request Used to instruct to retrieve the third service in the first test environment.
  • the device 11 may be a server, and the device 11 may also be a field-programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit ( Central processor unit (CPU), network processor (network processor, NP), digital signal processing circuit, microcontroller (microcontroller unit, MCU), programmable logic device (PLD) or other integrated chips can also be used .
  • FPGA field-programmable gate array
  • SoC system on chip
  • CPU Central processor unit
  • NP network processor
  • NP network processor
  • digital signal processing circuit microcontroller (microcontroller unit, MCU), programmable logic device (PLD) or other integrated chips
  • PLD programmable logic device
  • FIG. 12 is a schematic diagram of the structure of an apparatus provided by an embodiment of the application, which is hereinafter referred to as the apparatus 12.
  • the apparatus 12 may be integrated in the aforementioned first server or the second server.
  • the apparatus includes: a memory 1202, a processor 1201 and transceiver 1203.
  • the memory 1202 may be an independent physical unit, and may be connected to the processor 1201 and the transceiver 1203 through a bus.
  • the memory 1202, the processor 1201, and the transceiver 1203 may also be integrated together, implemented by hardware, and so on.
  • the memory 1202 is used to store a program that implements the above method embodiment or each module of the device embodiment, and the processor 1201 calls the program to execute the operation of the above method embodiment.
  • the device may also only include a processor.
  • the memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit/wire for reading and executing the program stored in the memory.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • CPU central processing unit
  • NP network processor
  • the processor may further include a hardware chip.
  • the aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
  • CPLD complex programmable logic device
  • FPGA field-programmable gate array
  • GAL generic array logic
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) , Hard disk drive (HDD) or solid-state drive (SSD); the memory may also include a combination of the foregoing types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • HDD Hard disk drive
  • SSD solid-state drive
  • the memory may also include a combination of the foregoing types of memory.
  • the sending unit or transmitter executes the steps sent by the foregoing method embodiments
  • the receiving unit or receiver executes the steps received by the foregoing method embodiments
  • other steps are executed by other modules or processors.
  • the sending unit and the receiving unit can form a transceiver unit
  • the receiver and transmitter can form a transceiver.
  • the embodiment of the present application also provides a computer storage medium storing a computer program, and the computer program is used to execute the application testing method provided in the foregoing embodiment.
  • the embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the application testing method provided in the foregoing embodiments.
  • the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
  • a computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device.
  • the device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment.
  • the instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

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)

Abstract

An application testing method, system and apparatus, and a storage medium. When one or more services are required for use in testing a target application, required services are retrieved in a plurality of test environments; the target application is tested by calling the service among a plurality of test environments, so that the service among different test environments is provided for different test requirements in a shared manner, the redundancy of the service in different test environments is reduced, thereby reducing the deployment cost and the maintenance cost of the test environment.

Description

应用测试方法、系统、装置和存储介质Application test method, system, device and storage medium 技术领域Technical field
本申请涉及测试领域,尤其涉及一种应用测试方法、系统、装置和存储介质。This application relates to the field of testing, in particular to an application testing method, system, device and storage medium.
背景技术Background technique
应用测试是一种评估应用的正确性、完整性、安全性和质量的过程,换句话说,软件测试是在规定的条件下对程序进行操作,以发现程序错误,衡量软件质量,并对其是否满足设计要求进行评估的过程。为了实现应用不同功能的测试,需要构建不同的测试环境,利用不同的测试环境对应用进行测试。测试环境中包括测试服务,测试服务为测试过程中的操作单元,如:实现具体功能的程序、进程、线程等,测试服务利用预先配置的测试实例对应用进行测试,在指定功能的测试中,需要调用测试环境中的多个测试服务来完成。在目前的测试环境架构中,为了实现应用不同功能的测试,需要构建不同的测试环境,各个测试环境中的容量都非常大,部署这些测试环境和维护这些测试环境需要成本会很高。Application testing is a process of evaluating the correctness, completeness, safety, and quality of an application. In other words, software testing is to operate the program under specified conditions to find program errors, measure the software quality, and treat it. The process of evaluating whether the design requirements are met. In order to realize the test of different functions of the application, it is necessary to build different test environments and use different test environments to test the application. The test environment includes test services, which are the operating units in the test process, such as programs, processes, threads, etc. that implement specific functions. The test services use pre-configured test instances to test applications. In the test of specified functions, Need to call multiple test services in the test environment to complete. In the current test environment architecture, in order to test different functions of the application, different test environments need to be constructed. The capacities in each test environment are very large, and the cost of deploying and maintaining these test environments is very high.
发明内容Summary of the invention
为解决上述的技术问题,本申请提供一种应用测试方法、系统、相关装置和存储介质,能实现在不同的测试环境中调用服务对软件进行测试,不同的测试环境之间的服务可以进行共享,减少了不同服务器上测试环境中服务类型的冗余,从而降低了部署了测试环境的部署成本和维护成本。In order to solve the above technical problems, this application provides an application testing method, system, related device, and storage medium, which can call services in different test environments to test software, and services between different test environments can be shared , Which reduces the redundancy of service types in the test environment on different servers, thereby reducing the deployment and maintenance costs of deploying the test environment.
第一方面,本申请提供了一种应用测试方法,包括:In the first aspect, this application provides an application testing method, including:
根据服务链信息确定第一服务对应的第二服务,其中,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第二服务为所述第一服务的下一个服务,所述第一服务部署在第一测试环境中。Determine the second service corresponding to the first service according to the service chain information, where the service chain information represents the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application, The second service is the next service of the first service, and the first service is deployed in the first test environment.
若在所述第一测试环境中未检索到所述第二服务,向第二测试环境发送第一调用请求,其中,所述第一服务调用请求用于指示在第二测试环境中检索所述第二服务。If the second service is not retrieved in the first test environment, send a first call request to the second test environment, where the first service call request is used to instruct to retrieve the second service in the second test environment Second service.
在一种可能的设计中,根据服务链信息确定第一服务对应的第二服务之前,还包括:In a possible design, before determining the second service corresponding to the first service according to the service chain information, the method further includes:
接收来对目标应用的测试请求,其中,所述测试请求携带所述第一测试环境的域名、所述服务链信息和的部署第一测试环境的服务器的网络地址中的一种或多种。A test request for the target application is received, wherein the test request carries one or more of the domain name of the first test environment, the service chain information, and the network address of the server deploying the first test environment.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
若在所述第一测试环境中检索到所述第二服务,在所述第一测试环境中运行所述第二服务;和/或根据所述服务链信息确定所述第二服务是所述服务链中的最后一个服务,向所述代理服务器发送测试完成消息,其中,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。If the second service is retrieved in the first test environment, run the second service in the first test environment; and/or determine that the second service is the second service according to the service chain information The last service in the service chain sends a test completion message to the proxy server, where the test completion message indicates the completion of the test of the target application, and the test completion message carries the running result of the second service.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务,其中,所述第三服务为所述服务链中所述第二服务的下一个服务;According to the service chain information, it is determined that the second service is not the last service in the service chain, and the third service corresponding to the second service is determined, where the third service is the service in the service chain. The next service of the second service;
在所述第一测试环境中检索到所述第三服务时,在所述第一测试环境中运行所述第三服务;和/或,若在所述第一测试环境中未检索到所述第三服务,向所述第二测试环境发送第二调用请求,所述第二调用请求用于指示在所述第二测试环境中检索所述第三服务。When the third service is retrieved in the first test environment, run the third service in the first test environment; and/or, if the third service is not retrieved in the first test environment A third service, sending a second call request to the second test environment, where the second call request is used to instruct to retrieve the third service in the second test environment.
在一种可能的设计中,还包括:In one possible design, it also includes:
根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务,所述第三服务为所述服务链中所述第二服务的下一个服务;It is determined according to the service chain information that the second service is not the last service in the service chain, and a third service corresponding to the second service is determined, where the third service is the second service in the service chain. The next service of the service;
在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务;和/或,若在所述第二测试环境中未检索到所述第三服务,向所述第一测试环境发送第二调用请求,所述第二调用请求用于指示在所述第 一测试环境中检索所述第三服务。When the third service is retrieved in the second test environment, run the third service in the second test environment; and/or, if the third service is not retrieved in the second test environment A third service, sending a second call request to the first test environment, where the second call request is used to instruct to retrieve the third service in the first test environment.
在一种可能的设计中,还包括:In one possible design, it also includes:
接收来自第二测试环境的第三调用请求,所述第三调用请求包括第四服务的标识;Receiving a third call request from the second test environment, where the third call request includes the identifier of the fourth service;
在所述第一测试环境中检索到所述第四服务;The fourth service is retrieved in the first test environment;
向代理服务器发送所述第四服务的运行结果。Send the running result of the fourth service to the proxy server.
在一种可能的设计中,所述第一测试环境为全量测试环境,所述第二测试环境为目标应用的专用测试环境;或所述第一测试环境为目标应用的专用测试环境,所述第二测试环境为全量测试环境或其他专用测试环境。专用测试环境表示测试目标应用的专属的服务。In a possible design, the first test environment is a full-scale test environment, and the second test environment is a dedicated test environment for the target application; or the first test environment is a dedicated test environment for the target application. The second test environment is a full test environment or other dedicated test environment. The dedicated test environment means a dedicated service of the test target application.
第二方面,本申请提供了一种应用测试方法,包括:In the second aspect, this application provides an application testing method, including:
接收来自第一测试环境的第一调用请求,所述第一调用请求携带第二服务的标识;Receiving a first call request from the first test environment, the first call request carrying an identifier of the second service;
在部署的第二测试环境中检索到所述第二服务;The second service is retrieved in the deployed second test environment;
在所述第二测试环境中运行所述第二服务,发送所述第二服务的运行结果。Run the second service in the second test environment, and send the running result of the second service.
在一种可能的设计中,所述第二服务器发送第二服务的运行结果包括:In a possible design, the second server sending the running result of the second service includes:
根据服务链信息确定第二服务是服务链中的最后一个服务,所述调用链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务;According to the service chain information, it is determined that the second service is the last service in the service chain. The invocation chain information indicates the invocation sequence of multiple services in the service chain, and the service chain includes multiple services that are required to test the target application. ;
发送测试完成消息;其中,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。Send a test completion message; wherein the test completion message indicates that the test of the target application is completed, and the test completion message carries the operation result of the second service.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
根据服务链信息确定所述第二服务对应的第三服务,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第三服务为所述服务链中所述第二服务的下一个服务;Determine the third service corresponding to the second service according to the service chain information, where the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application, The third service is the next service of the second service in the service chain;
若在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务,发送所述第三服务的运行结果。If the third service is retrieved in the second test environment, run the third service in the second test environment, and send the running result of the third service.
在一种可能的设计中,所述方法还包括:In a possible design, the method further includes:
若在所述第二测试环境中未检索到所述第三服务时,所述第二服务器向所述第一服务器发送第三调用请求,所述第三调用请求用于指示在第一测试环境中检索所述第三服务。If the third service is not retrieved in the second test environment, the second server sends a third call request to the first server, and the third call request is used to indicate that the service is in the first test environment To retrieve the third service.
第三方面,本申请提供了一种应用测试系统,包括:通信连接的第一服务器和第二服务器,其中,所述第一服务器,根据服务链信息确定第一服务的第二服务;其中,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第二服务为所述服务链中所述第一服务的下一个服务,所述第一服务器部署有第一测试环境,所述第一测试环境包括所述第一服务;并且,当在所述第一测试环境中未检索到所述第二服务,第一服务器向第二服务器发送第一调用请求;In a third aspect, this application provides an application testing system, including: a first server and a second server that are communicatively connected, wherein the first server determines the second service of the first service according to service chain information; wherein, The service chain information indicates the calling sequence of multiple services in the service chain, the service chain includes multiple services that are required to be called for testing the target application, and the second service is the first service in the service chain The next service of the first server is deployed with a first test environment, and the first test environment includes the first service; and, when the second service is not retrieved in the first test environment, The first server sends the first call request to the second server;
所述第二服务器,部署有第二测试环境,第二测试环境包括第二服务;第二服务器根据所述第一调用请求,在所述第二测试环境中运行服务器所述第二服务。The second server is deployed with a second test environment, and the second test environment includes a second service; the second server runs the second service of the server in the second test environment according to the first call request.
在一种可能的设计中,还包括:服务器与所述第二服务器通信连接的第三服务器,接收第二服务器发送的第二服务的运行结果。In a possible design, the method further includes: a third server, which is in communication connection with the second server, receiving the running result of the second service sent by the second server.
本申请又一方面提供了一种装置,可以实现上述第一方面或第二方面的应用测试方法方法。例如所述装置可以是芯片(如基带芯片,或通信芯片等)或者服务器。可以通过软件、硬件、或者通过硬件执行相应的软件实现上述方法。Another aspect of the present application provides a device that can implement the application testing method of the first aspect or the second aspect. For example, the device may be a chip (such as a baseband chip, or a communication chip, etc.) or a server. The above method can be implemented by software, hardware, or by hardware executing corresponding software.
在一种可能的实现方式中,所述装置的结构中包括处理器、存储器;所述处理器被配置为支持所述装置执行上述应用测试方法中相应的功能。存储器用于与处理器耦合,其保存所述装置必要的程序(指令)和/或数据。可选的,所述装置还可以包括通信接口用于支持所述装置与其他网元之间的通信。In a possible implementation manner, the structure of the device includes a processor and a memory; the processor is configured to support the device to perform corresponding functions in the above application testing method. The memory is used for coupling with the processor, and it stores the necessary programs (instructions) and/or data of the device. Optionally, the device may further include a communication interface for supporting communication between the device and other network elements.
在另一种可能的实现方式中,所述装置,可以包括执行上述方法中相应动作的单元模块。In another possible implementation manner, the device may include unit modules that perform corresponding actions in the foregoing method.
在又一种可能的实现方式中,包括处理器和收发装置,所述处理器与所述收发装置耦合,所述处理器用于执行计算机程序或指令,以控制所述收发装置进行信息的接收和发送;当所述处理器执行所述计算机程序或指令时,所述处理器还用于实现上述方法。其中,所述收发装置可以为收发器、收发电路或输入输出接口。当所述装置为芯片时,所述收发装置为收发电路或输入输出接口。In another possible implementation manner, a processor and a transceiver device are included, the processor is coupled with the transceiver device, and the processor is used to execute a computer program or instruction to control the transceiver device to receive and receive information. Send; when the processor executes the computer program or instruction, the processor is also used to implement the above method. Wherein, the transceiving device may be a transceiver, a transceiving circuit or an input/output interface. When the device is a chip, the transceiving device is a transceiving circuit or an input/output interface.
当所述装置为芯片时,发送单元可以是输出单元,比如输出电路或者通信接口;接收单元可以是输入单元,比如输入电路或者通信接口。当所述装置为网络设备时,发送单元可以是发射器或发射机;接收单元可以是接收器或接收机。When the device is a chip, the sending unit may be an output unit, such as an output circuit or a communication interface; the receiving unit may be an input unit, such as an input circuit or a communication interface. When the device is a network device, the sending unit may be a transmitter or a transmitter; the receiving unit may be a receiver or a receiver.
本申请又一方面提供了一种装置,该装置包括:存储器和处理器;其中,所述存储器中存储一组程序代码,且所述处理器用于调用所述存储器中存储的程序代码,执行各方面所述的方法。Another aspect of the present application provides a device, which includes: a memory and a processor; wherein a set of program codes is stored in the memory, and the processor is used to call the program codes stored in the memory to execute each The method described in the aspect.
本申请的又一方面提了供一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Another aspect of the present application provides a computer-readable storage medium that stores instructions in the computer-readable storage medium, which when run on a computer, causes the computer to execute the methods described in the above aspects.
本申请的又一方面提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述各方面所述的方法。Another aspect of the present application provides a computer program product containing instructions, which when run on a computer, causes the computer to execute the methods described in the above aspects.
根据以上的实施例,在需要对目标应用进行测试时,在不同的测试环境中依次执行对目标应用进行测试的多个服务,实现了跨测试环境的服务调用,不同的测试环境之间的服务以共享的方式提供给不同的测试需求,减少了不同测试环境中服务的冗余,从而降低了测试环境的部署成本和维护成本。According to the above embodiments, when the target application needs to be tested, multiple services for testing the target application are executed in sequence in different test environments, thus realizing service calls across test environments and services between different test environments Provided to different test requirements in a shared manner reduces the redundancy of services in different test environments, thereby reducing the deployment and maintenance costs of the test environment.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1是现有的应用测试系统的网络结构图;Figure 1 is a network structure diagram of an existing application test system;
图2是本申请实施例提供的应用测试系统的网络架构图;Figure 2 is a network architecture diagram of an application testing system provided by an embodiment of the present application;
图3是本申请实施例提供的应用测试方法的流程示意图;FIG. 3 is a schematic flowchart of an application testing method provided by an embodiment of the present application;
图4是本申请实施例提供的应用测试方法的另一流程示意图;FIG. 4 is another schematic flowchart of the application testing method provided by the embodiment of the present application;
图5是本申请实施例提供的应用测试方法的另一流程示意图;FIG. 5 is another schematic flowchart of the application testing method provided by the embodiment of the present application;
图6是本申请实施例提供的应用测试方法的另一流程示意图;FIG. 6 is another schematic flowchart of the application testing method provided by the embodiment of the present application;
图7A是本申请实施例提供的应用测试系统的另一网络架构图;FIG. 7A is another network architecture diagram of the application test system provided by an embodiment of the present application;
图7B是本申请实施例提供的应用测试方法的交互示意图;FIG. 7B is an interactive schematic diagram of an application testing method provided by an embodiment of the present application;
图8A是本申请实施例提供的应用测试系统的另一网络架构图;FIG. 8A is another network architecture diagram of the application test system provided by an embodiment of the present application;
图8B是本申请实施例提供的应用测试方法的另一交互示意图;FIG. 8B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application;
图9A是本申请实施例提供的应用测试系统的另一网络架构图;FIG. 9A is another network architecture diagram of the application test system provided by an embodiment of the present application;
图9B是本申请实施例提供的应用测试方法的另一交互示意图;FIG. 9B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application;
图10A是本申请实施例提供的应用测试系统的另一网络架构图;FIG. 10A is another network architecture diagram of the application test system provided by an embodiment of the present application;
图10B是本申请实施例提供的应用测试方法的另一交互示意图;10B is another schematic diagram of interaction of the application testing method provided by the embodiment of the present application;
图11是本申请实施例提供的一种装置的结构示意图;FIG. 11 is a schematic structural diagram of an apparatus provided by an embodiment of the present application;
图12是本申请实施例提供的一种装置的另一结构示意图。FIG. 12 is another schematic diagram of the structure of a device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。同时,在本申请的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and are not used to limit the application. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance. It should be clear to those skilled in the art that the application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
参见图1,为现有技术提供的一种应用测试系统的网络架构图,在该应用测试系统包括代理服务器、服务器11、服务器12和服务器1n,n为大于或等于1的整数。为了实现对目标应用的不同功能的测试,针对不同的功能测试分别在不同的服务器上部署测试环境。参见图1所示,服务器11上部署测试环境111、服务器12上部署测试环境121、…、服务器1n上部署测试环境1n1。不同的测试环境中部署有大量的服务,例如:测试环境111中包括服务A1、服务B1、服务C1、服务D1、服务E1和服务F1;测试环境121中包括服务A2、服务B2、服务C2、服务D2、服务E2和服务F2,测试环境1n1中包括服务An、服务Bn、服务Cn、服务Dn、服务En和服务Fn。在对目标应用需要测试的功能数量非常多是,需要部署的测试环境的数量,以及服务的数量急 剧增长迅速,测试环境的部署成本和维护成本居高不下。Referring to FIG. 1, a network architecture diagram of an application testing system provided in the prior art. The application testing system includes a proxy server, a server 11, a server 12, and a server 1n, where n is an integer greater than or equal to 1. In order to test different functions of the target application, test environments are deployed on different servers for different function tests. As shown in FIG. 1, the test environment 111 is deployed on the server 11, the test environment 121 is deployed on the server 12, ..., the test environment 1n1 is deployed on the server 1n. A large number of services are deployed in different test environments. For example, the test environment 111 includes service A1, service B1, service C1, service D1, service E1, and service F1; test environment 121 includes service A2, service B2, service C2 Service D2, service E2, and service F2. The test environment 1n1 includes service An, service Bn, service Cn, service Dn, service En, and service Fn. While the number of functions that need to be tested for the target application is very large, the number of test environments that need to be deployed and the number of services have increased rapidly, and the deployment and maintenance costs of the test environment remain high.
为了解决现有技术中测试环境的数量和服务的数量巨大造成部署成本和维护成功高的问题,本申请实施例提供的一种测试系统的网络架构图,其中一个示例可参见图2,本申请实施例的测试系统包括代理服务器20、第一服务器21和第二服务器22,代理服务器20分别与第一服务器21和第二服务器22之间设置有相互通信的通信接口,且第一服务器21和第二服务器22之间设置有相互通信的通信接口。第一服务器21部署有第一测试环境211,第二服务器22部署有第二测试环境221。第一测试环境211中包括一个或多个服务,第二测试环境221中包括一个或多个服务。第一测试环境211和第二测试环境221中的服务类型可以不相同,以图2所示为例,第一测试环境211包括服务A、服务B、服务C、服务D、服务E和服务F,第二测试环境221包括服务A2和服务B2。本申请实施例中的服务表示对目标应用进行特定测试的应用,特定测试包括功能测试、完整性测试、压力测试等。测试环境是指为了完成软件测试工作所必需的计算机硬件、软件、网络设备、历史数据的总称。其中,服务器上可部署一个或多个测试环境,不同的测试环境实现对目标应用的不同功能的测试。服务器可以专门用作测试使用,也可以在提供测试功能的同时支持其他功能。In order to solve the problems of high deployment costs and high maintenance success caused by the huge number of test environments and services in the prior art, an embodiment of the present application provides a network architecture diagram of a test system, an example of which can be seen in FIG. 2. This application The test system of the embodiment includes a proxy server 20, a first server 21, and a second server 22. The proxy server 20 is provided with a communication interface for mutual communication with the first server 21 and the second server 22, and the first server 21 and A communication interface for mutual communication is provided between the second servers 22. The first server 21 is deployed with a first test environment 211, and the second server 22 is deployed with a second test environment 221. The first test environment 211 includes one or more services, and the second test environment 221 includes one or more services. The service types in the first test environment 211 and the second test environment 221 may be different. Taking FIG. 2 as an example, the first test environment 211 includes service A, service B, service C, service D, service E, and service F , The second test environment 221 includes service A2 and service B2. The service in the embodiment of the present application refers to an application that performs a specific test on a target application, and the specific test includes a function test, an integrity test, a stress test, and the like. Test environment refers to the general term for computer hardware, software, network equipment, and historical data necessary to complete software testing. Among them, one or more test environments can be deployed on the server, and different test environments can test different functions of the target application. The server can be used exclusively for testing, or it can support other functions while providing testing functions.
图2仅给出了一个示例,在其他实施例中,系统除了包括第一服务器21、第二服务器22之外,还可以包括:第三服务器23、…、第m服务器2m,每个服务器都可以配置有相应的测试环境。在某些实施例中,一个测试环境可以由多个服务器来实现,如:第一服务器21、第二服务器22、第三服务器23所组成的服务器群共同支撑实现第一测试环境211,即某个或某些测试环境由多台服务器所组成的服务器群来实现。在其他实施例中,某些服务器还可以配置1个或多个测试环境,如:第一服务器21、第二服务器22、第三服务器23等配置有多个不同的测试环境。在某些实施例中,配置有多个测试环境的不同服务器中,可以配置有若干个相同的测试环境,如配置有5个测试环境的第一服务器21与配置与3个测试环境的第二服务器22可以有2个相同的测试环境。本申请并不限制系统中服务器、测试环境的配置对应关系,上述实施例及组合均落入本申请的保护范围之内。Figure 2 only shows an example. In other embodiments, the system may include a third server 23, ..., mth server 2m, in addition to the first server 21 and the second server 22, each of which has Corresponding test environment can be configured. In some embodiments, a test environment may be implemented by multiple servers, for example, a server group consisting of a first server 21, a second server 22, and a third server 23 jointly supports the realization of the first test environment 211, that is, a certain One or some test environments are implemented by a server group composed of multiple servers. In other embodiments, some servers may also be configured with one or more test environments, for example, the first server 21, the second server 22, the third server 23, etc. are configured with multiple different test environments. In some embodiments, different servers configured with multiple test environments can be configured with several identical test environments, such as a first server 21 configured with five test environments and a second server 21 configured with three test environments. The server 22 can have two identical test environments. This application does not limit the configuration correspondence between the server and the test environment in the system, and the above-mentioned embodiments and combinations all fall within the protection scope of this application.
代理服务器20上可预存储或预配置有测试环境的域名和服务器的网络地址(如IP地址)之间的映射关系,代理服务器根据测试请求中携带的测试环境的域名,检索映射关系确定域名对应的网络地址(如IP地址),根据网络地址(如IP地址)向对应的服务器发送测试请求。The proxy server 20 may be pre-stored or pre-configured with the mapping relationship between the domain name of the test environment and the server's network address (such as IP address). The proxy server retrieves the mapping relationship to determine the domain name correspondence according to the domain name of the test environment carried in the test request According to the network address (such as IP address), send a test request to the corresponding server according to the network address (such as IP address).
本申请中的服务器可以是机架式服务器、刀片式服务器、塔式服务器或机柜式服务器等计算设备,该服务器1可以是独立的服务器,也可以是多个服务器所组成的服务器集群。The server in this application may be a computing device such as a rack server, a blade server, a tower server, or a cabinet server. The server 1 may be an independent server or a server cluster composed of multiple servers.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in the present application, specific embodiments are used for description below.
参见图3,图3是本申请实施例提供的测试方法的流程示意图,在本申请实施例中,所述方法包括:Refer to Fig. 3, which is a schematic flowchart of a test method provided in an embodiment of the present application. In an embodiment of the present application, the method includes:
S301、根据服务链信息确定第一服务对应的第二服务。S301: Determine a second service corresponding to the first service according to the service chain information.
具体的,第一服务器可以根据外部的测试请求和/或服务链确定服务链信息,也可以接收外部的服务链信息,第一服务器还可以预存储或预配置有服务链信息,服务链信息和目标应用以及目标应用测试的功能有关,服务链信息表示服务链中包含的多个服务的调用顺序,多个服务用于对目标应用的特定功能进行测试。第一服务和第二服务为服务链中的服务,第二服务为服务链中第一服务的下一个服务。本申请实施例的第一服务是服务链中的任意一个服务且该服务不为服务链中的最后一个服务。第一服务器根据服务链信息确定服务链中多个服务,以及各个服务之间的调用顺序,由此可以确定第一服务所对应的第二服务。Specifically, the first server may determine service chain information according to an external test request and/or service chain, and may also receive external service chain information. The first server may also pre-store or pre-configure service chain information, service chain information, and The target application is related to the function of the target application test. The service chain information indicates the calling sequence of multiple services included in the service chain, and the multiple services are used to test specific functions of the target application. The first service and the second service are services in the service chain, and the second service is the next service of the first service in the service chain. The first service in the embodiment of the present application is any service in the service chain and this service is not the last service in the service chain. The first server determines multiple services in the service chain according to the service chain information, and the calling sequence between the services, thereby determining the second service corresponding to the first service.
举例来说:需要对目标应用APP1的功能1进行测试,第一服务器根据外部请求确定出目标应用APP1的功能1关联的服务链信息,该服务链信息表示的服务链为:服务A→服务B1→服务C1→服务D1→服务E,该服务链表示依次运行服务A、服务B1、服务C1、服务D1和服务E对目标应用APP1的功能1进行测试。假设第一服务为服务A,那么第一服务器根据服务链信息确定服务A的下一个服务为服务B1。For example: the function 1 of the target application APP1 needs to be tested. The first server determines the service chain information associated with the function 1 of the target application APP1 according to an external request. The service chain indicated by the service chain information is: Service A→Service B1 →Service C1→Service D1→Service E, this service chain represents running service A, service B1, service C1, service D1, and service E in sequence to test function 1 of the target application APP1. Assuming that the first service is service A, the first server determines that the next service of service A is service B1 according to the service chain information.
又举例来说,需要对目标应用APP1的功能2进行测试,第一服务器预存储或预配置有目标应用APP1的功能2关联的服务链信息,该服务链信息表示的服务链为:服务A1→服务B1→服务C→服务D→服务E1。假设第一服务 为服务C,第一服务器根据服务链信息确定服务C的下一个服务为服务E1。For another example, the function 2 of the target application APP1 needs to be tested. The first server pre-stores or preconfigures the service chain information associated with the function 2 of the target application APP1. The service chain indicated by the service chain information is: Service A1→ Service B1→Service C→Service D→Service E1. Assuming that the first service is service C, the first server determines that the next service of service C is service E1 according to the service chain information.
S302、若第一测试环境中未检索到第二服务,向第二测试环境发送第一调用请求。S302: If the second service is not retrieved in the first test environment, send a first call request to the second test environment.
具体的,可由第一服务器部署有第一测试环境,第一测试环境包括一个或多个服务,可由第一服务器执行检索处理,在第一测试环境中检索是否存在第二服务,若为否,则向第二测试环境发送第一调用请求,第一调用请求用于指示在部署的第二测试环境中检索第二服务,第一调用请求可以携带第二服务的标识。Specifically, a first test environment may be deployed by the first server. The first test environment includes one or more services. The first server may perform retrieval processing to retrieve whether the second service exists in the first test environment. If not, Then, a first call request is sent to the second test environment. The first call request is used to instruct to retrieve the second service in the deployed second test environment. The first call request may carry the identifier of the second service.
在实现时,第二测试环境可以部署在与第一服务器不同的其他服务器,如:第二服务器或第二服务器组成的集群,由此,通过第一服务器与第二服务器或第二服务器集群之间的通信传递信息,如第一服务器将第一调用请求发送给第二服务器或第二服务器集群。第二测试环境也可以部署在第一服务器,如利用虚拟机技术,由第一服务器运行多个不同的测试环境,此时,利用虚拟机通信能够实现第一测试环境与第二测试环境之间的通信,如向第二测试环境发送第一调用请求。In implementation, the second test environment can be deployed on other servers different from the first server, such as: the second server or a cluster composed of the second server, and thus, through the first server and the second server or the second server cluster Inter-communication transfer information, for example, the first server sends the first call request to the second server or the second server cluster. The second test environment can also be deployed on the first server. For example, using virtual machine technology, the first server runs multiple different test environments. At this time, communication between the first test environment and the second test environment can be realized by using virtual machine communication. Communication, such as sending the first call request to the second test environment.
对于测试环境的部署而言,可以将测试环境分类为专属测试环境、全量测试环境,专属测试环境面向特定的目标应用和/或功能的测试,全量测试环境则可以面向全系统的目标应用和/或功能的测试。在一种可能的实施方式中,第一测试环境为专属测试环境,专属测试环境包括为实现特定目标应用的测试所需的全部服务或部分服务,第二测试环境为全量测试环境,即包括实现多个特定目标应用的测试所需的全部服务,在这种情况下,第一测试环境(即专属测试环境)所包含的服务是第二测试环境(即全量测试环境)的子集。For the deployment of the test environment, the test environment can be classified into an exclusive test environment and a full-scale test environment. The exclusive test environment is oriented to the testing of specific target applications and/or functions, and the full-scale test environment can be oriented to the target application and/or of the whole system. Or functional testing. In a possible implementation manner, the first test environment is an exclusive test environment, the exclusive test environment includes all or part of the services required for the testing of a specific target application, and the second test environment is a full test environment, which includes All services required for testing of multiple specific target applications. In this case, the services included in the first test environment (ie, dedicated test environment) are a subset of the second test environment (ie, full test environment).
举例来说,第一测试环境包含服务A、C、D,而第二测试环境包含服务A、B、C、D、D、F、G,测试目标应用1需要调用服务A、C,测试目标应用2需要调用服务A、B、C、D,测试目标应用3需要调用服务A、C、D、F。可以知道,第二测试环境可以独自满足目标应用1-3的测试,而第一测试环境仅可独自满足目标应用1的测试。但根据系统需要,如:为了提高效率,避免将测试压力都集中在测试环境,测试目标应用1可以只在第一测试环境中完成服务调用;而测试目标应用2时,也可以在第一测试环境(专属测试环境)先 调用服务A,但由于无法检索到服务B,可以向第二测试环境(全量测试环境)发送调用服务B的请求;同理,测试目标应用3时,调用服务F时,可以向第二测试环境发送调用服务F的请求。For example, the first test environment includes services A, C, and D, and the second test environment includes services A, B, C, D, D, F, and G. Test target application 1 needs to call services A, C, and test target Application 2 needs to call services A, B, C, and D, and test target application 3 needs to call services A, C, D, and F. It can be known that the second test environment alone can meet the test of the target application 1-3, while the first test environment can only meet the test of the target application 1 alone. However, according to system needs, such as: in order to improve efficiency and avoid focusing test pressure on the test environment, test target application 1 can only complete service calls in the first test environment; and when testing target application 2, it can also be tested in the first test environment. The environment (exclusive test environment) first calls service A, but because service B cannot be retrieved, a request to call service B can be sent to the second test environment (full test environment); similarly, when testing target application 3, when calling service F , A request to call service F can be sent to the second test environment.
在其他可能的实施方式中,第一测试环境和第二测试环境均可以专属测试环境,且第一测试环境和第二测试环境中分别部署有不同的服务,能够减少两个测试环境之间服务的冗余。举例来说,第一测试环境包括服务A1、服务B1和服务C1,第二测试环境中部署有服务A、服务B、服务C、服务D、服务E和服务F,第一服务为服务C1,第二服务为服务D,第一服务器在第一测试环境中未检索到服务D,可以向所述第二测试环境发送第二调用请求,第二调用请求携带服务D的标识。In other possible implementations, both the first test environment and the second test environment can be dedicated test environments, and different services are deployed in the first test environment and the second test environment, which can reduce the number of services between the two test environments. Redundancy. For example, the first test environment includes service A1, service B1, and service C1. In the second test environment, service A, service B, service C, service D, service E, and service F are deployed. The first service is service C1. The second service is service D. The first server has not retrieved service D in the first test environment, and may send a second call request to the second test environment. The second call request carries the identifier of service D.
在其他的实施方式中,针对特定的某个或某些目标应用,需要测试不同的功能,此时,专属测试环境可以包括目标应用的特定功能测试所需的服务,全量测试环境包括为目标应用的完备功能测试所需的服务。例如:目标应用需要测试的完备功能包括:功能1、功能2和功能3,那么全量测试环境包括具有对功能1~功能3进行测试的服务,而功能1的专属测试环境可以仅包括具有对功能1进行测试的服务,专属测试环境无法单独满足功能2和功能3的测试。In other implementations, different functions need to be tested for a specific one or some target applications. In this case, the dedicated test environment may include the services required for the specific functional test of the target application, and the full test environment includes the target application The services required for complete functional testing. For example, the complete functions that the target application needs to test include: Function 1, Function 2, and Function 3. Then the full test environment includes services that can test functions 1 to 3, and the exclusive test environment for function 1 may only include functions that 1. For the service of testing, the exclusive test environment cannot meet the test of function 2 and function 3 alone.
此外,全量测试环境还可以集中多个目标应用或目标应用的功能的“重型”服务,其中,“重型”服务可以为执行时间较长、所需处理能力较高的服务,而专属测试环境可以仅提供特定目标应用或目标应用的功能测试所需的“轻型”服务,“轻型”服务可以为执行时间短、消耗处理资源少的服务,等。In addition, the full-scale test environment can also concentrate multiple target applications or "heavy-duty" services for the functions of the target application. Among them, the "heavy-duty" service can be a service with a longer execution time and higher processing capacity, and a dedicated test environment can Only "light" services required for specific target applications or functional tests of target applications are provided. "Light" services can be services that have a short execution time and consume less processing resources, etc.
以上仅是对测试环境的示例说明,本申请对测试环境的类型、所包括的服务并不做限定。The above is only an example description of the test environment, and this application does not limit the type of the test environment and the services included.
实施本申请实施例,在多个测试环境中调用服务对目标应用进行测试,实现了跨测试环境的服务调用,不同的测试环境之间的服务以共享的方式提供给不同的测试需求,减少了不同测试环境中服务的冗余,从而降低了测试环境的部署成本和维护成本。Implementation of the embodiment of the application, invoking services in multiple test environments to test the target application, realizes service invocation across test environments, and services between different test environments are provided to different test requirements in a shared manner, reducing The redundancy of services in different test environments reduces the deployment and maintenance costs of the test environment.
参见图4,为本申请实施例提供的一种应用测试方法的另一流程示意图,在本申请实施例中,所述方法包括:Refer to FIG. 4, which is a schematic diagram of another flow chart of an application testing method provided in an embodiment of this application. In an embodiment of this application, the method includes:
S401、接收测试请求。S401. Receive a test request.
具体的,可由第一服务器接收来对目标应用的测试请求。代理服务器根据用户触发的测试指令生成测试请求,测试指令包括目标应用的标识和/或目标应用的待测试功能的标识、测试环境的域名中的一种或多种,例如:用户通过点击代理服务器上显示的图形界面上的测试按钮,生成测试指令。目标应用的标识指示目标应用的身份,目标应用的待测试的功能的标识表示目标应用需要测试的功能的身份。代理服务器预存储或预配置有第一映射关系,第一映射关系标识应用的标识和/或应用的功能标识和服务链信息之间的映射关系,代理服务器根据第一映射关系确定目标应用和/或目标应用的功能对应的服务链。另外,代理服务器预存储或预配置有第二映射关系,第二映射关系标识测试环境的域名和服务器的部署第一测试环境的服务器的网络地址之间的映射关系,代理服务器根据测试环境的域名确定对应的测试环境的部署第一测试环境的服务器的网络地址,代理服务器将测试请求发送给该部署第一测试环境的服务器的网络地址对应的第一服务器和/或测试环境。Specifically, the test request for the target application may be received by the first server. The proxy server generates a test request according to the test instruction triggered by the user. The test instruction includes one or more of the identification of the target application and/or the identification of the function to be tested of the target application, and the domain name of the test environment, for example: the user clicks on the proxy server The test button on the graphical interface displayed on the display generates test instructions. The identity of the target application indicates the identity of the target application, and the identity of the function to be tested of the target application indicates the identity of the function that the target application needs to test. The proxy server is pre-stored or pre-configured with a first mapping relationship, the first mapping relationship identifies the mapping relationship between the application identifier and/or the function identifier of the application and the service chain information, and the proxy server determines the target application and/or according to the first mapping relationship Or the service chain corresponding to the function of the target application. In addition, the proxy server is pre-stored or pre-configured with a second mapping relationship. The second mapping relationship identifies the mapping relationship between the domain name of the test environment and the network address of the server deployed in the first test environment. The proxy server is based on the domain name of the test environment. The network address of the server deploying the first test environment in the corresponding test environment is determined, and the proxy server sends the test request to the first server and/or the test environment corresponding to the network address of the server deploying the first test environment.
举例来说,用户触发的测试指令用于对目标应用APP2的功能3进行测试,代理服务器跟第一映射关系确定目标应用APP2的功能3关联的服务链信息表示的服务链为:服务A1→服务B1→服务C→服务D→服务E1。测试指令中携带测试环境2的域名:http://qa5-t-ep-1.vip.com,代理服务器根据预存储或预配置的第二映射关系,确定该域名关联的IP地址为:10.32.16.19(如果相关联的IP地址为多个,即存在多台服务器配置有测试环境2,则可以从中选择特定的一台服务器作为第一服务器,如根据调度算法、各服务器的负荷状态等)。代理服务器向该IP地址对应的第一服务器发送测试请求,测试请求携带服务链信息和IP地址。For example, the user-triggered test instruction is used to test the function 3 of the target application APP2, and the proxy server determines the first mapping relationship to determine the service chain information associated with the function 3 of the target application APP2. The service chain indicated by the service chain information is: Service A1→Service B1→Service C→Service D→Service E1. The test instruction carries the domain name of the test environment 2: http://qa5-t-ep-1.vip.com, and the proxy server determines that the IP address associated with the domain name is 10.32 according to the pre-stored or pre-configured second mapping relationship. .16.19 (If there are multiple associated IP addresses, that is, there are multiple servers configured with test environment 2, you can select a specific server as the first server, such as according to the scheduling algorithm, the load status of each server, etc.) . The proxy server sends a test request to the first server corresponding to the IP address, and the test request carries service chain information and the IP address.
S402、根据服务链信息确定第一服务对应的第二服务。S402: Determine a second service corresponding to the first service according to the service chain information.
具体的,服务链信息表示服务链中包含的多个服务的调用顺序,多个服务用于对目标应用的特定功能进行测试。第一服务和第二服务为服务链中的服务,第二服务为服务链中第一个服务的下一个服务。本申请实施例中的第一服务是服务链中的任意一个服务且该服务不是服务链中的最后一个服务。可由第一服务器根据服务链信息确定服务链中的多个服务,以及各个服务之间的调用 顺序,由此可以确定第一服务对应的第二服务。Specifically, the service chain information indicates the calling sequence of multiple services included in the service chain, and the multiple services are used to test specific functions of the target application. The first service and the second service are services in the service chain, and the second service is the next service of the first service in the service chain. The first service in the embodiment of the present application is any service in the service chain and this service is not the last service in the service chain. The first server can determine the multiple services in the service chain and the calling sequence between the services according to the service chain information, so that the second service corresponding to the first service can be determined.
举例来说,需要对目标应用APP1的功能1进行测试,第一服务器预存储或预配置有目标应用APP1的功能2关联的服务链信息,该服务链信息表示的服务链为:服务A→服务B1→服务C1→服务D1→服务E,该服务链表示依次运行服务A、服务B1、服务C1、服务D1和服务E,服务A的输出结果输入到服务B1中进行运行,服务B1的输出结果输入到服务C1中进行运行,服务C1的输出结果输入到服务D1中进行运行,服务C1的输出结果输入到服务E中进行运行。假设第一服务为服务B1,第一服务器根据服务链信息确定第一服务B1的下一个服务为服务C1。For example, it is necessary to test the function 1 of the target application APP1. The first server pre-stores or pre-configures the service chain information associated with the function 2 of the target application APP1. The service chain represented by the service chain information is: Service A→Service B1→Service C1→Service D1→Service E, the service chain represents running service A, service B1, service C1, service D1, and service E in sequence. The output result of service A is input to service B1 for operation, and the output result of service B1 It is input into service C1 for operation, the output result of service C1 is input into service D1 for operation, and the output result of service C1 is input into service E for operation. Assuming that the first service is service B1, the first server determines that the next service of the first service B1 is service C1 according to the service chain information.
又举例来说,需要对目标应用APP2的功能2进行测试,第一服务器预存储或预配置有目标应用APP2的功能3关联的服务链信息,该服务链信息表示的服务链为服务A1→服务B→服务C→服务D→服务E1。假设第一服务为服务D,第一服务器根据服务链信息确定服务D的下一个服务为服务E1。For another example, the function 2 of the target application APP2 needs to be tested. The first server pre-stores or preconfigures the service chain information associated with the function 3 of the target application APP2. The service chain indicated by the service chain information is service A1→service B→Service C→Service D→Service E1. Assuming that the first service is service D, the first server determines that the next service of service D is service E1 according to the service chain information.
S403、判断是否在第一测试环境中检索到第二服务。S403: Determine whether the second service is retrieved in the first test environment.
具体的,第一测试环境部署有第一测试环境,第一测试环境包括一个或多个服务,可由第一服务器在第一测试环境中检索第二服务的标识对应的第二服务,例如:采用查找算法(如折半查找、Hash算法)等,或者采用遍历等检索方式。Specifically, the first test environment is deployed with a first test environment. The first test environment includes one or more services. The first server can retrieve the second service corresponding to the identifier of the second service in the first test environment, for example: Search algorithms (such as binary search, Hash algorithm), etc., or use retrieval methods such as traversal.
举例来说,第一测试环境包括服务A1、服务B1和服务C1,第二测试环境中部署有服务A、服务B、服务C、服务D、服务E和服务F,第一服务为服务C1,第二服务为服务D,第一服务器在第一测试环境中检索不到服务D。For example, the first test environment includes service A1, service B1, and service C1. In the second test environment, service A, service B, service C, service D, service E, and service F are deployed. The first service is service C1. The second service is service D, and the first server cannot retrieve service D in the first test environment.
又举例来说,第一测试环境部署有服务A、服务B、服务C、服务D、服务E和服务F,第二测试环境部署有服务A1、服务B1和服务C1,第一服务为服务C,第二服务为服务D,第一服务器在第一测试环境中检索到服务D。For another example, the first test environment is deployed with service A, service B, service C, service D, service E, and service F. The second test environment is deployed with service A1, service B1, and service C1. The first service is service C. , The second service is service D, and the first server retrieves service D in the first test environment.
S404、在第一测试环境中运行第二服务。S404. Run the second service in the first test environment.
具体的,第一服务器在第一测试环境中检索到第二服务时,在第一测试环境中调用、运行第二服务,如果第二服务不是服务链的最后一个服务,则继续往下检索下一个服务。根据测试的执行逻辑,还可以将第二服务的运行结果作为第二服务的下一个服务的输入数据。Specifically, when the first server retrieves the second service in the first test environment, it calls and runs the second service in the first test environment. If the second service is not the last service in the service chain, continue to retrieve it. A service. According to the execution logic of the test, the running result of the second service can also be used as the input data of the next service of the second service.
S405、向代理服务器发送第二服务的运行结果。S405: Send the running result of the second service to the proxy server.
具体的,本步骤为可选的步骤,第二服务不是服务链的最后一个服务的情况下,第二服务的运行结果为测试的中间结果,将第二服务的运行结果发送给代理服务器,根据测试的执行逻辑,还可以将第二服务的运行结果作为第二服务的下一个服务的输入数据。Specifically, this step is an optional step. When the second service is not the last service in the service chain, the running result of the second service is the intermediate result of the test, and the running result of the second service is sent to the proxy server according to The execution logic of the test may also use the running result of the second service as the input data of the next service of the second service.
S406、向第二测试环境发送第一调用请求。S406: Send a first call request to the second test environment.
具体的在第一测试环境中未检索到第二服务时,则向第二测试环境发送调用请求,如:第一测试服务器向部署第二测试环境的第二测试服务器发送第一调用请求,第一调用请求用于请求第二测试服务器在第二测试环境中检索第二服务,第一调用请求可携带第二服务的标识。Specifically, when the second service is not retrieved in the first test environment, the call request is sent to the second test environment, such as: the first test server sends the first call request to the second test server where the second test environment is deployed, A call request is used to request the second test server to retrieve the second service in the second test environment, and the first call request may carry the identifier of the second service.
S407、判断第二服务是否为服务链中的最后一个服务。S407: Determine whether the second service is the last service in the service chain.
具体的,可由第一服务器(当在第一服务器中执行完第二服务后)或第二服务器(当在第二服务器中执行完第二服务后)根据服务链确定第二服务是否为最后一个服务,若为是,执行S408,若为否,执行S409。Specifically, the first server (after executing the second service in the first server) or the second server (after executing the second service in the second server) can determine whether the second service is the last one according to the service chain. Service, if yes, execute S408, if no, execute S409.
S408、确定第二服务对应的第三服务,并转向执行S410。S408: Determine a third service corresponding to the second service, and turn to S410.
具体的,确定第二服务不是服务链中的最后一个服务,则继续确定下一个服务,如:由第一服务器(当在第一服务器中执行完第二服务后)或第二服务器(当在第二服务器中执行完第二服务后)确定第二服务对应的第三服务,第三服务为第二服务的下一个服务。Specifically, it is determined that the second service is not the last service in the service chain, and then the next service is determined, for example, by the first server (after the second service is executed in the first server) or the second server (when the After the second service is executed in the second server, the third service corresponding to the second service is determined, and the third service is the next service of the second service.
S409、向代理服务器发送测试完成消息。S409: Send a test completion message to the proxy server.
具体的,根据服务链信息确定第二服务是服务链中的最后一个服务,第一服务器(当在第一服务器中执行完第二服务后)或第二服务器(当在第二服务器中执行完第二服务后)向代理服务器发送测试完成消息,测试完成消息表示完成对目标应用的测试,测试完成消息携带第二服务的运行结果。Specifically, according to the service chain information, it is determined that the second service is the last service in the service chain, the first server (when the second service is executed in the first server) or the second server (when the execution in the second server is finished) After the second service) sends a test completion message to the proxy server, the test completion message indicates that the test of the target application is completed, and the test completion message carries the running result of the second service.
S410、判断是否在第一测试环境中检索到第三服务。S410: Determine whether the third service is retrieved in the first test environment.
具体的,可由第一服务器在第一测试环境中检索第三服务,若检索到第三服务,执行S411,若未检索到第三服务,转向执行S412。Specifically, the first server may retrieve the third service in the first test environment, if the third service is retrieved, execute S411, and if the third service is not retrieved, proceed to execute S412.
S411、在第一测试环境中运行第三服务。S411. Run a third service in the first test environment.
具体的,在第一测试环境中检索到第三服务,在第一测试环境中运行第三 服务。可选的,第一服务器将第三服务的运行结果发送给代理服务器。Specifically, the third service is retrieved in the first test environment, and the third service is run in the first test environment. Optionally, the first server sends the running result of the third service to the proxy server.
S412、向第二测试环境发送第一调用请求。S412: Send a first call request to the second test environment.
其中,第三调用请求中携带第三服务的标识,第三调用请求用于指示第二服务器在部署的第二测试环境中检索第三服务。Wherein, the third call request carries the identifier of the third service, and the third call request is used to instruct the second server to retrieve the third service in the deployed second test environment.
实施本申请实施例,在多个测试环境中调用服务对目标应用进行测试,实现了跨测试环境的服务调用,不同的测试环境之间的服务以共享的方式提供给不同的测试需求,减少了不同测试环境中服务的冗余,从而降低了测试环境的部署成本和维护成本。Implementation of the embodiment of the application, invoking services in multiple test environments to test the target application, realizes service invocation across test environments, and services between different test environments are provided to different test requirements in a shared manner, reducing The redundancy of services in different test environments reduces the deployment and maintenance costs of the test environment.
参见图5,为本申请实施例提的一种应用测试方法的另一流程示意图,在本申请实施例中,所述方法包括:Refer to FIG. 5, which is a schematic diagram of another flow chart of an application testing method according to an embodiment of this application. In an embodiment of this application, the method includes:
S501、接收来自第一测试环境的第一调用请求。S501. Receive a first call request from the first test environment.
具体的,第一调用请求中携带第二服务的标识,如:第一服务器部署有第一测试环境,第二服务器部署有第二测试环境,第一测试环境和第二测试环境合并设置有对目标应用的特定功能进行测试的服务,第一测试环境和第二测试环境中的服务类型不相同。第一调用请求是第一测试环境中的第一服务生成的,第一服务和第二服务都属于对目标应用的特定功能进行测试的服务链。Specifically, the first call request carries the identifier of the second service, such as: the first server is deployed with a first test environment, the second server is deployed with a second test environment, and the combination of the first test environment and the second test environment is set to The service for testing specific functions of the target application, the service types in the first test environment and the second test environment are different. The first call request is generated by the first service in the first test environment, and both the first service and the second service belong to the service chain that tests the specific function of the target application.
举例来说,第二服务器预存储或预配置有服务链信息,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务。服务链信息表示对目标应用APP1的功能1进行测试的服务链为:服务A→服务B1→服务C1→服务D→服务E→服务F,第一测试环境部署有服务A、服务B、服务C、服务D、服务E和服务F,第二测试环境部署有服务A1、服务B1和服务C1,假设第一服务为服务A,第二服务为服务B1,第一服务器在第一测试环境中未检索到服务B1,第一服务器向第二测试环境发送第一调用请求,第二服务器接收来自第一测试环境的第一调用请求,第一调用请求携带服务B1的标识。For example, the second server is pre-stored or pre-configured with service chain information, the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services called for testing the target application . The service chain information indicates that the service chain for testing function 1 of the target application APP1 is: service A→service B1→service C1→service D→service E→service F, and the first test environment is deployed with service A, service B, and service C , Service D, Service E, and Service F. The second test environment is deployed with Service A1, Service B1, and Service C1. Assuming that the first service is Service A, the second service is Service B1, and the first server is not in the first test environment. After the service B1 is retrieved, the first server sends a first call request to the second test environment, and the second server receives the first call request from the first test environment. The first call request carries the identifier of the service B1.
S502、在第二测试环境中检索到第二服务。S502: Retrieve the second service in the second test environment.
例如,目标应用进行测试的多个服务可以合并部署在第一测试环境和第二测试环境中,或者第二测试环境为全量测试环境,即对于该多个服务中的任意 一个服务来说,如果该服务不在第一测试环境中,那么该服务在第二测试环境中。For example, multiple services tested by the target application can be combined and deployed in the first test environment and the second test environment, or the second test environment is a full test environment, that is, for any one of the multiple services, if If the service is not in the first test environment, then the service is in the second test environment.
S503、在第二测试环境中运行第二服务,以及发送第二服务的运行结果。S503: Run the second service in the second test environment, and send the running result of the second service.
具体的,可以由第二服务器在第二测试环境中运行第二服务,第二服务器将第二服务的运行结果发送给代理服务器,若第二服务不是服务链中的最后一个应用的话,根据测试的执行逻辑,可将第二服务的运行结果作为第二服务的下一个服务的输入数据。例如:第二服务B1的下一个服务为服务C1,将第二服务B1的运行结果作为服务C1的输入数据。Specifically, the second server can run the second service in the second test environment, and the second server sends the running result of the second service to the proxy server. If the second service is not the last application in the service chain, according to the test The execution logic of the second service can be used as the input data of the next service of the second service. For example: the next service of the second service B1 is the service C1, and the operation result of the second service B1 is used as the input data of the service C1.
在一种可能的实施方式中,第一测试环境为目标应用的专属测试环境,第二测试环境为全量测试环境或其他专属测试环境。In a possible implementation manner, the first test environment is a dedicated test environment of the target application, and the second test environment is a full test environment or other dedicated test environments.
实施本申请实施例,在多个测试环境中调用服务对目标应用进行测试,实现了跨测试环境的服务调用,不同的测试环境之间的服务以共享的方式提供给不同的测试需求,减少了不同测试环境中服务的冗余,从而降低了测试环境的部署成本和维护成本。Implementation of the embodiment of the application, invoking services in multiple test environments to test the target application, realizes service invocation across test environments, and services between different test environments are provided to different test requirements in a shared manner, reducing The redundancy of services in different test environments reduces the deployment and maintenance costs of the test environment.
参见图6,为本申请实施例提供的一种应用测试方法的另一流程示意图,在本申请实施例中,所述方法包括:Referring to FIG. 6, another schematic flow chart of an application testing method provided by an embodiment of this application. In an embodiment of this application, the method includes:
S601、接收服务链信息。S601. Receive service chain information.
具体的,可由第二服务器接收服务调信息,服务链信息和目标应用以及目标应用的需要测试的功能有关,服务链信息表示服务链中包含的多个服务的调用顺序,多个服务用于对目标应用的特定功能进行测试。所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务。Specifically, the second server may receive service tuning information. The service chain information is related to the target application and the function that needs to be tested. The service chain information indicates the calling sequence of multiple services included in the service chain. Specific functions of the target application are tested. The service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application.
S602、接收来自第一测试环境的第一调用请求。S602. Receive a first call request from the first test environment.
例如,第一调用请求中携带第二服务的标识,第一服务器部署有第一测试环境,第二服务器部署有第二测试环境,第一测试环境和第二测试环境合并设置有对目标应用的特定功能进行测试的服务,第一测试环境和第二测试环境中的服务类型不相同。第一调用请求是第一测试环境中的第一服务生成的,第一服务和第二服务都属于对目标应用的特定功能进行测试的服务链。当第一服务 器同时配置第一测试环境和第二测试环境时的情形与之类似。For example, the first call request carries the identifier of the second service, the first server is deployed with a first test environment, the second server is deployed with a second test environment, and the first test environment and the second test environment are combined to set the target application For a service for which a specific function is tested, the service types in the first test environment and the second test environment are different. The first call request is generated by the first service in the first test environment, and both the first service and the second service belong to the service chain that tests the specific function of the target application. The situation is similar when the first server configures the first test environment and the second test environment at the same time.
举例来说,服务链信息表示对目标应用APP1的功能1进行测试的服务链为:服务A→服务B1→服务C1→服务D→服务E→服务F,第一测试环境部署有服务A、服务B、服务C、服务D、服务E和服务F,第二测试环境部署有服务A1、服务B1和服务C1,假设第一服务为服务A,第二服务为服务B1,第一服务器在第一测试环境中未检索到服务B1,第一服务器向第二测试环境发送第一调用请求,第二服务器接收来自第一测试环境的第一调用请求,第一调用请求携带服务B1的标识。For example, the service chain information indicates that the service chain for testing function 1 of the target application APP1 is: service A→service B1→service C1→service D→service E→service F, and the first test environment is deployed with service A and service B. Service C, Service D, Service E, and Service F. The second test environment is deployed with Service A1, Service B1, and Service C1. Assuming that the first service is Service A, the second service is Service B1, and the first server is in the first Service B1 is not retrieved in the test environment, the first server sends a first call request to the second test environment, and the second server receives the first call request from the first test environment. The first call request carries the identifier of service B1.
S603、在第二测试环境中检索到第二服务,在第二测试环境中运行第二服务。S603. The second service is retrieved in the second test environment, and the second service is run in the second test environment.
S604、第二服务是否为服务链中的最后一个服务。S604: Whether the second service is the last service in the service chain.
具体的,根据服务链信息确定第二服务是否为服务链中的最后一个服务,若为是,执行S605,若为否,执行S606。Specifically, it is determined whether the second service is the last service in the service chain according to the service chain information, if yes, execute S605, and if no, execute S606.
S605、向代理服务器发送测试完成消息。S605: Send a test completion message to the proxy server.
具体的,测试完成消息表示完成对目标应用的特定功能的测试,测试完成消息携带第二服务的运行结果。Specifically, the test completion message indicates that the test of the specific function of the target application is completed, and the test completion message carries the operation result of the second service.
S606、确定第二服务对应的第三服务。S606. Determine a third service corresponding to the second service.
具体的,根据服务链信息中多个服务的调用顺序,确定第二服务的下一个服务,第二服务的下一个服务即本申请的第三服务。Specifically, the next service of the second service is determined according to the calling sequence of multiple services in the service chain information, and the next service of the second service is the third service of this application.
S607、判断是否在第二测试环境中检索到第三服务。S607: Determine whether the third service is retrieved in the second test environment.
具体的,第二服务器在第二测试环境中遍历检索第三服务,若检索到第三服务,执行S608,若未检索到第三服务,执行S609。Specifically, the second server traverses and retrieves the third service in the second test environment, if the third service is retrieved, execute S608, and if the third service is not retrieved, execute S609.
S608、在第二测试环境中运行第三服务。S608. Run the third service in the second test environment.
具体的,利用第二测试环境提供的硬件资源和软件资源运行第三服务,将第三服务的运行结果发送给代理服务器,根据测试的执行逻辑,第三服务的输入数据可以为第二服务的运行结果。Specifically, the third service is run using the hardware resources and software resources provided by the second test environment, and the running result of the third service is sent to the proxy server. According to the execution logic of the test, the input data of the third service can be that of the second service. operation result.
S609、向第一测试环境发送第二调用请求。S609. Send a second call request to the first test environment.
具体的,第二调用请求用于请求第一服务器在部署的第一测试环境检索第三服务,第二调用请求携带第三服务的标识。Specifically, the second call request is used to request the first server to retrieve the third service in the deployed first test environment, and the second call request carries the identifier of the third service.
实施本申请实施例,在多个测试环境中调用服务对目标应用进行测试,实现了跨测试环境的服务调用,不同的测试环境之间的服务以共享的方式提供给不同的测试需求,减少了不同测试环境中服务的冗余,从而降低了测试环境的部署成本和维护成本。Implementation of the embodiment of the application, invoking services in multiple test environments to test the target application, realizes service invocation across test environments, and services between different test environments are provided to different test requirements in a shared manner, reducing The redundancy of services in different test environments reduces the deployment and maintenance costs of the test environment.
下面就几个具体的实施例对本申请的应用测试方法的过程进行详细说明。The process of the application test method of the present application will be described in detail below with respect to several specific embodiments.
参见图7A所示的应用测试系统,应用测试系统包括第一服务器11、第二服务器12和代理服务器(未画出),第一服务器部署有第一测试环境111,第一测试环境111包括服务A、服务B、服务C、服务D、服务E和服务F。第二测试环境121包括服务A2和服务B2。本申请实施例的服务链为:服务A2→服务B2→服务C→服务D。Referring to the application testing system shown in FIG. 7A, the application testing system includes a first server 11, a second server 12, and a proxy server (not shown). The first server is deployed with a first test environment 111, and the first test environment 111 includes services. A, Service B, Service C, Service D, Service E, and Service F. The second test environment 121 includes service A2 and service B2. The service chain of the embodiment of this application is: service A2→service B2→service C→service D.
基于图7A的网络架构图,参见图7B为本申请实施例提供的一种应用测试方法的交互示意图,在本申请实施例中,所述方法包括:Based on the network architecture diagram of FIG. 7A, referring to FIG. 7B is an interactive schematic diagram of an application testing method provided by an embodiment of the application. In the embodiment of the application, the method includes:
S701、代理服务器向第一服务器11发送测试请求,第一服务器11接收来自代理服务器发送的测试请求。S701. The proxy server sends a test request to the first server 11, and the first server 11 receives the test request sent from the proxy server.
其中,测试请求包括服务链信息,服务链信息表示的服务链如图7A所示。Among them, the test request includes service chain information, and the service chain represented by the service chain information is shown in Figure 7A.
S702、第一服务器11根据服务链信息确定对目标应用进行测试的服务链中首个服务为服务A2。S702. The first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A2.
S703、第一服务器11在第一测试环境111中检索到服务A2,在第一测试环境111中运行服务A2。S703. The first server 11 retrieves the service A2 in the first test environment 111, and runs the service A2 in the first test environment 111.
其中,第一服务器11将服务A2的运行结果作为服务A2的下一个服务B3的输入数据,同时,第一服务器11可以将服务A2的运行结果发送给代理服务器。The first server 11 uses the operation result of the service A2 as the input data of the next service B3 of the service A2, and at the same time, the first server 11 may send the operation result of the service A2 to the proxy server.
S704、第一服务器11确定服务链中服务A2的下一个服务为服务B3。S704. The first server 11 determines that the next service of the service A2 in the service chain is the service B3.
S705、第一服务器11在第一测试环境中检索到服务B3,在第一测试环境中运行服务B3。根据测试的执行逻辑,第一测试服务器11可将服务B3的运行结果作为服务C的输入数据,同时还可以将服务B3的运行结果发送给代理服务器。S705. The first server 11 retrieves the service B3 in the first test environment, and runs the service B3 in the first test environment. According to the execution logic of the test, the first test server 11 can use the running result of the service B3 as the input data of the service C, and can also send the running result of the service B3 to the proxy server.
S706、第一服务器11确定服务链中服务B3的下一个服务为服务C。S706: The first server 11 determines that the next service of service B3 in the service chain is service C.
S707、第一服务器11在第一测试环境中为检索到服务C。S707: The first server 11 retrieves the service C in the first test environment.
S708、第一服务器11向第二服务器12发送第一调用请求,第二测试服务器12接收来自第一服务器11的第一调用请求。S708: The first server 11 sends a first call request to the second server 12, and the second test server 12 receives the first call request from the first server 11.
S709、第二服务器12在第二测试环境中检索到服务C,在第二测试环境中运行服务C。根据测试的执行逻辑,第二服务器12可将服务C的运行结果作为下一个服务的输入数据,同时还可以将服务C的运行结果发送给代理服务器。S709. The second server 12 retrieves the service C in the second test environment, and runs the service C in the second test environment. According to the execution logic of the test, the second server 12 can use the running result of the service C as the input data of the next service, and can also send the running result of the service C to the proxy server.
S710、第二服务器12确定服务链中服务C的下一个服务为服务D。S710. The second server 12 determines that the next service of the service C in the service chain is the service D.
S711、第二服务器12在第二测试环境中检索到服务D,在第二测试环境中运行服务D。S711. The second server 12 retrieves the service D in the second test environment, and runs the service D in the second test environment.
S712、第二服务器12确定服务链中服务D为服务链中最后一个服务。S712: The second server 12 determines that service D in the service chain is the last service in the service chain.
S713、第二服务器12向代理服务器发送测试完成消息,代理服务器接收来自第二服务器12的测试完成消息。测试完成消息携带服务D的运行结果。S713. The second server 12 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the second server 12. The test completion message carries the running result of service D.
参见图8A,为本申请实施例提供的一种应用测试系统的网络架构图,该应用测试系统包括第一服务器11、第二服务器12和代理服务器(图中为画出)。第一服务器11部署有第一测试环境111,第一测试环境111包括服务A3、服务B3、服务E3和服务F3。第二服务器12部署有第二测试环境121,第二测试环境121包括服务A3和C3。本申请实施例中的服务链为:服务A3→服务B→服务C3。Refer to FIG. 8A, which is a network architecture diagram of an application testing system provided by an embodiment of this application. The application testing system includes a first server 11, a second server 12, and a proxy server (shown in the figure). The first server 11 is deployed with a first test environment 111, and the first test environment 111 includes service A3, service B3, service E3, and service F3. A second test environment 121 is deployed on the second server 12, and the second test environment 121 includes services A3 and C3. The service chain in the embodiment of this application is: service A3→service B→service C3.
基于图8A的网络架构,图8B提供了一种应用测试方法的交互示意图,在本申请实施例中,所述方法包括:Based on the network architecture of FIG. 8A, FIG. 8B provides an interactive schematic diagram of an application testing method. In an embodiment of the present application, the method includes:
S801、代理服务器向第一服务器11发送测试请求,第一服务器11接收来对目标应用的测试请求。其中,测试请求中携带服务链信息,服务链信息表示的服务链参见图8A所示。代理服务器向专用测试环境发送测试请求,专用测试环境与目标应用关联。S801. The proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application. Wherein, the test request carries service chain information, and the service chain represented by the service chain information is shown in FIG. 8A. The proxy server sends a test request to the dedicated test environment, and the dedicated test environment is associated with the target application.
S802、第一服务器11根据服务链信息确定对目标应用进行测试的服务链中首个服务为服务A3。S802. The first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A3.
S802、第一服务器11在第一测试环境中检索到服务A3,在第一测试环境中运行服务A3。S802. The first server 11 retrieves the service A3 in the first test environment, and runs the service A3 in the first test environment.
S803、第一服务器11在第一测试环境中检索到服务A3,在第一测试环境中运行服务A3。S803. The first server 11 retrieves the service A3 in the first test environment, and runs the service A3 in the first test environment.
S804、第一服务器11确定服务链中服务A3的下一个服务为服务B。S804: The first server 11 determines that the next service of service A3 in the service chain is service B.
S805、第一服务器11在第一测试环境中为检索到服务B。S805: The first server 11 retrieves service B in the first test environment.
S806、第一服务器11向第二服务器12发送第一调用请求,第二服务器12接收来自第一服务器11的第一调用请求,第一调用请求携带服务B的标识。S806. The first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11, and the first call request carries the identifier of the service B.
S807、第二服务器12在第二测试环境中检索到服务B,在第二测试环境中运行服务B。S807. The second server 12 retrieves service B in the second test environment, and runs service B in the second test environment.
S808、第二服务器12确定服务链中服务B的下一个服务为服务C3。S808. The second server 12 determines that the next service of service B in the service chain is service C3.
S809、第二服务器12在第二测试环境中未检索到服务C3。S809. The second server 12 does not retrieve the service C3 in the second test environment.
S810、第二服务器12向第一服务器11发送第二调用请求,第一服务器11接收来自第二服务器12的第二调用请求。其中,第二调用请求携带服务C3的标识。S810: The second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12. Wherein, the second call request carries the identifier of the service C3.
S811、第一服务器11在第一测试环境中检索到服务C3,运行服务C3。S811. The first server 11 retrieves the service C3 in the first test environment, and runs the service C3.
S812、第一服务器11确定服务C3为服务链中的最后一个服务。S812. The first server 11 determines that service C3 is the last service in the service chain.
S813、第一服务器11代理服务器发送测试完成消息,代理服务器接收来自第一服务器11的测试完成消息。S813: The first server 11 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the first server 11.
参见图9A,为本申请实施例提的应用测试系统的网络架构,该应用测试系统包括第一服务器11、第二服务器12和代理服务器(未画出),第一服务器11部署有第一测试环境111,第一测试环境111包括服务A、服务B、服务C、服务D、服务E和服务F。第二服务器12部署有第二测试环境121,第二测试环境121包括服务A1、服务A2、服务B2、服务B4和服务C4。本申请实施例的服务链为:服务A→服务B4→服务C4→服务D。Referring to FIG. 9A, the network architecture of the application testing system provided in this embodiment of the application. The application testing system includes a first server 11, a second server 12, and a proxy server (not shown). The first server 11 is deployed with a first test Environment 111, the first test environment 111 includes service A, service B, service C, service D, service E, and service F. A second test environment 121 is deployed on the second server 12, and the second test environment 121 includes service A1, service A2, service B2, service B4, and service C4. The service chain of the embodiment of this application is: service A→service B4→service C4→service D.
基于图9A的网络架构,图9B提供了一种应用测试方法的交互示意图,在本申请实施例中,所述方法包括:Based on the network architecture of FIG. 9A, FIG. 9B provides an interactive schematic diagram of an application testing method. In an embodiment of the present application, the method includes:
S901、代理服务器向第一服务器11发送测试请求,第一服务器11接收来对目标应用的测试请求。S901: The proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application.
S902、第一服务器11根据服务链信息确定对目标应用进行测试的服务链 中首个服务为服务A。S902: The first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A.
S903、第一服务器11在第一测试环境中检索到服务A,在第一测试环境中运行服务A。S903. The first server 11 retrieves service A in the first test environment, and runs service A in the first test environment.
S904、第一服务器11确定服务链中服务A的下一个服务为服务B4。S904. The first server 11 determines that the next service of service A in the service chain is service B4.
S905、第一服务器11在第一测试环境中未检索到服务B4。S905. The first server 11 does not retrieve the service B4 in the first test environment.
S906、第一服务器11向第二服务器12发送第一调用请求,第二服务器12接收来自第一服务器11的第一调用请求。S906: The first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11.
S907、第二服务器12在第二测试环境中检索到服务B4,在第二测试环境中运行服务B4。S907. The second server 12 retrieves the service B4 in the second test environment, and runs the service B4 in the second test environment.
S908、第二服务器12确定服务链中服务B4的下一个服务为服务C4。S908. The second server 12 determines that the next service of service B4 in the service chain is service C4.
S909、第二服务器12在第二测试环境中检索到服务C4,在第二测试环境中运行服务C4。S909. The second server 12 retrieves the service C4 in the second test environment, and runs the service C4 in the second test environment.
S910、第二服务器12确定服务C4的下一个服务为服务D。S910. The second server 12 determines that the next service of the service C4 is the service D.
S911、第二服务器12未在第二测试环境中检索到服务D。S911: The second server 12 does not retrieve service D in the second test environment.
S912、第二服务器12向第一服务器11发送第二调用请求,第一服务器11接收来自第二服务器12的第二调用请求。S912. The second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12.
S913、第一服务器11在第一测试环境中检索到服务D,在第一测试环境中运行服务D。S913. The first server 11 retrieves the service D in the first test environment, and runs the service D in the first test environment.
S914、第一服务器11确定服务D为服务链中的最后一个服务。S914: The first server 11 determines that service D is the last service in the service chain.
S915、第一服务器11向代理服务器发送测试完成消息,代理服务器接收来自第一服务器11的测试完成消息。S915: The first server 11 sends a test completion message to the proxy server, and the proxy server receives the test completion message from the first server 11.
参见图10A,为本申请实施例提供的一种应用测试系统的网络架构图,该应用测试系统包括第一服务器11、第二服务器12和代理服务器(未画出)。第一服务器11部署有第一测试环境111,第一测试环境111包括服务A、服务B、服务C、服务D、服务E和服务F。第二服务器12部署有第二测试环境121,第二测试环境121包括服务B2和服务D2。本申请实施例的服务链为:服务A→服务B2→服务C→服务D2。Refer to FIG. 10A, which is a network architecture diagram of an application testing system provided by an embodiment of this application. The application testing system includes a first server 11, a second server 12, and a proxy server (not shown). The first server 11 is deployed with a first test environment 111, and the first test environment 111 includes service A, service B, service C, service D, service E, and service F. A second test environment 121 is deployed on the second server 12, and the second test environment 121 includes a service B2 and a service D2. The service chain of the embodiment of this application is: service A→service B2→service C→service D2.
基于图10A的网络架构,图10B提供了一种应用测试方法的交互示意图, 在该申请实施例中,所述方法包括:Based on the network architecture of FIG. 10A, FIG. 10B provides an interactive schematic diagram of an application testing method. In an embodiment of this application, the method includes:
S1001、代理服务器向第一服务器11发送测试请求,第一服务器11接收来对目标应用的测试请求。S1001. The proxy server sends a test request to the first server 11, and the first server 11 receives the test request for the target application.
S1002、第一服务器11根据服务链信息确定对目标应用进行测试的服务链中首个服务为服务A。S1002. The first server 11 determines, according to the service chain information, that the first service in the service chain for testing the target application is service A.
S1003、第一服务器11在第一测试环境中检索到服务A,在第一测试环境中运行服务A。S1003. The first server 11 retrieves service A in the first test environment, and runs service A in the first test environment.
S1004、第一服务器11确定服务链中服务A的下一个服务为服务B2。S1004. The first server 11 determines that the next service of service A in the service chain is service B2.
S1005、第一服务器11在第一测试环境中未检索到服务B2。S1005. The first server 11 does not retrieve the service B2 in the first test environment.
S1006、第一服务器11向第二服务器12发送第一调用请求,第二服务器12接收来自第一服务器11的第一调用请求。S1006. The first server 11 sends a first call request to the second server 12, and the second server 12 receives the first call request from the first server 11.
S1007、第二服务器12在第二测试环境中检索到服务B2,运行服务B2。S1007. The second server 12 retrieves the service B2 in the second test environment, and runs the service B2.
S1008、第二服务器12确定服务链中服务B2的下一个服务为服务C。S1008. The second server 12 determines that the next service of the service B2 in the service chain is the service C.
S1009、第二服务器12在第二测试环境中未检索到服务C。S1009. The second server 12 does not retrieve the service C in the second test environment.
S1010、第二服务器12向第一服务器11发送第二调用请求,第一服务器11接收来自第二服务器12的第二调用请求。S1010. The second server 12 sends a second call request to the first server 11, and the first server 11 receives the second call request from the second server 12.
S1011、第一服务器11在第一测试环境中检索到服务C,在第一测试环境中运行服务C。S1011, the first server 11 retrieves the service C in the first test environment, and runs the service C in the first test environment.
S1012、第一服务器11确定服务C的下一个服务为服务D2。S1012. The first server 11 determines that the next service of service C is service D2.
S1013、第一服务器11在第一测试环境中未检索到服务D2。S1013. The first server 11 does not retrieve the service D2 in the first test environment.
S1014、第一服务器11向第二服务器12发送第三调用请求,第二服务器12接收来自第一服务器11的第三调用请求。S1014. The first server 11 sends a third call request to the second server 12, and the second server 12 receives the third call request from the first server 11.
S1015、第二服务器12在第二测试环境中检索到服务D,在第二测试环境中运行服务D。S1015. The second server 12 retrieves the service D in the second test environment, and runs the service D in the second test environment.
S1016、第二服务器12确定服务D为服务链中的最后一个服务。S1016. The second server 12 determines that service D is the last service in the service chain.
S1017、第二服务器12向第一服务器11发送测试完成消息,第一服务器接收来自第二服务器12的测试完成消息。S1017. The second server 12 sends a test completion message to the first server 11, and the first server receives the test completion message from the second server 12.
上述图3至图10B详细阐述了应用测试方法。相应的本申请实施例的一 种装置的结构示意图。The above figures 3 to 10B illustrate the application test method in detail. Correspondingly, a schematic diagram of the structure of a device in an embodiment of the present application.
请参见图11,图11是本申请实施例提供的一种装置11的结构示意图,该装置11可以包括收发单元1101和处理单元1102。Please refer to FIG. 11. FIG. 11 is a schematic structural diagram of an apparatus 11 provided by an embodiment of the present application. The apparatus 11 may include a transceiver unit 1101 and a processing unit 1102.
实施例一:Example one:
处理单元1101,用于根据服务链信息确定第一服务对应的第二服务;其中,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第二服务为所述服务链中所述第一服务的下一个服务,所述第一服务部署在第一测试环境中;The processing unit 1101 is configured to determine the second service corresponding to the first service according to the service chain information; wherein the service chain information represents the invocation sequence of multiple services in the service chain, and the service chain includes the requirements for testing the target application Multiple services called, the second service is the next service of the first service in the service chain, and the first service is deployed in a first test environment;
收发单元1102,用于若处理单元1101在所述第一测试环境中未检索到所述第二服务,向第二测试环境发送第一调用请求;其中,所述第一调用请求用于指示在所述第二测试环境中检索所述第二服务。The transceiver unit 1102 is configured to send a first call request to the second test environment if the processing unit 1101 does not retrieve the second service in the first test environment; wherein, the first call request is used to indicate The second service is retrieved in the second test environment.
可选的,还包括:Optional, also includes:
收发单元1101,还用于接收对所述目标应用的测试请求;其中,所述测试请求携带所述第一测试环境的域名、部署第一测试环境的服务器的网络地址和所述服务链信息中的一种或多种。The transceiver unit 1101 is further configured to receive a test request for the target application; wherein the test request carries the domain name of the first test environment, the network address of the server deploying the first test environment, and the service chain information One or more of.
可选的,若处理单元1102在所述第一测试环境中检索到所述第二服务,在所述第一测试环境中运行所述第二服务;和/或根据所述服务链信息确定所述第二服务是所述服务链中的最后一个服务,收发单元1101发送测试完成消息;其中,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。Optionally, if the processing unit 1102 retrieves the second service in the first test environment, run the second service in the first test environment; and/or determine all services based on the service chain information The second service is the last service in the service chain, and the transceiver unit 1101 sends a test completion message; wherein, the test completion message indicates that the test of the target application is completed, and the test completion message carries the second The running result of the service.
可选的,处理单元1102根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务;其中,所述第三服务为所述服务链中所述第二服务的下一个服务;Optionally, the processing unit 1102 determines according to the service chain information that the second service is not the last service in the service chain, and determines a third service corresponding to the second service; wherein, the third service is The next service of the second service in the service chain;
在所述第一测试环境中检索到所述第三服务时,在所述第一测试环境中运行所述第三服务;和/或,若在所述第一测试环境中未检索到所述第三服务,收发单元1101向所述第二测试环境发送第二调用请求;其中,所述第二调用请求用于指示在所述第二测试环境中检索所述第三服务。When the third service is retrieved in the first test environment, run the third service in the first test environment; and/or, if the third service is not retrieved in the first test environment For the third service, the transceiver unit 1101 sends a second call request to the second test environment; wherein, the second call request is used to instruct to retrieve the third service in the second test environment.
可选的,处理单元1102根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务;其中,所述第 三服务为所述服务链中所述第二服务的下一个服务;Optionally, the processing unit 1102 determines according to the service chain information that the second service is not the last service in the service chain, and determines a third service corresponding to the second service; wherein, the third service is The next service of the second service in the service chain;
在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务;和/或,若在所述第二测试环境中未检索到所述第三服务,收发单元1101向所述第一测试环境发送第二调用请求;其中,所述第二调用请求用于指示在所述第一测试环境中检索所述第三服务。When the third service is retrieved in the second test environment, run the third service in the second test environment; and/or, if the third service is not retrieved in the second test environment For the third service, the transceiver unit 1101 sends a second call request to the first test environment; wherein, the second call request is used to instruct to retrieve the third service in the first test environment.
可选的,所述第一测试环境为全量测试环境,所述第二测试环境为目标应用的专用测试环境;或所述第一测试环境为所述目标应用的专用测试环境,所述第二测试环境为全量测试环境或其他专用测试环境。Optionally, the first test environment is a full-scale test environment, the second test environment is a dedicated test environment for the target application; or the first test environment is a dedicated test environment for the target application, and the second The test environment is a full test environment or other dedicated test environment.
本申请实施例和图3和图4的方法实施例基于同一构思,其带来的技术效果也相同,具体过程可参照图3和图4的方法实施例的描述,此处不再赘述。The embodiment of this application and the method embodiment of FIG. 3 and FIG. 4 are based on the same concept, and the technical effects brought about are also the same. For the specific process, refer to the description of the method embodiment of FIG. 3 and FIG. 4, which will not be repeated here.
实施例二:Embodiment two:
收发单元1101,用于接收来自第一测试环境的第一调用请求;其中,所述第一调用请求携带第二服务的标识信息;The transceiver unit 1101 is configured to receive a first call request from the first test environment; wherein the first call request carries identification information of the second service;
处理单元1102,用于在第二测试环境中检索到所述第二服务;The processing unit 1102 is configured to retrieve the second service in the second test environment;
处理单元1102,还用于在所述第二测试环境中运行所述第二服务,指示收发单元1101发送所述第二服务的运行结果。The processing unit 1102 is further configured to run the second service in the second test environment, and instruct the transceiver unit 1101 to send the running result of the second service.
可选的,收发单元1101发送第二服务的运行结果包括:Optionally, the operation result of the second service sent by the transceiver unit 1101 includes:
处理单元1102根据服务链信息确定第二服务是服务链中的最后一个服务;其中,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务;The processing unit 1102 determines that the second service is the last service in the service chain according to the service chain information; wherein, the service chain information represents the calling sequence of multiple services in the service chain, and the service chain includes the requirements for testing the target application Multiple services called;
发送测试完成消息;其中,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。Send a test completion message; wherein the test completion message indicates that the test of the target application is completed, and the test completion message carries the operation result of the second service.
可选的,处理单元1101根据服务链信息确定所述第二服务对应的第三服务;其中,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第三服务为所述服务链中所述第二服务的下一个服务;Optionally, the processing unit 1101 determines the third service corresponding to the second service according to the service chain information; wherein, the service chain information indicates the invocation sequence of multiple services in the service chain, and the service chain includes performing the target application Multiple services to be called for testing, where the third service is the next service of the second service in the service chain;
若在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务,收发单元1101发送所述第三服务的运行结果。If the third service is retrieved in the second test environment, and the third service is run in the second test environment, the transceiver unit 1101 sends the running result of the third service.
可选的,若处理单元1102在所述第二测试环境中未检索到所述第三服务时,收发单元1101向所述第一测试环境发送第二调用请求;其中,所述第二调用请求用于指示所述第一测试环境中检索所述第三服务。Optionally, if the processing unit 1102 does not retrieve the third service in the second test environment, the transceiver unit 1101 sends a second call request to the first test environment; wherein, the second call request Used to instruct to retrieve the third service in the first test environment.
本申请实施例和图5和图6的方法实施例基于同一构思,其带来的技术效果也相同,具体过程可参照图5和图6的方法实施例的描述,此处不再赘述。The embodiment of this application and the method embodiment of FIG. 5 and FIG. 6 are based on the same concept, and the technical effects brought by them are also the same. For the specific process, refer to the description of the method embodiment of FIG. 5 and FIG. 6, which will not be repeated here.
装置11可以是服务器,所述装置11也可以为实现相关功能的现场可编程门阵列(field-programmable gate array,FPGA),专用集成芯片,系统芯片(system on chip,SoC),中央处理器(central processor unit,CPU),网络处理器(network processor,NP),数字信号处理电路,微控制器(micro controllerunit,MCU),还可以采用可编程控制器(programmable logic device,PLD)或其他集成芯片。The device 11 may be a server, and the device 11 may also be a field-programmable gate array (FPGA), a dedicated integrated chip, a system on chip (SoC), a central processing unit ( Central processor unit (CPU), network processor (network processor, NP), digital signal processing circuit, microcontroller (microcontroller unit, MCU), programmable logic device (PLD) or other integrated chips can also be used .
图12为本申请实施例提供的一种装置结构示意图,以下简称装置12,装置12可以集成于前述的第一服务器或第二服务器,如图12所示,该装置包括:存储器1202、处理器1201以及收发器1203。FIG. 12 is a schematic diagram of the structure of an apparatus provided by an embodiment of the application, which is hereinafter referred to as the apparatus 12. The apparatus 12 may be integrated in the aforementioned first server or the second server. As shown in FIG. 12, the apparatus includes: a memory 1202, a processor 1201 and transceiver 1203.
存储器1202可以是独立的物理单元,与处理器1201、收发器1203可以通过总线连接。存储器1202、处理器1201、收发器1203也可以集成在一起,通过硬件实现等。The memory 1202 may be an independent physical unit, and may be connected to the processor 1201 and the transceiver 1203 through a bus. The memory 1202, the processor 1201, and the transceiver 1203 may also be integrated together, implemented by hardware, and so on.
存储器1202用于存储实现以上方法实施例,或者装置实施例各个模块的程序,处理器1201调用该程序,执行以上方法实施例的操作。The memory 1202 is used to store a program that implements the above method embodiment or each module of the device embodiment, and the processor 1201 calls the program to execute the operation of the above method embodiment.
可选地,当上述实施例的基于应用测试方法中的部分或全部通过软件实现时,装置也可以只包括处理器。用于存储程序的存储器位于装置之外,处理器通过电路/电线与存储器连接,用于读取并执行存储器中存储的程序。Optionally, when part or all of the application-based testing method in the foregoing embodiment is implemented by software, the device may also only include a processor. The memory for storing the program is located outside the device, and the processor is connected to the memory through a circuit/wire for reading and executing the program stored in the memory.
处理器可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。The processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。The processor may further include a hardware chip. The aforementioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。The memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory) , Hard disk drive (HDD) or solid-state drive (SSD); the memory may also include a combination of the foregoing types of memory.
上述实施例中,发送单元或发射器执行上述各个方法实施例发送的步骤,接收单元或接收器执行上述各个方法实施例接收的步骤,其它步骤由其他模块或处理器执行。发送单元和接收单元可以组成收发单元,接收器和发射器可以组成收发器。In the foregoing embodiment, the sending unit or transmitter executes the steps sent by the foregoing method embodiments, the receiving unit or receiver executes the steps received by the foregoing method embodiments, and other steps are executed by other modules or processors. The sending unit and the receiving unit can form a transceiver unit, and the receiver and transmitter can form a transceiver.
本申请实施例还提供了一种计算机存储介质,存储有计算机程序,该计算机程序用于执行上述实施例提供的应用测试方法。The embodiment of the present application also provides a computer storage medium storing a computer program, and the computer program is used to execute the application testing method provided in the foregoing embodiment.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例提供的应用测试方法。The embodiments of the present application also provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the application testing method provided in the foregoing embodiments.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。This application is described with reference to flowcharts and/or block diagrams of methods, equipment (systems), and computer program products according to the embodiments of this application. It should be understood that each process and/or block in the flowchart and/or block diagram, and the combination of processes and/or blocks in the flowchart and/or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing equipment to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing equipment are generated It is a device that realizes the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing equipment to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction device. The device implements the functions specified in one process or multiple processes in the flowchart and/or one block or multiple blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing equipment, so that a series of operation steps are executed on the computer or other programmable equipment to produce computer-implemented processing, so as to execute on the computer or other programmable equipment. The instructions provide steps for implementing functions specified in a flow or multiple flows in the flowchart and/or a block or multiple blocks in the block diagram.

Claims (14)

  1. 一种应用测试方法,其特征在于,包括:An application testing method, characterized in that it comprises:
    根据服务链信息确定第一服务对应的第二服务,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第二服务为所述服务链中所述第一服务的下一个服务,所述第一服务部署在第一测试环境中;The second service corresponding to the first service is determined according to the service chain information, where the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application. The second service is the next service of the first service in the service chain, and the first service is deployed in the first test environment;
    若在所述第一测试环境中未检索到所述第二服务,向第二测试环境发送第一调用请求,所述第一调用请求用于指示在所述第二测试环境中检索所述第二服务。If the second service is not retrieved in the first test environment, a first call request is sent to the second test environment, where the first call request is used to instruct to retrieve the second service in the second test environment Two services.
  2. 根据权利要求1所述的方法,其特征在于,所述根据服务链信息确定第一服务对应的第二服务之前,还包括:The method according to claim 1, wherein before the determining the second service corresponding to the first service according to the service chain information, the method further comprises:
    接收对所述目标应用的测试请求,其中,所述测试请求携带所述第一测试环境的域名、部署第一测试环境的服务器的网络地址和所述服务链信息中的一种或多种。A test request for the target application is received, wherein the test request carries one or more of the domain name of the first test environment, the network address of the server where the first test environment is deployed, and the service chain information.
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    若在所述第一测试环境中检索到所述第二服务,在所述第一测试环境中运行所述第二服务;和/或根据所述服务链信息确定所述第二服务是所述服务链中的最后一个服务,发送测试完成消息,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。If the second service is retrieved in the first test environment, run the second service in the first test environment; and/or determine that the second service is the second service according to the service chain information The last service in the service chain sends a test completion message, the test completion message indicates that the test of the target application is completed, and the test completion message carries the running result of the second service.
  4. 根据权利要求3所述的方法,其特征在于,还包括:The method according to claim 3, further comprising:
    根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务,其中,所述第三服务为所述服务链中所述第二服务的下一个服务;According to the service chain information, it is determined that the second service is not the last service in the service chain, and the third service corresponding to the second service is determined, where the third service is the service in the service chain. The next service of the second service;
    在所述第一测试环境中检索到所述第三服务时,在所述第一测试环境中运行所述第三服务;和/或,若在所述第一测试环境中未检索到所述第三服务, 向所述第二测试环境发送第二调用请求,所述第二调用请求用于指示在所述第二测试环境中检索所述第三服务。When the third service is retrieved in the first test environment, run the third service in the first test environment; and/or, if the third service is not retrieved in the first test environment A third service, sending a second call request to the second test environment, where the second call request is used to instruct to retrieve the third service in the second test environment.
  5. 根据权利要求3任意一项所述的方法,其特征在于,还包括:The method according to any one of claim 3, further comprising:
    根据所述服务链信息确定所述第二服务不是所述服务链中的最后一个服务,确定所述第二服务对应的第三服务,其中,所述第三服务为所述服务链中所述第二服务的下一个服务;According to the service chain information, it is determined that the second service is not the last service in the service chain, and the third service corresponding to the second service is determined, where the third service is the service in the service chain. The next service of the second service;
    在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务;和/或,若在所述第二测试环境中未检索到所述第三服务,向所述第一测试环境发送第二调用请求,所述第二调用请求用于指示在所述第一测试环境中检索所述第三服务。When the third service is retrieved in the second test environment, run the third service in the second test environment; and/or, if the third service is not retrieved in the second test environment A third service, sending a second call request to the first test environment, where the second call request is used to instruct to retrieve the third service in the first test environment.
  6. 根据权利要求1或2或4或5所述的方法,其特征在于,所述第一测试环境为全量测试环境,所述第二测试环境为目标应用的专用测试环境;或所述第一测试环境为所述目标应用的专用测试环境,所述第二测试环境为全量测试环境或其他专用测试环境。The method according to claim 1 or 2 or 4 or 5, wherein the first test environment is a full test environment, and the second test environment is a dedicated test environment for the target application; or the first test The environment is a dedicated test environment for the target application, and the second test environment is a full-scale test environment or other dedicated test environments.
  7. 一种应用测试方法,其特征在于,包括:An application testing method, characterized in that it comprises:
    接收来自第一测试环境的第一调用请求,所述第一调用请求携带第二服务的标识信息;Receiving a first call request from the first test environment, the first call request carrying identification information of the second service;
    在第二测试环境中检索到所述第二服务;The second service is retrieved in the second test environment;
    在所述第二测试环境中运行所述第二服务,发送所述第二服务的运行结果。Run the second service in the second test environment, and send the running result of the second service.
  8. 根据权利要求7所述的方法,其特征在于,所述发送第二服务的运行结果包括:The method according to claim 7, wherein the sending the operation result of the second service comprises:
    根据服务链信息确定第二服务是服务链中的最后一个服务,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务;It is determined according to the service chain information that the second service is the last service in the service chain, the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services called for testing the target application ;
    发送测试完成消息,所述测试完成消息表示完成对所述目标应用的测试,所述测试完成消息携带所述第二服务的运行结果。Send a test completion message, the test completion message indicates that the test of the target application is completed, and the test completion message carries the running result of the second service.
  9. 根据权利要求7所述的方法,其特征在于,还包括:The method according to claim 7, further comprising:
    根据服务链信息确定所述第二服务对应的第三服务,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第三服务为所述服务链中所述第二服务的下一个服务;Determine the third service corresponding to the second service according to the service chain information, where the service chain information indicates the calling sequence of multiple services in the service chain, and the service chain includes multiple services that are required to be called for testing the target application, The third service is the next service of the second service in the service chain;
    若在所述第二测试环境中检索到所述第三服务时,在所述第二测试环境中运行所述第三服务,发送所述第三服务的运行结果。If the third service is retrieved in the second test environment, run the third service in the second test environment, and send the running result of the third service.
  10. 根据权利要求9所述的方法,其特征在于,还包括:The method according to claim 9, further comprising:
    若在所述第二测试环境中未检索到所述第三服务时,向所述第一测试环境发送第二调用请求,所述第二调用请求用于指示所述第一测试环境中检索所述第三服务。If the third service is not retrieved in the second test environment, a second call request is sent to the first test environment, and the second call request is used to instruct to retrieve all services in the first test environment. The third service.
  11. 一种应用测试系统,其特征在于,包括:通信连接的第一服务器和第二服务器,其中,An application testing system is characterized by comprising: a first server and a second server connected in communication, wherein:
    所述第一服务器,根据服务链信息确定第一服务对应的第二服务,所述服务链信息表示服务链中多个服务的调用顺序,所述服务链包括对目标应用进行测试所需调用的多个服务,所述第二服务为所述服务链中所述第一服务的下一个服务,所述第一服务器部署有第一测试环境,所述第一测试环境包括所述第一服务;并且,当在所述第一测试环境中未检索到所述第二服务,第一服务器向第二测试环境发送第一调用请求;The first server determines the second service corresponding to the first service according to the service chain information. The service chain information indicates the invocation sequence of multiple services in the service chain. The service chain includes the required invocation for testing the target application A plurality of services, the second service is the next service of the first service in the service chain, the first server is deployed with a first test environment, and the first test environment includes the first service; And, when the second service is not retrieved in the first test environment, the first server sends a first call request to the second test environment;
    所述第二服务器,部署有第二测试环境,第二测试环境包括第二服务;第二服务器根据所述第一调用请求,在所述第二测试环境中运行服务器所述第二服务。The second server is deployed with a second test environment, and the second test environment includes a second service; the second server runs the second service of the server in the second test environment according to the first call request.
  12. 根据权利要求11所述的系统,其特征在于,还包括:服务器与所述第二服务器通信连接的第三服务器,接收第二服务器发送的第二服务的运行结 果。The system according to claim 11, further comprising: a third server connected in communication with the second server, and receiving the running result of the second service sent by the second server.
  13. 一种计算机设备,其特征在于,包括处理器和存储器,其中,所述存储器用于存储计算机程序,所述计算机程序包括程序指令,所述处理器用于调用所述程序指令,执行如权利要求1-10任一项所述的方法。A computer device, characterized by comprising a processor and a memory, wherein the memory is used to store a computer program, the computer program includes program instructions, and the processor is used to call the program instructions to execute as claimed in claim 1. -10 The method of any one.
  14. 一种计算机可读存储介质,其特征在于,所述计算机存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-10任一项所述的方法。A computer-readable storage medium, wherein the computer storage medium stores a computer program, the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processor to execute as claimed in claim 1. -10 The method of any one.
PCT/CN2019/120295 2019-02-15 2019-11-22 Application testing method, system and apparatus, and storage medium WO2020164289A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910117713.9 2019-02-15
CN201910117713.9A CN109840211A (en) 2019-02-15 2019-02-15 Application testing method, system, device and storage medium

Publications (1)

Publication Number Publication Date
WO2020164289A1 true WO2020164289A1 (en) 2020-08-20

Family

ID=66884645

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/120295 WO2020164289A1 (en) 2019-02-15 2019-11-22 Application testing method, system and apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN109840211A (en)
WO (1) WO2020164289A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109840211A (en) * 2019-02-15 2019-06-04 北京大米科技有限公司 Application testing method, system, device and storage medium
CN110380930B (en) * 2019-07-16 2022-07-12 腾讯科技(深圳)有限公司 Test method, test device, server and computer storage medium
CN111090587A (en) * 2019-12-11 2020-05-01 中国建设银行股份有限公司 Method, device and equipment for testing production point service and storage medium
CN113342595B (en) * 2021-05-26 2023-07-25 北京奇艺世纪科技有限公司 Gray scale verification method, device, equipment and storage medium
CN113900925A (en) * 2021-09-06 2022-01-07 特赞(上海)信息科技有限公司 Test environment building and utilizing method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035896A (en) * 2010-12-31 2011-04-27 北京航空航天大学 TTCN-3-based distributed testing framework applicable to software system
CN107506303A (en) * 2017-08-24 2017-12-22 航天中认软件测评科技(北京)有限责任公司 Method, apparatus and system for automatic test
CN108388521A (en) * 2018-03-28 2018-08-10 四川长虹电器股份有限公司 Browser compatibility tests System and method for
US20180331894A1 (en) * 2017-05-12 2018-11-15 Dell Products L.P. System and method for dynamic and extensible management of device nodes
CN109840211A (en) * 2019-02-15 2019-06-04 北京大米科技有限公司 Application testing method, system, device and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243862B1 (en) * 1998-01-23 2001-06-05 Unisys Corporation Methods and apparatus for testing components of a distributed transaction processing system
CN107979508B (en) * 2017-11-24 2020-08-04 深圳乐信软件技术有限公司 Micro-service test method and device
CN108965375B (en) * 2018-05-21 2021-04-20 创新先进技术有限公司 Service call proxy control system, method, server and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035896A (en) * 2010-12-31 2011-04-27 北京航空航天大学 TTCN-3-based distributed testing framework applicable to software system
US20180331894A1 (en) * 2017-05-12 2018-11-15 Dell Products L.P. System and method for dynamic and extensible management of device nodes
CN107506303A (en) * 2017-08-24 2017-12-22 航天中认软件测评科技(北京)有限责任公司 Method, apparatus and system for automatic test
CN108388521A (en) * 2018-03-28 2018-08-10 四川长虹电器股份有限公司 Browser compatibility tests System and method for
CN109840211A (en) * 2019-02-15 2019-06-04 北京大米科技有限公司 Application testing method, system, device and storage medium

Also Published As

Publication number Publication date
CN109840211A (en) 2019-06-04

Similar Documents

Publication Publication Date Title
WO2020164289A1 (en) Application testing method, system and apparatus, and storage medium
US9858177B2 (en) Automated test generation for multi-interface enterprise virtualization management environment
US20160352578A1 (en) System and method for adaptive paths locator for virtual network function links
KR20210042854A (en) Method for testing chip, electronic device, storage medium, program and chip thereof
US10992780B1 (en) Microservices as a microservice
US10341181B2 (en) Method and apparatus to allow dynamic changes of a replica network configuration in distributed systems
JP7033165B2 (en) How and equipment to process information in parallel
WO2024001024A1 (en) Method for executing transaction in blockchain system, and blockchain system and nodes
US8543680B2 (en) Migrating device management between object managers
US20230216895A1 (en) Network-based media processing (nbmp) workflow management through 5g framework for live uplink streaming (flus) control
US11048475B2 (en) Multi-cycle key compares for keys and records of variable length
US20190163443A1 (en) Hierarchical sort/merge structure using a request pipe
US10803246B2 (en) Decomposing composite product reviews
US10210127B2 (en) Storage system cabling analysis
CN111444148B (en) Data transmission method and device based on MapReduce
US10880360B2 (en) File transmission in a cluster
US11256584B2 (en) One-step disaster recovery configuration on software-defined storage systems
US9715477B2 (en) Shared-bandwidth multiple target remote copy
CN113448770A (en) Method, electronic device and computer program product for recovering data
US10326697B2 (en) Storing data in association with a key within a hash table and retrieving the data from the hash table using the key
CN113157695B (en) Data processing method and device, readable medium and electronic equipment
JP7496870B2 (en) Communication with application flows in an integrated system
US20220370912A1 (en) Game Development Method And Apparatus, Game Running Method And Apparatus, And Electronic Device
US11467731B2 (en) Client driven multi-site consistency for object storage
JP6309432B2 (en) Secret calculation system and method, management server and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19915183

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19915183

Country of ref document: EP

Kind code of ref document: A1