CN112115055A - Multi-machine automatic testing method and device and computer equipment - Google Patents
Multi-machine automatic testing method and device and computer equipment Download PDFInfo
- Publication number
- CN112115055A CN112115055A CN202010997724.3A CN202010997724A CN112115055A CN 112115055 A CN112115055 A CN 112115055A CN 202010997724 A CN202010997724 A CN 202010997724A CN 112115055 A CN112115055 A CN 112115055A
- Authority
- CN
- China
- Prior art keywords
- test
- testing
- branch
- information
- configuration file
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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 invention discloses a multi-machine automatic testing method, a multi-machine automatic testing device and computer equipment, wherein the method comprises the following steps: generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; updating configuration files of the test cases according to the model information of the plurality of test machines respectively; and testing a plurality of testing machines through the updated test cases to obtain an automatic test result. The method and the device combine the model information of the machine for testing and further update the configuration file information in the test case, realize dynamic and flexible selection of the model of the test, meet the requirements of users more, and solve the problems that the work efficiency of the test is low and the test steps are complicated because the tests can only be operated on different models of the test one by one in the related art.
Description
Technical Field
The invention relates to the general technical field of computers, in particular to a multi-machine automatic testing method and device and computer equipment.
Background
A test case is a description of the task of testing a particular object, such as a particular software product, by programming a set of code for testing inputs, execution conditions, and expected results to test whether the path of the particular object is correct or whether the particular object meets requirements. The test case is very important for the test of the safety and stability of the software, and after the test case is executed, the obtained execution result is compared with the corresponding assertion condition, and whether the function of the software described by the test case is correct or not is determined according to the correctness of the execution result.
The existing technology for testing target software products through test cases is mostly based on an Appium automatic test technology, but when testing whether the target software products can normally run on each machine type, the target software products can only run one by one to achieve the test purpose, so that the test efficiency is low, and the test steps are complex.
Disclosure of Invention
Therefore, the technical problem to be solved by the invention is to overcome the defects that the working efficiency of the test is low and the test steps are complicated because the test can be achieved only by running one by one in the prior art, thereby providing a multi-machine automatic test method, a multi-machine automatic test device and computer equipment.
According to a first aspect, an embodiment of the present invention provides a multi-machine automated testing method, including: generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; updating the configuration files of the test cases according to the model information of the plurality of test machines respectively; and testing the plurality of testing machines through the updated test cases to obtain an automatic test result.
With reference to the first aspect, in a first implementation manner of the first aspect, the step of generating a test case according to branch feature information input by a user specifically includes: acquiring branch characteristic information input by a user, and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information; and inputting a preset tool kit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path.
With reference to the first aspect, in a second implementation manner of the first aspect, the updating the configuration file of the test case according to model information of the multiple test machines respectively specifically includes: obtaining model information and test instruction information of a plurality of test machines; determining target model information according to the model information and the test instruction; and inputting the target model information into the configuration file, and generating the updated configuration file of the test case.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, after the step of inputting the target model information into the configuration file, the method further includes: traversing the target directory folder, and extracting a function test file conforming to a preset suffix format; and determining a target extraction path according to the functional test file conforming to the preset suffix format, inputting the target extraction path into the configuration file, and generating the updated configuration file of the test case.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the testing the multiple testing machines through the updated test case to obtain an automated testing result specifically includes: and calling a plurality of testing machines and the function test files conforming to the preset suffix format according to the updated test cases to generate an automatic test result.
With reference to the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, before the step of generating the automated test result, the method further includes: creating a picture static file storage path; according to the automatic test script, calling a report generation tool and an automatic screenshot tool to generate a test log report; and generating the multi-machine automatic test result according to the test log report.
According to a second aspect, an embodiment of the present invention provides a multi-machine automated testing apparatus, including: the test case generation module is used for generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; the configuration file updating module is used for updating the configuration files of the test cases according to the model information of the plurality of testing machines respectively; and the test result generation module is used for testing the plurality of testing machines through the updated test cases to obtain an automatic test result.
With reference to the second aspect, in a first implementation manner of the second aspect, the test case generation module specifically includes: the automatic test script extraction submodule is used for acquiring branch characteristic information input by a user and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information; and the test case generation submodule is used for inputting a preset tool kit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path.
According to a third aspect, an embodiment of the present invention provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the multi-machine automated testing method of the first aspect or any of the embodiments of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multi-machine automated testing method according to the first aspect or any of the embodiments of the first aspect.
The technical scheme of the invention has the following advantages:
the invention provides a multi-machine automatic testing method, a multi-machine automatic testing device and computer equipment, wherein the method comprises the following steps: generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; updating configuration files of the test cases according to the model information of the plurality of test machines respectively; and testing a plurality of testing machines through the updated test cases to obtain an automatic test result. The method and the device combine the model information of the machine for testing and further update the configuration file information in the test case, realize dynamic and flexible selection of the model of the test, meet the requirements of users more, and solve the problems that the work efficiency of the test is low and the test steps are complicated because the tests can only be operated on different models of the test one by one in the related art. Scripts of the same test case can run on different real machines at the same time, so that compatibility test and quick regression test are realized; not only can online test be realized, but also a plurality of cases can be operated on a plurality of real machines to run the automation script. In addition, the test report of the integrated test screenshot can be displayed on line.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of an exemplary embodiment of a multi-machine automated testing method of embodiments of the present invention;
FIG. 2 is a diagram illustrating an exemplary implementation of a multi-machine automated testing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another embodiment of a multi-machine automated testing method in an embodiment of the present invention;
FIG. 4 is a schematic block diagram of a specific example of a multi-machine automated test equipment in an embodiment of the present invention;
FIG. 5 is a diagram of an exemplary computer device according to an embodiment of the present invention.
Detailed Description
The technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings, and it should be understood that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two elements may be directly connected or indirectly connected through an intermediate medium, or may be communicated with each other inside the two elements, or may be wirelessly connected or wired connected. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In addition, the technical features involved in the different embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other.
In order to solve the problems that the testing efficiency is low and the testing steps are complicated due to the fact that testing machines can only be selected one by one for testing in the prior art, the embodiment of the invention provides a multi-machine automatic testing method, a multi-machine automatic testing device and computer equipment, and aims to run scripts of the same test case on different real machines at the same time, namely on different testing machines, so that compatibility testing and fast regression testing are achieved.
The embodiment of the invention provides a multi-machine automatic testing method, as shown in fig. 1, comprising the following steps:
step S11: generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; in this embodiment, the branch address information may be git address information input by a user, specifically, address information of a preset gitlab repository, and the branch identification information may represent content information stored in a branch, and may include, for example, test code information and formal code information. That is to say, when a user creates a test case, the back-end device will first create a test case catalog, and then extract a corresponding automated test script in a preset gitlab in the test case catalog according to the branch feature information input by the user, and then generate one of the test cases. For example, the test case catalog can be entered by a local shell technology, and a git command can be adopted to extract a corresponding automated test script from a preset gitlab warehouse.
Step S12: updating configuration files of the test cases according to the model information of the plurality of test machines respectively; in this embodiment, after the test case is generated, the test case needs to be executed, and first, online status information of different testing machines needs to be obtained, and a corresponding testing machine is selected for testing according to each online testing machine. The model information of the test machine may be determined according to the obtained operation state of the test machine and a test instruction input by a user. The model information of the testing machine can include any brand and any model existing in the market, for example, different mobile phone manufacturers such as Huashi, glory, millet and the like, and the equipment platform, the equipment brand, the equipment model, the system version of the equipment, the SDK version number and the like of the testing machine are not limited, and the equipment platform can be Android, iOS and the like.
Specifically, the configuration file of the test case may be modified according to the test requirement of the user, and is used to support file information that the test case may be tested on the test machine.
Step S13: and testing a plurality of testing machines through the updated test cases to obtain an automatic test result. In this embodiment, after the configuration file is modified according to the test requirements of the user, an updated configuration file and an updated test case are generated, at this time, the test machine of the corresponding machine type and the functional test file meeting the test requirements can be selected according to the updated configuration file for testing, at this time, a plurality of different test genuine machines can be tested at the same time, that is, the same automated test script can be run on different test genuine machines at the same time, and then an automated test result is obtained.
The invention provides a multi-machine automatic testing method, which comprises the following steps: generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information; updating configuration files of the test cases according to the model information of the plurality of test machines respectively; and testing a plurality of testing machines through the updated test cases to obtain an automatic test result. The method and the device combine the model information of the machine for testing and further update the configuration file information in the test case, realize dynamic and flexible selection of the model of the test, meet the requirements of users more, and solve the problems that the work efficiency of the test is low and the test steps are complicated because the tests can only be operated on different models of the test one by one in the related art. Scripts of the same test case can be run on different real machines at the same time, so that compatibility test and quick regression test are realized; not only can online test be realized, but also a plurality of cases can be operated on a plurality of real machines to run the automation script.
As an optional embodiment of the present invention, in step S11, generating a test case according to the branch characteristic information input by the user specifically includes:
firstly, acquiring branch characteristic information input by a user, and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information; in this embodiment, in the process of creating a test case, a test case directory needs to be created first, and branch feature information input by a user is obtained in the test case directory through a shell technology, where the branch feature information may be git address information and branch identification information, and is used to pull a corresponding automated test script in a preset gitlab warehouse, and the preset database may be a preset gitlab warehouse and is used to store an initial automated test script.
Secondly, inputting a preset tool kit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path. In this embodiment, the preset toolkit may include a mobile phone driving tool, a test report generating tool, and a screenshot tool, and may be called by a preset language tool, and then a test is performed on a test machine. The preset language tool may be python language, etc., and the embodiment of the present invention does not specifically limit the language tool, and those skilled in the art may specifically determine the preset language tool according to the actual situation.
Specifically, the address of the server and the preset storage path in the configuration file may be addresses of the mobile phone driving tool connected to the server, the server may be a device that directly drives each testing real machine to perform testing, and the preset storage path may be a storage path of a test log report.
According to the multi-machine automatic testing method provided by the embodiment of the invention, the branch characteristic information input by the user and the preset toolkit are combined to construct and generate the test case meeting the testing requirements of the user, the test case can be generated according to the extracted automatic test script, the preset toolkit and the configuration file, the target automatic test script can be dynamically and flexibly selected, and the compatibility test can be carried out on different testing machines, wherein the testing machine is also a target real machine.
As an alternative embodiment of the present invention, the step S12, updating the configuration file of the test case according to the model information of the multiple test machines, specifically includes:
firstly, obtaining model information and test instruction information of a plurality of test machines; in this embodiment, the model information of the multiple testing machines may be the testing machines still on line at this time, and the online testing machines may be obtained in real time by executing the local shell command and in an adb-devices manner; the test instruction information can be test requirements input by a user and can comprise model information which the user wants to test; for example, by executing a local shell command and an adb-devices mode, the model information of the online testing machine at the moment can be determined to be VIVO V1922A, HUAWEI SEA-AL10 and MI 9; the test command information of the user may be a test machine that tests only the huafei. The online test machine may mean a test machine that has been connected to the backend device, the server, and the frontend device and can be detected by the adb command.
Secondly, determining target model information according to the model information and the test instruction; in this embodiment, the target model information, that is, the model of the testing machine to be selected in the subsequent testing process, is determined according to the model information of the testing machine on line and the model information that the user wants to test, which are obtained through the above steps.
And thirdly, inputting the target model information into a configuration file to generate the configuration file of the updated test case. In this embodiment, the target model information is input into the configuration file, so that the backend device can specify which models of test machines are used in the test process. Specifically, a model that a user wants to test may be selected, the selected target model information may be input to the backend device in an array manner, and the configuration file may be updated according to the target model information.
The multi-machine automatic testing method provided by the embodiment of the invention combines the obtained model information of the online testing machine and the model information which the user wants to test, determines the target model information, updates the configuration file according to the target model information, can dynamically and flexibly select the target automatic testing script, and performs compatibility test on different testing machines, wherein the testing machine is also a target real machine.
As an optional embodiment of the present invention, after the step of inputting the target model information into the configuration file, the multi-machine automated testing method further includes:
firstly, traversing a target directory folder, and extracting a function test file conforming to a preset suffix format; in this embodiment, the target directory folder may be a designated folder preset by a user, and is used to store multiple function test files, that is, case cases, and is used to test different functions of the target software product, for example, a login function, a registration function, a file downloading function, and a friend adding function, where different function branches may be stored in different folders. Specifically, the backend device may directly traverse the target directory folder and extract the functional test file conforming to the preset suffix format. The predetermined suffix format may be determined according to a predetermined language tool, for example, the language tool used in running the test case may be python, and then the predetermined suffix format may be py.
And secondly, determining a target extraction path according to the functional test file conforming to the preset suffix format, inputting the target extraction path into a configuration file, and generating the configuration file of the updated test case. In this embodiment, the target extraction path may be an extraction path for extracting a functional test file meeting the requirement. For example, a test3.py file is fetched under a test3 file, at which time the target fetch path may be test3/test3. py; a test3.py file is fetched under the test3 file and a test32.py file is fetched under the test3.py file, and at this time, the target fetch path may be test3/test3.py/test32. py.
According to the multi-machine automatic testing method provided by the embodiment of the invention, the target directory folder can be directly traversed by combining with the back-end equipment, the function test file conforming to the preset suffix format is extracted, the configuration file is updated again according to the target path information, the target automatic test script can be dynamically and flexibly selected, and the compatibility test can be carried out on different testing machines, wherein the testing machine is also a target real machine.
As an alternative embodiment of the present invention, step S13, testing a plurality of test machines through the updated test case to obtain an automated test result, specifically includes: and calling a plurality of testing machines and the function test files conforming to the preset suffix format according to the updated test cases to generate an automatic test result. In this embodiment, the testing machine may be called according to the configuration file, that is, the udid of the testing machine may be traversed, and then the target automated testing script may be called according to the configuration file, that is, the script path may be traversed, information of the testing machine and information of the target automated testing script determined through traversal may be added to the preset multithread execution group, and the program command may be executed via the preset language tool to run each function testing file; specifically, when each function test file is operated, the packaged preset toolkit can be directly called, and the preset toolkit can acquire a mobile phone driving tool according to the updated configuration file, so that each test case and the back-end equipment perform service interaction, and then, the automatic test is completed. At the moment, each function test file can be operated on each testing machine, and the purposes of quick regression and compatibility test are achieved.
As an optional embodiment of the present invention, before the step of generating the automated test result, the multi-machine automated test method further includes:
creating a picture static file storage path; according to the automatic test script, calling a report generation tool and an automatic screenshot tool to generate a test log report; and generating a multi-machine automatic test result according to the test log report. In this embodiment, when the preset language tool is executed, a picture static file path may be created first, where the picture static file path may include creating a folder, saving a screenshot, determining a screenshot name, and the like, and a self. That is to say, after the test case is executed, the picture path can be intercepted through the regular expression according to the designated log content, and the test log report containing the screenshot path is generated, so that the effect of integrating the screenshot of the platform and the report is realized.
In the following, an implementation process of a multi-machine automatic testing method is described in detail with reference to an embodiment, where the multi-machine automatic testing method may be applied to a testing system shown in fig. 2, the testing system includes a front-end device 10, a back-end device 20, an interface device 40, and a plurality of testing machines 30, and each of the testing machines 30 may include an android mobile phone, an iOS mobile phone, and an iPad. The front-end device 10 is used for front-end interaction, receives a test requirement of a user, and converts the test requirement into a computer language format, the back-end device 20 may specifically execute the multi-machine automated test method described in the above embodiment, the interface device 40 is used to connect each test machine 30 with the back-end device 20, and the test machine 30 may be connected with the back-end device 20 through a data line, so as to run an automated test script.
Specifically, the process of applying the multi-machine automated testing method to the testing system shown in fig. 2 may be, as shown in fig. 3, acquiring, by the front-end device 10, the on-line testing machine 30 device at this time, and further acquiring corresponding target machine type information, and updating, by the back-end device 20, a configuration file according to the target machine type information; the front-end device 10 obtains the automated test script information, determines the functional test file information conforming to the preset suffix format, and then the back-end device 20 updates the configuration file again, at this time, the creation of the test machine 30 is completed. In the process of executing the test case, the back-end device 20 reads the updated configuration file, and then determines a target automation script file, and in the process of executing the automation script file, the server 50 may call the target testing machine 30, and drive each testing real machine type to test through a mobile phone driving tool; after the real testing machines execute the target automation script, a test log report is generated, the server 50 may generate the test log report and intercept the screenshot according to a preset toolkit in the configuration file, and then the test log report may be displayed in the front-end device 10.
An embodiment of the present invention provides a multi-machine automated testing apparatus, as shown in fig. 4, the apparatus includes:
the test case generating module 21 is configured to generate a test case according to branch feature information input by a user, where the branch feature information is used to represent branch address information and branch identification information; the detailed implementation can be referred to the related description of step S11 in the above method embodiment.
The configuration file updating module 22 is used for updating the configuration files of the test cases according to the model information of the plurality of testing machines respectively; the detailed implementation can be referred to the related description of step S12 in the above method embodiment.
And the test result generation module 23 is configured to test the multiple testing machines through the updated test case to obtain an automated test result. The detailed implementation can be referred to the related description of step S13 in the above method embodiment.
As an optional embodiment of the present invention, the test case generation module 21 in the apparatus specifically includes:
the automatic test script extraction submodule is used for acquiring branch characteristic information input by a user and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information;
and the test case generation submodule is used for inputting a preset toolkit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path.
The invention provides a multi-machine automatic testing device, which comprises: generating a test case according to branch characteristic information input by a user through a test case generating module 21, wherein the branch characteristic information is used for representing branch address information and branch identification information; updating the configuration files of the test cases respectively according to the model information of the plurality of testing machines through a configuration file updating module 22; the test result generating module 23 tests a plurality of test machines to obtain an automated test result. The method and the device combine the model information of the machine for testing and further update the configuration file information in the test case, realize dynamic and flexible selection of the model of the test, meet the requirements of users more, and solve the problems that the work efficiency of the test is low and the test steps are complicated because the tests can only be operated on different models of the test one by one in the related art. Scripts of the same test case can run on different real machines at the same time, so that compatibility test and quick regression test are realized; not only can online test be realized, but also a plurality of cases can be operated on a plurality of real machines to run the automation script. In addition, the test report of the integrated test screenshot can be displayed on line.
An embodiment of the present invention further provides a computer device, as shown in fig. 5, the computer device may include a processor 31 and a memory 32, where the processor 31 and the memory 32 may be connected by a bus or in another manner, and fig. 5 takes the example of connection by a bus as an example.
The processor 31 may be a Central Processing Unit (CPU). The Processor 31 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or combinations thereof.
The memory 32, which is a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the multi-machine automated testing method in the embodiment of the present invention (for example, the test case generating module 21, the configuration file updating module 22, and the test result generating module 23 shown in fig. 4). The processor 31 executes various functional applications and data processing of the processor by running non-transitory software programs, instructions and modules stored in the memory 32, so as to implement the multi-machine automated testing method in the above method embodiment.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor 31, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 32 may optionally include memory located remotely from the processor 31, and these remote memories may be connected to the processor 31 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The one or more modules are stored in the memory 32 and, when executed by the processor 31, perform a multi-machine automated testing method as in the embodiment shown in FIG. 1.
The details of the computer device can be understood with reference to the corresponding related descriptions and effects in the embodiment shown in fig. 1, and are not described herein again.
Optionally, an embodiment of the present invention further provides a non-transitory computer readable medium, where the non-transitory computer readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the multi-computer automated testing method described in any of the above embodiments, where the storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), or a Solid-State Drive (SSD); the storage medium may also comprise a combination of memories of the kind described above.
It should be understood that the above examples are only for clarity of illustration and are not intended to limit the embodiments. Other variations and modifications will be apparent to persons skilled in the art in light of the above description. And are neither required nor exhaustive of all embodiments. And obvious variations or modifications therefrom are within the scope of the invention.
Claims (10)
1. A multi-machine automatic test method is characterized by comprising the following steps:
generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information;
updating the configuration files of the test cases according to the model information of the plurality of test machines respectively;
and testing the plurality of testing machines through the updated test cases to obtain an automatic test result.
2. The method according to claim 1, wherein the step of generating the test case according to the branch feature information input by the user specifically includes:
acquiring branch characteristic information input by a user, and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information;
and inputting a preset tool kit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path.
3. The method according to claim 1, wherein the updating the configuration file of the test case according to the model information of the plurality of test machines respectively specifically comprises:
obtaining model information and test instruction information of a plurality of test machines;
determining target model information according to the model information and the test instruction;
and inputting the target model information into the configuration file, and generating the updated configuration file of the test case.
4. The method according to claim 3, further comprising, after the step of inputting the target model information into the configuration file:
traversing the target directory folder, and extracting a function test file conforming to a preset suffix format;
and determining a target extraction path according to the functional test file conforming to the preset suffix format, inputting the target extraction path into the configuration file, and generating the updated configuration file of the test case.
5. The method according to claim 1, wherein the testing the plurality of test machines through the updated test cases to obtain automated test results specifically comprises:
and calling a plurality of testing machines and the function test files conforming to the preset suffix format according to the updated test cases to generate an automatic test result.
6. The method of claim 5, further comprising, prior to the step of generating automated test results:
creating a picture static file storage path;
according to the automatic test script, calling a report generation tool and an automatic screenshot tool to generate a test log report;
and generating the multi-machine automatic test result according to the test log report.
7. A multi-machine automated testing device, comprising:
the test case generation module is used for generating a test case according to branch characteristic information input by a user, wherein the branch characteristic information is used for representing branch address information and branch identification information;
the configuration file updating module is used for updating the configuration files of the test cases according to the model information of the plurality of testing machines respectively;
and the test result generation module is used for testing the plurality of testing machines through the updated test cases to obtain an automatic test result.
8. The apparatus according to claim 7, wherein the test case generation module specifically includes:
the automatic test script extraction submodule is used for acquiring branch characteristic information input by a user and extracting a corresponding automatic test script from a preset branch database according to the branch characteristic information;
and the test case generation submodule is used for inputting a preset tool kit and a configuration file into the automatic test script to generate a test case, wherein the configuration file comprises an address of the server and a preset storage path.
9. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor to cause the at least one processor to perform the steps of the multi-machine automated testing method of any of claims 1-6.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the multi-machine automated testing method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010997724.3A CN112115055A (en) | 2020-09-21 | 2020-09-21 | Multi-machine automatic testing method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010997724.3A CN112115055A (en) | 2020-09-21 | 2020-09-21 | Multi-machine automatic testing method and device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112115055A true CN112115055A (en) | 2020-12-22 |
Family
ID=73801122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010997724.3A Pending CN112115055A (en) | 2020-09-21 | 2020-09-21 | Multi-machine automatic testing method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112115055A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732576A (en) * | 2021-01-08 | 2021-04-30 | 网易(杭州)网络有限公司 | Automatic testing method, device and equipment based on user interface |
CN113518146A (en) * | 2021-09-14 | 2021-10-19 | 云账户技术(天津)有限公司 | Method and device for acquiring mobile terminal information |
CN113672505A (en) * | 2021-08-05 | 2021-11-19 | 浙江万朋教育科技股份有限公司 | Multi-terminal interactive automatic regression testing method |
CN113986373A (en) * | 2021-10-21 | 2022-01-28 | 北京鲸鲮信息***技术有限公司 | Module, system and method for simultaneously operating automation scripts by multiple access devices |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040107415A1 (en) * | 2002-12-03 | 2004-06-03 | Konstantin Melamed | Web-interactive software testing management method and computer system including an integrated test case authoring tool |
CN108932194A (en) * | 2018-06-21 | 2018-12-04 | 北京京东金融科技控股有限公司 | Automated testing method, device, system, medium and electronic equipment |
CN109726107A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Test method, device, equipment and storage medium |
CN109885476A (en) * | 2018-12-14 | 2019-06-14 | 平安万家医疗投资管理有限责任公司 | Automated testing method and device, terminal and computer readable storage medium |
-
2020
- 2020-09-21 CN CN202010997724.3A patent/CN112115055A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040107415A1 (en) * | 2002-12-03 | 2004-06-03 | Konstantin Melamed | Web-interactive software testing management method and computer system including an integrated test case authoring tool |
CN109726107A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Test method, device, equipment and storage medium |
CN108932194A (en) * | 2018-06-21 | 2018-12-04 | 北京京东金融科技控股有限公司 | Automated testing method, device, system, medium and electronic equipment |
CN109885476A (en) * | 2018-12-14 | 2019-06-14 | 平安万家医疗投资管理有限责任公司 | Automated testing method and device, terminal and computer readable storage medium |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112732576A (en) * | 2021-01-08 | 2021-04-30 | 网易(杭州)网络有限公司 | Automatic testing method, device and equipment based on user interface |
CN112732576B (en) * | 2021-01-08 | 2024-06-04 | 网易(杭州)网络有限公司 | Automatic testing method, device and equipment based on user interface |
CN113672505A (en) * | 2021-08-05 | 2021-11-19 | 浙江万朋教育科技股份有限公司 | Multi-terminal interactive automatic regression testing method |
CN113672505B (en) * | 2021-08-05 | 2024-04-19 | 浙江万朋教育科技股份有限公司 | Multi-terminal interactive automatic regression testing method |
CN113518146A (en) * | 2021-09-14 | 2021-10-19 | 云账户技术(天津)有限公司 | Method and device for acquiring mobile terminal information |
CN113518146B (en) * | 2021-09-14 | 2021-12-03 | 云账户技术(天津)有限公司 | Method and device for acquiring mobile terminal information |
CN113986373A (en) * | 2021-10-21 | 2022-01-28 | 北京鲸鲮信息***技术有限公司 | Module, system and method for simultaneously operating automation scripts by multiple access devices |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112115055A (en) | Multi-machine automatic testing method and device and computer equipment | |
CN109302522B (en) | Test method, test device, computer system, and computer medium | |
US20170132023A1 (en) | Monitoring And Actuation Of View Controller Parameters To Reach Deep States Without Manual Developer Intervention | |
CN104317618A (en) | Firmware partitioning method and device | |
CN110955409B (en) | Method and device for creating resources on cloud platform | |
CN111563032A (en) | APP debugging method and device, computer equipment and storage medium | |
CN112231206A (en) | Script editing method for application program test, computer readable storage medium and test platform | |
CN112433940A (en) | Software development kit SDK testing method and related equipment | |
CN112052037A (en) | Application software development method, device, equipment and medium | |
KR101689984B1 (en) | Programmable controller, programmable controller system, and execute error information creation method | |
CN111694550A (en) | Page display control method, device and system | |
CN109067605B (en) | Storage subsystem fault diagnosis method and device, terminal and storage medium | |
CN114218072A (en) | Test script generation method and device, storage medium and computer equipment | |
CN111949510B (en) | Test processing method, device, electronic equipment and readable storage medium | |
CN116431522A (en) | Automatic test method and system for low-code object storage gateway | |
CN110825649A (en) | Application testing method, device, equipment and storage medium | |
CN111078529A (en) | Client write-in module testing method and device and electronic equipment | |
CN113238901B (en) | Multi-device automatic testing method and device, storage medium and computer device | |
CN113468058B (en) | Regression testing method and device for software as service platform and electronic equipment | |
CN115048295A (en) | Test method, test device, test terminal and computer readable storage medium | |
CN112486802A (en) | Flutter test auxiliary method and device | |
CN113608996B (en) | Mirror image compiling test method, system, device and readable storage medium | |
CN113094281B (en) | Test method and device for hybrid App | |
CN113836037B (en) | Interface interaction testing method, device, equipment and storage medium | |
CN113918458A (en) | Script processing method, server and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |