[go: up one dir, main page]

CN108874600A - A kind of end-to-end automatic test task execution management system of server and method - Google Patents

A kind of end-to-end automatic test task execution management system of server and method Download PDF

Info

Publication number
CN108874600A
CN108874600A CN201810581702.1A CN201810581702A CN108874600A CN 108874600 A CN108874600 A CN 108874600A CN 201810581702 A CN201810581702 A CN 201810581702A CN 108874600 A CN108874600 A CN 108874600A
Authority
CN
China
Prior art keywords
task
execution
machine
module
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810581702.1A
Other languages
Chinese (zh)
Other versions
CN108874600B (en
Inventor
周庆飞
胥志泉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810581702.1A priority Critical patent/CN108874600B/en
Publication of CN108874600A publication Critical patent/CN108874600A/en
Application granted granted Critical
Publication of CN108874600B publication Critical patent/CN108874600B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2284Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]

Landscapes

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

Abstract

本发明属于计算机服务器技术领域,公开了一种服务器端到端自动化测试任务执行管理系统及方法,该系统包括任务管理模块、约束条件库模块、机器管理模块和执行机模块,任务管理模块用于创建测试任务、分派任务和下发任务;约束条件库模块用于筛选脚本执行所需机器;机器管理模块用于管理所有待测机器;执行机模块用于接收测试任务并执行任务,将执行结果回传至任务管理模块。该方法包括:创建自动化测试任务;执行自动化测试任务,生成任务单;解析任务单并执行任务单,获得执行结果;更新任务结果和机器的状态。通过本申请的系统及方法能够保证自动化测试任务的高效执行和有序管理,可以提高服务器自动化测试的效率,保证项目测试顺利进行。

The invention belongs to the technical field of computer servers, and discloses a server end-to-end automatic test task execution management system and method. The system includes a task management module, a constraint condition library module, a machine management module and an execution machine module. The task management module is used for Create test tasks, assign tasks, and issue tasks; the constraint library module is used to filter the machines required for script execution; the machine management module is used to manage all machines to be tested; the execution machine module is used to receive test tasks and execute tasks, and execute the results Return to the task management module. The method includes: creating an automated test task; executing the automated test task to generate a task order; parsing the task order and executing the task order to obtain an execution result; updating the task result and the state of the machine. The system and method of the present application can ensure the efficient execution and orderly management of automated testing tasks, improve the efficiency of server automated testing, and ensure the smooth progress of project testing.

Description

一种服务器端到端自动化测试任务执行管理系统及方法A server end-to-end automated test task execution management system and method

技术领域technical field

本发明属于计算机服务器技术领域,具体地说是一种服务器端到端自动化测试任务执行管理系统及方法。The invention belongs to the technical field of computer servers, in particular to a server end-to-end automatic test task execution management system and method.

背景技术Background technique

服务器自动化测试能够有效提高测试的效率,同时节省时间成本和人力成本,自动化测试所占的比重决定着一个项目或产品从研发到交付的周期,所以提高服务器自动化测试任务执行的效率并规范服务器自动测试的流程很重要。服务器端到端自动化测试任务执行是指测试人员从创建测试任务到获得任务执行结果的端到端。Server automation testing can effectively improve the efficiency of testing, while saving time and labor costs. The proportion of automated testing determines the cycle of a project or product from research and development to delivery, so improving the efficiency of server automation testing tasks and standardizing server automation The testing process is very important. Server end-to-end automated test task execution refers to the end-to-end process from tester creation to task execution results.

现有的服务器自动化测试任务执行管理大都是半自动化的测试,一般是需要测试人员将执行完毕后的结果回填至相应的测试用例,同时选择执行机时也需要测试人员去实验室查找空闲的机器,效率低下且繁琐。Most of the existing server automation test task execution management is semi-automated test. Generally, testers need to backfill the results after execution to the corresponding test cases. At the same time, when selecting an execution machine, testers also need to go to the laboratory to find idle machines. , is inefficient and cumbersome.

发明内容Contents of the invention

