WO2018177205A1 - Regression testing method, device, computer apparatus, and storage medium - Google Patents

Regression testing method, device, computer apparatus, and storage medium Download PDF

Info

Publication number
WO2018177205A1
WO2018177205A1 PCT/CN2018/080184 CN2018080184W WO2018177205A1 WO 2018177205 A1 WO2018177205 A1 WO 2018177205A1 CN 2018080184 W CN2018080184 W CN 2018080184W WO 2018177205 A1 WO2018177205 A1 WO 2018177205A1
Authority
WO
WIPO (PCT)
Prior art keywords
source program
test
identifier
program
location information
Prior art date
Application number
PCT/CN2018/080184
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 WO2018177205A1 publication Critical patent/WO2018177205A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by 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/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • the present application relates to a regression test method, apparatus, computer device, and storage medium.
  • the source program of the software needs to be modified several times. After each modification, the software needs to be regression tested to ensure that the functions of the software can be used normally.
  • the inventors realized that in each regression test, all test cases corresponding to the software need to be run, resulting in the unmodified source program being repeatedly executed repeatedly, making the software test less efficient.
  • a regression testing method In accordance with various embodiments disclosed herein, a regression testing method, apparatus, computer device, and storage medium are provided.
  • a regression test method includes:
  • the regression test is performed based on the found test cases.
  • a regression test device includes:
  • test instruction acquisition module configured to obtain a regression test instruction carrying a software identifier
  • a location information extraction module configured to extract source device modification location information corresponding to the software identifier in the regression test instruction
  • a program segment identification determining module configured to determine a program segment identifier corresponding to the source program modification location information
  • test case finding module configured to search for a test case corresponding to the block identifier
  • the regression test module is used to perform regression testing based on the found test cases.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the one or more processors such that the one or more The processors perform the following steps:
  • the regression test is performed based on the found test cases.
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
  • the regression test is performed based on the found test cases.
  • 1 is an application environment diagram of a regression test system in accordance with one or more embodiments.
  • FIG. 2 is a flow diagram of a regression testing method in accordance with one or more embodiments.
  • FIG. 3 is a flow diagram of the steps of acquiring a test source program in accordance with one or more embodiments.
  • FIG. 4 is a flow diagram showing the steps of obtaining source program modification location information in accordance with one or more embodiments.
  • FIG. 5 is a flow diagram of the steps of generating a test exception report in accordance with one or more embodiments.
  • FIG. 6 is a block diagram of a regression testing device in accordance with one or more embodiments.
  • Figure 7 is a block diagram of a regression test apparatus in another embodiment.
  • Figure 8 is a block diagram of a regression test apparatus in still another embodiment.
  • Figure 9 is a block diagram of a regression test apparatus in yet another embodiment.
  • Figure 10 is a block diagram of a computer device in accordance with one or more embodiments.
  • the regression test system includes a terminal 110 and a server 120.
  • the terminal 110 is connected to the server 120 through a network.
  • the terminal 110 and the server 120 may specifically be plural.
  • the terminal 110 may specifically be at least one of a notebook computer, a tablet computer, a smart phone, and a personal data assistant.
  • a regression test method is provided.
  • the embodiment is applied to the server 120 in the regression test system of FIG. 1 to illustrate that the server 120 runs a regression test program.
  • the regression test method is implemented by a regression test program, and the method specifically includes the following steps:
  • the server 120 stores a large number of source programs, and each source program is stored corresponding to the software identifier. Each software product corresponds to a software identifier, and the software identifier is a unique identifier of the software product.
  • the terminal 110 can access the source program stored in the server 120 through the network and modify the source program. When performing the regression test, the terminal 110 transmits an access request of the source program to the server 120, and the server 120 returns a plurality of software identifiers to the terminal 110 according to the access request. After receiving the plurality of software identifiers returned by the server 120, the terminal 110 displays the software identifier.
  • the terminal 110 selects a software identifier according to the operation of the displayed software identifier by the tester, generates a regression test command according to the selected software identifier, and sends the regression test command to the server 120.
  • the server 120 receives the regression test command sent by the terminal 110 and carries the software identifier.
  • Regression testing refers to re-testing after the source program has been modified to confirm that the modification has not introduced a new error or caused errors in other parts of the source program.
  • the server 120 stores the source program modification location information corresponding to each software identifier, and the modified location information may specifically be the line number where the modified code in the source program is located.
  • the server 120 parses the regression test command and extracts the software identifier in the regression test command.
  • the server 120 searches for the source program modification location information corresponding to the software identifier from the stored source program modification location information, and extracts the found source program modification location information.
  • the server 120 determines that the source program is modified to the location range information to which the location belongs.
  • the source program includes a plurality of program segments, and the location range information of each of the program segments is different, and the location range information of each program segment is stored corresponding to the program segment identifier of each program segment.
  • the server 120 compares the source program modification location information with the location range information of each program segment, determines the location range information to which the source program modification location information belongs, and obtains the program segment identifier corresponding to the determined location range information.
  • test case when the test case is written, a correspondence table between the test case and the associated program segment is established, and the established correspondence table is stored in the server 120, where the test case identifier and the block identifier are stored in the corresponding relationship table.
  • the test case ID is stored corresponding to the block ID.
  • the server 120 After determining the block identifier corresponding to the modified program segment, the server 120 searches for the test case identifier corresponding to the block identifier in the corresponding relationship table.
  • the server 120 extracts the searched test case from the stored test case, obtains the program segment in the source program to be tested according to the test case, and executes the obtained program segment to obtain the test result. Specifically, the server 120 may further extract the test cases according to the test cases in the correspondence table of the test cases and the associated program segments, and sort the test cases according to the execution order, and execute the sorted test cases.
  • a regression test instruction carrying the software identifier is obtained, and the software identifier is an identifier of the software to be tested. Extracting the source program corresponding to the software identifier to modify the location information, determining the program segment identifier corresponding to the source program modification location information, searching for the test case corresponding to the program segment identifier, and performing regression testing according to the found test case. There is no need to test according to all the test cases of the software to be tested. It is only necessary to find the test cases corresponding to the modified program segments for regression testing, which reduces the number of test cases used in the regression test, saves the time spent on the test, and improves the time. Test efficiency.
  • the step S202 specifically includes the step of acquiring a source program to be tested, and the step specifically includes the following:
  • the terminal 110 when modifying the source program, sends a source program acquisition request to the server 120, where the source program acquisition request includes a software identifier.
  • the server 120 parses the source program acquisition request and extracts the software identifier in the source program acquisition request.
  • the server 120 searches for the corresponding source program according to the software identifier, and sends the found source program to the terminal 110.
  • the terminal 110 displays the source program in the program editing page.
  • the tester can modify the source program in the program editing page.
  • the terminal 110 transmits a source program modification notification to the server 120 upon detecting a click operation on the storage button.
  • the server 120 when the server 120 receives the source program modification notification, the server 120 extracts the program segment identifier in the program modification notification, generates a program segment acquisition request according to the program segment identifier, and includes the verification information in the acquisition request, and sends the acquisition request to the terminal 110. . After verifying the verification information in the acquisition request, the terminal 110 acquires the modified program segment in the program editing page according to the program segment identifier in the acquisition request, and sends the modified program segment to the server 120. The server 120 searches for the original program segment corresponding to the program segment identifier in the stored source program, and replaces the original program segment with the modified program segment.
  • the modified program segment after receiving the program modification notification of the terminal, the modified program segment is obtained from the terminal, avoiding obtaining a complete source program, consuming a large amount of network transmission resources, saving transmission time, and replacing the acquired program segment.
  • the original program segment improves the update time of the source program.
  • S204 specifically includes the step of obtaining source device modification location information, and the step specifically includes the following content:
  • the server 120 extracts the software identifier in the regression test instruction, and extracts the source program to be tested corresponding to the software identifier and the original source program.
  • the server 120 searches for the terminal 110 that modifies the source program corresponding to the software identifier, and acquires the source program to be tested generated by modifying the source program on the terminal 110.
  • the server 120 searches for the original source program corresponding to the software identifier from the stored source program.
  • the source program to be tested is compared with the original source program to obtain a comparison result.
  • the server 120 compares the extracted source program to be tested with the original source program, obtains the content modified by the source program to be tested relative to the original source program, and obtains a comparison result according to the obtained modified content.
  • the server 120 searches for the content that matches the comparison result in the source program to be tested, and extracts the location information of the found source content in the source program to be tested, and the location information may specifically be the line of the found content. number.
  • S206 specifically includes the step of determining a program segment identifier, where the step specifically includes the following: acquiring location range information corresponding to each program segment identifier in the source program to be tested; and modifying the location information and the acquired location by the source program. The range information is compared, the location range information to which the source program modification location information belongs is determined; and the block identifier corresponding to the determined location range information is extracted.
  • the server 120 traverses each program segment in the source program to be tested, and identifies the block identifier of each program segment. After the block identifier is identified, the start line number and the end line number of the block corresponding to the block identifier are obtained, and the start line number and the end line number of the obtained block are stored corresponding to the block identifier of the block. A block location range mapping table is generated, where the starting line number and the ending line number are position range information corresponding to the block identifier.
  • the server 120 compares the source program modification location information with the location range information in the program segment location range mapping table, and compares whether the modified row number in the modified location information is between the start row number and the end row number in the location range information, if And determining that the location range information includes location range information of the source program modification location information, and extracting the program segment identifier corresponding to the location range information from the program segment location range mapping table.
  • the difference between the source program to be tested and the original source program is compared, the position information of the source program is accurately determined, and the position information of the source program is compared with the position range information of each program segment to determine the corresponding location information of the modified program.
  • the location range information is used to accurately determine the block identifier corresponding to the modified block.
  • S210 specifically includes a step of generating a test exception report, and the step specifically includes the following:
  • S502 Record code execution information of the source program in the regression test, and generate a test log.
  • the server 120 when the server 120 performs the regression test according to the found test case, the server 120 needs to execute the code in the source program when the program segment corresponding to the test case is run, and records the code execution information in the test process, and the code execution information is specific.
  • the line number including the code being executed and the line number where the unexecuted code is located may also include unexecuted code.
  • the server 120 can also record the test time, generate a test log and store it based on the test time and the execution of the record and the line number of the unexecuted code.
  • the server 120 extracts test abnormality information from the test log, and the test abnormality information may specifically be a line number of the code that is not executed in the test process and an unexecuted code, and store the line number and the code correspondingly to generate a test abnormality report, which will be tested.
  • the exception report is stored corresponding to the software identifier.
  • the server 120 may specifically send a test exception report to the terminal 110.
  • the test exception identifier can be executed in each test in the test exception report.
  • the terminal 110 sends a query request for testing an abnormality report to the server 120.
  • the query condition in the query request may specifically include at least one of a software identifier, a test case identifier, and a test time.
  • the server 120 extracts the query condition in the query request, searches for the test exception report according to the query condition, and returns the found test abnormality report to the terminal 110.
  • the code execution information of the source program is recorded, and a test log is generated, and a test exception report is generated according to the test abnormality information in the test log, and the test abnormality report can accurately reflect the position where the test abnormality occurs. It is convenient to modify and locate the block according to the test exception report.
  • a regression test apparatus 600 is provided.
  • the apparatus specifically includes: a test instruction acquisition module 602, a location information extraction module 604, a program segment identification determining module 606, and a test case finding module 608. And regression test module 610.
  • the test instruction obtaining module 602 is configured to obtain a regression test instruction carrying the software identifier
  • the location information extraction module 604 is configured to extract source program modification location information corresponding to the software identifier in the regression test instruction
  • a program segment identification determining module 606, configured to determine a program segment identifier corresponding to the source program modification location information
  • the test case finding module 608 is configured to search for a test case corresponding to the block identifier
  • the regression test module 610 is configured to perform a regression test according to the found test case.
  • a regression test instruction carrying the software identifier is obtained, and the software identifier is an identifier of the software to be tested. Extracting the source program corresponding to the software identifier to modify the location information, determining the program segment identifier corresponding to the source program modification location information, searching for the test case corresponding to the program segment identifier, and performing regression testing according to the found test case. There is no need to test according to all the test cases of the software to be tested. It is only necessary to find the test cases corresponding to the modified program segments for regression testing, which reduces the number of test cases used in the regression test, saves the time spent on the test, and improves the time. Test efficiency.
  • a regression testing device 600 is provided.
  • the device specifically includes a modification notification receiving module 612, a program segment obtaining module 614, and a program segment updating module 616.
  • the modification notification receiving module 612 is configured to receive a source program modification notification of the terminal.
  • the program segment obtaining module 614 is configured to acquire the modified program segment on the terminal according to the source program modification notification.
  • the block update module 616 is configured to update the corresponding original program segment in the source program according to the modified program segment.
  • the modified program segment after receiving the program modification notification of the terminal, the modified program segment is obtained from the terminal, avoiding obtaining a complete source program, consuming a large amount of network transmission resources, saving transmission time, and replacing the acquired program segment.
  • the original program segment improves the update time of the source program.
  • a regression testing device 600 is provided.
  • the location information extraction module 604 specifically includes: a source program extraction module 604a, a comparison result obtaining module 604b, and a modified location determining module 604c;
  • the determining module 606 specifically includes a range information obtaining module 606a and an information comparing module 606b.
  • the source program extraction module 604a is configured to extract the source program to be tested and the original source program corresponding to the software identifier.
  • the comparison result obtaining module 604b is configured to compare and compare the source program to be tested with the original source program to obtain a comparison result.
  • the modified location determining module 604c is configured to determine the source program modification location information according to the comparison result.
  • the range information obtaining module 606a is configured to obtain location range information corresponding to each block identifier in the source program to be tested.
  • the information comparison module 606b is configured to compare the source program modification location information with the acquired location range information, and determine the location range information to which the source program modification location information belongs;
  • the identifier extraction module 606c is configured to extract the program segment identifier corresponding to the determined location range information.
  • the difference between the source program to be tested and the original source program is compared, the position information of the source program is accurately determined, and the position information of the source program is compared with the position range information of each program segment to determine the corresponding location information of the modified program.
  • the location range information is used to accurately determine the block identifier corresponding to the modified block.
  • a regression testing device 600 is provided, and the device specifically includes:
  • the test log generation module 618 is configured to record code execution information of the source program in the regression test, and generate a test log.
  • the abnormal information extraction module 620 is configured to extract test abnormality information from the test log.
  • the abnormality report generating module 622 is configured to generate a test abnormality report according to the extracted test abnormality information.
  • the code execution information of the source program is recorded, and a test log is generated, and a test exception report is generated according to the test abnormality information in the test log, and the test abnormality report can accurately reflect the position where the test abnormality occurs. It is convenient to modify and locate the block according to the test exception report.
  • regression test device For the specific definition of the regression test device, reference may be made to the definition of the regression test method above, and details are not described herein again.
  • Each of the above-described regression test devices can be implemented in whole or in part by software, hardware, and combinations thereof.
  • Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
  • a computer device which may be a server, and its internal structure diagram may be as shown in FIG.
  • the computer device includes a processor, memory, network interface, and database connected by a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium, an internal memory.
  • the non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium.
  • the database of the computer device is used to store the source program modification location information, the program segment identifier or the test case corresponding to the software identifier.
  • the network interface of the computer device is used to communicate with an external terminal via a network connection.
  • the computer readable instructions are executed by the processor to implement a regression test method.
  • FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by one or more processors such that one or more processors implement any of the present application
  • the steps of the regression test method provided in the examples are not limited to:
  • One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application The steps provided by the regression test method.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • Synchlink DRAM SLDRAM
  • Memory Bus Radbus
  • RDRAM Direct RAM
  • DRAM Direct Memory Bus Dynamic RAM
  • RDRAM Memory Bus Dynamic RAM

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

