[go: up one dir, main page]

CN111309627A - Method and system for preventing test conflict in software test - Google Patents

Method and system for preventing test conflict in software test Download PDF

Info

Publication number
CN111309627A
CN111309627A CN202010154793.8A CN202010154793A CN111309627A CN 111309627 A CN111309627 A CN 111309627A CN 202010154793 A CN202010154793 A CN 202010154793A CN 111309627 A CN111309627 A CN 111309627A
Authority
CN
China
Prior art keywords
test case
target test
service
processing
execution
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
CN202010154793.8A
Other languages
Chinese (zh)
Other versions
CN111309627B (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.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010154793.8A priority Critical patent/CN111309627B/en
Publication of CN111309627A publication Critical patent/CN111309627A/en
Application granted granted Critical
Publication of CN111309627B publication Critical patent/CN111309627B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3668Testing of software
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

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

Abstract

本发明提供了一种软件测试中防止测试冲突的方法与系统,本发明针对现有软件测试过程中更改底层配置或重启服务等相关操作存在的测试效率低下、测试不智能、硬件设备浪费、测试压力不够、关联业务覆盖不全以及成本高的问题,通过在目标测试用例请求执行时,对是否存在系统正在执行目标测试用例的同等操作、是否有该服务或配置内的进程正在运行、是否有关联服务正在执行、目标测试用例的紧急程度和重要程度进行监控,并将执行操作请求发送给关联用户,根据关联用户需求判断决策是否立即执行目标测试用例,从而提高软件测试的智能化,有利于提升产品质量,增加公司效益。

Figure 202010154793

The present invention provides a method and system for preventing test conflicts in software testing. The present invention aims at low testing efficiency, unintelligent testing, waste of hardware equipment, and testing in the existing software testing process, such as changing the underlying configuration or restarting services and other related operations. Insufficient pressure, incomplete coverage of related business and high cost, when the target test case is requested to be executed, whether there is an equivalent operation of the system executing the target test case, whether there is a process in the service or configuration is running, and whether it is related The service is being executed, the urgency and importance of the target test case are monitored, and the execution operation request is sent to the associated user, and the decision whether to immediately execute the target test case is determined according to the needs of the associated user, thereby improving the intelligence of software testing, which is conducive to improving Product quality, increase company efficiency.

Figure 202010154793

Description

一种软件测试中防止测试冲突的方法与系统A method and system for preventing test conflict in software testing

技术领域technical field

本发明涉及软件测试技术领域,特别是一种软件测试中防止测试冲突的方法与系统。The invention relates to the technical field of software testing, in particular to a method and system for preventing testing conflicts in software testing.

背景技术Background technique

如今信息技术的飞速发展,软件在社会生活的方方面面发挥着日益重要的作用,软件测试是伴随着软件的产生而产生的,软件的可用性、安全性等问题是用户和开发商共同关心的主要问题,计算机软件研发后存在很多问题,所以必须对软件进行测试,小到一个app,大到操作系统或者云计算服务平台都是需要多个测试人员对其进行测试的。由于存在多人共同对一个测试环境进行操作,一个测试人员的操作可能会影响到另一个人,尤其是在牵涉底层配置或者重启服务验证某些业务的时候。Nowadays, with the rapid development of information technology, software plays an increasingly important role in all aspects of social life. Software testing is produced along with the production of software. Issues such as software usability and security are the main concerns of users and developers. , There are many problems after the development of computer software, so the software must be tested, whether it is as small as an app, as large as an operating system or a cloud computing service platform, multiple testers are required to test it. Since there are multiple people working together on a test environment, the operations of one tester may affect another, especially when it involves low-level configuration or restarting services to verify certain services.

现有的软件测试针对大的环境例如云管理平台等需要多个测试人员分模块、分层面进行测试,测试过程中的一些牵涉底层的测试需要经常更改配置或者重启操作服务,在一个人操作的时候会影响其他测试人员的测试。目前处理该问题的主要方式有以下几个:通讯软件通知其他测试人员需要作的操作,询问是否影响大家的测试,不影响后开始测试;等其他测试人员不测试的时候进行测试;重新部署一个新的测试环境进行测试。但是在需要询问沟通是否影响别人测试或者等到别人测试结束后测试,效率低下,测试不智能。而若每人部署一套测试环境浪费部署时间且需要更多的硬件设备去支持,浪费资源增大成本,且每人一套环境测试一个模块,会降低环境的测试压力,各模块之间的关联影响不能全面覆盖,测试业务不能系统进行。Existing software testing requires multiple testers to test in modules and layers for large environments such as cloud management platforms. Some of the underlying tests in the testing process require frequent configuration changes or restart of operating services. Sometimes it will affect the testing of other testers. At present, the main ways to deal with this problem are as follows: the communication software informs other testers of the operations that need to be done, asks whether it affects everyone's testing, and then starts the test; waits for other testers to test when they are not testing; redeploy a test New test environment for testing. However, it is inefficient and unintelligent to ask whether the communication affects the test of others or to wait until the test is over. However, if each person deploys a set of test environments, it wastes deployment time and requires more hardware equipment to support, wastes resources and increases costs, and each person tests one module in one set of environment, which will reduce the test pressure of the environment, and the differences between the modules will be reduced. The associated impact cannot be fully covered, and the test business cannot be carried out systematically.

发明内容SUMMARY OF THE INVENTION

本发明的目的是提供一种软件测试中防止测试冲突的方法与系统,旨在解决现有技术中测试效率低下、测试不智能、硬件设备浪费、测试压力不够、关联业务覆盖不全、成本高等问题,实现提高软件测试的智能化,有利于提升产品质量。The purpose of the present invention is to provide a method and system for preventing test conflicts in software testing, aiming to solve the problems of low testing efficiency, unintelligent testing, waste of hardware equipment, insufficient testing pressure, incomplete coverage of related services, and high cost in the prior art , to improve the intelligence of software testing, which is conducive to improving product quality.

为达到上述技术目的,本发明提供了一种软件测试中防止测试冲突的方法,所述方法包括以下操作:In order to achieve the above-mentioned technical purpose, the present invention provides a method for preventing test conflict in software testing, and the method includes the following operations:

设置特征数据库,记录和存储各种服务及处理所需时间;Set up a feature database to record and store various services and the time required for processing;

当存在测试用例执行请求时,获取目标测试用例,并下发监控命令;When there is a test case execution request, obtain the target test case and issue a monitoring command;

遍历所有用户的操作是否存在涉及执行目标测试用例的同等操作,若存在则进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;Whether there is an equivalent operation involving the execution of the target test case in the operation of traversing all users, if it exists, it will be queued and polled at intervals according to the processing time stored in the feature database;

判断是否存在正在运行的涉及执行目标测试用例的进程或关联进程,若存在则进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;Determine whether there is a running process or associated process involved in executing the target test case, if there is, wait in line, and perform interval polling according to the processing time stored in the feature database;

判断是否存在涉及执行目标测试用例的关联服务,若不存在,则直接执行目标测试用例,否则执行下一步骤;Determine whether there is an associated service involved in executing the target test case, if not, execute the target test case directly, otherwise go to the next step;

判断目标测试用例的紧急程度是否为最高,若为最高,则直接执行目标测试用例,否则发送执行请求给关联测试用户,如测试人员同意中断测试则执行目标测试用例,不同意则排队等待。Determine whether the urgency of the target test case is the highest. If it is the highest, execute the target test case directly. Otherwise, send an execution request to the associated test user. If the tester agrees to interrupt the test, execute the target test case. If they do not agree, wait in line.

优选地,所述特征数据库记录和存储更改配置和重启服务关联的服务及处理所需时间、每个服务的进程及进程处理所需时间、每个服务的关联服务及处理所需时间。Preferably, the feature database records and stores the time required for services and processing associated with changing configuration and restarting services, the process of each service and the time required for process processing, and the associated service and processing time required for each service.

优选地,当存在涉及执行目标测试用例的同等操作时,根据特征数据库中储存的所述的更改配置和重启服务关联的服务的处理所需要的时间进行间隔轮询;当存在正在运行的涉及执行目标测试用例的进程或关联进程时,根据特征数据库中储存的所述的每个服务的进程的进程处理时间进行间隔轮询。Preferably, when there is an equivalent operation involving the execution of the target test case, interval polling is performed according to the time required for the process of changing the configuration and restarting the service associated with the service stored in the feature database; When the process of the target test case or the associated process, the interval polling is performed according to the process processing time of the process of each service stored in the feature database.

本发明还提供了一种软件测试中防止测试冲突的系统,所述系统包括:The present invention also provides a system for preventing test conflicts in software testing, the system comprising:

特征数据库,用于设置特征数据库,记录和存储各种服务及处理所需时间;Feature database, which is used to set the feature database, record and store the time required for various services and processing;

目标测试用例获取模块,用于当存在测试用例执行请求时,获取目标测试用例,并下发监控命令;The target test case acquisition module is used to acquire the target test case and issue the monitoring command when there is a test case execution request;

监控模块,用于根据监控命令遍历所有用户的操作是否存在涉及执行目标测试用例的同等操作、判断是否存在正在运行的涉及执行目标测试用例的进程或关联进程、判断是否存在涉及执行目标测试用例的关联服务,并将监控结果发送至判断决策模块;The monitoring module is used to traverse all user operations according to the monitoring command to see if there is an equivalent operation involving the execution of the target test case, to determine whether there is a running process or associated process that involves the execution of the target test case, and to determine whether there is a process that involves the execution of the target test case. Associate services, and send the monitoring results to the judgment and decision-making module;

判断决策模块,用于对监控模块返回的监控结果按照优先级进行处理,当存在涉及执行目标测试用例的同等操作时,进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;当存在正在运行的涉及执行目标测试用例的进程或关联进程时,进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;以及当存在涉及执行目标测试用例的关联服务时,根据紧急程度决定是否执行目标测试用例,当不存在时直接执行目标测试用例。The judgment and decision module is used to process the monitoring results returned by the monitoring module according to the priority. When there is an equivalent operation involving the execution of the target test case, it will wait in a queue and poll at intervals according to the processing time stored in the feature database. ; when there is a running process or associated process involved in executing the target test case, queue waiting, and poll at intervals according to the processing time stored in the feature database; and when there is an associated service involved in executing the target test case , decide whether to execute the target test case according to the urgency, and directly execute the target test case when it does not exist.

优选地,所述特征数据库记录和存储更改配置和重启服务关联的服务及处理所需时间、每个服务的进程及进程处理所需时间、每个服务的关联服务及处理所需时间。Preferably, the feature database records and stores the time required for services and processing associated with changing configuration and restarting services, the process of each service and the time required for process processing, and the associated service and processing time required for each service.

优选地,当存在涉及执行目标测试用例的同等操作时,根据特征数据库中储存的所述的更改配置和重启服务关联的服务的处理所需要的时间进行间隔轮询;当存在正在运行的涉及执行目标测试用例的进程或关联进程时,根据特征数据库中储存的所述的每个服务的进程的进程处理时间进行间隔轮询。Preferably, when there is an equivalent operation involving the execution of the target test case, interval polling is performed according to the time required for the process of changing the configuration and restarting the service associated with the service stored in the feature database; When the process of the target test case or the associated process, the interval polling is performed according to the process processing time of the process of each service stored in the feature database.

本发明还提供了一种软件测试中防止测试冲突的设备,包括:The present invention also provides a device for preventing test conflicts in software testing, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现所述的软件测试中防止测试冲突的方法。The processor is used for executing the computer program to implement the method for preventing test conflict in software testing.

本发明还提供了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现所述的软件测试中防止测试冲突的方法。The present invention also provides a readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the method for preventing test conflicts in software testing is implemented.

发明内容中提供的效果仅仅是实施例的效果,而不是发明所有的全部效果,上述技术方案中的一个技术方案具有如下优点或有益效果:The effects provided in the summary of the invention are only the effects of the embodiments, rather than all the effects of the invention. One of the above technical solutions has the following advantages or beneficial effects:

与现有技术相比,本发明针对现有软件测试过程中更改底层配置或重启服务等相关操作存在的测试效率低下、测试不智能、硬件设备浪费、测试压力不够、关联业务覆盖不全以及成本高的问题,提出了一种软件测试中防止测试冲突的方法,在目标测试用例请求执行时,对是否存在系统正在执行目标测试用例的同等操作、是否有该服务或配置内的进程正在运行、是否有关联服务正在执行、目标测试用例的紧急程度和重要程度进行监控,并将执行操作请求发送给关联用户,根据关联用户需求判断决策是否立即执行目标测试用例,从而提高软件测试的智能化,有利于提升产品质量,增加公司效益。Compared with the prior art, the present invention aims at low testing efficiency, unintelligent testing, waste of hardware equipment, insufficient testing pressure, incomplete coverage of related services and high cost in the related operations such as changing the underlying configuration or restarting services in the existing software testing process. This paper proposes a method to prevent test conflicts in software testing. When the target test case is requested to be executed, whether there is an equivalent operation of the target test case in the system, whether there is a process in the service or configuration is running, whether Monitor the execution of the associated service and the urgency and importance of the target test case, and send the execution operation request to the associated user, and judge and decide whether to execute the target test case immediately according to the needs of the associated user, thereby improving the intelligence of software testing. Conducive to improving product quality and increasing company benefits.

附图说明Description of drawings

图1为本发明实施例中所提供的一种软件测试中防止测试冲突的方法流程图;1 is a flowchart of a method for preventing test conflicts in a software test provided in an embodiment of the present invention;

图2为本发明实施例中所提供的根据监控结果按照优先级进行判断决策工作流程图;Fig. 2 is the working flow chart of judging and decision-making according to the priority according to the monitoring result provided in the embodiment of the present invention;

图3为本发明实施例中所提供的一种软件测试中防止测试冲突的系统框图。FIG. 3 is a block diagram of a system for preventing test conflicts in software testing according to an embodiment of the present invention.

具体实施方式Detailed ways

为了能清楚说明本方案的技术特点,下面通过具体实施方式,并结合其附图,对本发明进行详细阐述。下文的公开提供了许多不同的实施例或例子用来实现本发明的不同结构。为了简化本发明的公开,下文中对特定例子的部件和设置进行描述。此外,本发明可以在不同例子中重复参考数字和/或字母。这种重复是为了简化和清楚的目的,其本身不指示所讨论各种实施例和/或设置之间的关系。应当注意,在附图中所图示的部件不一定按比例绘制。本发明省略了对公知组件和处理技术及工艺的描述以避免不必要地限制本发明。In order to clearly illustrate the technical features of the solution, the present invention will be described in detail below through specific embodiments and in conjunction with the accompanying drawings. The following disclosure provides many different embodiments or examples for implementing different structures of the invention. In order to simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in different instances. This repetition is for the purpose of simplicity and clarity and does not in itself indicate a relationship between the various embodiments and/or arrangements discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and processes are omitted from the present invention to avoid unnecessarily limiting the present invention.

下面结合附图对本发明实施例所提供的一种软件测试中防止测试冲突的方法与系统进行详细说明。The method and system for preventing test conflicts in software testing provided by the embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

如图1所示,本发明公开了一种软件测试中防止测试冲突的方法,所述方法包括以下操作:As shown in FIG. 1 , the present invention discloses a method for preventing test conflicts in software testing, and the method includes the following operations:

设置特征数据库,记录和存储各种服务及处理所需时间;Set up a feature database to record and store various services and the time required for processing;

当存在测试用例执行请求时,获取目标测试用例,并下发监控命令;When there is a test case execution request, obtain the target test case and issue a monitoring command;

遍历所有用户的操作是否存在涉及执行目标测试用例的同等操作,若存在则进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;Whether there is an equivalent operation involving the execution of the target test case in the operation of traversing all users, if it exists, it will be queued and polled at intervals according to the processing time stored in the feature database;

判断是否存在正在运行的涉及执行目标测试用例的进程或关联进程,若存在则进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;Determine whether there is a running process or associated process involved in executing the target test case, if there is, wait in line, and perform interval polling according to the processing time stored in the feature database;

判断是否存在涉及执行目标测试用例的关联服务,若不存在,则直接执行目标测试用例,否则执行下一步骤;Determine whether there is an associated service involved in executing the target test case, if not, execute the target test case directly, otherwise go to the next step;

判断目标测试用例的紧急程度是否为最高,若为最高,则直接执行目标测试用例,否则发送执行请求给关联测试用户,如测试人员同意中断测试则执行目标测试用例,不同意则排队等待。Determine whether the urgency of the target test case is the highest. If it is the highest, execute the target test case directly. Otherwise, send an execution request to the associated test user. If the tester agrees to interrupt the test, execute the target test case. If they do not agree, wait in line.

本发明实施例通过对正在执行的目标测试用例的同等用户操作、服务或配置的进程、关联服务以及目标测试用例的紧急程度进行监控,判断决策目标测试用例是否允许执行。The embodiment of the present invention judges whether the target test case is allowed to be executed by monitoring the same user operation, service or configuration process, associated service and the urgency of the target test case being executed.

采集测试用例,当有新的测试用例要执行的时候,获取目标测试用例并保存该测试用例,当触发目标测试用例执行的时候,会下发监控命令。对于新添加的测试用例会补充到测试用例库中。Collect test cases, when there is a new test case to be executed, obtain the target test case and save the test case, when the execution of the target test case is triggered, the monitoring command will be issued. The newly added test cases will be added to the test case library.

设置特征数据库,并在该特征数据库中记录和存储更改配置和重启服务关联的操作或者服务及处理所需要的时间,记录和存储每个服务的进程以及进程处理时间,以及记录服务的关联服务和操作以及处理所需时间。Set up a feature database, and record and store the operations associated with changing the configuration and restarting the service or the time required for the service and processing in the feature database, record and store the process of each service and the process processing time, and record the associated services and services of the service. operation and processing time.

对目标测试用例的执行进行监控,并根据监控结果按照优先级进行判断决策。Monitor the execution of target test cases, and make judgments and decisions according to priority according to the monitoring results.

如图2所示,当收到执行测试用例请求时,遍历系统中所有用户的操作是否涉及执行目标测试用例的同等操作,若返回的结果为有同等操作,则进行排队等待,并根据特征数据库中储存的处理时间进行间隔轮询;当监测到没有同等操作时,判断是否有该服务或配置内的进程正在运行,若有则进行排队等待,并根据特征数据库中储存的处理时间进行间隔轮询;当监测到没有该服务或配置内的进程正在运行,则判断是否有关联服务进行操作,若没有则可以直接执行该测试用例,若有则判断该测试用例的紧急程度和重要程度是否为最高,若为最高则直接执行该测试用例,若非最高,发送执行请求给关联测试用户,测试人员同意中断其测试时,执行测试用例,不同意则排队等待。As shown in Figure 2, when a request to execute a test case is received, whether the operation of traversing all users in the system involves executing the equivalent operation of the target test case, if the returned result is that there is an equivalent operation, it will be queued and waited, and according to the feature database The processing time stored in the database is polled at intervals; when no equivalent operation is detected, it is judged whether there is a process in the service or configuration running, and if so, it is queued, and the interval round is performed according to the processing time stored in the feature database. When it is detected that the service or the process in the configuration is not running, it is judged whether there is an associated service to operate, if not, the test case can be directly executed, if there is, it is judged whether the urgency and importance of the test case are The highest, if it is the highest, the test case will be executed directly. If it is not the highest, an execution request will be sent to the associated test user. When the tester agrees to interrupt the test, the test case will be executed. If they do not agree, they will wait in line.

针对上述判断决策,将执行测试用例的结果进行存储,并将结果返回给所有测试人员目前是否已经执行了测试用例,记录执行操作并同时警告用户避开相关操作先行其他测试,若有用户收到执行测试用例的请求,根据需要决策是否允许执行。另外可查看用户自己的操作是否会受到其他用例执行的影响。In response to the above judgment and decision, the result of executing the test case is stored, and the result is returned to all testers whether the test case has been executed at present, the execution operation is recorded, and the user is warned to avoid the relevant operation and perform other tests first. Execute the request of the test case, and decide whether to allow the execution according to the need. You can also see if the user's own actions are affected by the execution of other use cases.

本发明实施例针对现有软件测试过程中更改底层配置或重启服务等相关操作存在的测试效率低下、测试不智能、硬件设备浪费、测试压力不够、关联业务覆盖不全以及成本高的问题,提出了一种针对软件测试中更改底层配置或重启服务的方法,在目标测试用例请求执行时,对是否存在系统正在执行目标测试用例的同等操作、是否有该服务或配置内的进程正在运行、是否有关联服务正在执行、目标测试用例的紧急程度和重要程度进行监控,并将执行操作请求发送给关联用户,根据关联用户需求判断决策是否立即执行目标测试用例,从而提高软件测试的智能化,有利于提升产品质量,增加公司效益。The embodiments of the present invention address the problems of low test efficiency, unintelligent testing, waste of hardware equipment, insufficient test pressure, incomplete coverage of related services, and high cost in the related operations such as changing the underlying configuration or restarting services in the existing software testing process. A method for changing the underlying configuration or restarting a service in software testing. When the target test case is requested to be executed, whether there is an equivalent operation of the system executing the target test case, whether there is a process in the service or configuration is running, whether there is The associated service is being executed, the urgency and importance of the target test case are monitored, and the execution operation request is sent to the associated user, and the decision is made to immediately execute the target test case according to the needs of the associated user, thereby improving the intelligence of software testing and conducive to Improve product quality and increase company efficiency.

如图3所示,本发明实施例还公开了一种软件测试中防止测试冲突的系统,所述系统包括:As shown in FIG. 3 , an embodiment of the present invention further discloses a system for preventing test conflicts in software testing, the system comprising:

特征数据库,用于设置特征数据库,记录和存储各种服务及处理所需时间;Feature database, which is used to set the feature database, record and store the time required for various services and processing;

目标测试用例获取模块,用于当存在测试用例执行请求时,获取目标测试用例,并下发监控命令;The target test case acquisition module is used to acquire the target test case and issue the monitoring command when there is a test case execution request;

监控模块,用于根据监控命令遍历所有用户的操作是否存在涉及执行目标测试用例的同等操作、判断是否存在正在运行的涉及执行目标测试用例的进程或关联进程、判断是否存在涉及执行目标测试用例的关联服务,并将监控结果发送至判断决策模块;The monitoring module is used to traverse all user operations according to the monitoring command to see if there is an equivalent operation involving the execution of the target test case, to determine whether there is a running process or associated process that involves the execution of the target test case, and to determine whether there is a process that involves the execution of the target test case. Associate services, and send the monitoring results to the judgment and decision-making module;

判断决策模块,用于对监控模块返回的监控结果按照优先级进行处理,当存在涉及执行目标测试用例的同等操作时,进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;当存在正在运行的涉及执行目标测试用例的进程或关联进程时,进行排队等待,并根据特征数据库中储存的处理所需时间进行间隔轮询;以及当存在涉及执行目标测试用例的关联服务时,根据紧急程度决定是否执行目标测试用例,当不存在时直接执行目标测试用例。The judgment and decision module is used to process the monitoring results returned by the monitoring module according to the priority. When there is an equivalent operation involving the execution of the target test case, it will wait in a queue and poll at intervals according to the processing time stored in the feature database. ; when there is a running process or associated process involved in executing the target test case, queue waiting, and poll at intervals according to the processing time stored in the feature database; and when there is an associated service involved in executing the target test case , decide whether to execute the target test case according to the urgency, and directly execute the target test case when it does not exist.

采集测试用例,当有新的测试用例要执行的时候,获取目标测试用例并保存该测试用例,当触发目标测试用例执行的时候,会下发判断决策命令。对于新添加的测试用例会补充到测试用例库中。Collect test cases. When there is a new test case to be executed, obtain the target test case and save the test case. When the execution of the target test case is triggered, a judgment decision command will be issued. The newly added test cases will be added to the test case library.

设置特征数据库,并在该特征数据库中记录和存储更改配置和重启服务关联的操作或者服务及处理所需要的时间,记录和存储每个服务的进程以及进程处理时间,以及记录服务的关联服务和操作以及处理所需时间。Set up a feature database, and record and store the operations associated with changing the configuration and restarting the service or the time required for the service and processing in the feature database, record and store the process of each service and the process processing time, and record the associated services and services of the service. operation and processing time.

对目标测试用例的执行进行监控,并根据监控结果按照优先级进行判断决策。Monitor the execution of target test cases, and make judgments and decisions according to priority according to the monitoring results.

当收到执行测试用例请求时,遍历系统中所有用户的操作是否涉及执行目标测试用例的同等操作,若返回的结果为有同等操作,则进行排队等待,并根据特征数据库中储存的处理时间进行间隔轮询;当监测到没有同等操作时,判断是否有该服务或配置内的进程正在运行,若有则进行排队等待,并根据特征数据库中储存的处理时间进行间隔轮询;当监测到没有该服务或配置内的进程正在运行,则判断是否有关联服务进行操作,若没有则可以直接执行该测试用例,若有则判断该测试用例的紧急程度和重要程度是否为最高,若为最高则直接执行该测试用例,若非最高,发送执行请求给关联测试用户,测试人员同意中断其测试时,执行测试用例,不同意则排队等待。When a request to execute a test case is received, check whether the operation of traversing all users in the system involves performing the equivalent operation of the target test case. If the returned result is that there is an equivalent operation, it will be queued and waited according to the processing time stored in the feature database. Interval polling; when no equivalent operation is detected, it is judged whether there is a process in the service or configuration running, if so, it is queued and polled at intervals according to the processing time stored in the feature database; when no equivalent operation is detected If the service or the process in the configuration is running, it is judged whether there is an associated service to operate. If not, the test case can be directly executed. If so, it is judged whether the urgency and importance of the test case are the highest. Execute the test case directly. If it is not the highest, send an execution request to the associated test user. When the tester agrees to interrupt the test, execute the test case. If they disagree, wait in line.

针对上述判断决策,将执行测试用例的结果进行存储,并将结果返回给所有测试人员目前是否已经执行了测试用例,记录执行操作并同时警告用户避开相关操作先行其他测试,若有用户收到执行测试用例的请求,根据需要决策是否允许执行。另外可查看用户自己的操作是否会受到其他用例执行的影响。In response to the above judgment and decision, the result of executing the test case is stored, and the result is returned to all testers whether the test case has been executed at present, the execution operation is recorded, and the user is warned to avoid the relevant operation and perform other tests first. Execute the request of the test case, and decide whether to allow the execution according to the need. You can also see if the user's own actions are affected by the execution of other use cases.

本发明实施例还公开了一种软件测试中防止测试冲突的设备,包括:The embodiment of the present invention also discloses a device for preventing test conflicts in software testing, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现所述的软件测试中防止测试冲突的方法。The processor is used for executing the computer program to implement the method for preventing test conflict in software testing.

本发明实施例还公开了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现所述的软件测试中防止测试冲突的方法。The embodiment of the present invention also discloses a readable storage medium for storing a computer program, wherein when the computer program is executed by a processor, the method for preventing test conflicts in software testing is implemented.

以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

Claims (8)

1. A method for preventing test collision in software testing, the method comprising the operations of:
setting a characteristic database, and recording and storing various services and time required by processing;
when a test case execution request exists, acquiring a target test case and issuing a monitoring command;
traversing whether the operation of all users has the same operation related to executing the target test case, if so, queuing and waiting, and performing interval polling according to the time required by processing stored in the characteristic database;
judging whether a running process or a related process related to the execution of the target test case exists, if so, queuing and waiting, and performing interval polling according to the time required for processing stored in the characteristic database;
judging whether the associated service related to the execution of the target test case exists, if not, directly executing the target test case, otherwise, executing the next step;
and judging whether the emergency degree of the target test case is the highest, if so, directly executing the target test case, otherwise, sending an execution request to a related test user, if the test personnel approve to interrupt the test, executing the target test case, and if not, queuing for waiting.
2. The method of claim 1, wherein the time required for the services and processes comprises: time required for changing configuration and restarting services and processing associated with the services, time required for process and process processing of each service, and time required for associated services and processing of each service.
3. The method of claim 2, wherein when there is an equivalent operation related to executing a target test case, polling is performed at intervals according to the time required for changing the configuration and restarting the processing of the service associated with the service stored in the feature database; when the running process or the associated process related to the execution of the target test case exists, interval polling is carried out according to the process processing time of the process of each service stored in the characteristic database.
4. A system for preventing test conflicts in software testing, the system comprising:
the characteristic database is used for setting the characteristic database and recording and storing various services and time required by processing;
the target test case acquisition module is used for acquiring a target test case and issuing a monitoring command when a test case execution request exists;
the monitoring module is used for traversing all the user operations according to the monitoring command to judge whether the same operation related to the execution of the target test case exists, judging whether the running process or the associated process related to the execution of the target test case exists, judging whether the associated service related to the execution of the target test case exists and sending the monitoring result to the judgment decision module;
the judgment decision module is used for processing the monitoring result returned by the monitoring module according to the priority, queuing for waiting when the same operation related to the execution of the target test case exists, and polling at intervals according to the processing time stored in the characteristic database; when a running process or a related process related to the execution of the target test case exists, queuing and waiting are carried out, and interval polling is carried out according to the time required for processing stored in the characteristic database; and when the associated service related to the execution of the target test case exists, determining whether to execute the target test case according to the emergency degree, and directly executing the target test case when the associated service does not exist.
5. The system of claim 4, wherein the time required for the services and processes comprises: time required for changing configuration and restarting services and processing associated with the services, time required for process and process processing of each service, and time required for associated services and processing of each service.
6. The system of claim 5, wherein when there are equivalent operations related to executing target test cases, polling is performed at intervals according to the time required for changing the configuration and restarting the processing of the service associated with the service stored in the feature database; when the running process or the associated process related to the execution of the target test case exists, interval polling is carried out according to the process processing time of the process of each service stored in the characteristic database.
7. An apparatus for preventing test collision in software test, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the method for preventing test collision in software testing according to any one of claims 1 to 3.
8. A readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements a method for preventing test collision in a software test according to any one of claims 1 to 3.
CN202010154793.8A 2020-03-08 2020-03-08 Method and system for preventing test conflict in software test Active CN111309627B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010154793.8A CN111309627B (en) 2020-03-08 2020-03-08 Method and system for preventing test conflict in software test

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010154793.8A CN111309627B (en) 2020-03-08 2020-03-08 Method and system for preventing test conflict in software test

Publications (2)

Publication Number Publication Date
CN111309627A true CN111309627A (en) 2020-06-19
CN111309627B CN111309627B (en) 2022-11-29

Family

ID=71149532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010154793.8A Active CN111309627B (en) 2020-03-08 2020-03-08 Method and system for preventing test conflict in software test

Country Status (1)

Country Link
CN (1) CN111309627B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687929A (en) * 2021-08-24 2021-11-23 济南浪潮数据技术有限公司 Exception handling method and related device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320334A1 (en) * 2007-06-19 2008-12-25 Microsoft Corporation Transactional debugger for a transactional memory system
WO2017219851A1 (en) * 2016-06-24 2017-12-28 深圳市中兴微电子技术有限公司 Method and apparatus for executing test case, and computer readable medium
CN110196804A (en) * 2018-04-24 2019-09-03 腾讯科技(深圳)有限公司 The test method and device of business, storage medium, electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080320334A1 (en) * 2007-06-19 2008-12-25 Microsoft Corporation Transactional debugger for a transactional memory system
WO2017219851A1 (en) * 2016-06-24 2017-12-28 深圳市中兴微电子技术有限公司 Method and apparatus for executing test case, and computer readable medium
CN107544899A (en) * 2016-06-24 2018-01-05 深圳市中兴微电子技术有限公司 A kind of method and device of implementation of test cases
CN110196804A (en) * 2018-04-24 2019-09-03 腾讯科技(深圳)有限公司 The test method and device of business, storage medium, electronic device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李捷荧等: "Woodpecker:支持细粒度冲突模拟的数据库测试框架", 《华东师范大学学报(自然科学版)》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113687929A (en) * 2021-08-24 2021-11-23 济南浪潮数据技术有限公司 Exception handling method and related device

Also Published As

Publication number Publication date
CN111309627B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN100543683C (en) Method and system for monitoring a process
US9082085B2 (en) Computing environment climate dependent policy management
US20070168201A1 (en) Formula for automatic prioritization of the business impact based on a failure on a service in a loosely coupled application
CN113157411B (en) Celery-based reliable configurable task system and device
CN110502399B (en) Fault detection method and device
CN110267215B (en) Data detection method, equipment and storage medium
CN112000574A (en) Pressure testing method, device, equipment and storage medium
CN116302989A (en) Stress testing method and system, storage medium, computer equipment
CN111309627B (en) Method and system for preventing test conflict in software test
US10579446B2 (en) Per-request event detection to improve request-response latency
CN110188008B (en) Job scheduling master-slave switching method and device, computer equipment and storage medium
CN118779232A (en) Test case execution method, device and server
CN113342596A (en) Distributed monitoring method, system and device for equipment indexes
CN115499493B (en) Asynchronous transaction processing method, device, storage medium and computer equipment
CN115150253B (en) Fault root cause determining method and device and electronic equipment
CN115408192A (en) IO error detection method of virtual machine and related components thereof
CN115190052A (en) Long connection management method, system and control unit
CN111324472B (en) Method and device for judging junk items based on information to be detected
CN114780993A (en) Data calling method and device
CN115048158A (en) Process arranging and calling method, system and computer equipment thereof
CN114996070B (en) A performance index testing method, device, equipment and storage medium
CN112650381A (en) Health self-checking method and system for nodes of distributed storage cluster
CN112231280B (en) Big data cluster detection method and device, electronic device and storage medium
JP7552280B2 (en) Information processing device, arrangement method, and program
CN113515400B (en) A method and device for abnormal monitoring of critical information infrastructure

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
CP03 Change of name, title or address

Address after: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee after: Suzhou Yuannao Intelligent Technology Co.,Ltd.

Country or region after: China

Address before: Building 9, No.1, guanpu Road, Guoxiang street, Wuzhong Economic Development Zone, Wuzhong District, Suzhou City, Jiangsu Province

Patentee before: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Country or region before: China