WO2019051937A1 - Method, apparatus and device for automatically configuring test machine, and storage medium - Google Patents

Method, apparatus and device for automatically configuring test machine, and storage medium Download PDF

Info

Publication number
WO2019051937A1
WO2019051937A1 PCT/CN2017/107845 CN2017107845W WO2019051937A1 WO 2019051937 A1 WO2019051937 A1 WO 2019051937A1 CN 2017107845 W CN2017107845 W CN 2017107845W WO 2019051937 A1 WO2019051937 A1 WO 2019051937A1
Authority
WO
WIPO (PCT)
Prior art keywords
test
configuration
machines
group
environment
Prior art date
Application number
PCT/CN2017/107845
Other languages
French (fr)
Chinese (zh)
Inventor
伍朗
伍振亮
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019051937A1 publication Critical patent/WO2019051937A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3664Environments for testing or debugging software
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present application relates to the field of computer testing technology, and in particular, to a test machine automatic configuration method, device, device and storage medium.
  • an ordinary computer or server needs to be a test machine, which often needs to be configured to implement it, such as installing software, configuring test packages, and configuring environment variables. Since the test environment and each test task need to be manually deployed and configured on each test machine, when the test task requires multiple test machines, the configuration task is rather heavy, and if it is configured by different personnel, it is easy to make mistakes or omissions.
  • the purpose of the application is to provide a tester automatic configuration method, device, device and storage medium, which can realize simultaneous configuration of multiple test machines without requiring the user to install the test machine one by one.
  • the application is implemented in this way.
  • the first aspect of the present application provides a tester automatic configuration method, where the tester automatic configuration method includes:
  • the configuration information of the test system is configured for the environment of the system under test.
  • test machine automatic configuration device includes:
  • connection module for connecting a plurality of sets of test machines, each set of test machines including a plurality of test machines
  • a configuration file obtaining module configured to obtain a configuration file, and obtain, according to the configuration file, an environment configuration installation package of each group of testing machines and configuration information of the system to be tested of each group of testing machines;
  • An environment configuration module configured to send a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to an environment configuration installation package corresponding thereto, and according to the The configuration information of the system under test of each test machine is configured for the environment of the system under test.
  • a third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
  • the configuration information of the test system is configured for the environment of the system under test.
  • a fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
  • each test machine sends the corresponding environment configuration installation package to each test machine in each group of test machines, so that each The test machine deploys the test environment according to its corresponding environment configuration installation package, and performs environment configuration on the system under test according to the configuration information of the test system of each test machine.
  • the automatic configuration method, device, device and storage medium of the test machine disclosed in the embodiment of the present application read the configuration information of the test case before executing the test case, and obtain the environment configuration installation package of the test machine and the system to be tested according to the configuration information.
  • the configuration information is sent to the test machine to send the corresponding test environment configuration installation package. It is not necessary to manually deploy the test machines one by one, which improves the configuration efficiency of the test machine.
  • FIG. 1 is a flowchart of a method for automatically configuring a test machine according to an embodiment of the present application
  • FIG. 2 is a specific flowchart of a method for automatically configuring a test machine according to another embodiment of the present application
  • FIG. 3 is a specific flowchart of a method for automatically configuring a test machine according to another embodiment of the present application
  • FIG. 5 is a schematic structural diagram of an apparatus for automatically configuring a test machine according to another embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an automatic configuration device for a testing machine according to another embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
  • the first embodiment of the present application provides a test machine automatic configuration method.
  • the test machine automatic configuration method includes:
  • Step S10 Connect multiple sets of test machines, each set includes multiple test machines.
  • step S10 optionally, the server of the continuous integration engine platform can be connected to multiple test machines for unified management. According to the characteristics of the continuous integration engine platform, after the corresponding test, the test results can be directly linked to the execution result page of the server's continuous integration engine platform for display.
  • step S10 the settings of each group of testing machines are classified by their corresponding systems to be tested. For the testing machine that tests the same system to be tested, there may be multiple testing machines that will test the same system under test. The machines are grouped together.
  • Step S20 Obtain a configuration file, and obtain configuration information of an environment configuration installation package of each group of test machines and a system to be tested of each group of test machines according to the configuration file.
  • the obtaining configuration file may load the configuration file according to the specified path or the dependency relationship with the test script, where the configuration file includes various information, including an environment configuration installation package of the testing machine and the system under test. Environment configuration information.
  • the configuration file and the test script are stored in different storage spaces, the configuration file can be used to obtain information about the test script, such as a storage location.
  • Step S30 Send a corresponding environment configuration installation package to each test machine in each group of test machines, so that each test machine is deployed in a test environment according to the environment configuration installation package corresponding thereto, and according to each group test machine
  • the configuration information of the system under test is configured for the environment of the system under test.
  • the environment deployment of the test machine can be set according to actual needs. For example, a test system needs to be deployed in two test environments, and the first test machine is set to 1-5. The first test environment, the second test machine 6-8 deploys the second test environment, and the test environment configuration installation package corresponding to the first test environment is sent to the first test machine 1-5 for the first test environment. The test environment configuration installation package corresponding to the second test environment is sent to the second group of test machines 6-8 for the second test environment deployment.
  • the configuration file further includes configuration information of the system under test, and the environment of the test system is configured at the same time as the environment of the test system, so that the system under test is in an initial state, the test machine and After the environment configuration of the system under test is completed, the test script can be executed, and it can be started on the test machine, or the test script can be sent to the test system for execution.
  • the automatic configuration method of the test machine in the embodiment of the present application reads the configuration information of the test case before executing the test case, and obtains the environment configuration installation package of the test machine and the configuration information of the system to be tested according to the configuration information, and sends the test information to each test machine.
  • the corresponding test environment is configured with the installation package, and there is no need to manually deploy the test machines one by one, which improves the configuration efficiency of the test machine.
  • the tester automatic configuration method further includes:
  • Step S40 When it is detected that the configuration file is updated, the user is prompted to update the test machine.
  • the configuration file may be automatically updated by being connected to other systems, and the configuration file may be detected to be updated according to the modification time of the detection location file or the size of the configuration file, when detecting the modification time of the matching location file or When the size of the configuration file changes, a prompt box is sent to the user to prompt the user to update.
  • Step S50 When receiving the instruction to update the test machine, send the updated configuration file to the test machine corresponding to the configuration file, and re-deploy the environment to the test machine.
  • step S40 optionally, when the user clicks the OK button in the prompt box, or clicks the update button set in the interface, the test machine is re-deployed according to an exposed environment installation manner according to an embodiment.
  • the embodiment of the present application issues an update prompt to the user.
  • the test machine corresponding to the updated configuration file is updated according to the user's instruction.
  • the tester automatic configuration method includes:
  • Step S11 Connect a plurality of sets of test machines, each set of test machines including a plurality of test machines.
  • the step S11 is the same as the step S10 in the above embodiment. For details, refer to the description of the above S10, and details are not described herein again.
  • Step S21 Obtain a configuration file, and obtain an environment configuration installation package of each group of test machines, configuration information of the system to be tested of each group of test machines, and test time of the test cases according to the configuration file.
  • test time of the test case is also obtained according to the configuration file, and the configuration file is parsed simultaneously.
  • the test case can be parsed.
  • the test time of the test case refers to the time for executing the test case. Since a configuration file may correspond to multiple test cases, the test time needs to be scheduled according to the actual situation. For example, the test of each test case is set according to the test priority. Time, the environment is installed on the test machine according to the test time.
  • test time since the number of test machines is limited, when there are a large number of test cases, it is necessary to set the test time so that the test machines are sequentially executed. In some cases, the test machines that execute different test cases also have conflicts, so the test time is acquired. At the same time, it is necessary to obtain the number of test machines, and set the test machine according to the test time and the number of test machines.
  • Step S31 Send a corresponding environment configuration installation package to each test machine of each group of test machines according to the test time of the test case, so that each test machine is deployed in a test environment according to the environment configuration installation package corresponding thereto, and The environment of the system under test is configured according to the configuration information of the system under test of each group of test machines.
  • step S31 optionally, the testing machine is divided into N groups, and each group of testing machines is configured in turn according to the testing time.
  • each set of test machines is set at the first preset time.
  • Each test machine in the test sends a corresponding environment configuration installation package, executes a test case, and when at least two groups of the test are completed, the test machines in at least two groups are combined at a second preset time to each group.
  • Each test machine in the test machine sends its corresponding environment configuration installation package, continues to execute the test case, and then executes all test cases.
  • the embodiment of the present application obtains the time of the test case and the number of the test machine while parsing the configuration file, and sets the test machine to execute the test case according to the information of the test case, so that the test machine performs the test according to the test time, thereby improving the test efficiency.
  • the tester automatic configuration method includes:
  • Step S12 Connect a plurality of sets of test machines, each set of test machines including a plurality of test machines.
  • the step S12 is the same as the step S10 in the above embodiment. For details, refer to the description of the above S10, and details are not described herein again.
  • Step S22 Obtain a configuration file, and obtain an environment configuration installation package of each group of test machines, configuration information of the system to be tested of each group of test machines, an address of the test case, and a test case test time according to the configuration file.
  • Step S22 is the same as that in step S21 in the above embodiment.
  • the difference between step S22 and step S21 is that the address of the test case is also obtained according to the configuration file.
  • the configuration file and the test are performed.
  • the use case is stored in different storage areas, the configuration file is read, the test case is read, and the test system is tested according to the test case.
  • the address of the test case is set in the configuration file, and the configuration file is parsed.
  • the test case can be directly read according to the address to obtain the information of the test case.
  • Step S32 Send a corresponding environment configuration installation package to each test machine of each group of test machines according to the test time of the test case, so that each test machine configures the installation package according to the corresponding environment. Perform test environment deployment and configure the environment of the system under test according to the configuration information of the system under test of each test machine.
  • the step S32 is the same as the step S30 in the foregoing embodiment. For details, refer to the description of the above S30, and details are not described herein again.
  • Step S33 Parsing the test case, obtaining the test case execution parameter, and testing the system under test according to the test case execution parameter.
  • the test case is parsed while parsing the configuration file, and the execution parameters of the test case are obtained.
  • the test machine is set according to the test case information, the test case is executed immediately, thereby improving the test efficiency.
  • the test case is tested in a time-ordered manner for the test case.
  • the test case may be sorted according to the priority of obtaining the test case, and then the test case may be used.
  • the test is performed. Specifically, the test case is parsed, the priority of the test case is set, and the test cases are sorted according to the priority, which includes the following steps:
  • the equivalence class set Q is initially prioritized, and the equivalence class qi is prioritized according to the priority division principle in (3);
  • the priority class is the data class test case from high to low - >Interface class test cases->Function class test cases->System class test cases;
  • the tester automatic configuration device 40 includes:
  • connection module 401 configured to connect a plurality of sets of test machines, each set of test machines includes a plurality of test machines;
  • the configuration file obtaining module 402 is configured to obtain a configuration file, and obtain, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system to be tested of each group of test machines;
  • the environment configuration module 403 is configured to send an environment configuration installation package corresponding to each test machine of each group of testing machines, so that each test machine is deployed in a test environment according to an environment configuration installation package corresponding thereto, and according to each The configuration information of the system under test of the group test machine is configured for the environment of the system under test.
  • the tester automatic configuration device 40 further includes:
  • the update prompting module 404 is configured to send a prompt to the user whether to update the testing machine when detecting that the configuration file is updated;
  • the update module 405 when receiving the instruction to update the test machine, is configured to send the updated configuration file to the test machine corresponding to the configuration file, and re-deploy the environment to the test machine and the tested system.
  • the configuration file obtaining module 402 obtains the configuration file, and obtains the environment configuration installation package of each group of test machines and the configuration information of the system to be tested of each group of test machines according to the configuration file, and further includes:
  • the environment configuration module 403 sends an environment configuration installation package corresponding to each test machine of each group of test machines, including:
  • the corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
  • the configuration file obtaining module 402 obtains the configuration file, and obtains the environment configuration installation package of each group of test machines and the configuration information of the system to be tested of each group of test machines according to the configuration file, and further includes:
  • the environment configuration module 403 sends an environment configuration installation package corresponding to each test machine of each group of test machines, including:
  • the corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case and the number of test machines that execute the test case.
  • Another embodiment of the present application provides a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement the tester automatic configuration method in the above embodiments To avoid repetition, we will not repeat them here. Or, the computer is readable When the instructions are executed by the processor, the functions of the modules/units in the automatic configuration device of the testing machine in the above embodiments are implemented. To avoid repetition, details are not described herein.
  • Fig. 7 is a schematic diagram of a terminal device in this embodiment.
  • the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and operable on the processor 60.
  • the processor 60 when executing the computer readable instructions 62, implements various steps of a tester autoconfiguration method of the above-described embodiments, such as steps S10, S20, and S30 shown in FIG.
  • the processor 60 executes the computer readable instructions 62
  • the functions of each module/unit of the tester automatic configuration device in the above embodiment are implemented, as shown in FIG. 6, the connection module 401, the configuration file acquisition module 402, and the environment configuration module 403. The function.
  • computer readable instructions 62 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 61 and executed by processor 60 to perform the data processing process of the present application.
  • the one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 62 in the terminal device 6.
  • computer readable instructions 62 may be partitioned into a connection module, a profile acquisition module, an environment configuration module (a module in a virtual device).
  • the terminal device 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, the processor 60, the memory 61. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 6, and does not constitute a limitation of the terminal device 6, and may include more or less components than those illustrated, or combine some components, or different components.
  • the terminal device may further include an input/output device, a network access device, a bus, and the like.
  • the processor 60 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
  • the general purpose processor can be a microprocessor or the process
  • the device can also be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6.
  • the memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on.
  • the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device.
  • the memory 61 is used to store computer readable instructions and other programs and data required by the terminal device.
  • the memory 61 can also be used to temporarily store data that has been output or is about to be output.
  • each functional unit and module in the foregoing system may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware.
  • Formal implementation can also be implemented in the form of software functional units.
  • the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application.
  • the disclosed apparatus/terminal device and method can be implemented in other ways.
  • the device/terminal device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units.
  • components may be combined or integrated into another system, or some features may be omitted or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated modules/units if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium.
  • the computer readable instructions when executed by a processor, may implement the steps of the various method embodiments described above.
  • the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like.
  • the computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media.
  • a recording medium a USB flash drive
  • a removable hard drive a magnetic disk, an optical disk
  • a computer memory a read only memory (ROM, Read-Only) Memory
  • RAM random access memory
  • electrical carrier signals telecommunications signals
  • software distribution media can be carried out according to the requirements of legislation and patent practice in a jurisdiction. Appropriate increases and decreases, such as in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunication signals in accordance with legislation and patent practice.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Provided are a method, apparatus and device for automatically configuring a test machine, and a storage medium. The method for automatically configuring a test machine comprises: connecting to a plurality of groups of test machines, wherein each group of test machines comprises a plurality of test machines (S10); acquiring a configuration file, and acquiring an environment configuration installation package of each group of test machines and configuration information about a tested system of each group of test machines according to the configuration file (S20); and sending the corresponding environment configuration installation package to each test machine in each group of test machines, so that each test machine performs test environment deployment according to the environment configuration installation package corresponding thereto, and performs environment configuration on the tested system according to the configuration information about the tested system of each group of test machines (S30). In the method, a corresponding test environment configuration installation package can be automatically issued to each test machine, without the need for manual deployment for test machines one by one, thereby improving the configuration efficiency of the test machines.

