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

A kind of test method and device

A testing method and the same technology, applied in the computer field, can solve problems such as the inability to accurately obtain the performance and function differences between virtual machines and other virtual machines, and the inability to accurately obtain software performance.

Active Publication Date: 2017-08-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] When the performance of the same software is not much different when running under different virtual machines, the performance of the software under different virtual machines cannot be accurately obtained based on the intuitive experience of the testers alone, and it cannot provide accurate information for software development. The functions and performance basis of the software enable the software to achieve the same performance and functional effects under each virtual machine, and when developing a virtual machine, it is impossible to accurately obtain the performance and function differences between the currently tested virtual machine and other virtual machines

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0064] Such as figure 1As shown, the present embodiment provides a test method, which can be realized by software, and specifically includes the following steps:

[0065] 101. Make at least two virtual machines run the same software at the same time;

[0066] 102. Collecting the running data of the virtual machine at preset time intervals;

[0067] Wherein, the running data of the virtual machine includes virtual machine performance data and debugging data;

[0068] 103. Compare the running data of the virtual machines, and output the comparison result.

[0069] This embodiment provides a test method, by making two or more virtual machines run the same software at the same time, and collecting and obtaining quantified running data of the virtual machines in real time, comparing them, and outputting the comparison results, testers or developers can The personnel can accurately obtain the performance and function differences of the software between different virtual machines,...

Embodiment 2

[0071] This embodiment provides a testing method, which is an improvement on the basis of Embodiment 1. This method can be implemented by software installed in the host.

[0072] It should be noted that, in order to obtain and compare the performance and functions of the software in real time, as well as the performance of each virtual machine run by the software, the present invention collects virtual machine performance data and debugging data when running the software through the virtual machine For comparison, the virtual machine performance data and debugging data are quantitative data.

[0073] Wherein, the virtual machine performance data is the data used to display the processing performance of the virtual machine when the virtual machine is running the software, for example, it may include the parsing speed of the running software of the virtual machine, CPU usage, memory usage, garbage collection performance, execution software the speed of functions in , etc.;

[0...

example 1

[0102] Example 1, Socket communication method:

[0103] S1. The data collector calls the function interface provided by Socket, allocates a port for data collection, and notifies the data collector of its port number, waiting to receive the running data of the virtual machine sent by the data collector;

[0104] S2. The data collector connects to the port allocated by the data collector, establishes a Socket connection, and sends the running data of the virtual machine to the data collector through the port every preset time.

[0105] Preferably, when the virtual machine 1 and the virtual machine 2 are on different hosts, the communication between the data collector and the data collector is completed by using the communication mode of Socket.

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 testing method and device and belongs to the field of computers. By means of the testing method and device, more than two virtual machines operate the same software, compare acquired quantified operation data thereof in real time and output comparison results, so that testing staff or developing staff can accurately obtain performance and function difference of the software in different virtual machines and obtain performance and function difference of the different virtual machines operating the same software so as to amend the software or the virtual machines, and the software or the virtual machines can be developed to achieve better effect.

Description

technical field [0001] The invention relates to the field of computers, in particular to a testing method and device. Background technique [0002] In order to make software programs adapt to multiple platforms and enhance software compatibility, many current software are run based on virtual machines. For example, many browsers have built-in virtual machines for running Flash animations. When developing Flash, developers do not need to consider what platform the Flash animations are running on. As long as there is a Flash virtual machine under the platform, they can run Flash. animation. [0003] However, due to different providers of virtual machines and different internal structures of virtual machines, when the same software runs under different virtual machines, there will inevitably be differences in performance and functions. all the same. In order to ensure the quality of the developed software or virtual machine, when testing the software or virtual machine, the ...

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 TENCENT TECH (SHENZHEN) CO LTD