本发明的目的是为了解决上述问题,提供一种服务器端到端自动化测试任务执行管理系统及方法,可以实现自动化测试任务的高效执行和有序管理。The object of the present invention is to solve the above problems, and provide a server end-to-end automated test task execution management system and method, which can realize efficient execution and orderly management of automated test tasks.

为了实现上述目的,本发明的技术方案是:In order to achieve the above object, technical scheme of the present invention is:

一种服务器端到端自动化测试任务执行管理系统,包括:A server end-to-end automated test task execution management system, including:

任务管理模块:用于创建测试任务、分派任务和下发任务;Task management module: used to create test tasks, assign tasks and issue tasks;

约束条件库模块:用于筛选脚本执行所需机器;Constraint library module: used to filter the machines required for script execution;

机器管理模块:用于管理所有待测的机器;Machine management module: used to manage all the machines to be tested;

执行机模块:用于接收测试任务并执行任务,执行完毕后将执行结果回传至任务管理模块。Executor module: used to receive test tasks and execute the tasks, and return the execution results to the task management module after execution.

优选的,所述任务管理模块包括任务创建单元、任务生成单元、任务分配单元和测试结果统计单元;Preferably, the task management module includes a task creation unit, a task generation unit, a task allocation unit and a test result statistics unit;

所述任务创建单元用于创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置;The task creation unit is used to create a test task, set the use case, test time, machine type and machine configuration to be used by the task;

所述任务生成单元用于根据用例编号至约束条件库模块获取脚本约束条件,然后根据获得的脚本约束条件至机器管理模块中筛选满足脚本约束条件的机器,生成任务单;The task generation unit is used to obtain the script constraints according to the use case number to the constraint condition library module, and then screen the machines satisfying the script constraints in the machine management module according to the obtained script constraints, and generate a task list;

所述任务分配单元用于向执行机模块发送请求,将任务单发送给执行机模块;The task allocation unit is used to send a request to the execution machine module, and send the task order to the execution machine module;

所述测试结果统计单元用于接收执行机模块回传的执行结果和文件,更新任务的结果和机器的状态。The test result statistics unit is used to receive the execution results and files returned by the execution machine module, and update the task results and the state of the machine.

优选的,所述约束条件库模块:用于配合任务管理模块根据用例约束条件筛选脚本执行所需机器。Preferably, the constraint library module is used to cooperate with the task management module to filter the machines required for script execution according to the use case constraints.

优选的,所述机器管理模块还用于任务管理模块筛选空闲机器,并向任务管理模块返回机器信息。Preferably, the machine management module is also used by the task management module to screen idle machines and return machine information to the task management module.

优选的,所述执行机模块包括:Preferably, the actuator module includes:

执行监控单元:用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态;Execution monitoring unit: used to receive test tasks assigned by the task management module, parse task orders, call scripts for automated test execution, and monitor script execution status;

测试结果搜集单元:所有脚本执行结束后获得执行结果,并搜集log与日志文件;Test result collection unit: obtain execution results after all scripts are executed, and collect logs and log files;

通讯单元:用于将执行结果、搜集的log和日志文件上传至任务管理模块。Communication unit: used to upload execution results, collected logs and log files to the task management module.

优选的,所述执行机模块:用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态,执行完毕后将执行结果回传至任务管理模块。Preferably, the execution machine module is used to receive the test task assigned by the task management module, analyze the task order, call the script to execute the automated test, monitor the execution status of the script, and return the execution result to the task management module after execution.

本发明还提供一种服务器端到端自动化测试任务执行管理方法,包括以下步骤:The present invention also provides a server end-to-end automated test task execution management method, comprising the following steps:

S1:创建自动化测试任务;S1: Create an automated test task;

S2:执行自动化测试任务,生成任务单;S2: Execute automated testing tasks and generate task orders;

S3:解析任务单并执行任务单,获得执行结果;S3: Analyze the task order and execute the task order to obtain the execution result;

S4:更新任务的结果和机器的状态。S4: Update the result of the task and the state of the machine.