Description

测试机自动配置方法、装置、设备及存储介质Test machine automatic configuration method, device, device and storage medium
本专利申请以2017年9月14日提交的申请号为201710827340.5,名称为“测试任务自动化管理方法、装置、设备及存储介质”的中国发明专利申请为基础,并要求其优先权。This patent application is based on the Chinese invention patent application filed on September 14, 2017, with the application number of 201710827340.5, entitled "Test task automation management method, device, equipment and storage medium", and requires priority.
技术领域Technical field
本申请涉及计算机测试技术领域,尤其涉及一种测试机自动配置方法、装置、设备及存储介质。The present application relates to the field of computer testing technology, and in particular, to a test machine automatic configuration method, device, device and storage medium.
背景技术Background technique
目前,一台普通的电脑或者服务器需要成为一台测试机,往往需要对其进行配置才能实现,例如安装软件、配置测试包以及配置环境变量等。由于测试环境以及各测试任务需要人工进行部署并配置到各测试机上,当测试任务需要多台测试机时,配置任务比较繁重,如果由不同人员进行配置的时候,很容易出错或者遗漏。Currently, an ordinary computer or server needs to be a test machine, which often needs to be configured to implement it, such as installing software, configuring test packages, and configuring environment variables. Since the test environment and each test task need to be manually deployed and configured on each test machine, when the test task requires multiple test machines, the configuration task is rather heavy, and if it is configured by different personnel, it is easy to make mistakes or omissions.
发明内容Summary of the invention
本申请的目的在于提供一种测试机自动配置方法、装置、设备及存储介质,能够实现不需要用户逐台的安装测试机而对多台测试机同时进行配置。The purpose of the application is to provide a tester automatic configuration method, device, device and storage medium, which can realize simultaneous configuration of multiple test machines without requiring the user to install the test machine one by one.
本申请是这样实现的,本申请第一方面提供一种测试机自动配置方法,所述测试机自动配置方法包括:The application is implemented in this way. The first aspect of the present application provides a tester automatic configuration method, where the tester automatic configuration method includes:
连接多组测试机,每组测试机包括多台测试机;Connecting multiple sets of test machines, each set including multiple test machines;
获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息; Obtaining a configuration file, and acquiring, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system under test of each group of test machines;
向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Sending a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to its corresponding environment configuration installation package, and according to the test group of each test machine The configuration information of the test system is configured for the environment of the system under test.
本申请第二方面提供一种测试机自动配置装置,所述测试机自动配置装置包括:The second aspect of the present application provides a test machine automatic configuration device, where the test machine automatic configuration device includes:
连接模块,用于连接多组测试机,每组测试机包括多台测试机;a connection module for connecting a plurality of sets of test machines, each set of test machines including a plurality of test machines;
配置文件获取模块,用于获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;a configuration file obtaining module, configured to obtain a configuration file, and obtain, according to the configuration file, an environment configuration installation package of each group of testing machines and configuration information of the system to be tested of each group of testing machines;
环境配置模块,用于向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。An environment configuration module, configured to send a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to an environment configuration installation package corresponding thereto, and according to the The configuration information of the system under test of each test machine is configured for the environment of the system under test.
本申请第三方面提供一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:A third aspect of the present application provides a terminal device including a memory, a processor, and computer readable instructions stored in the memory and executable on the processor, the processor executing the computer readable instructions Implement the following steps:
连接多组测试机,每组测试机包括多台测试机;Connecting multiple sets of test machines, each set including multiple test machines;
获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;Obtaining a configuration file, and acquiring, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system under test of each group of test machines;
向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Sending a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to its corresponding environment configuration installation package, and according to the test group of each test machine The configuration information of the test system is configured for the environment of the system under test.
本申请第四方面提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令被处理器执行时实现如下步骤:A fourth aspect of the present application provides a computer readable storage medium storing computer readable instructions that, when executed by a processor, implement the following steps:
连接多组测试机,每组测试机包括多台测试机;Connecting multiple sets of test machines, each set including multiple test machines;
获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;Obtaining a configuration file, and acquiring, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system under test of each group of test machines;
向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每 台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Send the corresponding environment configuration installation package to each test machine in each group of test machines, so that each The test machine deploys the test environment according to its corresponding environment configuration installation package, and performs environment configuration on the system under test according to the configuration information of the test system of each test machine.
本申请实施例揭示的一种测试机自动配置方法、装置、设备及存储介质,在执行测试用例前读取测试用例的配置信息,根据配置信息获取测试机的环境配置安装包以及被测系统的配置信息,向各测试机下发相应的测试环境配置安装包,无需人工对逐个测试机进行部署,提高了对测试机的配置效率。The automatic configuration method, device, device and storage medium of the test machine disclosed in the embodiment of the present application read the configuration information of the test case before executing the test case, and obtain the environment configuration installation package of the test machine and the system to be tested according to the configuration information. The configuration information is sent to the test machine to send the corresponding test environment configuration installation package. It is not necessary to manually deploy the test machines one by one, which improves the configuration efficiency of the test machine.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only the present application. For some embodiments, other drawings may be obtained from those of ordinary skill in the art without departing from the drawings.
图1是本申请一种实施例提供的一种测试机自动配置方法的流程图;1 is a flowchart of a method for automatically configuring a test machine according to an embodiment of the present application;
图2是本申请另一种实施例提供的一种测试机自动配置方法的具体流程图;2 is a specific flowchart of a method for automatically configuring a test machine according to another embodiment of the present application;
图3是本申请另一种实施例提供的一种测试机自动配置方法的具体流程图;3 is a specific flowchart of a method for automatically configuring a test machine according to another embodiment of the present application;
图4是本申请另一种实施例提供的一种测试机自动配置方法的具体流程图;4 is a specific flowchart of a method for automatically configuring a test machine according to another embodiment of the present application;
图5是本申请另一种实施例提供的一种测试机自动配置装置的结构示意图;FIG. 5 is a schematic structural diagram of an apparatus for automatically configuring a test machine according to another embodiment of the present application; FIG.
图6是本申请另一种实施例提供的一种测试机自动配置装置的结构示意图;6 is a schematic structural diagram of an automatic configuration device for a testing machine according to another embodiment of the present application;
图7是本申请另一种实施例提供的终端设备的结构示意图。FIG. 7 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
具体实施方式 Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
为了说明本申请的技术方案,下面通过具体实施例来进行说明。In order to explain the technical solutions of the present application, the following description will be made by way of specific embodiments.
本申请第一实施例提供一种测试机自动配置方法,如图1所示,测试机自动配置方法包括:The first embodiment of the present application provides a test machine automatic configuration method. As shown in FIG. 1 , the test machine automatic configuration method includes:
步骤S10.连接多组测试机,每组测试机包括多台测试机。Step S10. Connect multiple sets of test machines, each set includes multiple test machines.
在步骤S10中,可选的,可以基于持续集成引擎平台的服务器与多台测试机连接,以进行统一管理。依据持续集成引擎平台的特性,在进行相应测试后,测试结果可以直接关联到服务器的持续集成引擎平台的执行结果页面进行显示。In step S10, optionally, the server of the continuous integration engine platform can be connected to multiple test machines for unified management. According to the characteristics of the continuous integration engine platform, after the corresponding test, the test results can be directly linked to the execution result page of the server's continuous integration engine platform for display.
在步骤S10中,每组测试机的设定是通过其对应的被测系统进行分类的,对于对同一被测系统进行测试的测试机可以为多台,将对同一被测系统进行测试的测试机分成一组。In step S10, the settings of each group of testing machines are classified by their corresponding systems to be tested. For the testing machine that tests the same system to be tested, there may be multiple testing machines that will test the same system under test. The machines are grouped together.
步骤S20.获取配置文件,并根据配置文件获取每组测试机的环境配置安装包以及每组测试机的被测系统的配置信息。Step S20: Obtain a configuration file, and obtain configuration information of an environment configuration installation package of each group of test machines and a system to be tested of each group of test machines according to the configuration file.
在步骤S20中,可选的,获取配置文件可以根据所指定的路径或者与测试脚本的依赖关系加载配置文件,配置文件中包括多种信息,包括测试机的环境配置安装包以及被测系统的环境配置信息,虽然配置文件与测试脚本分别存储于不同存储空间,但是可以通过配置文件获取测试脚本的相关信息,例如存储地点等等。In step S20, optionally, the obtaining configuration file may load the configuration file according to the specified path or the dependency relationship with the test script, where the configuration file includes various information, including an environment configuration installation package of the testing machine and the system under test. Environment configuration information. Although the configuration file and the test script are stored in different storage spaces, the configuration file can be used to obtain information about the test script, such as a storage location.
步骤S30.向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据每组测试机的被测系统的配置信息对被测系统进行环境配置。Step S30. Send a corresponding environment configuration installation package to each test machine in each group of test machines, so that each test machine is deployed in a test environment according to the environment configuration installation package corresponding thereto, and according to each group test machine The configuration information of the system under test is configured for the environment of the system under test.
在步骤S30中,可选的,对测试机的环境部署可以根据实际需要进行设置,例如,某一被测系统需要进行两个测试环境部署,并设置第一组测试机1-5部 署第一测试环境,第二组测试机6-8部署第二测试环境,则将第一测试环境对应的测试环境配置安装包下发至第一组测试机1-5以进行第一测试环境部署,将第二测试环境对应的测试环境配置安装包下发至第二组测试机6-8以进行第二测试环境部署。In step S30, optionally, the environment deployment of the test machine can be set according to actual needs. For example, a test system needs to be deployed in two test environments, and the first test machine is set to 1-5. The first test environment, the second test machine 6-8 deploys the second test environment, and the test environment configuration installation package corresponding to the first test environment is sent to the first test machine 1-5 for the first test environment. The test environment configuration installation package corresponding to the second test environment is sent to the second group of test machines 6-8 for the second test environment deployment.
在步骤S30中,可选的,配置文件中还包括被测系统的配置信息,在对测试机进行环境配置的同时对被测系统也进行环境配置,使被测系统处于初始状态,测试机和被测系统的环境配置完成后,再开始执行测试脚本,可以在测试机上启动,也可以将测试脚本发送到测试系统进行执行。In step S30, optionally, the configuration file further includes configuration information of the system under test, and the environment of the test system is configured at the same time as the environment of the test system, so that the system under test is in an initial state, the test machine and After the environment configuration of the system under test is completed, the test script can be executed, and it can be started on the test machine, or the test script can be sent to the test system for execution.
本申请实施例一种测试机自动配置方法,在执行测试用例前读取测试用例的配置信息,根据配置信息获取测试机的环境配置安装包以及被测系统的配置信息,向各测试机下发相应的测试环境配置安装包,无需人工对逐个测试机进行部署,提高了对测试机的配置效率。The automatic configuration method of the test machine in the embodiment of the present application reads the configuration information of the test case before executing the test case, and obtains the environment configuration installation package of the test machine and the configuration information of the system to be tested according to the configuration information, and sends the test information to each test machine. The corresponding test environment is configured with the installation package, and there is no need to manually deploy the test machines one by one, which improves the configuration efficiency of the test machine.
在上述第一实施例实施例的基础上,作为另一种实施方式,如图2所示,测试机自动配置方法还包括:On the basis of the foregoing first embodiment, as another implementation manner, as shown in FIG. 2, the tester automatic configuration method further includes:
步骤S40.当检测到配置文件发生更新时,向用户发出是否更新测试机的提示。Step S40. When it is detected that the configuration file is updated, the user is prompted to update the test machine.
在步骤S40中,可选的,配置文件可以通过与其他系统相连自动发生更新,可以根据检测位置文件的修改时间或者配置文件的大小检测配置文件是否发生更新,当检测搭配位置文件的修改时间或者配置文件的大小发生变化时,即向用户发出提示框,提示用户进行更新。In step S40, optionally, the configuration file may be automatically updated by being connected to other systems, and the configuration file may be detected to be updated according to the modification time of the detection location file or the size of the configuration file, when detecting the modification time of the matching location file or When the size of the configuration file changes, a prompt box is sent to the user to prompt the user to update.
步骤S50.当接收到更新测试机的指令时,向与配置文件对应的测试机发送更新后的配置文件,对测试机重新进行环境部署。Step S50. When receiving the instruction to update the test machine, send the updated configuration file to the test machine corresponding to the configuration file, and re-deploy the environment to the test machine.
在步骤S40中,可选的,当用户点击提示框中的确定按钮时,或者点击在界面中设置的更新按钮时,根据实施例一种公开的环境安装方式重新对测试机进行环境部署。 In step S40, optionally, when the user clicks the OK button in the prompt box, or clicks the update button set in the interface, the test machine is re-deployed according to an exposed environment installation manner according to an embodiment.
本申请实施方式在配置文件发生更新时,向用户发出更新提示,当用户确定更新时,根据用户的指令对与发生更新的配置文件所对应的测试机进行更新。When the configuration file is updated, the embodiment of the present application issues an update prompt to the user. When the user determines the update, the test machine corresponding to the updated configuration file is updated according to the user's instruction.
在上述第一实施例的基础上,作为另一种实施例,如图3所示,测试机自动配置方法包括:On the basis of the foregoing first embodiment, as another embodiment, as shown in FIG. 3, the tester automatic configuration method includes:
步骤S11.连接多组测试机,每组测试机包括多台测试机。Step S11. Connect a plurality of sets of test machines, each set of test machines including a plurality of test machines.
步骤S11与上述实施例中的步骤S10相同,参见上述S10的描述,在此不再赘述。The step S11 is the same as the step S10 in the above embodiment. For details, refer to the description of the above S10, and details are not described herein again.
步骤S21.获取配置文件,并根据配置文件获取每组测试机的环境配置安装包、每组测试机的被测系统的配置信息以及测试用例的测试时间。Step S21. Obtain a configuration file, and obtain an environment configuration installation package of each group of test machines, configuration information of the system to be tested of each group of test machines, and test time of the test cases according to the configuration file.
步骤S21与上述实施例中的步骤S20中相同的部分,可以参见上述S20的描述,步骤S21与步骤S20中的不同点在于还根据配置文件获取测试用例的测试时间,在对配置文件解析的同时可以解析测试用例,该测试用例的测试时间指执行测试用例的时间,由于一个配置文件可能对应多个测试用例,需要根据实际情况安排测试时间,例如,根据测试优先级设置每个测试用例的测试时间,根据测试时间依次对测试机进行环境安装。For the same part of the step S20 in the step S20 of the above embodiment, refer to the description of the above S20. The difference between the step S21 and the step S20 is that the test time of the test case is also obtained according to the configuration file, and the configuration file is parsed simultaneously. The test case can be parsed. The test time of the test case refers to the time for executing the test case. Since a configuration file may correspond to multiple test cases, the test time needs to be scheduled according to the actual situation. For example, the test of each test case is set according to the test priority. Time, the environment is installed on the test machine according to the test time.
进一步的,由于测试机的数量有限,当测试用例比较多时,需要设定测试时间使测试机依次执行,在某些情况下,执行不同测试用例的测试机也会产生冲突,因此在获取测试时间的同时还需要获取测试机的数量,同时根据测试时间和测试机的数量设置测试机。Further, since the number of test machines is limited, when there are a large number of test cases, it is necessary to set the test time so that the test machines are sequentially executed. In some cases, the test machines that execute different test cases also have conflicts, so the test time is acquired. At the same time, it is necessary to obtain the number of test machines, and set the test machine according to the test time and the number of test machines.
步骤S31.根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据每组测试机的被测系统的配置信息对被测系统进行环境配置。Step S31. Send a corresponding environment configuration installation package to each test machine of each group of test machines according to the test time of the test case, so that each test machine is deployed in a test environment according to the environment configuration installation package corresponding thereto, and The environment of the system under test is configured according to the configuration information of the system under test of each group of test machines.
在步骤S31中,可选的,将测试机分成N组,按照测试时间依次对每组测试机进行进行配置。 In step S31, optionally, the testing machine is divided into N groups, and each group of testing machines is configured in turn according to the testing time.
进一步的,当获取到测试机的数量时,由于测试机的数量不能满足同时执行所有测试用例,对于某些测试用例需要重复使用测试机,具体的,在第一预设时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,执行测试用例,当其中的至少两组完成测试时,将其中至少两组中的测试机进行组合在第二预设时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,继续执行测试用例,之后执行完成所有测试用例。Further, when the number of test machines is obtained, since the number of test machines cannot satisfy all the test cases at the same time, the test machine needs to be reused for some test cases, specifically, each set of test machines is set at the first preset time. Each test machine in the test sends a corresponding environment configuration installation package, executes a test case, and when at least two groups of the test are completed, the test machines in at least two groups are combined at a second preset time to each group. Each test machine in the test machine sends its corresponding environment configuration installation package, continues to execute the test case, and then executes all test cases.
本申请实施例在解析配置文件的同时获取测试用例的时间以及测试机的数量,根据测试用例的信息设置测试机执行测试用例,使测试机按照测试时间进行测试,提高了测试效率。The embodiment of the present application obtains the time of the test case and the number of the test machine while parsing the configuration file, and sets the test machine to execute the test case according to the information of the test case, so that the test machine performs the test according to the test time, thereby improving the test efficiency.
在上述第一实施例实施例的基础上,作为另一种实施例,如图4所示,测试机自动配置方法包括:On the basis of the foregoing first embodiment, as another embodiment, as shown in FIG. 4, the tester automatic configuration method includes:
步骤S12.连接多组测试机,每组测试机包括多台测试机。Step S12. Connect a plurality of sets of test machines, each set of test machines including a plurality of test machines.
步骤S12与上述实施例中的步骤S10相同,参见上述S10的描述,在此不再赘述。The step S12 is the same as the step S10 in the above embodiment. For details, refer to the description of the above S10, and details are not described herein again.
步骤S22.获取配置文件,并根据配置文件获取每组测试机的环境配置安装包、每组测试机的被测系统的配置信息、测试用例的地址以及测试用例的测试时间。Step S22: Obtain a configuration file, and obtain an environment configuration installation package of each group of test machines, configuration information of the system to be tested of each group of test machines, an address of the test case, and a test case test time according to the configuration file.
步骤S22与上述实施例中的步骤S21中相同的部分,可以参见上述S21的描述,步骤S22与步骤S21中的不同点在于还根据配置文件获取测试用例的地址,正常情况下,配置文件和测试用例存储在不同的储存区域,读取配置文件后再读取测试用例,根据测试用例执行对被测系统的测试,本步骤中在配置文件中设置测试用例的地址,在对配置文件进行解析的过程中可以直接根据地址读取测试用例,获取测试用例的信息。Step S22 is the same as that in step S21 in the above embodiment. For the description of S21, the difference between step S22 and step S21 is that the address of the test case is also obtained according to the configuration file. Normally, the configuration file and the test are performed. The use case is stored in different storage areas, the configuration file is read, the test case is read, and the test system is tested according to the test case. In this step, the address of the test case is set in the configuration file, and the configuration file is parsed. In the process, the test case can be directly read according to the address to obtain the information of the test case.
步骤S32.根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包 进行测试环境部署,并根据每组测试机的被测系统的配置信息对被测系统进行环境配置。Step S32. Send a corresponding environment configuration installation package to each test machine of each group of test machines according to the test time of the test case, so that each test machine configures the installation package according to the corresponding environment. Perform test environment deployment and configure the environment of the system under test according to the configuration information of the system under test of each test machine.
步骤S32与上述实施例中的步骤S30相同,参见上述S30的描述,在此不再赘述。The step S32 is the same as the step S30 in the foregoing embodiment. For details, refer to the description of the above S30, and details are not described herein again.
步骤S33.对测试用例进行解析,获取测试用例执行参数,根据测试用例执行参数,对被测系统进行测试。Step S33. Parsing the test case, obtaining the test case execution parameter, and testing the system under test according to the test case execution parameter.
本申请实施例在解析配置文件的同时解析测试用例,获取测试用例的执行参数,当根据测试用例的信息设置测试机完成时即马上执行测试用例,提高了测试效率。In the embodiment of the present application, the test case is parsed while parsing the configuration file, and the execution parameters of the test case are obtained. When the test machine is set according to the test case information, the test case is executed immediately, thereby improving the test efficiency.
进一步的,在上述实施例中采用对测试用例按照时间排序的方式对测试用例进行测试,作为另一种实施方式,还可以采用根据获取测试用例优先级的方式对测试用例进行排序再对测试用例进行测试,具体的,对测试用例进行解析,设定测试用例排序的优先级,并根据优先级对测试用例进行排序,具体包括以下几个步骤:Further, in the foregoing embodiment, the test case is tested in a time-ordered manner for the test case. As another implementation manner, the test case may be sorted according to the priority of obtaining the test case, and then the test case may be used. The test is performed. Specifically, the test case is parsed, the priority of the test case is set, and the test cases are sorted according to the priority, which includes the following steps:
(1)获取多个测试用例集。(1) Obtain multiple test case sets.
(2)为测试用例集构造等价类集合Q={q1,q2,...,qi,...,qn},其中qi={ti1,ti2,...,tim};i=1,2,...,n;m=1,2,...,n;qi为第i个等价类,tim为第i个等价类包含的第m个测试用例,n为等价类个数,m为第i个等价类包含的测试用例个数;每一个测试用例tij其所覆盖的需求的数目req[j],j=1,2,...,m;等价类集合根据测试用例的类型来划分;(2) Construct a set of equivalence classes Q={q1,q2,...,qi,...,qn} for the test case set, where qi={ti1,ti2,...,tim};i=1 , 2,...,n;m=1,2,...,n;qi is the i-th equivalence class, tim is the mth test case contained in the i-th equivalence class, n is equivalent The number of classes, m is the number of test cases included in the i-th equivalence class; the number of requirements covered by each test case tij req[j], j=1, 2,...,m; Class collections are divided according to the type of test case;
(3)为每个等价类qi构造一个优先级数Pi、一个缺陷发现标识Bug[i]和一个缺陷等级Lev[i];根据等价类qi中测试用例的类型将优先级数Pi定为Pi=1,即系统类测试用例,或者Pi=2,即功能类测试用例,或者Pi=3,即接口类测试用例,或者Pi=4,即数据类测试用例;缺陷发现标识Bug[i]的类型为布尔型,Bug[i]=1表示第i个等价类qi发现了软件缺陷,Bug[i]=0表示第i个等价类qi未发现软件缺陷;缺陷等级Lev[i]表示不同类型的缺陷具有不同的 等级;(3) Constructing a priority number Pi, a defect discovery identifier Bug[i], and a defect level Lev[i] for each equivalence class qi; setting the priority number Pi according to the type of the test case in the equivalence class qi Pi=1, that is, the system test case, or Pi=2, that is, the function test case, or Pi=3, that is, the interface test case, or Pi=4, that is, the data test case; the defect discovery flag Bug[i The type is Boolean, Bug[i]=1 indicates that the i-th equivalence class qi has found a software defect, Bug[i]=0 indicates that the i-th equivalence class qi has not found a software defect; defect level Lev[i ] indicates that different types of defects have different grade;
(4)将等价类集合Q进行初始优先级排序,根据(3)中的优先级划分原则,对等价类qi进行优先级排序;优先级由高至低的顺序为数据类测试用例->接口类测试用例->功能类测试用例->系统类测试用例;(4) The equivalence class set Q is initially prioritized, and the equivalence class qi is prioritized according to the priority division principle in (3); the priority class is the data class test case from high to low - >Interface class test cases->Function class test cases->System class test cases;
(5)从任意等价类qi中选取一个测试用例tij对被测软件进行测试,如测试过程中发现软件缺陷,则缺陷发现标识Bug[i]=1;反之,则缺陷发现标识Bug[i]=0;(5) Select a test case tij from any equivalence class qi to test the software under test. If a software defect is found during the test, the defect discovery flag Bug[i]=1; otherwise, the defect discovery flag Bug[i] ]=0;
(6)判断Bug[i]的值是否为1,如为1则改变优先级数Pi,具体为Pi=Lev[i]+初始优先级数Pi,反之,将优先级数Pi保持不变;(6) determining whether the value of Bug[i] is 1, and if it is 1, changing the priority number Pi, specifically Pi=Lev[i]+the initial priority number Pi, and conversely, keeping the priority number Pi unchanged;
(7)依据(6)中得到的各个等价类最终的优先级数,根据优先级数对等价类进行排序,形成等价类序列;(7) sorting the equivalence classes according to the priority number according to the final priority number of each equivalence class obtained in (6) to form an equivalence class sequence;
(8)找出等价类qi的最小测试用例集Ti,(8) Find the minimum test case set Ti of the equivalence class qi,
(9)根据在(8)中得到的Ti中每一个测试用例tij所覆盖的需求数目req[j]的大小,对测试用例进行排序,覆盖需求数目多的测试用例排在前面,然后将排序后的结果插入到等价类序列中,得到排序后测试用例集,根据排序后的测试用例集依次对被测系统进行测试。(9) Sorting the test cases according to the number of required req[j] covered by each test case tij in Ti obtained in (8), the test cases covering a large number of demand cases are ranked first, and then sorted The subsequent result is inserted into the equivalence class sequence to obtain the sorted test case set, and the tested system is tested in turn according to the sorted test case set.
本申请另一种实施例提供一种测试机自动配置装置40,如图5所示,测试机自动配置装置40包括:Another embodiment of the present application provides a tester automatic configuration device 40. As shown in FIG. 5, the tester automatic configuration device 40 includes:
连接模块401,用于连接多组测试机,每组测试机包括多台测试机;a connection module 401, configured to connect a plurality of sets of test machines, each set of test machines includes a plurality of test machines;
配置文件获取模块402,用于获取配置文件,并根据配置文件获取每组测试机的环境配置安装包以及每组测试机的被测系统的配置信息;The configuration file obtaining module 402 is configured to obtain a configuration file, and obtain, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system to be tested of each group of test machines;
环境配置模块403,用于向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据每组测试机的被测系统的配置信息对被测系统进行环境配置。The environment configuration module 403 is configured to send an environment configuration installation package corresponding to each test machine of each group of testing machines, so that each test machine is deployed in a test environment according to an environment configuration installation package corresponding thereto, and according to each The configuration information of the system under test of the group test machine is configured for the environment of the system under test.
进一步的,如图6所示,测试机自动配置装置40还包括: Further, as shown in FIG. 6, the tester automatic configuration device 40 further includes:
更新提示模块404,当检测到配置文件发生更新时,用于向用户发出是否更新测试机的提示;The update prompting module 404 is configured to send a prompt to the user whether to update the testing machine when detecting that the configuration file is updated;
更新模块405,当接收到更新测试机的指令时,用于向与配置文件对应的测试机发送更新后的配置文件,对测试机及被测系统重新进行环境部署。The update module 405, when receiving the instruction to update the test machine, is configured to send the updated configuration file to the test machine corresponding to the configuration file, and re-deploy the environment to the test machine and the tested system.
作为一种实施方式,配置文件获取模块402获取配置文件,并根据配置文件获取每组测试机的环境配置安装包以及每组测试机的被测系统的配置信息,还包括:As an implementation manner, the configuration file obtaining module 402 obtains the configuration file, and obtains the environment configuration installation package of each group of test machines and the configuration information of the system to be tested of each group of test machines according to the configuration file, and further includes:
根据配置文件获取测试用例的测试时间;Get the test time of the test case according to the configuration file;
环境配置模块403向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:The environment configuration module 403 sends an environment configuration installation package corresponding to each test machine of each group of test machines, including:
根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
作为一种实施方式,配置文件获取模块402获取配置文件,并根据配置文件获取每组测试机的环境配置安装包以及每组测试机的被测系统的配置信息,还包括:As an implementation manner, the configuration file obtaining module 402 obtains the configuration file, and obtains the environment configuration installation package of each group of test machines and the configuration information of the system to be tested of each group of test machines according to the configuration file, and further includes:
根据配置文件获取测试用例的测试时间和执行测试用例的测试机的数量;Obtain the test time of the test case and the number of test machines that execute the test case according to the configuration file;
环境配置模块403向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:The environment configuration module 403 sends an environment configuration installation package corresponding to each test machine of each group of test machines, including:
根据测试用例的测试时间和执行测试用例的测试机的数量向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case and the number of test machines that execute the test case.
上述终端设备中模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。For the specific working process of the module in the foregoing terminal device, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
本申请另一种实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机可读指令,该计算机可读指令被处理器执行时实现上述实施例中的测试机自动配置方法,为避免重复,这里不再赘述。或者,该计算机可读 指令被处理器执行时实现上述实施例中测试机自动配置装置中各模块/单元的功能,为避免重复,这里不再赘述。Another embodiment of the present application provides a computer readable storage medium having computer readable instructions stored thereon, the computer readable instructions being executed by a processor to implement the tester automatic configuration method in the above embodiments To avoid repetition, we will not repeat them here. Or, the computer is readable When the instructions are executed by the processor, the functions of the modules/units in the automatic configuration device of the testing machine in the above embodiments are implemented. To avoid repetition, details are not described herein.
图7是本实施例中终端设备的示意图。如图7所示,终端设备6包括处理器60、存储器61以及存储在存储器61中并可在处理器60上运行的计算机可读指令62。处理器60执行计算机可读指令62时实现上述实施例中一种测试机自动配置方法的各个步骤,例如图1所示的步骤S10、S20和S30。或者,处理器60执行计算机可读指令62时实现上述实施例中一种测试机自动配置装置各模块/单元的功能,如图6所示连接模块401、配置文件获取模块402、环境配置模块403的功能。Fig. 7 is a schematic diagram of a terminal device in this embodiment. As shown in FIG. 7, the terminal device 6 includes a processor 60, a memory 61, and computer readable instructions 62 stored in the memory 61 and operable on the processor 60. The processor 60, when executing the computer readable instructions 62, implements various steps of a tester autoconfiguration method of the above-described embodiments, such as steps S10, S20, and S30 shown in FIG. Alternatively, when the processor 60 executes the computer readable instructions 62, the functions of each module/unit of the tester automatic configuration device in the above embodiment are implemented, as shown in FIG. 6, the connection module 401, the configuration file acquisition module 402, and the environment configuration module 403. The function.
示例性的,计算机可读指令62可以被分割成一个或多个模块/单元,一个或者多个模块/单元被存储在存储器61中,并由处理器60执行,以完成本申请的数据处理过程。一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述计算机可读指令62在终端设备6中的执行过程。例如,计算机可读指令62可以被分割成连接模块、配置文件获取模块、环境配置模块(虚拟装置中的模块)。Illustratively, computer readable instructions 62 may be partitioned into one or more modules/units, one or more modules/units being stored in memory 61 and executed by processor 60 to perform the data processing process of the present application. . The one or more modules/units may be a series of computer readable instruction segments capable of performing a particular function for describing the execution of computer readable instructions 62 in the terminal device 6. For example, computer readable instructions 62 may be partitioned into a connection module, a profile acquisition module, an environment configuration module (a module in a virtual device).
该终端设备6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。终端设备可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图7仅仅是终端设备6的示例,并不构成对终端设备6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 6 can be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, the processor 60, the memory 61. It will be understood by those skilled in the art that FIG. 7 is only an example of the terminal device 6, and does not constitute a limitation of the terminal device 6, and may include more or less components than those illustrated, or combine some components, or different components. For example, the terminal device may further include an input/output device, a network access device, a bus, and the like.
所称处理器60可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理 器也可以是任何常规的处理器等。The processor 60 may be a central processing unit (CPU), or may be another general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc. The general purpose processor can be a microprocessor or the process The device can also be any conventional processor or the like.
存储器61可以是终端设备6的内部存储单元,例如终端设备6的硬盘或内存。存储器61也可以是终端设备6的外部存储设备,例如终端设备6上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,存储器61还可以既包括终端设备6的内部存储单元也包括外部存储设备。存储器61用于存储计算机可读指令以及终端设备所需的其他程序和数据。存储器61还可以用于暂时地存储已经输出或者将要输出的数据。The memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a smart memory card (SMC), a Secure Digital (SD) card, and a flash memory card (Flash). Card) and so on. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used to store computer readable instructions and other programs and data required by the terminal device. The memory 61 can also be used to temporarily store data that has been output or is about to be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。It will be clearly understood by those skilled in the art that, for convenience and brevity of description, only the division of each functional unit and module described above is exemplified. In practical applications, the above functions may be assigned to different functional units according to needs. The module is completed by dividing the internal structure of the device into different functional units or modules to perform all or part of the functions described above. Each functional unit and module in the embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the integrated unit may be implemented by hardware. Formal implementation can also be implemented in the form of software functional units. In addition, the specific names of the respective functional units and modules are only for the purpose of facilitating mutual differentiation, and are not intended to limit the scope of protection of the present application. For the specific working process of the unit and the module in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed or described in the specific embodiments may be referred to the related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods to implement the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法, 可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present application, it should be understood that the disclosed apparatus/terminal device and method, It can be implemented in other ways. For example, the device/terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units. Or components may be combined or integrated into another system, or some features may be omitted or not performed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一计算机可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行 适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括是电载波信号和电信信号。The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the processes in the foregoing embodiments, and may also be implemented by computer readable instructions, which may be stored in a computer readable storage medium. The computer readable instructions, when executed by a processor, may implement the steps of the various method embodiments described above. Wherein, the computer readable instructions comprise computer readable instruction code, which may be in the form of source code, an object code form, an executable file or some intermediate form or the like. The computer readable medium can include any entity or device capable of carrying the computer readable instruction code, a recording medium, a USB flash drive, a removable hard drive, a magnetic disk, an optical disk, a computer memory, a read only memory (ROM, Read-Only) Memory), random access memory (RAM), electrical carrier signals, telecommunications signals, and software distribution media. It should be noted that the content contained in the computer readable medium can be carried out according to the requirements of legislation and patent practice in a jurisdiction. Appropriate increases and decreases, such as in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunication signals in accordance with legislation and patent practice.
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。 The above-mentioned embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that they can still implement the foregoing embodiments. The technical solutions described in the examples are modified or equivalently replaced with some of the technical features; and the modifications or substitutions do not deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in Within the scope of protection of this application.

