专利汇可以提供AUTOMATED REGRESSION TEST CASE SELECTOR AND BLACK BOX TEST COVERAGE TOOL FOR PRODUCT TESTING专利检索,专利查询,专利分析的服务。并且A method for testing a computer application includes identifying components of a version of the application, said components including one or more components that are one of new and modified, generating a keyword matrix of the identified application components. A search is performed in a test script repository with respect to components listed as at least one of the first and second dimensions of the matrix. The keyword matrix is populated with test case identification numbers in the search result. Based on the populated keyword matrix, one or more of (a) gaps in test case coverage for the version of the application, and (b) one or more test cases covering the version of the application are identified.,下面是AUTOMATED REGRESSION TEST CASE SELECTOR AND BLACK BOX TEST COVERAGE TOOL FOR PRODUCT TESTING专利的具体信息内容。
What is claimed is:
The field of the invention is generally related to software testing and more particularly to automated test case selection.
Software developers often develop software code in, and for, networking environments where the networked systems have diverse operating systems, or “platforms.” Software development is often performed incrementally. This means the software code is tested for proper performance as smaller incremental portions are completed, prior to incorporating the smaller portion into the whole. This incremental testing methodology contrasts with waiting to test the entire software application as whole, after completion. Software developers utilize small bits of code, or “scripts,” as mechanisms for testing these incremental software portions.
Some testing exercises can be put in simple terms as “breaking the software.” In other terms, it is a process to ensure the quality, correctness and completeness of the software under development. One of the most effective testing methodologies used in contemporary software development and testing environments is “Agile” development. Agile follows a dynamic approach to testing software “builds” gradually, in an iterative fashion. Typically, Agile automatically implements continuous testing as a “test driven” development methodology.
In some circumstances, testing requirements are not stable but dynamically fluctuate with the evolving needs of a customer. Customer satisfaction and return on investment (ROI) are directly related to “product quality” and “cost of quality,” testing therefore has a critical bearing on the success of any software project. It is the responsibility of software testers and developers to generate a product release having minimal defects. One tool in iterative testing is “regression testing,” which is often utilized in each iteration cycle of iterative development effort, such as Agile.
A problem with current regression testing based approaches is that quick and frequent iterations suppress a tester's ability not only to develop and maintain new test scripts, but also complicate identification and selection of every relevant test script from the test bed for execution with respect to the new software release. Because each software release iteration or “version” implies that a new software component is added or an existing software component is modified, a tester must manually re-configure the test scenarios taking care not to miss any test scenarios relating to the new or modified software components.
What is needed is a way to ensure that all the affected components, old and new, along with each of the component “dependencies” are tested thoroughly so that a defect-free product is delivered to the customer.
What is also needed is a way to provide total “black box” test scenario coverage. This is achieved by identifying not only the existing test scripts in the system, but also those missing test scenarios for which test case development is required in order to generate test scripts for all possible underlying component dependencies in a particular release version of the product.
Embodiments described herein attempt to address the above issues, among others. One aspect identifies relevant test scripts in the script repository to be executed in a particular release version of the product, which removes the need to execute every test script stored in the script repository. Another aspect identifies any missing test scenarios in the existing test scripts in the script repository, which should be added in order to achieve total black box test coverage for the particular release version of the product in the iterative development efforts.
In one embodiment, a method for testing a computer application is provided. The method includes identifying, by a test server, components of a version of the application, said components including one or more components that are one of new and modified, generating, by the test server, a keyword matrix of the identified application components, the keyword matrix having a set of all identified application components as a first dimension and a set of the one or more components that are one of new and modified as a second dimension, performing, by the test server, a search in a test script repository with respect to components listed as at least one of the first and second dimensions, said test script repository including test scripts referencing at least some of the identified components, and determining a result of the search. The method further includes populating, by the test server, the keyword matrix with test case identification numbers in the search result, the test case identification numbers corresponding to test scripts that refer to the at least some of the identified components of the application, and based on the populated keyword matrix, identifying, by the test server, one or more of (a) gaps in test case coverage for the version of the application, and (b) one or more test cases covering the version of the application.
In another embodiment, a system is provided for testing a computer application. The system includes a test script repository including computer readable storage medium having stored thereon computer executable test scripts, as well as a test server coupled to the test script repository. The test server includes a processor executing instructions for testing the computer application, the instructions including identifying components of a version of the application, said components including one or more components that are one of new and modified, generating a keyword matrix of the identified application components, the keyword matrix having a set of all identified application components as a first dimension and a set of the one or more components that are one of new and modified as a second dimension, performing a search in the test script repository with respect to components listed as at least one of the first and second dimensions, said test script repository including test scripts referencing at least some of the identified components, and determining a result of the search, populating the keyword matrix with test case identification numbers in the search result, the test case identification numbers corresponding to test scripts that refer to the at least some of the identified components of the application, and based on the populated keyword matrix, identifying one or more of (a) gaps in test case coverage for the version of the application, and (b) one or more test cases covering the version of the application.
In yet another embodiment, a non-transitory computer readable medium is provided having stored thereon computer executable instructions for testing a computer application. The instructions comprise identifying components of a version of the application, said components including one or more components that are one of new and modified, generating a keyword matrix of the identified application components, the keyword matrix having a set of all identified application components as a first dimension and a set of the one or more components that are one of new and modified as a second dimension, performing a search in a test script repository with respect to components listed as at least one of the first and second dimensions, said test script repository including test scripts referencing at least some of the identified components, and determining a result of the search, populating the keyword matrix with test case identification numbers in the search result, the test case identification numbers corresponding to test scripts that refer to the at least some of the identified components of the application, and based on the populated keyword matrix, identifying one or more of (a) gaps in test case coverage for the version of the application, and (b) one or more test cases covering the version of the application.
Additional features and advantages of an embodiment will be set forth in the description which follows, and in part will be apparent from the description. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the exemplary embodiments in the written description and claims hereof as well as the appended drawings. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are intended to provide further explanation of the invention as claimed.
The accompanying drawings constitute a part of this specification and illustrate an embodiment of the invention and together with the specification, explain the invention.
The present disclosure is here described in detail with reference to embodiments illustrated in the drawings, which form a part here. Other embodiments may be used and/or other changes may be made without departing from the spirit or scope of the present disclosure. The illustrative embodiments described in the detailed description are not meant to be limiting of the subject matter presented here. One skilled in the art recognizes that numerous alternative components and embodiments may be substituted for the particular examples described herein and still fall within the scope of the invention.
It should be appreciated scripts may refer to software development tools, software code, and other machine-readable files prepared to effectively test certain aspects of a larger software development project. Although test scripts are particularly useful in larger object-oriented software development efforts, it should be appreciated that neither the scripts nor the invention are intended to be limited to testing large object-oriented software.
As discussed in further detail below, the test server 106 performs an automated regression based test case analysis, whereby it identifies a list of test cases from the script repository 108 that need to be executed for a particular release version of the software under testing or each iteration of agile methodology. This can speed up the testing process by removing the need to execute the entire test bed of test scripts. Instead, only the test cases relevant to a particular release version are executed. Additionally, the test server 106 provides the result in a matrix format thereby indicating those components of the software product that are not being tested by the existing test cases. It takes into account all possible dependencies and interactions between the various components in the software product. This indicates the extent of test coverage of the components in the product that was modified during an iteration of the testing process and identifies any gaps in test scenarios, thereby informing which additional test cases need to be created and executed. The test server 106 also initiates an automatic batch run of identified test cases.
For a given release version, the software product under testing includes a plurality of components, e.g., n total components ranging from C1, C2 . . . through Cn. However, the number of software components “C” remains constant only for a particular release version of the product “V” and may for each release. With every release version of the product, a new component may be added, for example as a result of change request or business requirements, which causes the number of components to vary accordingly.
Each test case associated with a corresponding test script in repository 108 has a keyword table containing a set of keywords. Each component “C” in the product is considered to be a keyword. Hence, if the product is made up of components C1, C2, C3 . . . Cn, then the keyword set for the entire software product would likewise be C1, C2, C3 . . . Cn. Similarly, the keyword entries for a given test case in the keyword table are based on the particular components being tested by such test case. For example, if a test case “T” is aimed to verify the components C1, C3 and C5, the keyword table for this particular test case would consist of 3 keywords C1, C3 and C5. The keyword table for each test case is dynamic to accommodate more keywords or remove keywords in the future based on test case maintenance and changes to components of the software under testing. In the above described embodiment, the total number of keywords “K” is equal to the number of components “C” in the product. Hence “K=C.”
Every test case and corresponding test script in the test script repository 108 is associated with a unique Test Case identification (ID) (e.g., “T01,” “T02,” and so on). These IDs are used to populate the entries of a keyword matrix depicted in
The test server 106 performs a plurality of cross-referencing searches that fill in the keyword matrix 200 and thereby identify (a) test cases relevant to a particular version/release of the application under testing, as well as (b) any missing test scenarios with respect to any components or component combinations that are not accounted for in the existing test cases. In particular, after setting up the keyword matrix 200, the test server 106 performs a multiple searches, including a search based on the keyword table associated with each test case, as well as a search from the keyword matrix to the keyword table. The test cases in the test script repository 108 of the test management tool are traced in a linear fashion. The test server 106 performs a keyword based search from the first component of the Y axis of keyword matrix 200 to the keyword table of each test case.
If a match is found from the keyword table to the Y axis of the keyword matrix 200, then a search is performed along the X axis as well including any remaining keywords in the keyword table. For each match found along the X axis and its corresponding Y Axis, the Test Case ID is entered in the particular X-Y cell, as shown in
If a match is found only along the Y axis and not along the X axis, then Test Case ID entry is made only in the particular Xm-Xn cell, where m=n.
In an embodiment, if a match is not found along the Y axis in the keyword search of the keyword matrix, then search is not performed along the X axis for that keyword. The linear search is moved onto the next case in the test management tool. This is so because the aim of the process described herein is to optimize the test bed that needs to be executed for a particular release version of the product, hence if a match is not found against the Y axis (i.e., with respect to a test case related to a changed component or a new component), then there is no need to execute the test case.
After exercising the entire test bed to complete the keyword matrix, the test server 106 determines vacant spaces in the keyword matrix 200, graphically indicated as shaded spaces 202 in
With respect to the existing test cases identified as covering particular components for the software release in question, the corresponding Test Case ID(s) from the keyword matrix are provided by the test server 106 as an input to the automation test tool that automatically invokes their execution.
The foregoing method descriptions and the process flow diagrams are provided merely as illustrative examples and are not intended to require or imply that the steps of the various embodiments must be performed in the order presented. As will be appreciated by one of skill in the art the steps in the foregoing embodiments may be performed in any order. Words such as “then,” “next,” etc. are not intended to limit the order of the steps; these words are simply used to guide the reader through the description of the methods. Although process flow diagrams may describe the operations as a sequential process, many of the operations can be performed in parallel or concurrently. In addition, the order of the operations may be re-arranged. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to a return of the function to the calling function or the main function.
The various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Embodiments implemented in computer software may be implemented in software, firmware, middleware, microcode, hardware description languages, or any combination thereof. A code segment or machine-executable instructions may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and/or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted by any suitable means including memory sharing, message passing, token passing, network transmission, among others.
The actual software code or specialized control hardware used to implement these systems and methods is not limiting of the invention. Thus, the operation and behavior of the systems and methods were described without reference to the specific software code being understood that software and control hardware can be designed to implement the systems and methods based on the description herein.
When implemented in software, the functions may be stored as one or more instructions or code on a non-transitory computer-readable or processor-readable storage medium. The steps of a method or algorithm disclosed herein may be embodied in a processor-executable software module which may reside on a computer-readable or processor-readable storage medium. A non-transitory computer-readable or processor-readable media includes both computer storage media and tangible storage media that facilitate transfer of a computer program from one place to another. A non-transitory processor-readable storage media may be any available media that may be accessed by a computer. By way of example, and not limitation, such non-transitory processor-readable media may comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other tangible storage medium that may be used to store desired program code in the form of instructions or data structures and that may be accessed by a computer or processor. Disk and disc, as used herein, include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media. Additionally, the operations of a method or algorithm may reside as one or any combination or set of codes and/or instructions on a non-transitory processor-readable medium and/or computer-readable medium, which may be incorporated into a computer program product.
The preceding description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the following claims and the principles and novel features disclosed herein.
While various aspects and embodiments have been disclosed, other aspects and embodiments are contemplated. The various aspects and embodiments disclosed are for purposes of illustration and are not intended to be limiting, with the true scope and spirit being indicated by the following claims.
标题 | 发布/更新时间 | 阅读量 |
---|---|---|
基于图像识别技术的自动化测试方法及系统 | 2020-05-22 | 244 |
测试数据处理方法、装置、计算机设备和存储介质 | 2020-05-08 | 820 |
漏洞检测方法及装置 | 2020-05-19 | 222 |
一种智能变电站过程层网络黑盒测试方法 | 2020-05-20 | 42 |
一种应用完整性保护的测试方法、智能终端及存储介质 | 2020-05-11 | 76 |
基于遗传算法的机器学习模型自动生成方法 | 2020-05-13 | 996 |
一种通用的黑盒测试用例自动生成方法 | 2020-05-19 | 63 |
一种验证黑盒测试用例设计完整性的方法 | 2020-05-16 | 7 |
一种飞机位置灯和防撞灯功能测试电路及应用其的测试台 | 2020-05-13 | 895 |
汽车信息的安全测试方法及装置 | 2020-05-24 | 613 |
高效检索全球专利专利汇是专利免费检索,专利查询,专利分析-国家发明专利查询检索分析平台,是提供专利分析,专利查询,专利检索等数据服务功能的知识产权数据服务商。
我们的产品包含105个国家的1.26亿组数据,免费查、免费专利分析。
专利汇分析报告产品可以对行业情报数据进行梳理分析,涉及维度包括行业专利基本状况分析、地域分析、技术分析、发明人分析、申请人分析、专利权人分析、失效分析、核心专利分析、法律分析、研发重点分析、企业专利处境分析、技术处境分析、专利寿命分析、企业定位分析、引证分析等超过60个分析角度,系统通过AI智能系统对图表进行解读,只需1分钟,一键生成行业专利分析报告。