A regression testing method, comprising: acquiring a regression testing instruction carrying a software identifier; retrieving source program modification position information corresponding to the software identifier in the regression testing instruction; determining a program segment identifier corresponding to the source program modification position information; searching for test cases corresponding to the program segment identifier; and performing, according to the found test cases, regression testing.

Description

回归测试方法、装置、计算机设备和存储介质Regression test method, device, computer device and storage medium
本申请要求于2017年03月27日提交中国专利局,申请号为2017101890485,申请名称为“回归测试方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application Serial No. JP-A No. No. No. No. No. No. No. No. No. No
技术领域Technical field
本申请涉及一种回归测试方法、装置、计算机设备和存储介质。The present application relates to a regression test method, apparatus, computer device, and storage medium.
背景技术Background technique
随着计算机技术的发展,具有各种功能软件的被开发,在软件开发完成后,往往需要对软件进行测试,在软件测试通过后才能投入应用。在软件测试过程中,需要编写多个测试用例用于对软件的功能进行测试,软件的功能由多个程序段实现的。With the development of computer technology, software with various functions has been developed. After the software development is completed, it is often necessary to test the software and then put it into use after the software test is passed. In the software testing process, multiple test cases need to be written to test the function of the software. The function of the software is implemented by multiple program segments.
在测试过程中,需要对软件的源程序进行多次修改,在每次修改后,需要对软件进行回归测试,以确保软件的功能可以被正常的使用。然而,发明人意识到,在每次回归测试时,都需要运行软件对应的全部测试用例,导致未经修改的源程序被多次重复执行,使得软件的测试效率较低。During the testing process, the source program of the software needs to be modified several times. After each modification, the software needs to be regression tested to ensure that the functions of the software can be used normally. However, the inventors realized that in each regression test, all test cases corresponding to the software need to be run, resulting in the unmodified source program being repeatedly executed repeatedly, making the software test less efficient.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种回归测试方法、装置、计算机设备和存储介质。In accordance with various embodiments disclosed herein, a regression testing method, apparatus, computer device, and storage medium are provided.
一种回归测试方法包括:A regression test method includes:
获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
一种回归测试装置包括:A regression test device includes:
测试指令获取模块,用于获取携带有软件标识的回归测试指令;a test instruction acquisition module, configured to obtain a regression test instruction carrying a software identifier;
位置信息提取模块,用于提取所述回归测试指令中软件标识对应的源程序修改位置信息;a location information extraction module, configured to extract source device modification location information corresponding to the software identifier in the regression test instruction;
程序段标识确定模块,用于确定所述源程序修改位置信息对应的程序段标识;a program segment identification determining module, configured to determine a program segment identifier corresponding to the source program modification location information;
测试用例查找模块,用于查找所述程序段标识对应的测试用例;及a test case finding module, configured to search for a test case corresponding to the block identifier; and
回归测试模块,用于根据查找到的测试用例进行回归测试。The regression test module is used to perform regression testing based on the found test cases.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the one or more processors such that the one or more The processors perform the following steps:
获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the present invention will be apparent from the description, drawings and claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings to be used in the embodiments will be briefly described below. Obviously, the drawings in the following description are only some embodiments of the present application, Those skilled in the art can also obtain other drawings based on these drawings without any creative work.
图1为根据一个或多个实施例中回归测试系统的应用环境图。1 is an application environment diagram of a regression test system in accordance with one or more embodiments.
图2为根据一个或多个实施例中回归测试方法的流程示意图。2 is a flow diagram of a regression testing method in accordance with one or more embodiments.
图3为根据一个或多个实施例中获取测试源程序的步骤的流程示意图。3 is a flow diagram of the steps of acquiring a test source program in accordance with one or more embodiments.
图4为根据一个或多个实施例中获得源程序修改位置信息的步骤的流程示意图。4 is a flow diagram showing the steps of obtaining source program modification location information in accordance with one or more embodiments.
图5为根据一个或多个实施例中生成测试异常报告的步骤的流程示意图。5 is a flow diagram of the steps of generating a test exception report in accordance with one or more embodiments.
图6为根据一个或多个实施例中回归测试装置的框图。6 is a block diagram of a regression testing device in accordance with one or more embodiments.
图7为另一个实施例中回归测试装置的框图。Figure 7 is a block diagram of a regression test apparatus in another embodiment.
图8为再一个实施例中回归测试装置的框图。Figure 8 is a block diagram of a regression test apparatus in still another embodiment.
图9为又一个实施例中回归测试装置的框图。Figure 9 is a block diagram of a regression test apparatus in yet another embodiment.
图10为根据一个或多个实施例中计算机设备的框图。Figure 10 is a block diagram of a computer device in accordance with one or more embodiments.
具体实施方式detailed description
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solutions and advantages of the present application more clear, 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.
图1为一个实施例中回归测试系统的应用环境图,回归测试系统中包括终端110和服务器120,终端110通过网络与服务器120连接。终端110和服务器120具体可以是多个。终端110具体可以是笔记本电脑、平板电脑、智能手机和个人数据助理中的至少一种。1 is an application environment diagram of a regression test system in an embodiment. The regression test system includes a terminal 110 and a server 120. The terminal 110 is connected to the server 120 through a network. The terminal 110 and the server 120 may specifically be plural. The terminal 110 may specifically be at least one of a notebook computer, a tablet computer, a smart phone, and a personal data assistant.
如图2所示,在其中一个实施例中,提供一种回归测试方法,本实施例以该方法应用于图1回归测试系统中的服务器120来举例说明,该服务器120上运行有回归测试程序,通过回归测试程序实施回归测试方法,该方法具体包括以下步骤:As shown in FIG. 2, in one embodiment, a regression test method is provided. The embodiment is applied to the server 120 in the regression test system of FIG. 1 to illustrate that the server 120 runs a regression test program. The regression test method is implemented by a regression test program, and the method specifically includes the following steps:
S202,获取携带有软件标识的回归测试指令。S202. Acquire a regression test instruction carrying a software identifier.
具体地,服务器120中存储着大量的源程序,各源程序与软件标识对应存储,每个软件产品对应一个软件标识,软件标识是软件产品的唯一标识。终端110通过网络可以访问服务器120中存储的源程序,并对源程序进行修改。在进行回归测试时,终端110向服务器120发送源程序的访问请求,服务器120根据访问请求向终端110返回多个软件标识。终端110在接收到服务器120返回的多个软件标识后,显示软件标识。终端110根据测试人员对显示的软件标识的操作选择软件标识,根据选择的软件标识生成回归测试指令,将回归测试指令发送至服务器120。服务器120接收终端110发送的携带有软件标识的回归测试指令。回归测试,是指修改了源程序后,重新进行测试以确认修改没有引入新的错误或导致源程序其他部分产生错误。Specifically, the server 120 stores a large number of source programs, and each source program is stored corresponding to the software identifier. Each software product corresponds to a software identifier, and the software identifier is a unique identifier of the software product. The terminal 110 can access the source program stored in the server 120 through the network and modify the source program. When performing the regression test, the terminal 110 transmits an access request of the source program to the server 120, and the server 120 returns a plurality of software identifiers to the terminal 110 according to the access request. After receiving the plurality of software identifiers returned by the server 120, the terminal 110 displays the software identifier. The terminal 110 selects a software identifier according to the operation of the displayed software identifier by the tester, generates a regression test command according to the selected software identifier, and sends the regression test command to the server 120. The server 120 receives the regression test command sent by the terminal 110 and carries the software identifier. Regression testing refers to re-testing after the source program has been modified to confirm that the modification has not introduced a new error or caused errors in other parts of the source program.
S204,提取回归测试指令中软件标识对应的源程序修改位置信息。S204. Extract source device modification location information corresponding to the software identifier in the regression test instruction.
具体地,服务器120中存储着各软件标识对应的源程序修改位置信息,修改位置信息具体可以是源程序中被修改的代码所在的行号。服务器120在接收到回归测试指令后,对回归测试指令进行解析,提取回归测试指令中的软件标识。服务器120从存储的源程序修改位置信息中查找与软件标识对应的源程序修改位置信息,并提取查找到的源程序修改位置信息。Specifically, the server 120 stores the source program modification location information corresponding to each software identifier, and the modified location information may specifically be the line number where the modified code in the source program is located. After receiving the regression test command, the server 120 parses the regression test command and extracts the software identifier in the regression test command. The server 120 searches for the source program modification location information corresponding to the software identifier from the stored source program modification location information, and extracts the found source program modification location information.
S206,确定源程序修改位置信息对应的程序段标识。S206. Determine a program segment identifier corresponding to the source program modification location information.
具体地,服务器120在提取到软件标识对应的源程序修改位置信息后,确定源程序修为位置所属的位置范围信息。源程序包括多个程序段,每个程序段的位置范围信息不同,将各程序段的位置范围信息与各程序段的程序段标识对应存储。服务器120将源程序修改位置信息和各程序段的位置范围信息进行比较,确定源程序修改位置信息所属的位置范围信息,获取确定的位 置范围信息对应的程序段标识。Specifically, after extracting the source program modification location information corresponding to the software identifier, the server 120 determines that the source program is modified to the location range information to which the location belongs. The source program includes a plurality of program segments, and the location range information of each of the program segments is different, and the location range information of each program segment is stored corresponding to the program segment identifier of each program segment. The server 120 compares the source program modification location information with the location range information of each program segment, determines the location range information to which the source program modification location information belongs, and obtains the program segment identifier corresponding to the determined location range information.
S208,查找程序段标识对应的测试用例。S208. Find a test case corresponding to the block identifier.
具体地,在编写测试用例时,会建立测试用例与关联的程序段的对应关系表,并将建立的对应关系表存储到服务器120中,对应关系表中存储着测试用例标识与程序段标识,测试用例标识与程序段标识对应存储。服务器120在确定经过修改的程序段对应的程序段标识后,在对应关系表中查找程序段标识对应的测试用例标识。Specifically, when the test case is written, a correspondence table between the test case and the associated program segment is established, and the established correspondence table is stored in the server 120, where the test case identifier and the block identifier are stored in the corresponding relationship table. The test case ID is stored corresponding to the block ID. After determining the block identifier corresponding to the modified program segment, the server 120 searches for the test case identifier corresponding to the block identifier in the corresponding relationship table.
S210,根据查找到的测试用例进行回归测试。S210, performing a regression test according to the found test case.
具体地,服务器120在查找到测试用例后,从存储的测试用例中,提取查找到的测试用例,根据测试用例获取待测试源程序中的程序段,执行获取到的程序段得到测试结果。服务器120具体还可以按照测试用例与关联的程序段的对应关系表中测试用例的顺序提取测试用例,并对测试用例按照执行顺序进行排序,执行排序后的测试用例。Specifically, after finding the test case, the server 120 extracts the searched test case from the stored test case, obtains the program segment in the source program to be tested according to the test case, and executes the obtained program segment to obtain the test result. Specifically, the server 120 may further extract the test cases according to the test cases in the correspondence table of the test cases and the associated program segments, and sort the test cases according to the execution order, and execute the sorted test cases.
本实施例中,在对软件的源程序进行修改后,获取携带有软件标识的回归测试指令,软件标识为待测试软件的标识。提取软件标识对应的源程序修改位置信息,确定源程序修改位置信息对应的程序段标识,查找程序段标识对应的测试用例,根据查找到的测试用例进行回归测试。无需根据待测软件的所有测试用例进行测试,只需查找修改后的程序段对应的测试用例进行回归测试,减少了回归测试时利用的测试用例的数量,节省了测试所耗费的时间,提高了测试效率。In this embodiment, after the source program of the software is modified, a regression test instruction carrying the software identifier is obtained, and the software identifier is an identifier of the software to be tested. Extracting the source program corresponding to the software identifier to modify the location information, determining the program segment identifier corresponding to the source program modification location information, searching for the test case corresponding to the program segment identifier, and performing regression testing according to the found test case. There is no need to test according to all the test cases of the software to be tested. It is only necessary to find the test cases corresponding to the modified program segments for regression testing, which reduces the number of test cases used in the regression test, saves the time spent on the test, and improves the time. Test efficiency.
如图3所示,在其中一个实施例中,S202之前具体还包括获取待测试源程序的步骤,该步骤具体包括以下内容:As shown in FIG. 3, in one embodiment, the step S202 specifically includes the step of acquiring a source program to be tested, and the step specifically includes the following:
S302,接收终端的源程序修改通知。S302. Receive a source program modification notification of the terminal.
具体地,在对源程序修改时,终端110向服务器120发送源程序获取请求,源程序获取请求中包括软件标识。服务器120在接收到终端110发送的源程序获取请求后,对源程序获取请求进行解析,提取源程序获取请求中的软件标识。服务器120根据软件标识查找对应的源程序,将查找到的源程序 发送至终端110。终端110在接收到源程序后,将源程序显示在程序编辑页面中。测试人员可以在程序编辑页面中对源程序进行修改,在修改完成后,点击程序编辑页面中的存储按钮。终端110在检测到存储按钮上的点击操作时,向服务器120发送源程序修改通知。Specifically, when modifying the source program, the terminal 110 sends a source program acquisition request to the server 120, where the source program acquisition request includes a software identifier. After receiving the source program acquisition request sent by the terminal 110, the server 120 parses the source program acquisition request and extracts the software identifier in the source program acquisition request. The server 120 searches for the corresponding source program according to the software identifier, and sends the found source program to the terminal 110. After receiving the source program, the terminal 110 displays the source program in the program editing page. The tester can modify the source program in the program editing page. After the modification is completed, click the store button in the program editing page. The terminal 110 transmits a source program modification notification to the server 120 upon detecting a click operation on the storage button.
S304,根据源程序修改通知获取终端上修改的程序段。S304. Acquire a modified program segment on the terminal according to the source program modification notification.
S306,根据所述修改的程序段更新源程序中相应的原始程序段。S306. Update the corresponding original program segment in the source program according to the modified program segment.
具体地,服务器120在接收到源程序修改通知时,服务器120提取程序修改通知中的程序段标识,根据程序段标识生成程序段获取请求,获取请求中包括验证信息,将获取请求发送至终端110。终端110在对获取请求中的验证信息验证通过后,根据获取请求中的程序段标识获取程序编辑页面中修改的程序段,将修改的程序段发送至服务器120。服务器120在存储的源程序中查找程序段标识对应的原始程序段,将原始程序段替换为修改的程序段。Specifically, when the server 120 receives the source program modification notification, the server 120 extracts the program segment identifier in the program modification notification, generates a program segment acquisition request according to the program segment identifier, and includes the verification information in the acquisition request, and sends the acquisition request to the terminal 110. . After verifying the verification information in the acquisition request, the terminal 110 acquires the modified program segment in the program editing page according to the program segment identifier in the acquisition request, and sends the modified program segment to the server 120. The server 120 searches for the original program segment corresponding to the program segment identifier in the stored source program, and replaces the original program segment with the modified program segment.
本实施例中,在接收到终端的程序修改通知后,从终端获取修改的程序段,避免获取完整的源程序,耗费大量的网络传输资源,节省了传输时间,将获取修改的程序段替换对应的原始程序段,提高了源程序的更新时间。In this embodiment, after receiving the program modification notification of the terminal, the modified program segment is obtained from the terminal, avoiding obtaining a complete source program, consuming a large amount of network transmission resources, saving transmission time, and replacing the acquired program segment. The original program segment improves the update time of the source program.
如图4所示,在其中一个实施例中,S204具体还包括获得源程序修改位置信息的步骤,该步骤具体包括以下内容:As shown in FIG. 4, in one embodiment, S204 specifically includes the step of obtaining source device modification location information, and the step specifically includes the following content:
S402,提取软件标识对应的待测试源程序和原始源程序。S402. Extract a source program to be tested corresponding to the software identifier and an original source program.
具体地,服务器120提取到回归测试指令中的软件标识,提取软件标识对应的待测试源程序和原始源程序。服务器120查找对软件标识对应的源程序进行修改的终端110,获取终端110上对源程序进行修改后生成的待测试源程序。服务器120从存储的源程序中查找软件标识对应的原始源程序。Specifically, the server 120 extracts the software identifier in the regression test instruction, and extracts the source program to be tested corresponding to the software identifier and the original source program. The server 120 searches for the terminal 110 that modifies the source program corresponding to the software identifier, and acquires the source program to be tested generated by modifying the source program on the terminal 110. The server 120 searches for the original source program corresponding to the software identifier from the stored source program.
S404,将待测试源程序和原始源程序进行差异化比较,获得比较结果。S404, the source program to be tested is compared with the original source program to obtain a comparison result.
具体地,服务器120将提取到的待测试源程序和原始源程序进行比较,获取待测试源程序相对于原始源程序修改的内容,根据获取到的修改的内容得到比较结果。Specifically, the server 120 compares the extracted source program to be tested with the original source program, obtains the content modified by the source program to be tested relative to the original source program, and obtains a comparison result according to the obtained modified content.
S406,根据比较结果确定源程序修改位置信息。S406. Determine, according to the comparison result, the source program to modify the location information.
具体地,服务器120在获取比较结果后,在待测试源程序中查找与比较结果匹配的内容,提取查找到的内容在待测试源程序的位置信息,位置信息具体可以是查找到的内容所在行号。Specifically, after obtaining the comparison result, the server 120 searches for the content that matches the comparison result in the source program to be tested, and extracts the location information of the found source content in the source program to be tested, and the location information may specifically be the line of the found content. number.
在其中一个实施例中,S206具体包括确定程序段标识的步骤,该步骤具体包括以下内容:获取待测试源程序中各程序段标识对应的位置范围信息;将源程序修改位置信息与获取的位置范围信息进行比较,确定源程序修改位置信息所属的位置范围信息;提取确定的位置范围信息对应的程序段标识。In one embodiment, S206 specifically includes the step of determining a program segment identifier, where the step specifically includes the following: acquiring location range information corresponding to each program segment identifier in the source program to be tested; and modifying the location information and the acquired location by the source program. The range information is compared, the location range information to which the source program modification location information belongs is determined; and the block identifier corresponding to the determined location range information is extracted.
具体地,服务器120在获取待测试源程序后,遍历待测试源程序中各程序段,对各程序段的程序段标识进行识别。在识别到程序段标识后,获取该程序段标识对应的程序段的开始行号和结束行号,将获取到的程序段的开始行号和结束行号与程序段的程序段标识对应存储,生成程序段位置范围映射表,其中开始行号和结束行号为与程序段标识对应的位置范围信息。服务器120将源程序修改位置信息与程序段位置范围映射表中的位置范围信息进行比较,比较修改位置信息中的修改行号是否在位置范围信息中的开始行号和结束行号之间,若是,则确定该位置范围信息包括源程序修改位置信息的位置范围信息,从程序段位置范围映射表中提取位置范围信息对应的程序段标识。Specifically, after obtaining the source program to be tested, the server 120 traverses each program segment in the source program to be tested, and identifies the block identifier of each program segment. After the block identifier is identified, the start line number and the end line number of the block corresponding to the block identifier are obtained, and the start line number and the end line number of the obtained block are stored corresponding to the block identifier of the block. A block location range mapping table is generated, where the starting line number and the ending line number are position range information corresponding to the block identifier. The server 120 compares the source program modification location information with the location range information in the program segment location range mapping table, and compares whether the modified row number in the modified location information is between the start row number and the end row number in the location range information, if And determining that the location range information includes location range information of the source program modification location information, and extracting the program segment identifier corresponding to the location range information from the program segment location range mapping table.
本实施例中,通过待测试源程序和原始源程序进行差异化比较,准确确定源程序修改位置信息,根据源程序修改位置信息与各程序段的位置范围信息进行比较,确定修改位置信息对应的位置范围信息,从而准确确定修改的程序段对应的程序段标识。In this embodiment, the difference between the source program to be tested and the original source program is compared, the position information of the source program is accurately determined, and the position information of the source program is compared with the position range information of each program segment to determine the corresponding location information of the modified program. The location range information is used to accurately determine the block identifier corresponding to the modified block.
如图5所示,在其中一个实施例中,S210之后具体还包括生成测试异常报告的步骤,该步骤具体包括以下内容:As shown in FIG. 5, in one embodiment, S210 specifically includes a step of generating a test exception report, and the step specifically includes the following:
S502,记录源程序在回归测试中的代码执行信息,并生成测试日志。S502: Record code execution information of the source program in the regression test, and generate a test log.
具体地,服务器120在根据查找到的测试用例进行回归测试时,服务器120在运行测试用例对应的程序段时,需要执行源程序中的代码,记录测试过程中的代码执行信息,代码执行信息具体包括执行的代码所在的行号和未 执行的代码所在的行号,还可以包括未执行的代码。服务器120还可以记录测试时间,根据测试时间和记录的执行的以及未执行的代码所在行号生成测试日志并存储。Specifically, when the server 120 performs the regression test according to the found test case, the server 120 needs to execute the code in the source program when the program segment corresponding to the test case is run, and records the code execution information in the test process, and the code execution information is specific. The line number including the code being executed and the line number where the unexecuted code is located may also include unexecuted code. The server 120 can also record the test time, generate a test log and store it based on the test time and the execution of the record and the line number of the unexecuted code.
S504,从测试日志中提取测试异常信息。S504. Extract test abnormality information from the test log.
S506,根据提取到的测试异常信息生成测试异常报告。S506. Generate a test exception report according to the extracted test abnormality information.
具体地,服务器120从测试日志中提取测试异常信息,测试异常信息具体可以是测试过程未执行的代码所在的行号以及未执行的代码,将行号和代码对应存储生成测试异常报告,将测试异常报告与软件标识对应存储。服务器120具体可以将测试异常报告发送至终端110。其中测试异常报告中还可以每次测试所执行的测试用例标识Specifically, the server 120 extracts test abnormality information from the test log, and the test abnormality information may specifically be a line number of the code that is not executed in the test process and an unexecuted code, and store the line number and the code correspondingly to generate a test abnormality report, which will be tested. The exception report is stored corresponding to the software identifier. The server 120 may specifically send a test exception report to the terminal 110. The test exception identifier can be executed in each test in the test exception report.
在其中一个实施例中,终端110向服务器120发送测试异常报告的查询请求,查询请求中查询条件具体可以包括软件标识、测试用例标识和测试时间中的至少一种。服务器120在接收到测试异常报告的查询请求后,提取查询请求中的查询条件,根据查询条件查找测试异常报告,将查找到的测试异常报告返回至终端110。In one embodiment, the terminal 110 sends a query request for testing an abnormality report to the server 120. The query condition in the query request may specifically include at least one of a software identifier, a test case identifier, and a test time. After receiving the query request for testing the abnormal report, the server 120 extracts the query condition in the query request, searches for the test exception report according to the query condition, and returns the found test abnormality report to the terminal 110.
本实施例中,在回归测试过程中,记录源程序的代码执行信息,并生成测试日志,根据测试日志中的测试异常信息生成测试异常报告,通过测试异常报告可以准确反映测试异常出现的位置,便于根据测试异常报告对程序段进行修改定位。In this embodiment, during the regression test, the code execution information of the source program is recorded, and a test log is generated, and a test exception report is generated according to the test abnormality information in the test log, and the test abnormality report can accurately reflect the position where the test abnormality occurs. It is convenient to modify and locate the block according to the test exception report.
应该理解的是,虽然图2-5的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-5中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-5 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in Figures 2-5 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
如图6所示,在其中一个实施例中,提供一种回归测试装置600,该装置具体包括:测试指令获取模块602、位置信息提取模块604、程序段标识确定模块606、测试用例查找模块608和回归测试模块610。As shown in FIG. 6, in one embodiment, a regression test apparatus 600 is provided. The apparatus specifically includes: a test instruction acquisition module 602, a location information extraction module 604, a program segment identification determining module 606, and a test case finding module 608. And regression test module 610.
测试指令获取模块602,用于获取携带有软件标识的回归测试指令;The test instruction obtaining module 602 is configured to obtain a regression test instruction carrying the software identifier;
位置信息提取模块604,用于提取回归测试指令中软件标识对应的源程序修改位置信息;The location information extraction module 604 is configured to extract source program modification location information corresponding to the software identifier in the regression test instruction;
程序段标识确定模块606,用于确定源程序修改位置信息对应的程序段标识;a program segment identification determining module 606, configured to determine a program segment identifier corresponding to the source program modification location information;
测试用例查找模块608,用于查找程序段标识对应的测试用例;The test case finding module 608 is configured to search for a test case corresponding to the block identifier;
回归测试模块610,用于根据查找到的测试用例进行回归测试。The regression test module 610 is configured to perform a regression test according to the found test case.
本实施例中,在对软件的源程序进行修改后,获取携带有软件标识的回归测试指令,软件标识为待测试软件的标识。提取软件标识对应的源程序修改位置信息,确定源程序修改位置信息对应的程序段标识,查找程序段标识对应的测试用例,根据查找到的测试用例进行回归测试。无需根据待测软件的所有测试用例进行测试,只需查找修改后的程序段对应的测试用例进行回归测试,减少了回归测试时利用的测试用例的数量,节省了测试所耗费的时间,提高了测试效率。In this embodiment, after the source program of the software is modified, a regression test instruction carrying the software identifier is obtained, and the software identifier is an identifier of the software to be tested. Extracting the source program corresponding to the software identifier to modify the location information, determining the program segment identifier corresponding to the source program modification location information, searching for the test case corresponding to the program segment identifier, and performing regression testing according to the found test case. There is no need to test according to all the test cases of the software to be tested. It is only necessary to find the test cases corresponding to the modified program segments for regression testing, which reduces the number of test cases used in the regression test, saves the time spent on the test, and improves the time. Test efficiency.
如图7所示,在其中一个实施例中,提供一种回归测试装置600,该装置具体还包括:修改通知接收模块612、程序段获取模块614和程序段更新模块616。As shown in FIG. 7, in one embodiment, a regression testing device 600 is provided. The device specifically includes a modification notification receiving module 612, a program segment obtaining module 614, and a program segment updating module 616.
修改通知接收模块612,用于接收终端的源程序修改通知。The modification notification receiving module 612 is configured to receive a source program modification notification of the terminal.
程序段获取模块614,用于根据源程序修改通知获取终端上修改的程序段。The program segment obtaining module 614 is configured to acquire the modified program segment on the terminal according to the source program modification notification.
程序段更新模块616,用于根据修改的程序段更新源程序中相应的原始程序段。The block update module 616 is configured to update the corresponding original program segment in the source program according to the modified program segment.
本实施例中,在接收到终端的程序修改通知后,从终端获取修改的程序 段,避免获取完整的源程序,耗费大量的网络传输资源,节省了传输时间,将获取修改的程序段替换对应的原始程序段,提高了源程序的更新时间。In this embodiment, after receiving the program modification notification of the terminal, the modified program segment is obtained from the terminal, avoiding obtaining a complete source program, consuming a large amount of network transmission resources, saving transmission time, and replacing the acquired program segment. The original program segment improves the update time of the source program.
如图8所示,在其中一个实施例中,提供一种回归测试装置600,位置信息提取模块604具体包括:源程序提取模块604a、比较结果获得模块604b和修改位置确定模块604c;程序段标识确定模块606具体包括范围信息获取模块606a和信息比较模块606b。As shown in FIG. 8, in one embodiment, a regression testing device 600 is provided. The location information extraction module 604 specifically includes: a source program extraction module 604a, a comparison result obtaining module 604b, and a modified location determining module 604c; The determining module 606 specifically includes a range information obtaining module 606a and an information comparing module 606b.
源程序提取模块604a,用于提取软件标识对应的待测试源程序和原始源程序。The source program extraction module 604a is configured to extract the source program to be tested and the original source program corresponding to the software identifier.
比较结果获得模块604b,用于将待测试源程序和原始源程序进行差异化比较,获得比较结果。The comparison result obtaining module 604b is configured to compare and compare the source program to be tested with the original source program to obtain a comparison result.
修改位置确定模块604c,用于根据比较结果确定源程序修改位置信息。The modified location determining module 604c is configured to determine the source program modification location information according to the comparison result.
范围信息获取模块606a,用于获取待测试源程序中各程序段标识对应的位置范围信息。The range information obtaining module 606a is configured to obtain location range information corresponding to each block identifier in the source program to be tested.
信息比较模块606b,用于将源程序修改位置信息与获取的位置范围信息进行比较,确定源程序修改位置信息所属的位置范围信息;The information comparison module 606b is configured to compare the source program modification location information with the acquired location range information, and determine the location range information to which the source program modification location information belongs;
标识提取模块606c,用于提取确定的位置范围信息对应的程序段标识。The identifier extraction module 606c is configured to extract the program segment identifier corresponding to the determined location range information.
本实施例中,通过待测试源程序和原始源程序进行差异化比较,准确确定源程序修改位置信息,根据源程序修改位置信息与各程序段的位置范围信息进行比较,确定修改位置信息对应的位置范围信息,从而准确确定修改的程序段对应的程序段标识。In this embodiment, the difference between the source program to be tested and the original source program is compared, the position information of the source program is accurately determined, and the position information of the source program is compared with the position range information of each program segment to determine the corresponding location information of the modified program. The location range information is used to accurately determine the block identifier corresponding to the modified block.
如图9所示,在其中一个实施例中,提供一种回归测试装置600,该装置具体还包括:As shown in FIG. 9, in one embodiment, a regression testing device 600 is provided, and the device specifically includes:
测试日志生成模块618,用于记录源程序在回归测试中的代码执行信息,并生成测试日志。The test log generation module 618 is configured to record code execution information of the source program in the regression test, and generate a test log.
异常信息提取模块620,用于从测试日志中提取测试异常信息;The abnormal information extraction module 620 is configured to extract test abnormality information from the test log.
异常报告生成模块622,用于根据提取到的测试异常信息生成测试异常报告。The abnormality report generating module 622 is configured to generate a test abnormality report according to the extracted test abnormality information.
本实施例中,在回归测试过程中,记录源程序的代码执行信息,并生成测试日志,根据测试日志中的测试异常信息生成测试异常报告,通过测试异常报告可以准确反映测试异常出现的位置,便于根据测试异常报告对程序段进行修改定位。In this embodiment, during the regression test, the code execution information of the source program is recorded, and a test log is generated, and a test exception report is generated according to the test abnormality information in the test log, and the test abnormality report can accurately reflect the position where the test abnormality occurs. It is convenient to modify and locate the block according to the test exception report.
关于回归测试装置的具体限定可以参见上文中对于回归测试方法的限定,在此不再赘述。上述回归测试装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the regression test device, reference may be made to the definition of the regression test method above, and details are not described herein again. Each of the above-described regression test devices can be implemented in whole or in part by software, hardware, and combinations thereof. Each of the above modules may be embedded in or independent of the processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor invokes the operations corresponding to the above modules.
在一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图10所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储与软件标识对应的源程序修改位置信息、程序段标识或测试用例。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种回归测试方法。In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in FIG. The computer device includes a processor, memory, network interface, and database connected by a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium, an internal memory. The non-volatile storage medium stores an operating system, computer readable instructions, and a database. The internal memory provides an environment for operation of an operating system and computer readable instructions in a non-volatile storage medium. The database of the computer device is used to store the source program modification location information, the program segment identifier or the test case corresponding to the software identifier. The network interface of the computer device is used to communicate with an external terminal via a network connection. The computer readable instructions are executed by the processor to implement a regression test method.
本领域技术人员可以理解,图10中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 10 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the computer device to which the solution of the present application is applied. The specific computer device may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的回归测试方法的步骤。A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by one or more processors such that one or more processors implement any of the present application The steps of the regression test method provided in the examples.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的回归测试方法的步骤。One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application The steps provided by the regression test method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer readable instructions, which can be stored in a non-volatile computer. The readable storage medium, which when executed, may include the flow of an embodiment of the methods as described above. Any reference to a memory, storage, database or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain. Synchlink DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种回归测试方法,包括:A regression test method that includes:
    获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
    提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
    确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
    查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
    根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
  2. 根据权利要求1所述的方法,其特征在于,所述获取携带有软件标识的回归测试指令之前,所述方法还包括:The method according to claim 1, wherein before the obtaining the regression test instruction carrying the software identifier, the method further comprises:
    接收终端的源程序修改通知;Receiving source program modification notification of the terminal;
    根据所述源程序修改通知获取终端上修改的程序段;及Obtaining the modified program segment on the terminal according to the source program modification notification; and
    根据所述修改的程序段更新源程序中相应的原始程序段。The corresponding original program segment in the source program is updated according to the modified program segment.
  3. 根据权利要求1所述的方法,其特征在于,所述提取所述回归测试指令中软件标识对应的源程序修改位置信息,包括:The method according to claim 1, wherein the extracting the source program modification location information corresponding to the software identifier in the regression test instruction comprises:
    提取所述软件标识对应的待测试源程序和原始源程序;Extracting the source program to be tested corresponding to the software identifier and the original source program;
    将所述待测试源程序和所述原始源程序进行差异化比较,获得比较结果;及Comparing the source program to be tested and the original source program to obtain a comparison result; and
    根据所述比较结果确定源程序修改位置信息。The source program modification location information is determined based on the comparison result.
  4. 根据权利要求3所述的方法,其特征在于,所述确定所述源程序修改位置信息对应的程序段标识,包括:The method according to claim 3, wherein the determining the program segment identifier corresponding to the source program modification location information comprises:
    获取所述待测试源程序中各程序段标识对应的位置范围信息;Obtaining location range information corresponding to each program segment identifier in the source program to be tested;
    将所述源程序修改位置信息与获取的位置范围信息进行比较,确定所述源程序修改位置信息所属的位置范围信息;及Comparing the source program modification location information with the acquired location range information, and determining location location information to which the source program modification location information belongs;
    提取所述确定的位置范围信息对应的程序段标识。And extracting the program segment identifier corresponding to the determined location range information.
  5. 根据权利要求1-4任一项所述的方法,其特征在于,所述根据查找到的测试用例进行回归测试之后,所述方法还包括:The method according to any one of claims 1 to 4, wherein after the regression test is performed according to the found test case, the method further comprises:
    记录所述源程序在所述回归测试中的代码执行信息,并生成测试日志;Recording code execution information of the source program in the regression test, and generating a test log;
    从所述测试日志中提取测试异常信息;及Extracting test exception information from the test log; and
    根据提取到的测试异常信息生成测试异常报告。A test exception report is generated based on the extracted test exception information.
  6. 一种回归测试装置,包括:A regression test device comprising:
    测试指令获取模块,用于获取携带有软件标识的回归测试指令;a test instruction acquisition module, configured to obtain a regression test instruction carrying a software identifier;
    位置信息提取模块,用于提取所述回归测试指令中软件标识对应的源程序修改位置信息;a location information extraction module, configured to extract source device modification location information corresponding to the software identifier in the regression test instruction;
    程序段标识确定模块,用于确定所述源程序修改位置信息对应的程序段标识;a program segment identification determining module, configured to determine a program segment identifier corresponding to the source program modification location information;
    测试用例查找模块,用于查找所述程序段标识对应的测试用例;及a test case finding module, configured to search for a test case corresponding to the block identifier; and
    回归测试模块,用于根据查找到的测试用例进行回归测试。The regression test module is used to perform regression testing based on the found test cases.
  7. 根据权利要求6所述的装置,其特征在于,还包括:The device according to claim 6, further comprising:
    修改通知接收模块,用于接收终端的源程序修改通知;Modifying a notification receiving module, configured to receive a source program modification notification of the terminal;
    程序段获取模块,用于根据所述源程序修改通知获取终端上修改的程序段;及a program segment obtaining module, configured to modify, according to the source program, a notification to obtain a modified program segment on the terminal; and
    程序段更新模块,用于根据所述修改的程序段更新源程序中相应的原始程序段。a program segment updating module, configured to update a corresponding original program segment in the source program according to the modified program segment.
  8. 根据权利要求6所述的装置,其特征在于,所述位置信息提取模块包括:The device according to claim 6, wherein the location information extraction module comprises:
    源程序提取模块,用于提取所述软件标识对应的待测试源程序和原始源程序;a source program extraction module, configured to extract a source program to be tested corresponding to the software identifier and an original source program;
    比较结果获得模块,用于将所述待测试源程序和所述原始源程序进行差异化比较,获得比较结果;及a comparison result obtaining module, configured to compare the source program to be tested and the original source program to obtain a comparison result; and
    修改位置确定模块,用于根据所述比较结果确定源程序修改位置信息。And modifying a location determining module, configured to determine, according to the comparison result, source program modification location information.
  9. 根据权利要求8所述的装置,其特征在于,所述程序段标识确定模块包括:The device according to claim 8, wherein the program segment identification determining module comprises:
    范围信息获取模块,用于获取所述待测试源程序中各程序段标识对应的 位置范围信息;a range information obtaining module, configured to acquire location range information corresponding to each program segment identifier in the source program to be tested;
    信息比较模块,用于将所述源程序修改位置信息与获取的位置范围信息进行比较,确定所述源程序修改位置信息所属的位置范围信息;及An information comparison module, configured to compare the source program modification location information with the acquired location range information, and determine location location information to which the source program modification location information belongs;
    标识提取模块,用于提取所述确定的位置范围信息对应的程序段标识。And an identifier extraction module, configured to extract a program segment identifier corresponding to the determined location range information.
  10. 根据权利要求6-9任一项所述的装置,其特征在于,还包括:The device according to any one of claims 6-9, further comprising:
    测试日志生成模块,用于记录所述源程序在所述回归测试中的代码执行信息,并生成测试日志;a test log generating module, configured to record code execution information of the source program in the regression test, and generate a test log;
    异常信息提取模块,用于从所述测试日志中提取测试异常信息;An abnormality information extraction module, configured to extract test abnormality information from the test log;
    异常报告生成模块,用于根据提取到的测试异常信息生成测试异常报告。An abnormality report generating module is configured to generate a test abnormality report according to the extracted test abnormality information.
  11. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the one or more processors such that the one or more The processors perform the following steps:
    获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
    提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
    确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
    查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
    根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取携带有软件标识的回归测试指令之前,还执行以下步骤:The computer apparatus according to claim 11, wherein said computer readable instructions are executed by said processor such that said processor further executes before said obtaining a regression test instruction carrying a software identification The following steps:
    接收终端的源程序修改通知;Receiving source program modification notification of the terminal;
    根据所述源程序修改通知获取终端上修改的程序段;及Obtaining the modified program segment on the terminal according to the source program modification notification; and
    根据所述修改的程序段更新源程序中相应的原始程序段。The corresponding original program segment in the source program is updated according to the modified program segment.
  13. 根据权利要求11所述的计算机设备,其特征在于,所述提取所述回归测试指令中软件标识对应的源程序修改位置信息,包括:The computer device according to claim 11, wherein the extracting the source program modification location information corresponding to the software identifier in the regression test instruction comprises:
    提取所述软件标识对应的待测试源程序和原始源程序;Extracting the source program to be tested corresponding to the software identifier and the original source program;
    将所述待测试源程序和所述原始源程序进行差异化比较,获得比较结果;及Comparing the source program to be tested and the original source program to obtain a comparison result; and
    根据所述比较结果确定源程序修改位置信息。The source program modification location information is determined based on the comparison result.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述确定所述源程序修改位置信息对应的程序段标识,包括:The computer device according to claim 13, wherein the determining the program segment identifier corresponding to the source program modification location information comprises:
    获取所述待测试源程序中各程序段标识对应的位置范围信息;Obtaining location range information corresponding to each program segment identifier in the source program to be tested;
    将所述源程序修改位置信息与获取的位置范围信息进行比较,确定所述源程序修改位置信息所属的位置范围信息;及Comparing the source program modification location information with the acquired location range information, and determining location location information to which the source program modification location information belongs;
    提取所述确定的位置范围信息对应的程序段标识。And extracting the program segment identifier corresponding to the determined location range information.
  15. 根据权利要求11-14所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述根据查找到的测试用例进行回归测试之后,还执行以下步骤:A computer apparatus according to any of claims 11-14, wherein said computer readable instructions are executed by said processor, such that said processor, after performing said regression test based on said found test cases, Also perform the following steps:
    记录所述源程序在所述回归测试中的代码执行信息,并生成测试日志;Recording code execution information of the source program in the regression test, and generating a test log;
    从所述测试日志中提取测试异常信息;及Extracting test exception information from the test log; and
    根据提取到的测试异常信息生成测试异常报告。A test exception report is generated based on the extracted test exception information.
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause the one or more processors to perform the following steps:
    获取携带有软件标识的回归测试指令;Obtaining a regression test instruction carrying a software identifier;
    提取所述回归测试指令中软件标识对应的源程序修改位置信息;Extracting source program modification location information corresponding to the software identifier in the regression test instruction;
    确定所述源程序修改位置信息对应的程序段标识;Determining a program segment identifier corresponding to the source program modification location information;
    查找所述程序段标识对应的测试用例;及Finding a test case corresponding to the block identifier; and
    根据查找到的测试用例进行回归测试。The regression test is performed based on the found test cases.
  17. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取携带有软件标识的回归测试指令之前,还执行以下步骤:A storage medium according to claim 16 wherein said computer readable instructions are executed by said processor such that said processor further executes prior to performing said obtaining a regression test instruction carrying a software identification The following steps:
    接收终端的源程序修改通知;Receiving source program modification notification of the terminal;
    根据所述源程序修改通知获取终端上修改的程序段;及Obtaining the modified program segment on the terminal according to the source program modification notification; and
    根据所述修改的程序段更新源程序中相应的原始程序段。The corresponding original program segment in the source program is updated according to the modified program segment.
  18. 根据权利要求16所述的存储介质,其特征在于,所述提取所述回归测试指令中软件标识对应的源程序修改位置信息,包括:The storage medium according to claim 16, wherein the extracting the source program modification location information corresponding to the software identifier in the regression test instruction comprises:
    提取所述软件标识对应的待测试源程序和原始源程序;Extracting the source program to be tested corresponding to the software identifier and the original source program;
    将所述待测试源程序和所述原始源程序进行差异化比较,获得比较结果;及Comparing the source program to be tested and the original source program to obtain a comparison result; and
    根据所述比较结果确定源程序修改位置信息。The source program modification location information is determined based on the comparison result.
  19. 根据权利要求18所述的存储介质,其特征在于,所述确定所述源程序修改位置信息对应的程序段标识,包括:The storage medium according to claim 18, wherein the determining the program segment identifier corresponding to the source program modification location information comprises:
    获取所述待测试源程序中各程序段标识对应的位置范围信息;Obtaining location range information corresponding to each program segment identifier in the source program to be tested;
    将所述源程序修改位置信息与获取的位置范围信息进行比较,确定所述源程序修改位置信息所属的位置范围信息;及Comparing the source program modification location information with the acquired location range information, and determining location location information to which the source program modification location information belongs;
    提取所述确定的位置范围信息对应的程序段标识。And extracting the program segment identifier corresponding to the determined location range information.
  20. 根据权利要求16-19所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述根据查找到的测试用例进行回归测试之后,还执行以下步骤:A storage medium according to any of claims 16-19, wherein said computer readable instructions are executed by said processor such that said processor, after performing said regression test based on said found test cases, Also perform the following steps:
    记录所述源程序在所述回归测试中的代码执行信息,并生成测试日志;Recording code execution information of the source program in the regression test, and generating a test log;
    从所述测试日志中提取测试异常信息;及Extracting test exception information from the test log; and
    根据提取到的测试异常信息生成测试异常报告。A test exception report is generated based on the extracted test exception information.