Claims (20)

  1. 一种测试机自动配置方法,其特征在于,所述测试机自动配置方法包括:A test machine automatic configuration method, characterized in that the test machine automatic configuration method comprises:
    连接多组测试机,每组测试机包括多台测试机;Connecting multiple sets of test machines, each set including multiple test machines;
    获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;Obtaining a configuration file, and acquiring, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system under test of each group of test machines;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Sending a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to its corresponding environment configuration installation package, and according to the test group of each test machine The configuration information of the test system is configured for the environment of the system under test.
  2. 如权利要求1所述的测试机自动配置方法,其特征在于,所述测试机自动配置方法还包括:The tester automatic configuration method according to claim 1, wherein the tester automatic configuration method further comprises:
    当检测到所述配置文件发生更新时,向用户发出是否更新测试机的提示;When it is detected that the configuration file is updated, the user is prompted to update the test machine;
    当接收到更新测试机的指令时,向与所述配置文件对应的测试机发送更新后的配置文件,对测试机及被测系统重新进行环境部署。When receiving the instruction to update the test machine, the updated configuration file is sent to the test machine corresponding to the configuration file, and the environment is deployed to the test machine and the tested system.
  3. 如权利要求1所述的测试机自动配置方法,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The tester automatic configuration method according to claim 1, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system to be tested of each group of test machines are obtained according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的测试时间;Obtaining a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
  4. 如权利要求1所述的测试机自动配置方法,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The tester automatic configuration method according to claim 1, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system to be tested of each group of test machines are obtained according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的地址和测试用例的测试时间;Obtaining an address of the test case and a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的 环境配置安装包;Send corresponding to each test machine in each test machine according to the test time of the test case Environment configuration installation package;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括:Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的测试时间获取测试用例;The test case is obtained according to the address of the test case and the test time of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  5. 如权利要求1所述的测试机自动配置方法,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The tester automatic configuration method according to claim 1, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system to be tested of each group of test machines are obtained according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的地址和测试用例的优先级;Obtaining an address of the test case and a priority of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包;Sending an environment configuration installation package corresponding to each test machine in each test machine according to the test time of the test case;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括:Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的优先级获取测试用例;Get test cases based on the address of the test case and the priority of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  6. 如权利要求1所述的测试机自动配置方法,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The tester automatic configuration method according to claim 1, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system to be tested of each group of test machines are obtained according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的测试时间和执行测试用例的测试机的数量;Obtaining test time of the test case and the number of test machines executing the test case according to the configuration file;
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each test machine according to the test time of the test case, including:
    根据测试用例的测试时间和执行测试用例的测试机的数量向每组测试机中 的每一台测试机发送与其对应的环境配置安装包。According to the test case test time and the number of test machines that execute the test case, each group of test machines Each test machine sends its corresponding environment configuration installation package.
  7. 一种测试机自动配置装置,其特征在于,所述测试机自动配置装置包括:A test machine automatic configuration device, characterized in that the test machine automatic configuration device comprises:
    连接模块,用于连接多组测试机,每组测试机包括多台测试机;a connection module for connecting a plurality of sets of test machines, each set of test machines including a plurality of test machines;
    配置文件获取模块,用于获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;a configuration file obtaining module, configured to obtain a configuration file, and obtain, according to the configuration file, an environment configuration installation package of each group of testing machines and configuration information of the system to be tested of each group of testing machines;
    环境配置模块,用于向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。An environment configuration module, configured to send a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to an environment configuration installation package corresponding thereto, and according to the The configuration information of the system under test of each test machine is configured for the environment of the system under test.
  8. 如权利要求7所述的测试机自动配置装置,其特征在于,所述测试机自动配置装置还包括:The tester automatic configuration device according to claim 7, wherein the tester automatic configuration device further comprises:
    更新提示模块,当检测到所述配置文件发生更新时,用于向用户发出是否更新测试机的提示;Updating the prompting module, when detecting that the configuration file is updated, for prompting the user to update the testing machine;
    更新模块,当接收到更新测试机的指令时,用于向与所述配置文件对应的测试机发送更新后的配置文件,对测试机及被测系统重新进行环境部署;And an update module, configured to send an updated configuration file to the test machine corresponding to the configuration file, and re-enable the environment for the test machine and the tested system when receiving the instruction to update the test machine;
    所述配置文件获取模块获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,还包括:The configuration file obtaining module acquires a configuration file, and obtains an environment configuration installation package of each group of test machines and configuration information of the system to be tested of each group of test machines according to the configuration file, and further includes:
    根据所述配置文件获取测试用例的测试时间;Obtaining a test time of the test case according to the configuration file;
    所述环境配置模块向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:The environment configuration module sends an environment configuration installation package corresponding to each test machine of each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现如下步骤:A terminal device comprising a memory, a processor, and computer readable instructions stored in the memory and operable on the processor, wherein the processor executes the computer readable instructions as follows step:
    连接多组测试机,每组测试机包括多台测试机;Connecting multiple sets of test machines, each set including multiple test machines;
    获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以 及所述每组测试机的被测系统的配置信息;Obtain a configuration file, and obtain an environment configuration installation package of each group of test machines according to the configuration file. And configuration information of the system under test of each set of test machines;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Sending a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to its corresponding environment configuration installation package, and according to the test group of each test machine The configuration information of the test system is configured for the environment of the system under test.
  10. 如权利要求9所述的终端设备,其特征在于,所述处理器执行所述计算机可读指令时还实现如下步骤:The terminal device according to claim 9, wherein said processor further implements the following steps when said computer readable instructions are executed:
    当检测到所述配置文件发生更新时,向用户发出是否更新测试机的提示;When it is detected that the configuration file is updated, the user is prompted to update the test machine;
    当接收到更新测试机的指令时,向与所述配置文件对应的测试机发送更新后的配置文件,对测试机及被测系统重新进行环境部署。When receiving the instruction to update the test machine, the updated configuration file is sent to the test machine corresponding to the configuration file, and the environment is deployed to the test machine and the tested system.
  11. 如权利要求9所述的终端设备,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The terminal device according to claim 9, wherein the configuration file is acquired, and the environment configuration installation package of each group of test machines and the configuration information of the system under test of each group of test machines are acquired according to the configuration file, and then Also includes:
    根据所述配置文件获取测试用例的测试时间;Obtaining a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
  12. 如权利要求9所述的终端设备,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The terminal device according to claim 9, wherein the configuration file is acquired, and the environment configuration installation package of each group of test machines and the configuration information of the system under test of each group of test machines are acquired according to the configuration file, and then Also includes:
    根据所述配置文件获取测试用例的地址和测试用例的测试时间;Obtaining an address of the test case and a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包;Sending an environment configuration installation package corresponding to each test machine in each test machine according to the test time of the test case;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括:Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的测试时间获取测试用例; The test case is obtained according to the address of the test case and the test time of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  13. 如权利要求9所述的终端设备,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The terminal device according to claim 9, wherein the configuration file is acquired, and the environment configuration installation package of each group of test machines and the configuration information of the system under test of each group of test machines are acquired according to the configuration file, and then Also includes:
    根据所述配置文件获取测试用例的地址和测试用例的优先级;Obtaining an address of the test case and a priority of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包;Sending an environment configuration installation package corresponding to each test machine in each test machine according to the test time of the test case;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括:Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的优先级获取测试用例;Get test cases based on the address of the test case and the priority of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  14. 如权利要求9所述的终端设备,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The terminal device according to claim 9, wherein the configuration file is acquired, and the environment configuration installation package of each group of test machines and the configuration information of the system under test of each group of test machines are acquired according to the configuration file, and then Also includes:
    根据所述配置文件获取测试用例的测试时间和执行测试用例的测试机的数量;Obtaining test time of the test case and the number of test machines executing the test case according to the configuration file;
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each test machine according to the test time of the test case, including:
    根据测试用例的测试时间和执行测试用例的测试机的数量向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case and the number of test machines that execute the test case.
  15. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现如下步骤:A computer readable storage medium storing computer readable instructions, wherein the computer readable instructions, when executed by a processor, implement the following steps:
    连接多组测试机,每组测试机包括多台测试机; Connecting multiple sets of test machines, each set including multiple test machines;
    获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息;Obtaining a configuration file, and acquiring, according to the configuration file, an environment configuration installation package of each group of test machines and configuration information of the system under test of each group of test machines;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,以使每台测试机根据与其对应的环境配置安装包进行测试环境部署,并根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置。Sending a corresponding environment configuration installation package to each test machine of each group of test machines, so that each test machine is deployed in a test environment according to its corresponding environment configuration installation package, and according to the test group of each test machine The configuration information of the test system is configured for the environment of the system under test.
  16. 如权利要求15所述的计算机可读存储介质,其特征在于,所述计算机可读指令被处理器执行时还实现如下步骤:The computer readable storage medium of claim 15 wherein said computer readable instructions are further executed by the processor to:
    当检测到所述配置文件发生更新时,向用户发出是否更新测试机的提示;When it is detected that the configuration file is updated, the user is prompted to update the test machine;
    当接收到更新测试机的指令时,向与所述配置文件对应的测试机发送更新后的配置文件,对测试机及被测系统重新进行环境部署。When receiving the instruction to update the test machine, the updated configuration file is sent to the test machine corresponding to the configuration file, and the environment is deployed to the test machine and the tested system.
  17. 如权利要求15所述的计算机可读存储介质,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The computer readable storage medium according to claim 15, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system under test of each group of test machines are acquired according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的测试时间;Obtaining a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包。The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case.
  18. 如权利要求15所述的计算机可读存储介质,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The computer readable storage medium according to claim 15, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system under test of each group of test machines are acquired according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的地址和测试用例的测试时间;Obtaining an address of the test case and a test time of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包;Sending an environment configuration installation package corresponding to each test machine in each test machine according to the test time of the test case;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括: Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的测试时间获取测试用例;The test case is obtained according to the address of the test case and the test time of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  19. 如权利要求15所述的计算机可读存储介质,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The computer readable storage medium according to claim 15, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system under test of each group of test machines are acquired according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的地址和测试用例的优先级;Obtaining an address of the test case and a priority of the test case according to the configuration file;
    向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each group of test machines, including:
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包;Sending an environment configuration installation package corresponding to each test machine in each test machine according to the test time of the test case;
    根据所述每组测试机的被测系统的配置信息对被测系统进行环境配置,之后还包括:Performing environment configuration on the system under test according to configuration information of the system to be tested of each group of test machines, and then including:
    根据测试用例的地址和测试用例的优先级获取测试用例;Get test cases based on the address of the test case and the priority of the test case;
    对所述测试用例进行解析,获取测试用例执行参数;Parsing the test case to obtain test case execution parameters;
    根据所述测试用例执行参数,对所述被测系统进行测试。Testing the system under test according to the test case execution parameters.
  20. 如权利要求15所述的计算机可读存储介质,其特征在于,获取配置文件,并根据所述配置文件获取每组测试机的环境配置安装包以及所述每组测试机的被测系统的配置信息,之后还包括:The computer readable storage medium according to claim 15, wherein the configuration file is acquired, and an environment configuration installation package of each group of test machines and a configuration of the system under test of each group of test machines are acquired according to the configuration file. Information, followed by:
    根据所述配置文件获取测试用例的测试时间和执行测试用例的测试机的数量;Obtaining test time of the test case and the number of test machines executing the test case according to the configuration file;
    根据测试用例的测试时间向每组测试机中的每一台测试机发送与其对应的环境配置安装包,包括:Send the corresponding environment configuration installation package to each test machine in each test machine according to the test time of the test case, including:
    根据测试用例的测试时间和执行测试用例的测试机的数量向每组测试机中的每一台测试机发送与其对应的环境配置安装包。 The corresponding environment configuration installation package is sent to each test machine in each group of test machines according to the test time of the test case and the number of test machines that execute the test case.
