Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and device for automated testing

An automated testing and testing technology, applied in the field of computer applications, can solve the problems of increased maintenance costs, high operating costs, waste of testing resources and time, etc., to achieve the effects of increasing maintenance costs, reducing operating costs, and saving testing resources and time.

Active Publication Date: 2019-06-11
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, if the test piece is large and covers a wide area, it may cause a waste of test resources and time, and the operating cost is high
For example, if development engineer A modifies the product function of the Taobao homepage, if he wants to use the automated testware for regression testing, he must run the test piece "All User Behaviors on the Taobao Homepage", but this test piece may contain many things he does not need. Test cases, such as test cases related to store information, will waste test resources and time
For another example, development engineer B modifies the underlying module of the product function. He needs to regression test the product function of Taobao homepage and the product function of Taobao store. The test cases involved are distributed in "all user behavior of Taobao homepage" and "all user behavior "Among the two test pieces, he must run these two test pieces to cover his test scenarios, but these two test pieces may contain many test cases that he does not need, such as test cases related to store information , will also waste testing resources and time
[0004] If the test pieces are set relatively small so that each test piece contains only one or a few test cases, different test pieces are selected to run each time to reduce the running cost, but with the increase of test cases, the test pieces also More and more, increasing maintenance costs

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and device for automated testing
  • A method and device for automated testing
  • A method and device for automated testing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0081] In this embodiment, a test item is taken as an example for description, assuming that the test item involves three online applications, namely rfqaisn, rfqma and rfqbops, these three online applications correspond to a test piece respectively (of course, a test piece It does not necessarily have to correspond to an application, it can also be one-to-many, or many-to-one, here only one-to-one is used as an example). Since multiple business modules are usually involved in each online application, such as procurement requirements (RFQ) module, quotation module, sample module, etc., the test groups in each test piece can be divided based on business modules, so that test cases can be divided into managed internally. Assuming that a development engineer changes the content of the RFQ module, his changes may involve these three applications, that is, three test pieces, then this test project needs to run the test group corresponding to the RFQ module in these three test piece...

Embodiment 2

[0115] Figure 9 The device structure diagram of the automatic test provided for the second embodiment of the present invention, such as Figure 9 As shown in , the device may include a storage unit 00 , an execution unit 10 and a result acquisition unit 20 , and may further include: a judgment unit 30 , a creation unit 40 and a result output unit 50 .

[0116] Wherein, the storage unit 00 pre-stores the test groups to which each test case in the test piece belongs, that is, divides the test cases in each test piece into test groups in advance, and one test case can belong to multiple test groups, and different test pieces can also be Involves the same grouping of tests. Specifically, the storage unit 00 may specifically include: a second parsing subunit 01 and a storage subunit 02 .

[0117] The second parsing subunit 01 is responsible for obtaining and parsing the source code of the test piece. The source code can be obtained from SVN. In the source code, the group mode of...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a method and a device for automated testing, and a test grouping each test case belongs to in a test piece is stored in advance. The method comprises: operating a test set corresponding to a tested item, the test set comprising one or more test groupings in a test piece, or comprising testing groupings of a plurality of test pieces; in a processing of operating the test set, analyzing the test pieces related to the test set and the test cases in the test pieces; aimed at each test piece in the analytical result, respectively creating a test task, each test task taking charge of operating the test case of the test piece corresponding to the test task in the analytical result; and obtaining operating data of each test task to obtain operating data of the tested item, and the operating data at least comprising test results. The method and the device can flexibly combine test cases, thereby saving test resources and time and reducing operating cost, and maintenance cost of the test pieces would not increase.

Description

【Technical field】 [0001] The invention relates to the field of computer application technology, in particular to a method and device for automatic testing. 【Background technique】 [0002] Testware refers to a set of related test cases. For example, "all user behaviors on the Taobao homepage" is used as a testware. Existing automated tests must be executed based on the testware. [0003] However, if the test piece is large and covers a wide area, it may cause a waste of test resources and time, and the operating cost is high. For example, if development engineer A modifies the product function of the Taobao homepage, if he wants to use the automated testware for regression testing, he must run the test piece "All User Behaviors on the Taobao Homepage", but this test piece may contain many things he does not need. Test cases, such as test cases related to store information, will waste test resources and time. For another example, development engineer B modifies the underlyin...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 孙阳蔡长霞刘翔
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products