Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for testing software

A technology of software and test cases, which is applied in the field of Internet communication, can solve the problems of prolonging the testing time of testing software and reducing the testing efficiency of testing software, so as to achieve the effect of improving testing efficiency and shortening testing time

Active Publication Date: 2018-11-23
SHENZHEN TENCENT COMP SYST CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the process of testing the software, since the terminal serially runs the test cases corresponding to each interface one by one, the testing time of the testing software is prolonged and the testing efficiency of the testing software is reduced

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
  • Method and device for testing software
  • Method and device for testing software
  • Method and device for testing software

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0021] see figure 1 , the embodiment of the present invention provides a method for testing software, including:

[0022] Step 101: Generate a test case corresponding to each interface according to the test case template and the interface information of each interface included in the software;

[0023] Step 102: Run the generated test cases in parallel through multiple test virtual machines to obtain the running results of each test case;

[0024] Step 103: Determine whether there is a security hole in the software according to the running result of each test case.

[0025] Preferably, according to the interface information of each interface included in the test case template and software, generate the test case corresponding to each interface, including:

[0026] Send the test case template and the interface information of each interface included in the software to the main virtual machine, so that the main virtual machine generates a test case corresponding to each interfa...

Embodiment 2

[0036] see figure 2 , the embodiment of the present invention provides a method for testing software. The method installs multiple virtual machines on one terminal, and uses the multiple virtual machines to perform concurrent testing on the software, so as to save testing time and improve testing efficiency, including :

[0037] Step 201: Install at least three virtual machines, determine one of the virtual machines as the master virtual machine, and determine the other virtual machines as test virtual machines;

[0038] For example, three virtual machines 0, 1 and 2 are installed, virtual machine 0 is determined as the primary virtual machine, and virtual machines 1 and 2 are determined as test virtual machines.

[0039] Among them, the number of test virtual machines depends on the performance of the terminal. The more the number of test virtual machines within the allowable range of the terminal performance, the better the concurrent test effect and the higher the test ef...

Embodiment 3

[0055] see image 3 , an embodiment of the present invention provides a device for testing software, including:

[0056] Generating module 301, is used for, according to the interface information of each interface that test case template and software comprise, generate the test case corresponding to each interface;

[0057] The running module 302 is used to run the test cases generated by multiple test virtual machines in parallel to obtain the running results of each test case;

[0058] A determining module 303 is configured to determine whether there is a security hole in the software according to the running result of each test case.

[0059] Install at least three virtual machines on the terminal, determine one of the virtual machines as the master virtual machine, and determine the other virtual machines as test virtual machines.

[0060] Among them, the number of test virtual machines depends on the performance of the terminal. The more the number of test virtual machi...

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 method and device for testing software, and belongs to the field of Internet communications. The method comprises the steps that test cases corresponding to all interfaces respectively are generated according to a test case template and interface information, included in the software, of all the interfaces; the generated test cases run in parallel through a plurality of test virtual machines, and the running result of each test case is obtained; whether security holes exist in the software or not is determined according to the running result of each test case. The device comprises a generating module, a running module and a determining module. According to the method and device, the test time spent in testing the software can be shortened, and the testing efficiency of testing the software can be improved.

Description

technical field [0001] The invention relates to the field of Internet communication, in particular to a method and device for testing software. Background technique [0002] Due to the rapid development of the Internet, software is more and more vulnerable to attacks. Attackers can use the security holes in the software to make the software execute malicious code. Therefore, it is necessary to test the software to obtain the security holes included in the software and repair the security holes. to prevent attackers from using it. [0003] At present, when testing the software, the terminal obtains the interface information of all the interfaces included in the software from the software, generates the test cases corresponding to each interface according to the acquired interface information of each interface, and then runs them serially one by one The test case corresponding to each interface, and monitor the process of running each test case. If there is no abnormality in ...

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): G06F21/12G06F11/36
Inventor 李天祥
Owner SHENZHEN TENCENT COMP SYST CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More