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

A method and device for automated testing

An automated test and tester technology, applied in the computer field, can solve the problems of occupying large test resources, unable to take into account the test depth and coverage breadth at the same time, and difficult to set the reward function, to achieve the effect of saving test resources.

Active Publication Date: 2022-03-04
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In the process of realizing the present invention, the inventor found that there are at least the following problems in the prior art: the first method is costly and will take up a lot of testing resources
The second method is highly random, and the test depth and coverage cannot be considered at the same time; the third method, it is difficult to quantify what kind of action is good and what kind of action is bad in some test scenarios, and it is difficult to set Reasonable Reward Function

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 Construction

[0038] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0039] figure 1 is a schematic diagram of main steps of a method for automated testing according to an embodiment of the present invention. Such as figure 1 As shown, the automated testing method of the embodiment of the present invention mainly includes the following steps:

[0040] Step S101: Collecting decision-making trajectory data of testers during testing, and us...

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 discloses a method and device for automatic testing, and relates to the technical field of computers. A specific implementation of the method includes: collecting decision-making trajectory data of testers during testing, and using the decision-making trajectory data as an expert strategy; creating a model of a reward function; using the expert strategy as an input of an inverse reinforcement learning algorithm, To find the reward coefficient that maximizes the value of the reward function; according to the reward function corresponding to the maximum reward coefficient, calculate the strategy corresponding to the maximum cumulative reward function value, so as to perform automated testing according to the strategy. In this embodiment, a reward function is designed through an inverse reinforcement learning algorithm, and then a strategy corresponding to the expert strategy is obtained, and automated testing is performed according to the strategy. The human test results were similar.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method and device for automatic testing. Background technique [0002] In software companies, whether it is the release of new functions or the return of old functions, a large number of tests are required to test the stability and robustness of the software. When conducting software testing, the more and deeper the test scenarios entered and the wider the coverage, the better the test effect can be considered. [0003] There are three ways in the prior art when performing software testing. The first is manual testing: the tester clicks each button to reach each scene; the second is testing with automated tools: such as Android's Monkey, which simulates the user's key input, touch screen input, gesture input, etc., depending on the number of devices There will be abnormalities for a long time; the third is to use the reinforcement learning algorithm, set the reward function of the al...

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 BEIJING JINGDONG SHANGKE INFORMATION TECH CO 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