优选的,步骤S1中,创建自动化测试任务的方法包括:启动服务器进入任务管理模块,创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置。Preferably, in step S1, the method for creating an automated test task includes: starting the server to enter the task management module, creating a test task, setting the use case, test time, machine type and machine configuration to be used by the task.

优选的,步骤S2中,执行自动化测试任务,生成任务单的方法包括:Preferably, in step S2, the automated testing task is executed, and the method for generating a task list includes:

S21:执行自动化测试任务,任务管理模块根据任务所设置的用例编号至约束条件库模块自动获取脚本约束条件;S21: Execute the automated test task, and the task management module automatically obtains the script constraint condition from the constraint condition library module according to the use case number set by the task;

S22:任务管理模块根据获取的脚本约束条件至机器管理模块筛选满足脚本约束条件的空白机器,生成任务单,并将脚本加入到机器的脚本执行队列。S22: The task management module screens blank machines satisfying the script constraints according to the acquired script constraints, generates a task order, and adds the scripts to the machine's script execution queue.

优选的,步骤S3中,解析任务单并执行任务单,获得执行结果的方法包括:Preferably, in step S3, the task list is parsed and executed, and the method for obtaining the execution result includes:

S31:执行机模块获得任务管理模块发送的请求,对任务单进行解析;S31: The execution machine module obtains the request sent by the task management module, and analyzes the task list;

S32:执行机模块执行任务单,执行结束后获得执行结果,并搜集log与日志文件;S32: Executor module executes the task order, obtains the execution result after execution, and collects logs and log files;

S33:执行机模块将执行结果和日志文件上传至任务管理模块。S33: The execution machine module uploads the execution result and log files to the task management module.

优选的,步骤S4中,更新任务的结果和机器的状态之前,任务管理模块对执行机模块进行轮询,并判断任务执行情况,若所有脚本执行完毕,接收执行机模块返回的执行结果和上传的日志文件,最后,任务管理模块根据接收的执行结果和日志文件更新任务的结果和机器的状态。Preferably, in step S4, before updating the result of the task and the status of the machine, the task management module polls the execution machine module and judges the execution status of the task. If all scripts are executed, receive the execution result returned by the execution machine module and upload Finally, the task management module updates the result of the task and the state of the machine according to the received execution result and the log file.

本发明的有益效果为:The beneficial effects of the present invention are:

本发明用一套软件系统实现服务器端到端自动化测试任务的执行,构建从创建任务,分派任务,下发任务,执行任务到回填任务结果和搜集任务执行日志与log的端到端执行流程,省略了将任务手动分配至测试执行机的复杂的过程,创建测试任务、设置测试任务参数后,该系统会根据设置的用例自动调用测试用例所对应的脚本,并自动挑选机器管理模块中的合适的执行机去执行任务,任务执行完毕后将执行结果返回至任务管理模块,任务管理模块根据接收到的执行结果更新任务的结果和机器的状态,保证自动化测试任务的高效执行和有序管理,可以提高服务器自动化测试的效率,保证项目测试的顺利进行。The present invention uses a set of software system to realize the execution of end-to-end automated test tasks of the server, and constructs an end-to-end execution process from creating tasks, assigning tasks, issuing tasks, executing tasks to backfilling task results and collecting task execution logs and logs, The complicated process of manually assigning tasks to test execution machines is omitted. After creating a test task and setting test task parameters, the system will automatically call the script corresponding to the test case according to the set use case, and automatically select the appropriate one in the machine management module. The execution machine executes the task. After the task is executed, the execution result is returned to the task management module. The task management module updates the result of the task and the state of the machine according to the received execution result to ensure the efficient execution and orderly management of the automated test task. It can improve the efficiency of server automation testing and ensure the smooth progress of project testing.

附图说明Description of drawings

图1为本申请实施1所提供的一种服务器端到端自动化测试任务执行管理系统的结构示意图。FIG. 1 is a schematic structural diagram of a server end-to-end automated test task execution management system provided in Embodiment 1 of the present application.

