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

Software testing method and device

A software testing and software technology, applied in the computer field, can solve problems such as poor software flexibility and inability to run test programs, and achieve the effect of improving flexibility

Inactive Publication Date: 2015-01-21
GUANGZHOU HUADUO NETWORK TECH
View PDF3 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Since the test program written by the automated test framework only supports single-layer loop operation, if the test program contains multiple loops, the test program cannot be run, thus making the flexibility of testing the software poor

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
  • Software testing method and device
  • Software testing method and device
  • Software testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Embodiments of the present invention provide a method for software testing, such as figure 1 As shown, the processing flow of the method may include the following steps:

[0041] Step 101, receiving a software test request of the target software, and acquiring a test program used by the software test request.

[0042] Step 102, if the test program contains multiple layers of loops, then for each loop in the test program, extract the loop statement to form the program unit to be called, and set the corresponding program to be called at the original position of the extracted loop statement The call execution statement of the unit replaces the extracted loop statement.

[0043] Step 103, run the modified test program to test the target software.

[0044] In the embodiment of the present invention, the software test request of the target software is received, and the test program used by the software test request is obtained. If the test program contains multiple layers o...

Embodiment 2

[0046] The embodiment of the present invention provides a software testing method, which can be implemented by a terminal. The terminal may be any terminal, such as a notebook computer, a tablet computer, and the like.

[0047] The following will combine specific implementation methods, figure 1 The processing flow shown is described in detail, and the content can be as follows:

[0048]Step 101, receiving a software test request of the target software, and acquiring a test program used by the software test request.

[0049] Wherein, the target software may be any software, such as a browser, an instant messaging application program, a webpage code, and the like. The test program can contain one or more test statements, and the test statements can contain keywords and execution parameters, etc. The keywords are used to indicate the nature of the corresponding test statements, and the keywords can include loop start keywords and loop end keywords etc. For example, ForRange c...

Embodiment 3

[0075] Based on the same technical idea, the embodiment of the present invention also provides a software testing device, such as image 3 As shown, the device includes:

[0076] An acquisition module 310, configured to receive a software test request of the target software, and acquire a test program used by the software test request;

[0077] The processing module 320 is used for if the test program contains multiple layers of loops, then for each loop in the test program, extract the loop statement to form the program unit to be called, and set the corresponding formed loop statement at the original position of the extracted loop statement The call execution statement of the program unit to be called replaces the extracted loop statement;

[0078] The test module 330 is used to run the modified test program to test the target software.

[0079] Optionally, the processing module 320 is configured to:

[0080] If the loop end statement is not included between the first loop ...

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 software testing method and device and belongs to the technical field of computers. The software testing method includes: receiving software testing requests of target software; acquiring a testing program used in the software testing requests; extracting loop statements to form to-be-called program units from each loop in the testing program if the testing program includes multilayer loops; setting calling executing statements corresponding to the to-be-called program units at the position where the loop statements are extracted; replacing the extracted loop statements, running the modified testing program and testing the target software. By the software testing method and device, flexibility in software testing can be improved.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for software testing. Background technique [0002] With the continuous development of computer technology, the types of software become more and more abundant, and the quality of software becomes more and more important. In this way, before the software is put into use, it is necessary to test the software. [0003] When testing software, usually write a test program (also called a test suite) through a programming language, and test the relevant functions of the software through the test program, for example, write a test program based on Robot Framework (automation framework) to test the software The test is performed, wherein the test statement in the test program usually includes keywords and execution parameters, etc., so the above test method is also called keyword-driven test. [0004] In the process of realizing the present invention, the inventor ...

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 GUANGZHOU HUADUO NETWORK TECH