Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data testing method and device

A technology of data testing and testing functions, which is applied in the computer field and can solve problems such as untestable function testing

Active Publication Date: 2019-01-08
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] The embodiment of the present invention provides a data testing method and device to at least solve the technical problem that the function to be tested in the passive code cannot be tested

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] According to an embodiment of the present invention, an embodiment of a data testing method is provided. In an optional embodiment, the above data testing method can be applied to, but not limited to, such as figure 1 In the shown network environment, an application client is running on the terminal 102, and the function information of the function to be tested running in the application client is obtained, wherein the function information includes at least: the function address of the function to be tested; according to the above The function address of the test function generates a first configuration file, wherein the first configuration file is used to indicate the setting position of the test function in the function to be tested, and the test function is used to record the test data of the function to be tested; then, when loading the application client At the terminal, set the test function at the setting position in the function to be tested according to the inst...

Embodiment 2

[0088] According to an embodiment of the present invention, a data testing device for implementing the above data testing method is also provided, such as Figure 7 As shown, the device includes:

[0089] 1) The first obtaining unit 702 is configured to obtain function information of the function to be tested running in the application client, wherein the function information includes at least: a function address of the function to be tested;

[0090] 2) The generation unit 704 is used to generate a first configuration file according to the function address of the function to be tested, wherein the first configuration file is used to indicate the setting position of the test function in the function to be tested, and the test function is used to record the location of the function to be tested. Test Data;

[0091] 3) The setting unit 706 is used to set the test function at the setting position in the function to be tested according to the instruction of the first configuratio...

Embodiment 3

[0149] The application environment of the embodiment of the present invention may be, but not limited to, refer to the application environment in Embodiment 1, which will not be repeated in this embodiment. The embodiment of the present invention provides an optional specific application example for implementing the above data testing method.

[0150] As an optional embodiment, the above data testing method can be applied to but not limited to tool applications for managing terminal applications, so as to test the functions to be tested in various functional application clients based on passive code, such as game applications client. Assume here that the test of the function to be tested in the application client of the game application App-Game is taken as an example. Since the game operator cannot obtain the source code used by the game developer during the development process, in this embodiment, data testing of the functions in the game application client based on the pas...

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 present invention discloses a data testing method and apparatus. The method comprises the steps of acquiring function information of a to-be-tested function running in an application client, wherein the function information at least comprises a function address of the to-be-tested function; generating a first configuration file according to the function address of the to-be-tested function, wherein the first configuration file is used for indicating a setting position of a test function in the to-be-tested function, and the test function is used for recording test data of the to-be-tested function; when the application client is loaded, setting the test function in the setting position in the to-be-tested function according to the indication of the first configuration file; and running the to-be-tested function in which the test function is set, and acquiring the test data of the to-be-tested function recorded by the test function. Through adoption of the data testing method and apparatus, a technical problem that the to-be-tested function without a source code cannot be tested is solved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data testing method and device. Background technique [0002] Currently, the coverage testing technology applied to the function under test usually completely depends on the source code. That is to say, usually on the basis of the source code, based on the code line level, the execution coverage of the above-mentioned source code is analyzed. Among them, commonly used source code-based execution coverage testing tools include: BullseyeCoverage and Pure Coverage, etc. [0003] However, most function developers generally do not open source codes developed to users, that is, for function users who cannot obtain source codes, it is impossible to accurately test functions without source codes. [0004] For the above problems, no effective solution has been proposed yet. Contents of the invention [0005] The embodiment of the present invention provides a data testing method and device ...

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
CPCG06F11/3688
Inventor 张志光魏学峰党万春
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products