CN116955161A - Multi-terminal service testing method and device, storage medium and computer equipment - Google Patents

Multi-terminal service testing method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN116955161A
CN116955161A CN202310810960.3A CN202310810960A CN116955161A CN 116955161 A CN116955161 A CN 116955161A CN 202310810960 A CN202310810960 A CN 202310810960A CN 116955161 A CN116955161 A CN 116955161A
Authority
CN
China
Prior art keywords
test
service
service processing
virtual machine
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310810960.3A
Other languages
Chinese (zh)
Inventor
张福军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen Co Ltd
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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202310810960.3A priority Critical patent/CN116955161A/en
Publication of CN116955161A publication Critical patent/CN116955161A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing

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

The application relates to the field of software testing and the technical field of digital medical treatment, and discloses a multi-terminal service testing method and device, a storage medium and computer equipment, wherein the method comprises the following steps: the test engine receives a service test request from a first test end; analyzing a service processing scene corresponding to the service test request and test data corresponding to the service processing scene, and determining a second test end corresponding to the service processing scene; creating a virtual machine of the second test end, and sending the test data to the second test end by utilizing the virtual machine so that the second test end performs service processing based on the test data; and receiving a service processing result returned by the second test end, generating a test result of the service test request based on the service processing result, and feeding back the test result to the first test end. Therefore, the quality guarantee of the regression test for improving the service full link is solved from the whole-course view of user experience.

Description

