Unlock instant, AI-driven research and patent intelligence for your innovation.

A kind of automatic test method and device

A technology of automated testing and test cases, applied in the direction of software testing/debugging, etc., can solve the problems of managing test cases, troublesome test file maintenance, cumbersome operation, etc., and achieve the effect of improving test efficiency and simplifying automated test operations

Active Publication Date: 2018-01-26
GUANGDONG OPPO MOBILE TELECOMM CORP LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, when the interface to be tested is complex, a test case contains a lot of test files, which makes the maintenance of the test files very troublesome, and it is not convenient to manage the test cases through the database, and it is necessary to open multiple test files when modifying the test case, thus Need to switch back and forth between test files
In summary, the existing automated testing methods have disadvantages such as cumbersome operation and low efficiency.

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 kind of automatic test method and device
  • A kind of automatic test method and device
  • A kind of automatic test method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a flowchart of an automated testing method in Embodiment 1 of the present invention. The method can be executed by an automated testing device, which can be realized by means of hardware and / or software, and which can be configured in a smart terminal, which refers to electronic devices such as smart phones and tablet computers.

[0023] Such as figure 1 As shown, the method specifically includes the following steps:

[0024] Step 11. Obtain a pre-created test case script according to the test requirement, wherein the test case script invokes the pre-created test action source code.

[0025] In this embodiment, testers determine test cases (Test Case) by analyzing test requirements. A test case refers to a set of test inputs, execution conditions, and expected results compiled for a specific purpose, in order to test a program path or verify whether a specific requirement is met. Test cases generally include four stages: data preparation stage, data c...

Embodiment 2

[0034] figure 2 It is a flowchart of an automated testing method in Embodiment 2 of the present invention. In this embodiment, the editing process of the test case is further limited on the basis of the first embodiment above.

[0035] Such as figure 2 As shown, the method provided in this embodiment may specifically include the following steps:

[0036] Step 21, obtaining the test actions required by the test cases predetermined according to the test requirements.

[0037] Testers determine the test actions to be executed in the test cases according to the test requirements, such as encryption actions, signature actions, result verification actions, etc., and the smart terminal obtains the test actions required by the test cases.

[0038] Step 22. Obtain the source code of the test action created and encapsulated in a programming language in advance.

[0039] After determining the test actions required by the test case, the tester also uses a programming language to cre...

Embodiment 3

[0046] Figure 3a It is a flowchart of an automated testing method in Embodiment 3 of the present invention. This embodiment provides an automated testing process for the login interface based on the first and second embodiments above.

[0047] Such as Figure 3a As shown, the method provided in this embodiment may specifically include the following steps:

[0048] Step 31 , acquiring the test actions required by the test cases predetermined according to the test requirements.

[0049] Specifically, the test cases corresponding to the login interface include MD5 encryption action, Hmac (Hash-based Message Authentication Code, key-related hash operation message authentication code) signature action, and sending Http (Hyper TextTransfer Protocol, hypertext transfer protocol) request action , verification action, and data recovery action.

[0050] Step 32, obtaining the source code of the test action created and encapsulated in java in advance.

[0051] Figure 3b It is a sch...

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 an automatic testing method and device. The method includes: obtaining test case scripts created in advance according to test requirements, wherein the test case scripts call pre-created test action source codes; parsing and executing the created test case scripts. The technical solution provided by the embodiment of the present invention obtains the test case script created in advance according to the test requirements, and in the process of executing the test case script, executes the test action source code called in the test case script. Test files are used to achieve the test purpose, which simplifies the automated test operation and improves the test efficiency.

Description

technical field [0001] The embodiments of the present invention relate to the technical field of software testing, in particular to an automatic testing method and device. Background technique [0002] Nowadays, the mobile Internet provides more and more services, and the fast pace determines the strong demand for automated testing, and the automated testing of background interface functions is an important part of it. [0003] What adopted in the existing automated testing process is mainly based on the automated testing scheme of the web product interface (Website UserInterface, Web UI), in which the test cases are combined by test actions one by one, and each test action is realized by a test file. The file suffix is ​​used to identify the test action, and the test action implemented by each test file is used to complete the construction, transmission, and verification of the results required by the interface to be tested. [0004] However, when the interface to be teste...

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 GUANGDONG OPPO MOBILE TELECOMM CORP LTD