PCT/CN2018/080184 2017-03-27 2018-03-23 Regression testing method, device, computer apparatus, and storage medium WO2018177205A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710189048.5A CN108255699A (en) 2017-03-27 2017-03-27 regression testing method and device
CN201710189048.5 2017-03-27

Publications (1)

Publication Number Publication Date
WO2018177205A1 true WO2018177205A1 (en) 2018-10-04

Family

ID=62721826

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/080184 WO2018177205A1 (en) 2017-03-27 2018-03-23 Regression testing method, device, computer apparatus, and storage medium

Country Status (2)

Country Link
CN (1) CN108255699A (en)
WO (1) WO2018177205A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109388568B (en) * 2018-09-29 2020-05-15 百度在线网络技术(北京)有限公司 Code testing method and device
CN110489321B (en) * 2019-07-08 2024-09-13 平安科技(深圳)有限公司 Test case screening method, device, computer equipment and storage medium
CN110515843B (en) * 2019-08-13 2022-05-06 成都飞机工业(集团)有限责任公司 Test case priority ordering method based on defect set and inverted index
CN112749080A (en) * 2019-10-31 2021-05-04 北京国双科技有限公司 Target program testing method and device, storage medium and electronic equipment
CN111078550A (en) * 2019-12-09 2020-04-28 深圳市网心科技有限公司 Software testing method and device, computer device and storage medium
US11429597B2 (en) 2020-01-23 2022-08-30 Cognizant Technology Solutions India Pvt. Ltd. System and method for reconstructing regression test scenarios using post-production events

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092748A (en) * 2011-11-07 2013-05-08 阿里巴巴集团控股有限公司 Method and system of test cases surely needing to perform regression testing
CN103617122A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Comparison method for source codes
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN104252408A (en) * 2013-06-26 2014-12-31 国际商业机器公司 Method and device for providing test case
US20170046245A1 (en) * 2015-08-13 2017-02-16 Ca, Inc. Method and Apparatus for Recommending Regression Tests

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302710B (en) * 2014-07-03 2019-06-07 腾讯科技(深圳)有限公司 The method and apparatus that a kind of determination needs the test case of regression test

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092748A (en) * 2011-11-07 2013-05-08 阿里巴巴集团控股有限公司 Method and system of test cases surely needing to perform regression testing
CN103678097A (en) * 2012-09-05 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for selecting regression test case
CN104252408A (en) * 2013-06-26 2014-12-31 国际商业机器公司 Method and device for providing test case
CN103617122A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Comparison method for source codes
US20170046245A1 (en) * 2015-08-13 2017-02-16 Ca, Inc. Method and Apparatus for Recommending Regression Tests