PCT/CN2017/107845 2017-09-14 2017-10-26 Method, apparatus and device for automatically configuring test machine, and storage medium WO2019051937A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710827340.5 2017-09-14
CN201710827340.5A CN107741904A (en) 2017-09-14 2017-09-14 Test machine method of automatic configuration, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019051937A1 true WO2019051937A1 (en) 2019-03-21

Family

ID=61235855

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/107845 WO2019051937A1 (en) 2017-09-14 2017-10-26 Method, apparatus and device for automatically configuring test machine, and storage medium

Country Status (2)

Country Link
CN (1) CN107741904A (en)
WO (1) WO2019051937A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108536587A (en) * 2018-03-21 2018-09-14 轻客智能科技(江苏)有限公司 A kind of automated testing method and system based on Appium
CN110554936A (en) * 2018-06-04 2019-12-10 记忆科技(深圳)有限公司 SSD (solid State disk) testing method and system
CN109976773B (en) * 2019-04-04 2023-01-10 网易(杭州)网络有限公司 Deployment method and device of game testing environment
CN110704039B (en) * 2019-09-30 2020-12-01 北京三快在线科技有限公司 Configuration data processing method and device in application development process
CN111124907A (en) * 2019-12-18 2020-05-08 北京智明星通科技股份有限公司 Mobile phone game testing method and device and server
CN113596871A (en) * 2021-07-05 2021-11-02 哲库科技(上海)有限公司 Test method, server and computer storage medium
CN114879981B (en) * 2022-05-27 2023-06-06 北京百度网讯科技有限公司 Cloud operating system installation method and device, electronic equipment and storage medium
CN116467222A (en) * 2023-06-19 2023-07-21 阿里巴巴(中国)有限公司 Domain name resolution software testing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193306A1 (en) * 2003-11-20 2005-09-01 Luff Edwin F. Polymorphic automatic test systems and methods
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device
CN102622298A (en) * 2012-03-02 2012-08-01 奇智软件(北京)有限公司 Software testing system and method
CN106484623A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of method of software test, apparatus and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609352B (en) * 2011-01-19 2014-11-19 阿里巴巴集团控股有限公司 Parallel testing method and parallel testing server
CN103279419A (en) * 2013-06-09 2013-09-04 浪潮电子信息产业股份有限公司 Automation version verifying method and system based on B/S structural system
WO2015062003A1 (en) * 2013-10-31 2015-05-07 Hewlett-Packard Development Company, L.P. User interface tester
CN105095089A (en) * 2015-09-14 2015-11-25 北京金山安全软件有限公司 Method and device for testing performance of application software
CN106168924A (en) * 2016-07-07 2016-11-30 北京金山安全软件有限公司 Software testing method and device and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050193306A1 (en) * 2003-11-20 2005-09-01 Luff Edwin F. Polymorphic automatic test systems and methods
CN101110734A (en) * 2007-08-24 2008-01-23 福建星网锐捷网络有限公司 Automatization test approach and system
CN101876940A (en) * 2009-11-30 2010-11-03 北京飞天诚信科技有限公司 Automatic test method and device
CN102622298A (en) * 2012-03-02 2012-08-01 奇智软件(北京)有限公司 Software testing system and method
CN106484623A (en) * 2016-10-21 2017-03-08 郑州云海信息技术有限公司 A kind of method of software test, apparatus and system