Multi-terminal service testing method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of software testing and the field of digital medical technology, and in particular, to a method and apparatus for testing multi-terminal services, a storage medium, and a computer device.
Background
With the rapid development of digital medical technology, more and more medical service application software products, such as health monitoring application software, medical registration application software, various medicine purchasing or inquiry application software, preventive needle reservation application software and the like, are presented, and before the application software products are used on line, various application software products need to be tested first in order to ensure the quality of the application software products. At present, in the related art, application software products are mainly tested through UI automation, and the UI automation is divided into web-end UI automation test and mobile-end UI automation; the web end UI automation industry has excellent testing tools such as selenium, cypress, playWright, robot frame work, puppeterer, testCafe, webdriverIO and the like; the UI automation of the mobile terminal also comprises UIAutomaker, two Android platform tool sets of expresso, XCTest, XCUITest of iOS platform, go-iOS and other tool sets, and a plurality of available mobile terminal UI automation test tool sets of cross-platform airtest, poco, maestro, app ium, openATX, uiAutomaker 2 and the like, so that the quality of application software products can be guaranteed by the tool sets on a single platform or a single terminal, and meanwhile, a test engineer can finish a plurality of excellent UI level automation cases.
However, a product mode common to a service is not always obtained by a full-link service guarantee scheme of a UI automation level, a plurality of mobile terminal products need to interact with a PC terminal, for example, medical registration software needs to be initiated by a user at the mobile terminal, and the PC terminal has the same product platform to cooperate with interaction confirmation to complete a closed loop of user experience. Therefore, a testing method of multi-terminal service is needed to solve the above technical problems.
Disclosure of Invention
In view of this, the present application provides a testing method and apparatus, a storage medium, and a computer device for multi-terminal services, which mainly aims to synchronize a service testing task received by a mobile testing end to a PC testing end through a testing engine and a virtual machine of the PC testing end, so as to avoid situations that whether the whole quality of a product is complete and whether a breakpoint exists or not can not be truly reflected by separately testing the mobile end and the PC end of the same product, and test blind points caused by different test centers of test personnel passing through different departments are not concerned, and missed testing and unmeasured situations caused by possible service fatigue of manual inspection in a fixed period can also occur.
According to an aspect of the present application, there is provided a method for testing a multi-terminal service, the method comprising:
the test engine receives a service test request from a first test end;
analyzing a service processing scene corresponding to the service test request and test data corresponding to the service processing scene, and determining a second test end corresponding to the service processing scene;
creating a virtual machine of the second test end, and sending the test data to the second test end by utilizing the virtual machine so that the second test end performs service processing based on the test data;
and receiving a service processing result returned by the second test end, generating a test result of the service test request based on the service processing result, and feeding back the test result to the first test end.
Optionally, the first test end is a mobile test end, and the second test end is a PC test end; the service processing scene comprises at least one; the determining a second test end corresponding to the service processing scene comprises the following steps:
determining PC test ends corresponding to each service processing scene;
correspondingly, the creating the virtual machine of the second test end and sending the test data to the second test end by using the virtual machine includes:
creating a virtual machine of each PC test end, and respectively utilizing each virtual machine to send the test data to the PC test end corresponding to the service processing scene so that each PC test end performs service processing based on the received test data.
Optionally, the creating a virtual machine of the second test end, and sending the test data to the second test end by using the virtual machine includes:
acquiring a virtual environment configuration item of the service processing scene and a scene account number of the service processing scene from a data resource pool;
and creating a virtual machine of the second test end based on the virtual environment configuration item, logging in the second test end based on the scene account number by utilizing the virtual machine, and sending the test data to the second test end.
Optionally, before the test engine receives the service test request from the first test end, the method further includes:
the mobile terminal automatic test platform receives a plurality of business test tasks and distributes the business test tasks to at least one mobile test terminal;
the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine;
after the test result of the service test request generated based on the service processing result is fed back to the first test end, the method further includes:
and the mobile test terminal determines whether the service test task passes or not based on the target result and the test result.
Optionally, before the test engine receives the service test request from the first test end, the method further includes:
configuring a plurality of PC test ends in a PC end automatic test platform, and sending virtual environment configuration items and scene accounts of service processing scenes corresponding to each PC test end to a test engine;
and the test engine stores the virtual environment configuration items and the scene accounts of the business processing scenes in a data resource pool.
Optionally, the service test request includes a plurality of; the creating the virtual machine of the second test end includes:
if the virtual machine of the second test end is established, writing the test data into an execution queue corresponding to the second test end, wherein the virtual machine is used for sending the test data to the second test end based on the execution queue;
if the virtual machine of the second test end is not created, creating the virtual machine of the second test end and an execution queue of the second test end, and writing the test data into the execution queue of the second test end.
Optionally, the generating, based on the service processing result, a test result of the service test request to be fed back to the first test end includes:
when receiving service processing results returned by all second test ends corresponding to the service test request, combining the service processing results into test results of the service test request, and feeding back the test results to the first test end.
According to another aspect of the present application, there is provided a testing apparatus for multi-terminal service, the apparatus comprising:
the request receiving module is used for receiving a service test request from the first test end by the test engine;
the analysis module is used for analyzing the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene and determining a second test end corresponding to the service processing scene;
the sending module is used for creating a virtual machine of the second testing end and sending the testing data to the second testing end by utilizing the virtual machine so that the second testing end performs service processing based on the testing data;
and the result receiving module is used for receiving the service processing result returned by the second testing end, generating the testing result of the service testing request based on the service processing result and feeding back the testing result to the first testing end.
Optionally, the first test end is a mobile test end, and the second test end is a PC test end; the service processing scene comprises at least one; the parsing module is further configured to:
determining PC test ends corresponding to each service processing scene;
correspondingly, the sending module is further configured to:
creating a virtual machine of each PC test end, and respectively utilizing each virtual machine to send the test data to the PC test end corresponding to the service processing scene so that each PC test end performs service processing based on the received test data.
Optionally, the sending module is further configured to:
acquiring a virtual environment configuration item of the service processing scene and a scene account number of the service processing scene from a data resource pool;
and creating a virtual machine of the second test end based on the virtual environment configuration item, logging in the second test end based on the scene account number by utilizing the virtual machine, and sending the test data to the second test end.
Optionally, the apparatus further comprises: the task dispatch module is used for:
before the test engine receives a service test request from a first test end, a mobile end automation test platform receives a plurality of service test tasks and distributes the service test tasks to at least one mobile test end;
the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine;
the apparatus further comprises: a request sending module, configured to:
after the test result of the service test request generated based on the service processing result is fed back to the first test end, the mobile test end determines whether the service test task passes or not based on the target result and the test result.
Optionally, the apparatus further comprises: a configuration module for:
before the test engine receives a service test request from a first test end, configuring a plurality of PC test ends in a PC end automation test platform, and sending virtual environment configuration items and scene accounts of service processing scenes corresponding to each PC test end to the test engine;
and the storage module is used for storing the virtual environment configuration items and the scene accounts of the business processing scenes in the data resource pool by the test engine.
Optionally, the service test request includes a plurality of; the sending module is further configured to:
if the virtual machine of the second test end is established, writing the test data into an execution queue corresponding to the second test end, wherein the virtual machine is used for sending the test data to the second test end based on the execution queue;
if the virtual machine of the second test end is not created, creating the virtual machine of the second test end and an execution queue of the second test end, and writing the test data into the execution queue of the second test end.
Optionally, the result receiving module is further configured to:
when receiving service processing results returned by all second test ends corresponding to the service test request, combining the service processing results into test results of the service test request, and feeding back the test results to the first test end.
According to still another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the method of testing a multi-terminal service described above.
According to still another aspect of the present application, there is provided a computer device including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, the processor implementing the method for testing a multi-terminal service described above when executing the program.
By means of the technical scheme, the testing method and device, the storage medium and the computer equipment for the multi-terminal service provided by the application comprise the steps that firstly, a testing engine receives a service testing request from a first testing terminal, secondly, a service processing scene corresponding to the service testing request and testing data corresponding to the service processing scene are analyzed, a second testing terminal corresponding to the service processing scene is determined, a virtual machine of the second testing terminal is created, the virtual machine is utilized to send the testing data to the second testing terminal, so that the second testing terminal performs service processing based on the testing data, finally, a service processing result returned by the second testing terminal is received, and the testing result of the service testing request is generated based on the service processing result and is fed back to the first testing terminal. The application synchronously carries out service processing on the mobile test end and the PC test end through the test engine and the virtual machine of the PC test end, thereby avoiding the situations that whether the whole quality of the product is complete or not and whether a breakpoint exists can not be truly reflected by separately testing the mobile end and the PC end of the same product, and the mobile test end and the PC end of the same product are tested by different testers passing through different departments, the test blind spots caused by different test centers of the testers are not concerned by people, and the missed test caused by possible service fatigue of manual inspection in a fixed period are avoided.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 is a schematic flow chart of a testing method of multi-terminal service according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another testing method of multi-terminal service according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a testing device for multi-terminal services according to an embodiment of the present application;
fig. 4 shows a schematic device structure of a computer device according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
In this embodiment, a method for testing multi-terminal service is provided, as shown in fig. 1, where the method includes:
step 101, a test engine receives a service test request from a first test end.
Step 102, analyzing the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene, and determining a second test end corresponding to the service processing scene.
And 103, creating a virtual machine of the second test end, and sending the test data to the second test end by utilizing the virtual machine so that the second test end performs service processing based on the test data.
And 104, receiving a service processing result returned by the second testing end, generating a testing result of the service testing request based on the service processing result, and feeding back the testing result to the first testing end.
In the embodiment of the application, the test terminals comprise a first test terminal and a second test terminal, wherein the first test terminal is a mobile test terminal, and the second test terminal is a PC test terminal. Firstly, a test engine receives a service test request from a mobile test terminal, after receiving the service test request, analyzes a service processing scene corresponding to the service test request and test data corresponding to the service processing scene, and determines a PC test terminal corresponding to the service processing scene so as to synchronize the test data corresponding to the service processing scene to the corresponding PC test terminal. Then, creating a virtual machine of the PC test end, wherein the virtual machine is a complete computer system which is simulated by software and has complete hardware system functions and operates in a complete isolation environment; and sending the test data to the PC test terminal through the virtual machine, and carrying out service processing on the received test data after the PC test terminal receives the test data. And finally, after the PC test end performs service processing on the test data, a service processing result is obtained, the service processing result is returned, a test result of a service test request is generated based on the service processing result, and the test result of the service test request is fed back to the mobile test end.
For example, a medical-class inquiry application software product requires a user to initiate an inquiry request at a mobile terminal, and then a PC terminal user determines a doctor according to information in the inquiry request, thereby establishing a complete inquiry flow. Therefore, before a new inquiry application software product is on line, the mobile terminal and the PC terminal of the application software product can be synchronously tested.
By applying the technical scheme of the embodiment, after receiving the service test request from the mobile test terminal, the test engine analyzes the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene, and determines the PC test terminal corresponding to the service processing scene. After the PC testing end corresponding to the service processing scene is determined, a virtual machine of the PC testing end is created, test data corresponding to the service processing scene is sent to the PC testing end through the virtual machine, the PC testing end carries out service processing on the test data after receiving the test data, a service processing result is returned, a test result of a service test request is generated based on the service processing result, and the test result is fed back to the mobile testing end. According to the application, by developing a linkage mechanism, when a mobile test end receives a service test request, the service test request is synchronously transmitted to a PC test end for service processing through a test engine and a virtual machine of the PC test end, so that the situation that whether the whole quality of a product is complete or not and whether a breakpoint exists cannot be truly reflected due to the fact that the mobile end and the PC end of the same product are independently tested by the mobile end and the PC end of the same product are respectively tested by different testers of different departments is avoided, test blind spots caused by different test centers of the testers are not concerned, and possible service fatigue is not detected due to fixed-period manual inspection is possibly caused.
Further, as a refinement and extension of the foregoing embodiment, in order to fully describe the implementation process of this embodiment, another method for testing a multi-terminal service is provided, as shown in fig. 2, where the method includes:
step 201, a mobile terminal automation test platform receives a plurality of service test tasks and distributes the service test tasks to at least one mobile test terminal.
Step 202, the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine.
And 203, configuring a plurality of PC test ends in the PC end automatic test platform, and sending virtual environment configuration items and scene accounts of service processing scenes corresponding to each PC test end to a test engine.
In step 204, the test engine stores the virtual environment configuration item and the scene account number of each service processing scene in the data resource pool.
In the embodiment of the application, a mobile terminal automatic test platform and a PC terminal automatic test platform are firstly built, wherein the mobile test platform comprises a plurality of mobile test terminals; configuring a plurality of PC test terminals in a PC terminal automation test platform, acquiring virtual environment configuration and scene accounts of service processing scenes corresponding to each PC test terminal, transmitting the virtual environment configuration and scene accounts of the service processing scenes corresponding to each PC test terminal to a test engine, receiving virtual environment configuration items and scene accounts of the service processing scenes by the test engine, and storing the virtual environment configuration items and scene accounts of the service processing scenes in a data resource pool for creating virtual machines of the PC test terminals and logging in the PC test terminals.
Then, when the user initiates a plurality of business test tasks, the mobile terminal automatic test platform receives the plurality of business test tasks, for example, test businesses comprising medical registration application software, inquiry application software and vaccine appointment application software; and distributing each business test task to at least one mobile test terminal.
Then, after receiving the service test task, the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine, wherein the target result is used as a basis for judging whether the service test task passes the test.
In step 205, the test engine receives a service test request from the first test terminal.
Step 206, analyzing the service processing scenario corresponding to the service test request and the test data corresponding to the service processing scenario, and determining a second test end corresponding to the service processing scenario.
Then, the test engine receives the service test request from the mobile test terminal, analyzes the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene, and determines the PC test terminal corresponding to the service processing scene so as to synchronize the test data corresponding to the service processing scene to the corresponding PC test terminal.
Optionally, in step 206, "determining a second test end corresponding to the service processing scenario" includes: and determining a PC test end corresponding to each service processing scene.
Step 207, obtaining a virtual environment configuration item of the service processing scene and a scene account number of the service processing scene from a data resource pool.
And step 208, creating a virtual machine of the second test end based on the virtual environment configuration item, logging in the second test end based on the scene account number by utilizing the virtual machine, and sending the test data to the second test end.
And then, acquiring a virtual environment configuration item of a service processing scene and a scene account number of the service processing scene from the data resource pool, creating a virtual machine of the PC test terminal based on the virtual environment configuration item, logging in the PC test terminal based on the scene account number by utilizing the virtual machine of the PC test terminal, and sending test data to the PC computer.
Optionally, in step 208, "create a virtual machine of the second test end", including: creating a virtual machine of each PC test end, and respectively utilizing each virtual machine to send the test data to the PC test end corresponding to the service processing scene so that each PC test end performs service processing based on the received test data.
Optionally, the "creating a virtual machine of the second test end" in step 208 further includes: if the virtual machine of the second test end is established, writing the test data into an execution queue corresponding to the second test end, wherein the virtual machine is used for sending the test data to the second test end based on the execution queue; if the virtual machine of the second test end is not created, creating the virtual machine of the second test end and an execution queue of the second test end, and writing the test data into the execution queue of the second test end.
And step 209, the second testing end performs service processing based on the test data.
Step 210, receiving a service processing result returned by the second testing end, and generating a testing result of the service testing request based on the service processing result, and feeding back the testing result to the first testing end.
And then, the PC test end performs service processing on the received test data, and generates a test result of the service test request based on the service processing result and feeds the test result back to the mobile test end.
Optionally, the step 210 of "generating the test result of the service test request based on the service processing result and feeding the test result back to the first test end" includes: when receiving service processing results returned by all second test ends corresponding to the service test request, combining the service processing results into test results of the service test request, and feeding back the test results to the first test end.
Step 211, the mobile test end determines whether the service test task passes or not based on the target result and the test result.
And finally, comparing the test result with the target result, judging whether the service test task passes or not, if the test result is consistent with the target result, the service test task passes, and otherwise, the service test task is considered to not pass.
By applying the technical scheme of the embodiment, a linkage mechanism is developed, a mobile terminal automatic test platform and a PC terminal automatic test platform are built, and when a user initiates a plurality of business test tasks, the mobile terminal automatic test platform receives the business test tasks and distributes each business test task to at least one mobile test terminal. The mobile test terminal analyzes the received service test task into a service test request and a target result, and sends the service test request to the test engine. The test engine receives and analyzes the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene, and determines the PC test end corresponding to the service processing scene. The method comprises the steps of obtaining a virtual environment configuration item of a service processing scene and a scene account number of the service processing scene from a data resource pool, creating a virtual machine of a PC test terminal based on the virtual environment configuration item, logging in the PC test terminal based on the scene account number by utilizing the virtual machine of the PC test terminal, and sending test data to a PC computer. The PC test end performs service processing on the received test data, generates a test result of a service test request based on the service processing result, and feeds the test result back to the mobile test end. And comparing the test result with the target result, judging whether the service test task passes or not, if the test result is consistent with the target result, the service test task passes, and otherwise, the service test task is considered to not pass.
According to the application, by setting up the mobile terminal automatic test platform and the PC terminal automatic test platform, when the mobile terminal automatic test platform receives the service test task, the service test task is dispatched to the mobile test terminal, and the mobile test terminal synchronizes the service test task to the PC test terminal through the test engine and the virtual machine of the PC test terminal in the PC terminal automatic test platform for service processing, so that the situation that whether the whole quality of the product is complete or not and whether a breakpoint exists can not be truly reflected by separately testing the mobile terminal and the PC terminal of the same product or not is avoided, and the condition that a test blind spot caused by different test centers of test personnel is not concerned by the test personnel and possible service fatigue is missed due to manual inspection in a fixed period can also occur. Therefore, the quality guarantee of the regression test for improving the service full link is solved from the whole-course view of user experience.
Further, as a specific implementation of the method of fig. 1, an embodiment of the present application provides a testing apparatus for multi-terminal service, as shown in fig. 3, where the apparatus includes:
the request receiving module is used for receiving a service test request from the first test end by the test engine;
the analysis module is used for analyzing the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene and determining a second test end corresponding to the service processing scene;
the sending module is used for creating a virtual machine of the second testing end and sending the testing data to the second testing end by utilizing the virtual machine so that the second testing end performs service processing based on the testing data;
and the result receiving module is used for receiving the service processing result returned by the second testing end, generating the testing result of the service testing request based on the service processing result and feeding back the testing result to the first testing end.
Optionally, the first test end is a mobile test end, and the second test end is a PC test end; the service processing scene comprises at least one; the parsing module is further configured to:
determining PC test ends corresponding to each service processing scene;
correspondingly, the sending module is further configured to:
creating a virtual machine of each PC test end, and respectively utilizing each virtual machine to send the test data to the PC test end corresponding to the service processing scene so that each PC test end performs service processing based on the received test data.
Optionally, the sending module is further configured to:
acquiring a virtual environment configuration item of the service processing scene and a scene account number of the service processing scene from a data resource pool;
and creating a virtual machine of the second test end based on the virtual environment configuration item, logging in the second test end based on the scene account number by utilizing the virtual machine, and sending the test data to the second test end.
Optionally, the apparatus further comprises: the task dispatch module is used for:
before the test engine receives a service test request from a first test end, a mobile end automation test platform receives a plurality of service test tasks and distributes the service test tasks to at least one mobile test end;
the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine;
the apparatus further comprises: a request sending module, configured to:
after the test result of the service test request generated based on the service processing result is fed back to the first test end, the mobile test end determines whether the service test task passes or not based on the target result and the test result.
Optionally, the apparatus further comprises: a configuration module for:
before the test engine receives a service test request from a first test end, configuring a plurality of PC test ends in a PC end automation test platform, and sending virtual environment configuration items and scene accounts of service processing scenes corresponding to each PC test end to the test engine;
and the storage module is used for storing the virtual environment configuration items and the scene accounts of the business processing scenes in the data resource pool by the test engine.
Optionally, the service test request includes a plurality of; the sending module is further configured to:
if the virtual machine of the second test end is established, writing the test data into an execution queue corresponding to the second test end, wherein the virtual machine is used for sending the test data to the second test end based on the execution queue;
if the virtual machine of the second test end is not created, creating the virtual machine of the second test end and an execution queue of the second test end, and writing the test data into the execution queue of the second test end.
Optionally, the result receiving module is further configured to:
when receiving service processing results returned by all second test ends corresponding to the service test request, combining the service processing results into test results of the service test request, and feeding back the test results to the first test end.
It should be noted that, for other corresponding descriptions of each functional unit related to the testing apparatus for multi-terminal service provided by the embodiment of the present application, reference may be made to corresponding descriptions in the methods of fig. 1 to fig. 2, and no further description is given here.
The embodiment of the application also provides a computer device, which can be a personal computer, a server, a network device and the like, and as shown in fig. 4, the computer device comprises a bus, a processor, a memory and a communication interface, and can also comprise an input/output interface and a display device. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is for storing location information. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement the steps in the method embodiments.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer readable storage medium is provided, which may be non-volatile or volatile, and on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for testing a multi-terminal service, the method comprising:
the test engine receives a service test request from a first test end;
analyzing a service processing scene corresponding to the service test request and test data corresponding to the service processing scene, and determining a second test end corresponding to the service processing scene;
creating a virtual machine of the second test end, and sending the test data to the second test end by utilizing the virtual machine so that the second test end performs service processing based on the test data;
and receiving a service processing result returned by the second test end, generating a test result of the service test request based on the service processing result, and feeding back the test result to the first test end.
2. The method of claim 1, wherein the first test terminal is a mobile test terminal and the second test terminal is a PC test terminal; the service processing scene comprises at least one; the determining a second test end corresponding to the service processing scene comprises the following steps:
determining PC test ends corresponding to each service processing scene;
correspondingly, the creating the virtual machine of the second test end and sending the test data to the second test end by using the virtual machine includes:
creating a virtual machine of each PC test end, and respectively utilizing each virtual machine to send the test data to the PC test end corresponding to the service processing scene so that each PC test end performs service processing based on the received test data.
3. The method of claim 1, wherein creating the virtual machine of the second test end and sending the test data to the second test end using the virtual machine comprises:
acquiring a virtual environment configuration item of the service processing scene and a scene account number of the service processing scene from a data resource pool;
and creating a virtual machine of the second test end based on the virtual environment configuration item, logging in the second test end based on the scene account number by utilizing the virtual machine, and sending the test data to the second test end.
4. The method of claim 2, wherein before the test engine receives the traffic test request from the first test end, the method further comprises:
the mobile terminal automatic test platform receives a plurality of business test tasks and distributes the business test tasks to at least one mobile test terminal;
the mobile test terminal analyzes the service test task into a service test request and a target result, and sends the service test request to a test engine;
after the test result of the service test request generated based on the service processing result is fed back to the first test end, the method further includes:
and the mobile test terminal determines whether the service test task passes or not based on the target result and the test result.
5. The method of claim 4, wherein before the test engine receives the traffic test request from the first test end, the method further comprises:
configuring a plurality of PC test ends in a PC end automatic test platform, and sending virtual environment configuration items and scene accounts of service processing scenes corresponding to each PC test end to a test engine;
and the test engine stores the virtual environment configuration items and the scene accounts of the business processing scenes in a data resource pool.
6. The method of claim 2, wherein the traffic test request comprises a plurality of; the creating the virtual machine of the second test end includes:
if the virtual machine of the second test end is established, writing the test data into an execution queue corresponding to the second test end, wherein the virtual machine is used for sending the test data to the second test end based on the execution queue;
if the virtual machine of the second test end is not created, creating the virtual machine of the second test end and an execution queue of the second test end, and writing the test data into the execution queue of the second test end.
7. The method of claim 6, wherein the generating the test result of the service test request based on the service processing result is fed back to the first test end, and comprises:
when receiving service processing results returned by all second test ends corresponding to the service test request, combining the service processing results into test results of the service test request, and feeding back the test results to the first test end.
8. A test device for multi-terminal services, the device comprising:
the request receiving module is used for receiving a service test request from the first test end by the test engine;
the analysis module is used for analyzing the service processing scene corresponding to the service test request and the test data corresponding to the service processing scene and determining a second test end corresponding to the service processing scene;
the sending module is used for creating a virtual machine of the second testing end and sending the testing data to the second testing end by utilizing the virtual machine so that the second testing end performs service processing based on the testing data;
and the result receiving module is used for receiving the service processing result returned by the second testing end, generating the testing result of the service testing request based on the service processing result and feeding back the testing result to the first testing end.
9. A storage medium having stored thereon a computer program, which when executed by a processor, implements the method of any of claims 1 to 7.
10. A computer device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any one of claims 1 to 7 when executing the computer program.
CN202310810960.3A 2023-07-04 2023-07-04 Multi-terminal service testing method and device, storage medium and computer equipment Pending CN116955161A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310810960.3A CN116955161A (en) 2023-07-04 2023-07-04 Multi-terminal service testing method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310810960.3A CN116955161A (en) 2023-07-04 2023-07-04 Multi-terminal service testing method and device, storage medium and computer equipment