Also Published As

Publication number Publication date
CN108255699A (en) 2018-07-06

Similar Documents

Publication Publication Date Title
WO2018177205A1 (en) Regression testing method, device, computer apparatus, and storage medium
CN110489321B (en) Test case screening method, device, computer equipment and storage medium
CN110109897A (en) Database script generation method, device, computer equipment and storage medium
CN110764998B (en) Data comparison method, device, equipment and storage medium based on Django framework
WO2020232883A1 (en) Script defect scanning method and apparatus, computer device and storage medium
US20180165179A1 (en) Determining incompatibilities of automated test cases with modified user interfaces
CN111475517B (en) Data updating method, device, computer equipment and storage medium
CN109361628B (en) Message assembling method and device, computer equipment and storage medium
CN108965383B (en) File synchronization method and device, computer equipment and storage medium
CN114465937B (en) Network card testing method, device, server and medium
WO2018177202A1 (en) Test result generation method, device, computer apparatus, and storage medium
WO2019037418A1 (en) Code management method and apparatus, computer device and computer-readable storage medium
CN110795171B (en) Service data processing method, device, computer equipment and storage medium
WO2018195795A1 (en) Test method, test server, and system
CN108399125B (en) Automatic testing method and device, computer equipment and storage medium
WO2019148657A1 (en) Method for testing associated environments, electronic device and computer readable storage medium
CN111597069A (en) Program processing method, program processing apparatus, electronic device, and storage medium
CN110362478A (en) Application upgrade test method, device, computer equipment and storage medium
CN111522881B (en) Service data processing method, device, server and storage medium
CN112783866B (en) Data reading method, device, computer equipment and storage medium
CN112463620B (en) Coverage rate test method and device in android software integration test
WO2019019955A1 (en) Gesture test method and apparatus, computer device and storage medium
WO2019019454A1 (en) Layered testing method and device, computer equipment and storage medium
CN114816772B (en) Debugging method, debugging system and computing device for application running based on compatible layer
CA3191210A1 (en) Data syncronization method and device, computer equipment 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: 18776213

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 21.11.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 18776213

Country of ref document: EP

Kind code of ref document: A1