Test case generation method and device and problem scene automatic reproduction method and device

A test case generation and problem technology, applied in software testing/debugging, error detection/correction, instrumentation, etc., can solve problems such as low efficiency and time-consuming

Pending Publication Date: 2021-01-19
BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
View PDF0 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since GUI software contains a large number of windows, and each window contains many elements, the different combinations of these windows and elements therein form different functions of the software, the diversity of windows and elements in GUI software and the complexity of their combinations make Manually writing test cases often takes a lot of time and is inefficient

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
  • Test case generation method and device and problem scene automatic reproduction method and device
  • Test case generation method and device and problem scene automatic reproduction method and device
  • Test case generation method and device and problem scene automatic reproduction method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0100] In order to enable those skilled in the art to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and implementations.

[0101] Aiming at the problem of low efficiency of GUI generation in the prior art, an embodiment of the present invention provides a test case generation method and device, which uses a pre-trained interface element recognition model to identify screenshots of the user interface of the software to be tested, and obtains the user Each control in the screenshot of the interface and related information of the control; generate an interface test case set according to each control in the screenshot of the user interface and related information thereof, and use each test case in the interface test case set to comprehensively test the user interface Effectively test and improve the robustness of software systems.

[01...

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 test case generation method and device. The method comprises the steps of obtaining a user interface screenshot of to-be-tested software; identifying the user interface screenshot by using a pre-trained interface element identification model to obtain each control in the user interface screenshot and related information of the control; and generating an interface test case set according to each control in the user interface screenshot and related information thereof. The invention further discloses a problem scene automatic reproduction method and device. Test case generation efficiency can be improved, and the comprehensive test of a user interface is realized.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a method and device for generating test cases, and also to a method and device for automatically reproducing problem scenarios. Background technique [0002] Graphical User Interface (GUI for short) refers to a computer-operated user interface displayed graphically. It is an interface display format for human-computer communication, allowing users to use mouse and other input devices to manipulate icons or menu options on the screen. to select a command, recall a file, start a program, or perform some other everyday task. [0003] Existing tests for GUI usually require manual design of test cases according to the type and layout of interface controls, defining the tested objects, test methods, expected results, etc., and then the test terminal executes the test cases to complete the GUI test. Even if automated testing is used, that is, the machine simulates the user to test the G...

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
IPC IPC(8): G06F11/36G06F3/0484G06F3/0485G06F3/0488
CPCG06F3/04845G06F3/0485G06F3/0488G06F11/3684G06F11/3696
Inventor 韩青张静军
Owner BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products