图2为本申请实施例2所提供的一种服务器端到端自动化测试任务执行管理方法的流程示意图。FIG. 2 is a schematic flowchart of a method for executing and managing an end-to-end automated test task on a server provided in Embodiment 2 of the present application.

具体实施方式Detailed ways

根据下述实施例,可以更好地理解本发明。然而,本领域的技术人员容易理解,以下实施例仅用于更加清楚地说明本发明的技术方案,而不能以此来限制本发明的保护范围。The present invention can be better understood from the following examples. However, those skilled in the art will easily understand that the following examples are only used to illustrate the technical solutions of the present invention more clearly, but not to limit the protection scope of the present invention.

实施例1Example 1

图1是本实施例所提供的一种服务器端到端自动化测试任务执行管理系统的结构示意图。FIG. 1 is a schematic structural diagram of a server end-to-end automated test task execution management system provided by this embodiment.

由图1可知,本实施例中的服务器端到端自动化测试任务执行管理系统包括:任务管理模块、约束条件库模块、机器管理模块和执行机模块,所述的任务管理模块用于创建测试任务、分派任务和下发任务;约束条件库模块用于筛选脚本执行所需机器;机器管理模块用于管理所有待测的机器;执行机模块:用于接收任务管理模块下发的测试任务,执行任务,执行完毕后将执行结果回传至任务管理模块。As can be seen from Figure 1, the server end-to-end automated test task execution management system in this embodiment includes: a task management module, a constraint condition library module, a machine management module and an execution machine module, and the task management module is used to create test tasks , assign tasks and issue tasks; the constraint condition library module is used to screen the machines required for script execution; the machine management module is used to manage all the machines to be tested; the execution machine module is used to receive the test tasks issued by the task management module, execute After the task is executed, the execution result is sent back to the task management module.

由图1可知,所述任务管理模块包括任务创建单元、任务生成单元、任务分配单元和测试结果统计单元。It can be seen from FIG. 1 that the task management module includes a task creation unit, a task generation unit, a task allocation unit and a test result statistics unit.

所述任务创建单元用于创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置;所述任务生成单元用于根据用例编号至约束条件库模块获取脚本约束条件,然后根据获得的脚本约束条件至机器管理模块中筛选满足脚本约束条件的机器,生成任务单;所述分派任务单元用于向执行机模块发送HTTP请求,将任务单发送给执行机模块;所述统计测试结果单元用于接收执行机模块回传的执行结果和日志文件,更新任务的结果和机器的状态。The task creation unit is used to create a test task, set the use case, test time, machine type and machine configuration to be used by the task; the task generation unit is used to obtain script constraints according to the use case number to the constraint library module, and then according to The obtained script constraints are sent to the machine management module to screen machines that meet the script constraints to generate a task list; the dispatching task unit is used to send an HTTP request to the execution machine module, and the task list is sent to the execution machine module; the statistical test The result unit is used to receive the execution results and log files returned by the execution machine module, and update the results of the task and the state of the machine.

生成的任务单包含机器信息、用例信息、脚本参数、任务编号、任务所属项目信息、预计执行所需时间等信息。所述约束条件库模块用于配合任务管理模块根据用例约束条件筛选脚本执行所需机器。The generated task list contains information such as machine information, use case information, script parameters, task number, project information of the task, and estimated execution time. The constraint condition library module is used to cooperate with the task management module to filter the machines required for script execution according to the use case constraints.

所述机器管理模块还用于任务管理模块筛选空闲机器,并向任务管理模块返回机器信息。The machine management module is also used by the task management module to screen idle machines and return machine information to the task management module.

如图1所示,所述执行机模块包括执行监控单元、测试结果搜集单元和通讯单元。As shown in FIG. 1 , the execution machine module includes an execution monitoring unit, a test result collection unit and a communication unit.