Also Published As

Publication number Publication date
CN107741904A (en) 2018-02-27

Similar Documents

Publication Publication Date Title
WO2019051937A1 (en) Method, apparatus and device for automatically configuring test machine, and storage medium
US9489232B2 (en) Techniques for attesting data processing systems
US20150358392A1 (en) Method and system of virtual desktop infrastructure deployment studio
US20230020098A1 (en) Network node policy generation and implementation
WO2020000806A1 (en) Configuration file comparison method and configuration file comparison device
US10824541B1 (en) System and method for test data fabrication
CN103399748A (en) Equipment configuration standardization detecting device and method
CN111831325A (en) Method, device, system and medium for updating configuration file in application
US9380001B2 (en) Deploying and modifying a service-oriented architecture deployment environment model
US9716625B2 (en) Identifying compatible system configurations
US20230384750A1 (en) Efficient controller data generation and extraction
CN112651705A (en) Mail processing method, device, equipment and medium
WO2021045833A1 (en) Enhanced virtual machine image management system
CN110187890B (en) Project deployment method, electronic equipment and storage medium
CN110618943B (en) Security service test method and device, electronic equipment and readable storage medium
CN112685071A (en) Application program repairing method, device, equipment and storage medium
CN113052501A (en) Automatic safe operation and maintenance method and terminal based on assets
CN114143235A (en) NFV automatic test method, device, equipment and storage medium
CN111581042A (en) Cluster deployment method, deployment platform and server to be deployed
CN112463344B (en) Data analysis method and device
CN111240920B (en) Performance test method, device, server and storage medium
CN110413348B (en) Data processing method, device, system and medium
CN117192343B (en) Chip testing method based on auxiliary system, electronic equipment and medium
CN117538672B (en) Test method and device for target capacitive screen and electronic equipment
CN116954758A (en) Host computer dynamic library and configuration file management method, host computer and storage medium

Legal Events

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

Ref document number: 17924955

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 23.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17924955

Country of ref document: EP

Kind code of ref document: A1