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

Keyword drive-based automated testing method and device and terminal equipment

An automated testing, keyword-driven technology, applied in the direction of software testing/debugging, can solve the problems of poor scalability and low flexibility of automated testing, improve flexibility and scalability, improve reuse rate, improve scalability and The effect of generality

Active Publication Date: 2019-05-21
SHENZHEN YIHUA COMP +2
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a keyword-driven automated testing method, device, and terminal equipment to solve the problems of poor scalability and low flexibility of automated testing in the prior art

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 drive-based automated testing method and device and terminal equipment
  • Keyword drive-based automated testing method and device and terminal equipment
  • Keyword drive-based automated testing method and device and terminal equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0029] figure 1 It shows a schematic flowchart of the first keyword-driven automated testing method provided by the embodiment of the present application. In this embodiment, the execution subject of the keyword-driven automated testing method is an automated testing device including an automated testing tool. The automated testing tools include but are not limited to TestComeplete, QTP, Selenium and other testing tools, and the automated testing devices may include but not limited to terminals or servers. Such as figure 1 The shown keyword-driven based automated testing approach is detailed as follows:

[0030] In S101, a test case is obtained, and the test case includes at least one test step.

[0031] A test case is an expression of a complete software testing process consisting of one or more testing steps. In addition to test steps, test cases can also include preconditions, expected results, and other information. As shown below, Table 1 and Table 2 are test case 1 a...

Embodiment 2

[0051] figure 2 It shows a schematic flowchart of the second keyword-driven automated testing method provided by the embodiment of the present application. In this embodiment, the execution subject of the keyword-driven automated testing method is an automated testing device including an automated testing tool. The automated testing tools include but are not limited to TestComeplete, QTP, Selenium and other testing tools, and the automated testing devices may include but not limited to terminals or servers. Such as figure 2 The shown keyword-driven based automated testing approach is detailed as follows:

[0052] In S201, a test case is obtained, and the test case includes at least one test step.

[0053] S201 in this embodiment is the same as S101 in the previous embodiment. For details, please refer to the relevant description of S101 in the previous embodiment, and details are not repeated here.

[0054] In S202, create a keyword file according to the test case, the ke...

Embodiment 3

[0092] image 3 It shows a schematic structural diagram of a keyword-driven automated testing device provided by the embodiment of the present application. For the convenience of description, only the parts related to the embodiment of the present application are shown:

[0093] The keyword-driven automated testing device includes: an acquisition unit 31 , a creation unit 32 , and an analysis unit 33 . in:

[0094] An acquisition unit 31, configured to acquire a test case, where the test case includes at least one test step.

[0095] A test case is an expression of a complete software testing process consisting of one or more testing steps. In addition to test steps, test cases can also include preconditions, expected results, and other information.

[0096] The test cases can be obtained by receiving input instructions to obtain test cases input by the user, or obtain pre-stored test cases from the storage unit, or obtain test cases by receiving data transmitted from other...

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 is applicable to the technical field of software testing, and provides an automated testing method and device based on keyword driving and terminal equipment, and the method comprises the steps: obtaining a testing case which comprises at least one testing step; Creating a keyword file according to the test case, wherein the keyword file comprises execution steps corresponding to thetest steps, and the execution step comprises testing object keywords and action keywords, each test object keyword is determined according to a hierarchical position of a test object of the test caseon a software interface and interface element keywords for positioning the test object, and the number of the interface element keywords is greater than or equal to 1; And analyzing the keyword fileto complete an automatic test. According to the embodiment of the invention, the expansibility and flexibility of automatic testing can be improved.

Description

technical field [0001] The invention belongs to the technical field of software testing, and in particular relates to a keyword-driven automatic testing method, device and terminal equipment. Background technique [0002] In the existing software testing, usually according to the design of the test case, a set of operations and the steps of checking the output results are carried out based on the test tool. As the number of software developments and iterations increases, automated testing that can reduce labor costs is becoming more and more important. The keyword-driven testing framework is one of the automated testing. [0003] However, the existing keyword-driven test keyword file creation method usually directly describes the execution action on a certain operation object in each step, such as "open the serial port tool", and the operation object between steps is in the interface. The level needs to be consistent in order to unify the parsing of keyword files for automa...

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
Inventor 郭嘉
Owner SHENZHEN YIHUA COMP
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