所述执行监控单元用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态;测试结果搜集单元用于在所有脚本执行结束后获得执行结果,并搜集log与日志文件;通讯单元用于将执行结果、搜集的log和日志文件上传至任务管理模块。The execution monitoring unit is used to receive the test task assigned by the task management module, analyze the task list, call the script to execute the automated test, and monitor the execution status of the script; the test result collection unit is used to obtain the execution result after all scripts are executed, and Collect logs and log files; the communication unit is used to upload execution results, collected logs and log files to the task management module.

所述执行机模块用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态,执行完毕后将执行结果回传至任务管理模块。The execution machine module is used to receive the test task assigned by the task management module, analyze the task list, call the script to execute the automated test, monitor the execution status of the script, and return the execution result to the task management module after execution.

所述执行机模块与任务管理模块通讯采用HTTP的方式。The communication between the executing machine module and the task management module adopts HTTP.

实施例2Example 2

图2为本申请实施例所提供的一种服务器端到端自动化测试任务执行管理方法的流程示意图。FIG. 2 is a schematic flow chart of a method for executing and managing an end-to-end automated test task on a server provided by an embodiment of the present application.

由图2可知,本实施例中的服务器端到端自动化测试任务执行管理方法,包括以下步骤:As can be seen from FIG. 2, the server end-to-end automated test task execution management method in this embodiment includes the following steps:

S1:创建自动化测试任务;S1: Create an automated test task;

S2:执行自动化测试任务,生成任务单;S2: Execute automated testing tasks and generate task orders;

S3:解析任务单并执行任务单,获得执行结果;S3: Analyze the task order and execute the task order to obtain the execution result;

S4:更新任务的结果和机器的状态。S4: Update the result of the task and the state of the machine.

具体的,所述创建自动化测试任务的方法为:启动服务器进入任务管理模块,创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置。Specifically, the method for creating an automated test task is: start the server to enter the task management module, create a test task, and set the use case, test time, machine type and machine configuration to be used in the task.

具体的,所述步骤S2又包括以下过程:Specifically, the step S2 further includes the following process:

S21:执行自动化测试任务,任务管理模块根据任务所设置的用例编号至约束条件库模块自动获取脚本约束条件;S21: Execute the automated test task, and the task management module automatically obtains the script constraint condition from the constraint condition library module according to the use case number set by the task;

S22:任务管理模块根据获取的脚本约束条件至机器管理模块筛选满足脚本约束条件的空白机器,生成任务单,并将脚本加入到机器的脚本执行队列。S22: The task management module screens blank machines satisfying the script constraints according to the acquired script constraints, generates a task order, and adds the scripts to the machine's script execution queue.

将脚本加入到机器的脚本执行队列,可以让测试任务自动合适的执行机,并最大化地利用实验室的机器,避免出现一部分机器频繁使用但是另一部分一直闲置的情况。Adding the script to the script execution queue of the machine can allow the test task to be automatically executed on the appropriate machine, and maximize the use of the laboratory machines to avoid the situation that some machines are frequently used while the other part is always idle.

具体的,所述任务单包含机器信息、用例信息、脚本参数、任务编号、任务所属项目信息、预计执行所需时间。Specifically, the task list includes machine information, use case information, script parameters, task number, project information of the task, and estimated execution time.

具体的,所述步骤S3又包括以下过程:Specifically, the step S3 further includes the following process:

S31:执行机模块获得任务管理模块发送的请求,对任务单进行解析;S31: The execution machine module obtains the request sent by the task management module, and analyzes the task list;

S32:执行机模块执行任务单,执行结束后获得执行结果,并搜集log与日志文件;S32: Executor module executes the task order, obtains the execution result after execution, and collects logs and log files;

S33:执行机模块将执行结果和日志文件上传至任务管理模块。S33: The execution machine module uploads the execution result and log files to the task management module.

