Method and device for testing software

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

Active Publication Date: 2015-05-06
SHENZHEN TENCENT COMP SYST CO LTD
View PDF5 Cites 13 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

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 by multiple test virtual machines to obtain the running results of each test case;

[0024] Step 103: Determine whether there are security vulnerabilities in the software according to the running results of each test case.

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

[0026] The test case template and the interface information of each interface included in the software are sent to the main virtual machine, so that the main virtual machine generates test cases corresponding to each int...

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 a terminal and uses multiple virtual machines to perform concurrent testing on the software 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 primary virtual machine, and determine the other virtual machines as the test virtual machine;

[0038] For example, install three virtual machines 0, 1, and 2, determine virtual machine 0 as the master virtual machine, and determine virtual machines 1 and 2 as test virtual machines.

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

[0040] Step 202: Generate a test case corr...

Embodiment 3

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

[0056] The generating module 301 is used to 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;

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

[0058] The determining module 303 is used to determine whether there are security vulnerabilities in the software according to the running results of each test case.

[0059] At least three virtual machines are installed on the terminal, one of which is determined as the primary virtual machine, and the other virtual machines are determined as the test virtual machine.

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

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 present 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 becoming more and more vulnerable to attacks. Attackers can use the security vulnerabilities in the software to make the software execute malicious code. Therefore, it is necessary to test the software to obtain the security vulnerabilities included in the software and fix the security vulnerabilities. To prevent attackers from using it. [0003] At present, when testing the software, the terminal obtains the interface information of all interfaces included in the software from the software, generates test cases corresponding to each interface according to the obtained interface information of each interface, and then runs serially one by one The test cases corresponding to each interface are monitored, and the process of running each test case ...

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
IPC IPC(8): G06F21/12G06F11/36
Inventor 李天祥
Owner SHENZHEN TENCENT COMP SYST CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products