Publications (1)

Publication Number Publication Date
CN116955161A true CN116955161A (en) 2023-10-27

Family

ID=88457529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310810960.3A Pending CN116955161A (en) 2023-07-04 2023-07-04 Multi-terminal service testing method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN116955161A (en)

Similar Documents

Publication Publication Date Title
CN107402880B (en) Test method and electronic equipment
US9940127B1 (en) System and method for providing real-time execution of source code in a collaborative online software development environment
CN108255707B (en) Development role creating method, device, equipment and storage medium of test case
CN106933745A (en) WEB automatic interface testing methods and system
CN110956269B (en) Method, device, equipment and computer storage medium for generating data model
CN109376088B (en) Automatic test system and automatic test method
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN108647141A (en) Automatic test approach, device, computer-readable medium and electronic equipment
CN104657274B (en) software interface test method and device
CN107608901B (en) Jmeter-based testing method and device, storage medium and electronic equipment
CN111190596A (en) Joint debugging method and device, computer equipment and readable storage medium
CN111026634A (en) Interface automation test system, method, device and storage medium
CN110532021B (en) Processing method of configuration file of distributed control system, client and service device
JP2020098556A (en) Method and apparatus for verifying annotation processing task for actual use using annotation processing task for verification
CN107015912A (en) Realize system, method, device and the electronic equipment of remote debugging
CN110659870A (en) Business audit test method, device, equipment and storage medium
CN111897738B (en) Automatic testing method and device based on atomic service
CN112905492B (en) Verification method and device
CN109586946B (en) Exception handling method and device and computer readable storage medium
CN114465937A (en) Network card testing method, device, server, medium, and computer program product
CN112905460B (en) Device and method for simulating three-party receipt by automatic interface test
CN110889105B (en) Data processing method, device, system and medium
CN115328997B (en) Data synchronization method, system, device and storage medium
CN106874305B (en) Information transmission method and device
CN116955161A (en) Multi-terminal service testing method and device, storage medium and computer equipment

Legal Events

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