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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 