具体的,步骤S4中,所述更新任务的结果和机器的状态之前,任务管理模块对执行机模块进行轮询,并判断任务执行情况,若所有脚本执行完毕,接收执行机模块返回的执行结果和上传的日志文件,最后,任务管理模块根据接收的执行结果和日志文件更新任务的结果和机器的状态优选的,所述创建自动化测试任务:启动服务器进入任务管理模块,创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置。Specifically, in step S4, before the result of the update task and the state of the machine, the task management module polls the execution machine module and judges the execution status of the task. If all scripts are executed, the execution result returned by the execution machine module is received. And the uploaded log file, finally, the task management module updates the result of the task and the state of the machine according to the received execution result and the log file. Preferably, the creation of an automated test task: start the server to enter the task management module, create a test task, set the task The use case, test time, machine type and machine configuration to be used.

以上所述仅是本申请的具体实施方式,使本领域技术人员能够理解或实现本申请,并不能以此限制本申请的保护范围。凡根据本申请精神实质所做的等效变化或修饰,都应涵在盖本申请的保护范围内。The above descriptions are only the specific implementation manners of the present application, so as to enable those skilled in the art to understand or implement the present application, and shall not limit the protection scope of the present application. All equivalent changes or modifications made according to the spirit of the present application shall fall within the scope of protection of the present application.

Claims (10)

