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

Keyword-based automatic test method and computer readable storage medium

A technology of automated testing and storage media, applied in computing, software testing/debugging, error detection/correction, etc., can solve problems such as cutting corners, software quality has not been significantly improved, and there is no time to design test cases, so as to improve development efficiency and increase complexity. Usability and maintainability, reduce the effect of writing difficulty

Active Publication Date: 2020-05-29
XIAMEN MEIYA PICO INFORMATION +1
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

That is to say, testers must spend a lot of energy to complete the test, and have no time to design better test cases, which inevitably leads to a vicious circle. Testers repeat test cases, but the software quality does not improve significantly
That is to say, the current automated testing mainly has the problem of cumbersome writing of automated test scripts and cutting corners, resulting in low coverage of automated testing

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
  • Keyword-based automatic test method and computer readable storage medium
  • Keyword-based automatic test method and computer readable storage medium
  • Keyword-based automatic test method and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Please refer to figure 2 , Embodiment 1 of the present invention is: a keyword-based automated testing method, which can be applied to automated testing scenarios. The present embodiment is based on an automated testing platform, which is composed of Cucumber (a kind of automated testing tool), Mysql (relational database), JIRA (project and transaction tracking tool), and is widely used in defect tracking, user service, demand collection, etc. field of work) integrated secondary development.

[0041] Such as figure 2 As shown, the method includes the following steps:

[0042] S1: According to the keywords and assertion values ​​corresponding to the preset business scenarios, generate test cases for the business scenarios.

[0043] S2: According to the test cases of each business scenario contained in the business process of the business module, combine to obtain the test script of the business module. By combining business scenarios and writing automated test scri...

Embodiment 2

[0061] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:

[0062] Generate test cases for business scenarios according to keywords and assertion values ​​corresponding to preset business scenarios;

[0063] According to the test cases of each business scenario contained in the business process of the business module, the test script of the business module is obtained by combining;

[0064] Obtain a test script corresponding to the business module, and sequentially acquire a test case in the test script;

[0065] Analyzing the test case according to a preset regular expression to obtain keyword parameters and assertion values;

[0066] According to the keyword parameter, perform a business operation corresponding to a test case, and obtain an operation response value;

[0067] Comparing the operation...

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 keyword-based automatic test method and a computer readable storage medium, and the method comprises the steps: generating a test case of a service scene according to a keyword and an assertion value corresponding to a preset business scene; performing combining to obtain a test script of a service module according to the test case of each service scene contained in the service flow of the service module; acquiring a test script corresponding to the service module, and sequentially acquiring a test case in the test script; analyzing the test case according to a presetregular expression to obtain a keyword parameter and an assertion value; according to the keyword parameter, performing a service operation corresponding to the test case, and obtaining an operationresponse value; and comparing the operation response value with the assertion value to obtain a test result of the test case. The compiling difficulty of the automatic test script can be reduced, andthe development efficiency is improved.

Description

technical field [0001] The invention relates to the technical field of automated testing, in particular to a keyword-based automated testing method and a computer-readable storage medium. Background technique [0002] Automated testing is a process of converting human-driven testing behavior into machine execution. At present, the iterative speed of software update is much faster than people's imagination. As the last link of software development, software testing must keep up with this update speed. In the early stage of the release of the new version, on the one hand, it takes a lot of time and manpower to modify and test new functions in a short period of time, so as to meet the standard requirements; on the other hand, a large number of test cases must be executed to ensure that the original functions will not fail. That is to say, testers have to spend a lot of energy to complete the test, and have no time to design better test cases, which inevitably leads to a viciou...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688
Inventor 陈孝云段思欣栾江霞章正道许剑锋
Owner XIAMEN MEIYA PICO INFORMATION
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