1.一种服务器端到端自动化测试任务执行管理系统,其特征在于,包括:1. A server end-to-end automated test task execution management system, characterized in that, comprising: 任务管理模块:用于创建测试任务、分派任务和下发任务;Task management module: used to create test tasks, assign tasks and issue tasks; 约束条件库模块:用于筛选脚本执行所需机器;Constraint library module: used to filter the machines required for script execution; 机器管理模块:用于管理所有待测的机器;Machine management module: used to manage all the machines to be tested; 执行机模块:用于接收测试任务并执行任务,执行完毕后将执行结果回传至任务管理模块。Executor module: used to receive test tasks and execute the tasks, and return the execution results to the task management module after execution. 2.如权利要求1所述的一种服务器端到端自动化测试任务执行管理系统,其特征在于,所述任务管理模块包括任务创建单元、任务生成单元、任务分配单元和测试结果统计单元;2. a kind of server end-to-end automated test task execution management system as claimed in claim 1, is characterized in that, described task management module comprises task creation unit, task generation unit, task allocation unit and test result statistics unit; 所述任务创建单元用于创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置;The task creation unit is used to create a test task, set the use case, test time, machine type and machine configuration to be used by the task; 所述任务生成单元用于根据用例编号至约束条件库模块获取脚本约束条件,然后根据获得的脚本约束条件至机器管理模块中筛选满足脚本约束条件的机器,生成任务单;The task generation unit is used to obtain the script constraints according to the use case number to the constraint condition library module, and then screen the machines satisfying the script constraints in the machine management module according to the obtained script constraints, and generate a task list; 所述任务分配单元用于向执行机模块发送请求,将任务单发送给执行机模块;The task allocation unit is used to send a request to the execution machine module, and send the task order to the execution machine module; 所述测试结果统计单元用于接收执行机模块回传的执行结果和文件,更新任务的结果和机器的状态。The test result statistics unit is used to receive the execution results and files returned by the execution machine module, and update the task results and the state of the machine. 3.如权利要求1所述的一种服务器端到端自动化测试任务执行管理系统,其特征在于,所述机器管理模块还用于任务管理模块筛选空闲机器,并向任务管理模块返回机器信息。3. A server end-to-end automated test task execution management system according to claim 1, wherein the machine management module is also used for the task management module to screen idle machines and return machine information to the task management module. 4.如权利要求1所述的一种服务器端到端自动化测试任务执行管理系统,其特征在于,所述执行机模块包括:4. A kind of server end-to-end automation test task execution management system as claimed in claim 1, is characterized in that, described executive machine module comprises: 执行监控单元:用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态;Execution monitoring unit: used to receive test tasks assigned by the task management module, parse task orders, call scripts for automated test execution, and monitor script execution status; 测试结果搜集单元:所有脚本执行结束后获得执行结果,并搜集log与日志文件;Test result collection unit: obtain execution results after all scripts are executed, and collect logs and log files; 通讯单元:用于将执行结果、搜集的log和日志文件上传至任务管理模块。Communication unit: used to upload execution results, collected logs and log files to the task management module. 5.如权利要求1所述的一种服务器端到端自动化测试任务执行管理系统,其特征在于,所述执行机模块:用于接收任务管理模块分派的测试任务,解析任务单,调用脚本进行自动化测试的执行,监控脚本执行状态,执行完毕后将执行结果回传至任务管理模块。5. A kind of server end-to-end automation test task execution management system as claimed in claim 1, it is characterized in that, described executive machine module: be used for receiving the test task assigned by task management module, analyze task sheet, call script to carry out Execute the automated test, monitor the execution status of the script, and return the execution result to the task management module after the execution is completed. 6.一种服务器端到端自动化测试任务执行管理方法,其特征在于,包括以下步骤:6. A server end-to-end automated test task execution management method, characterized in that, comprising the following steps: S1:创建自动化测试任务;S1: Create an automated test task; S2:执行自动化测试任务,生成任务单;S2: Execute automated testing tasks and generate task orders; S3:解析任务单并执行任务单,获得执行结果;S3: Analyze the task order and execute the task order to obtain the execution result; S4:更新任务的结果和机器的状态。S4: Update the result of the task and the state of the machine. 7.如权利要求6所述的一种服务器端到端自动化测试任务执行管理方法,其特征在于,步骤S1中,创建自动化测试任务的方法包括:启动服务器进入任务管理模块,创建测试任务,设置任务所要用到的用例、测试时间、机器类型和机器配置。7. A kind of server end-to-end automation test task execution management method as claimed in claim 6, it is characterized in that, in step S1, the method for creating automation test task comprises: start server and enter task management module, create test task, set The use case, test time, machine type, and machine configuration to be used for the task. 8.如权利要求6所述的一种服务器端到端自动化测试任务执行管理方法,其特征在于,步骤S2中,执行自动化测试任务,生成任务单的方法包括:8. A kind of server end-to-end automated test task execution management method as claimed in claim 6, it is characterized in that, in step S2, execute the automated test task, the method for generating task sheet comprises: S21:执行自动化测试任务,任务管理模块根据任务所设置的用例编号至约束条件库模块自动获取脚本约束条件;S21: Execute the automated test task, and the task management module automatically obtains the script constraint condition from the constraint condition library module according to the use case number set by the task; S22:任务管理模块根据获取的脚本约束条件至机器管理模块筛选满足脚本约束条件的空白机器,生成任务单,并将脚本加入到机器的脚本执行队列。S22: The task management module screens blank machines satisfying the script constraints according to the acquired script constraints, generates a task order, and adds the scripts to the machine's script execution queue. 9.如权利要求6所述的一种服务器端到端自动化测试任务执行管理方法,其特征在于,步骤S3中,解析任务单并执行任务单,获得执行结果的方法包括:9. A kind of server end-to-end automated test task execution management method as claimed in claim 6, it is characterized in that, in step S3, the method for parsing the task order and executing the task order, and obtaining the execution result comprises: S31:执行机模块获得任务管理模块发送的请求,对任务单进行解析;S31: The execution machine module obtains the request sent by the task management module, and analyzes the task list; S32:执行机模块执行任务单,执行结束后获得执行结果,并搜集log与日志文件;S32: Executor module executes the task order, obtains the execution result after execution, and collects logs and log files; S33:执行机模块将执行结果和日志文件上传至任务管理模块。S33: The execution machine module uploads the execution result and log files to the task management module. 10.如权利要求6所述的一种服务器端到端自动化测试任务执行管理方法,其特征在于,步骤S4中,更新任务的结果和机器的状态之前,任务管理模块对执行机模块进行轮询,并判断任务执行情况,若所有脚本执行完毕,接收执行机模块返回的执行结果和上传的日志文件,最后,任务管理模块根据接收的执行结果和日志文件更新任务的结果和机器的状态。10. A kind of server end-to-end automated test task execution management method as claimed in claim 6, it is characterized in that, in step S4, before updating the result of task and the state of machine, task management module polls executive machine module , and judge the execution status of the task. If all the scripts are executed, the execution result returned by the execution machine module and the uploaded log file are received. Finally, the task management module updates the task result and the status of the machine according to the received execution result and log file.
CN201810581702.1A 2018-06-07 2018-06-07 A server end-to-end automated test task execution management system and method Active CN108874600B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810581702.1A CN108874600B (en) 2018-06-07 2018-06-07 A server end-to-end automated test task execution management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810581702.1A CN108874600B (en) 2018-06-07 2018-06-07 A server end-to-end automated test task execution management system and method

Publications (2)

Publication Number Publication Date
CN108874600A true CN108874600A (en) 2018-11-23
CN108874600B CN108874600B (en) 2021-10-08

Family

ID=64337215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810581702.1A Active CN108874600B (en) 2018-06-07 2018-06-07 A server end-to-end automated test task execution management system and method

Country Status (1)

Country Link
CN (1) CN108874600B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783757A (en) * 2019-11-11 2021-05-11 北京沃东天骏信息技术有限公司 Test system, test method, computer system, and computer-readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275223B1 (en) * 1998-07-08 2001-08-14 Nortel Networks Limited Interactive on line code inspection process and tool
CN102387232A (en) * 2010-09-03 2012-03-21 宁波普天通信技术有限公司 General mobile phone testing system based on triaxial pushbutton and pattern recognition
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 A distributed scheduling automation test platform and method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6275223B1 (en) * 1998-07-08 2001-08-14 Nortel Networks Limited Interactive on line code inspection process and tool
CN102387232A (en) * 2010-09-03 2012-03-21 宁波普天通信技术有限公司 General mobile phone testing system based on triaxial pushbutton and pattern recognition
CN106844198A (en) * 2016-12-27 2017-06-13 浪潮软件集团有限公司 A distributed scheduling automation test platform and method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783757A (en) * 2019-11-11 2021-05-11 北京沃东天骏信息技术有限公司 Test system, test method, computer system, and computer-readable storage medium
CN112783757B (en) * 2019-11-11 2024-03-01 北京沃东天骏信息技术有限公司 Testing systems, methods, computer systems and computer-readable storage media

Also Published As

Publication number Publication date
CN108874600B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN106844198B (en) Distributed dispatching automation test platform and method
CN107341098B (en) Software performance testing method, platform, equipment and storage medium
CN101329652B (en) A regression test automation system and method
CN110162471A (en) A kind of method for testing pressure and system based on container cloud
CN111984390A (en) Task scheduling method, device, device and storage medium
CN111125444A (en) Big data task scheduling management method, device, device and storage medium
CN101645036B (en) Automatic distribution method of test tasks based on test execution capability
CN112486791A (en) Performance test method, device and equipment of server cluster
CN108446190A (en) interface test method and device
CN104778124A (en) Automatic testing method for software application
CN106021111A (en) Interface testing method and system
CN112084016B (en) Stream computing performance optimization system and method based on flink
CN108595306A (en) A kind of service performance testing method towards mixed portion's cloud
CN107733735B (en) Script recording system and method implanted in pressure measurement device
CN115061809B (en) Android-based RPA multitasking scheduling method and system
CN110750453B (en) HTML 5-based intelligent mobile terminal testing method, system, server and storage medium
CN113419965A (en) Multi-browser compatibility testing system and method
CN110740079A (en) full link benchmark test system for distributed scheduling system
CN106850330B (en) Intelligent cloud desktop performance test system and method
CN105320589A (en) Automatic analysis system for testing scripts in cloud testing environments and realization method thereof
CN103903312B (en) Executing method and device for automatic inspection
CN106874290B (en) Data cleaning method and equipment
CN118708266A (en) Pipeline orchestration method, device, equipment and medium based on dynamic dependency management
US9547537B2 (en) Automatic profiling report generation
CN107885627A (en) A kind of server automated test system and method

Legal Events

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