WO2020248506A1 - Evaluation method and device for application program testing, and server and storage medium - Google Patents

Evaluation method and device for application program testing, and server and storage medium Download PDF

Info

Publication number
WO2020248506A1
WO2020248506A1 PCT/CN2019/118663 CN2019118663W WO2020248506A1 WO 2020248506 A1 WO2020248506 A1 WO 2020248506A1 CN 2019118663 W CN2019118663 W CN 2019118663W WO 2020248506 A1 WO2020248506 A1 WO 2020248506A1
Authority
WO
WIPO (PCT)
Prior art keywords
function
name
information
test data
dictionary file
Prior art date
Application number
PCT/CN2019/118663
Other languages
French (fr)
Chinese (zh)
Inventor
何兵
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020248506A1 publication Critical patent/WO2020248506A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3676Test management for coverage analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • This application relates to the field of cloud technology, and in particular to an evaluation method, device, server and storage medium for application program testing.
  • Code coverage is a measurement in software testing, which describes the proportion and extent of the source code executed in the program.
  • technicians need to obtain the code coverage of the program, and determine whether the program is fully and effectively tested according to the code coverage.
  • the currently acquired code coverage rate is to record the code information that has been executed when the test equipment tests the code in the program, and calculate the code coverage rate of the program based on the code information that has been executed.
  • code coverage rate cannot be simply added up.
  • the reference code coverage rate is the maximum, there are some codes that have been executed in other test results but have not been executed in the test results, which leads to the code coverage rate of the test program is not accurate.
  • the main purpose of this application is to provide an evaluation method for application testing, which aims to solve the problem that the existing technology is limited to a user testing one APP on a test device, which leads to inaccurate code coverage of the test program. problem.
  • the first aspect of the present application provides an evaluation method for application testing, which includes: receiving first test data sent by a first terminal for testing a preset application and testing sent by a second terminal.
  • the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained; Respectively read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file; according to the first identification information and the second Identification information, respectively determining whether the first function information and the second function information are executed functions; when at least one of the first function information and the second function information is an executed function, it is calculated The coverage of the application.
  • a second aspect of the present application provides an evaluation device for application testing, including: an acquiring unit configured to receive first test data sent by a first terminal for testing a preset application and a test sent by a second terminal When the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained;
  • the reading unit is used to read the first identification information of the first function information in the first dictionary file, and the second identification information of the second function information in the second dictionary file;
  • the determination unit uses For determining whether the first function information and the second function information are executed functions respectively according to the first identification information and the second identification information; the calculation unit is used for when the first function information and the When at least one of the second function information is an executed function, the coverage rate of the application program is calculated.
  • a third aspect of the present application provides an evaluation server for application program testing, including: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by wires; A processor invokes the instructions in the memory, so that the evaluation server of the application program test executes the method described in the first aspect.
  • the fourth aspect of the present application provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer executes the above-mentioned first aspect method.
  • the evaluation method, device, server, and storage medium of application program testing proposed in the embodiments of the present application are tested by receiving the first test data sent by the first terminal to test the preset application program and the test sent by the second terminal.
  • the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained; Respectively read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file; according to the first identification information and the second Identification information, respectively determining whether the first function information and the second function information are executed functions; when at least one of the first function information and the second function information is an executed function, it is calculated
  • the coverage rate of the application program realizes that obtaining the execution status of the function in the test data through multiple dictionary files not only improves the test accuracy calculation, but also improves the work efficiency, and the execution result of the function in the test data is stored in the background.
  • FIG. 1 is a schematic diagram of the server structure of the hardware operating environment involved in the embodiment of the application;
  • FIG. 2 is a schematic flowchart of a first embodiment of the evaluation method for application program testing in this application
  • FIG. 3 is a schematic flowchart of a second embodiment of the evaluation method for application program testing in this application.
  • FIG. 4 is a schematic flowchart of a third embodiment of the evaluation method for application program testing in this application.
  • FIG. 5 is a schematic flowchart of a fourth embodiment of the evaluation method for application program testing in this application.
  • FIG. 6 is a schematic flowchart of a fifth embodiment of the evaluation method for application program testing in this application.
  • FIG. 7 is a schematic flowchart of a sixth embodiment of the evaluation method for application testing in this application.
  • Fig. 8 is a detailed flowchart of step S41 in Fig. 7.
  • the embodiments of this application provide a proposed evaluation method, device, server and storage medium for application testing. Obtaining the execution status of functions in the test data through multiple dictionary files not only improves the test accuracy calculation, but also improves work efficiency, and The execution result of the function in the test data is saved in the background, and there is a trace to follow.
  • FIG. 1 is a schematic diagram of the server structure of the hardware operating environment involved in the solution of the embodiment of the present application.
  • the terminal in the embodiment of this application is a server.
  • the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002.
  • the communication bus 1002 is used to implement connection and communication between these components.
  • the user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
  • the network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
  • the memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory.
  • the memory 1005 may also be a storage device independent of the foregoing processor 1001.
  • terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
  • the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an evaluation program for application program testing.
  • the network interface 1004 is mainly used to connect to the back-end server and communicate with the back-end server;
  • the user interface 1003 is mainly used to connect to the client (user side) and communicate with the client;
  • the processor 1001 can be used to call the evaluation program of the application test stored in the memory 1005, and perform the following operations:
  • the first dictionary file and the first dictionary file in the first test data are respectively obtained A function information, and the second dictionary file and the second function information in the second test data;
  • first identification information and the second identification information respectively determine whether the first function information and the second function information are executed functions
  • the coverage rate of the application program is calculated.
  • processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
  • the first binary file in the first test data is obtained respectively ,
  • the first binary file is converted into the first dictionary file according to the first function name and the first function class name
  • the second binary file is converted into the first dictionary file according to the second function name and the second function class name.
  • processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
  • the preset conversion program is obtained, and the first key value and the first value value in the data element of the first dictionary file are read. / Or the second key value and the second value value in the data element of the second dictionary file;
  • processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
  • the first identification information of the first function name in the first type of information is read according to the first function name
  • the second identification information of the second function name in the second type of information is read according to the second function name
  • processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
  • processor 1001 may call an evaluation program for application program testing stored in the memory 1005, and also perform the following operations:
  • the coverage rate of the application program is calculated.
  • processor 1001 may call the evaluation calculation program of the application test stored in the memory 1005, and also perform the following operations:
  • the first function name or the second function name determined to be an executed function is acquired, the first function name or the second function name is set up, where the names of the first function name and the second function name The same information;
  • this application is a first embodiment of an evaluation method for application testing, and the evaluation method for application testing includes:
  • Step S10 when the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first dictionary in the first test data is obtained respectively File and first function information, and second dictionary file and second function information in the second test data;
  • the server receives the first test data and the second test data of the application program sent by the terminal, the first test data and the second test data are the test data of the application program, and obtains the first dictionary file and the first function information in the first test data , And the second dictionary file and second function information in the second test data, and the function class names, function names, and number of functions in the first test data and the second test data are the same.
  • the first test data and the second test data are data files of the executed functions and the unexecuted functions in the application obtained by detecting the coverage of the same application by different terminals.
  • the application is APP, which can be different functions such as communication APP.
  • Different terminals mark the executed function and the unexecuted function separately in the process of detecting application coverage, and mark the executed function name and the unexecuted function name in the test data according to the class
  • the difference generates a dictionary file.
  • the server receives the first test data sent by the first terminal and the second test data sent by the second terminal, the server obtains the first dictionary file in the first test data and the second dictionary file in the second test data respectively, and the server receives
  • the test data sent by the terminal is not only two copies, but also multiple copies of test data.
  • Step S20 respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
  • the server obtains the identification information of the function in the first dictionary file according to the function information. For example, when the name of the function information is obtained, according to the function The name is searched in the first dictionary file, the identification information corresponding to the searched function name is red identification, or the identification information corresponding to the searched function name is green identification.
  • the identification information of the function in the second dictionary file is obtained according to the function information, for example, when the name of the function information is obtained, according to the function name Searching in the second dictionary file, the identification information corresponding to the searched function name is red identification, or the identification information corresponding to the searched function name is green identification.
  • the server obtains all the function information in the first test data or the second test data, it obtains the corresponding identification information of the search function information in the first dictionary file and the second dictionary file, respectively.
  • Step S30 according to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions
  • the server obtains the identification information of all functions in the first test data or the second test data in the first dictionary file and the second dictionary file, it is determined whether the identification information of the function information is an executed function.
  • the red flag is not executed function flag
  • the green flag is executed function flag.
  • the red flag is the executed function flag
  • the green flag is the unexecuted function flag. Judge the function according to the color of the mark, and determine whether the function is an executed function.
  • Step S40 When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
  • the server When the server obtains the determined executed function, it counts the number of executed functions and the number of functions of all functions in the first test data or the second test data. Divide the executed functions by the total of all functions to calculate the function coverage of the application.
  • the server receives the first test data and the second test data of the application program sent by different terminals, and obtains the dictionary file and function information in the first test data and the second test data respectively. After obtaining the function information, When identifying information in the first dictionary file and the second dictionary file, determine whether the function is an executed function. When the number of executed functions is counted, the total number of functions in the first test data or the second test data is obtained , Calculate the function coverage of the application. Summarize the test data of multiple persons or computers in parallel to the server. The server obtains the execution of the function in the test data through multiple dictionary files, which not only improves the test accuracy calculation, but also improves the work efficiency. The execution result of the function in the test data is saved in There are traces to follow in the background.
  • FIG. 3 is a second embodiment provided by the application test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S10 includes:
  • Step S11 when the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first and the second test data of the first test data are respectively acquired.
  • step S12 the first binary file is converted into a first dictionary file according to the class by the first function name and the first function class name, and the second binary file is converted according to the class by the second function name and the second function class name. Convert to the second dictionary file.
  • the first test data and the second test data received by the server are both test data of the application, and the first function name, the first function class name and the number of functions in the first test data are the same as the second function name in the second test data
  • the name of the second function class and the number of functions are the same.
  • the first test data and the second test data are data files of functions that have been executed and functions that have not been executed in the application program obtained by the terminal from detecting the coverage rate of the application program.
  • the server marks the executed function and the unexecuted function separately, and marks the executed function name and the unexecuted function name in the test data according to the class distinction Generate a binary file.
  • the server When the server obtains the binary file in the test data, it automatically converts the binary file into a dictionary file according to the function name and the label information of the function. And obtain the function name in the first test data or the second test data and the name of the function class where the function name is located.
  • the server receives the first test data and the second test data of the application program sent by the terminal, and obtains the binary file, the function name and the function class name in the first test data and the second test data, respectively.
  • the binary file is automatically converted into a dictionary file according to the class by the name of the function and the name of the function class.
  • the binary file in the test data is converted into a dictionary file through the function name and function class name to improve the efficiency of the server receiving test data.
  • Fig. 4 is a third embodiment provided by the application test evaluation method of this application. Based on the embodiment shown in Fig. 2, after step S12, it includes:
  • Step S50 Determine whether the format information of the first dictionary file and the second dictionary file are in a preset JSON format
  • Step S60 When it is determined that the format information of the first dictionary file and/or the second dictionary file is not the preset JSON format, obtain the preset conversion program, and read the first key value and the first key value in the data element of the first dictionary file. value value and/or the second key value and the second value value in the data element of the second dictionary file;
  • Step S70 splicing the first key value and the first value value into a string character to generate a first dictionary file in JSON format and/or splicing the second key value and the second value value into a string character to generate a JSON format The second dictionary file.
  • the server When the server obtains the first dictionary file of the first test data and the second dictionary file of the second test data, it obtains the format information of the first dictionary file and the second dictionary file, and determines the format information or the first dictionary file of the first dictionary file. Second, whether the format information of the dictionary file is a preset JSON format. When the format information of the first dictionary file or the format information of the second dictionary file is not the preset JSON format, the server obtains the data elements in the first dictionary file and the data elements in the second dictionary file, and starts the pre-stored conversion program.
  • the format conversion program can use I/O to program in the dictionary file formatted as a text file for the startup programming language, and convert the text format of the acquired dictionary file into JSON format by using the FileWriter class.
  • the server splices the read key value and value value into a string character through a pre-stored conversion program to generate a JSON (JavaScript Object Notation) object and a dictionary file in the array format.
  • JSON JavaScript Object Notation
  • the server when the server obtains that the format information of the first dictionary file or the second dictionary file is not the preset JSON format, it obtains the data elements in the first dictionary file or the data elements in the second dictionary file, and starts pre-storing
  • the conversion program reads the data elements in the dictionary file of the first test data and the key and value values in the data elements in the dictionary file of the second test data respectively, and the server passes the read key and value values
  • the pre-stored conversion program is spliced into string characters to generate the first dictionary file and/or the second dictionary file in JSON format. Convert the format of the dictionary file to the JSON format, so that the server can quickly obtain the function identifier in the dictionary file.
  • FIG. 5 is a fourth embodiment provided by the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S20 includes:
  • Step S21 searching respectively for the first type of information in the first dictionary file of the first function class name in the JSON format, and the second type of information in the second dictionary file of the second function class name in the JSON format;
  • Step S21 Read the first identification information of the first function name in the first type of information according to the first function name, and read the second function name in the second type of information according to the second function name. The second identification information.
  • the server obtains the first dictionary file and function name and function class name in the first test data, it obtains the class of the function in the first dictionary file according to the function class name, and then obtains the function according to the function name The corresponding identifier in the class. For example, when the function class name is class A, the first dictionary file is searched according to the class A name of the function. When class A is searched, the search is performed according to the function name function 1, and the function is found. The identification information corresponding to the name is "YES", or the identification information corresponding to the searched function name is "NO".
  • the server obtains the second dictionary file and function name and function class name in the second test data, it obtains the class of the function in the second dictionary file according to the function class name, and then obtains the function according to the function name The corresponding identifier in the class. For example, when the function class name is class A, the second dictionary file is searched according to the class A name of the function. When class A is searched, the search is performed according to the function name function 1, and the function is found. The identification information corresponding to the name is the "YES" mark, or the identification information corresponding to the searched function name is the "NO" mark. After the server obtains all the function names and class formations in the first test data or the second test data, it searches for the corresponding identification information of the function in the first dictionary file and the second dictionary file, respectively.
  • the server when the server obtains the name of the function and the new name of the class in the first test data or the second test data, it obtains the corresponding identification information in the first dictionary file and the second dictionary file, and the server passes Multiple dictionary files to obtain the execution status of functions in the test data to improve test accuracy.
  • FIG. 6 is a fifth embodiment provided by the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S30 includes:
  • Step S31 When the first identification information and the second identification information are not the same, determine that the function corresponding to the first function name and the second function name is an executed function;
  • Step S32 When the first identification information and the second identification information are the same and are the executed function identification, it is determined that the function corresponding to the first function name and the second function name is the executed function.
  • the server obtains the same function in the test data according to the identification information of the name in the first dictionary file and the second dictionary file in JSON format, determine the identification information of the function in the first dictionary file and second dictionary file in JSON format Whether it is the same.
  • the function is determined to be an executed function. For example, when the function is identified as "YES” in the first dictionary file in JSON format, it is in the second dictionary file in JSON format. "NO" logo. Or, when the function is identified as "NO” in the first dictionary file in JSON format and "YES” in the second dictionary file in JSON format, the server determines that the function is an executed function.
  • the server determines that the function is an executed function. For example, when the function is identified as "YES" in the first dictionary file and the second dictionary file in JSON format, the server also determines that the function is an executed function.
  • the server obtains the identification information of the same function in the first dictionary file in JSON format and the second dictionary in JSON format.
  • the identification information is not the same, it is determined that the function is an executed function.
  • the server obtains the execution status of the function in the test data through multiple dictionary files to improve the test accuracy.
  • FIG. 7 is a sixth embodiment of the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S40 includes:
  • Step S41 Record the number of executed functions in the first test data or the second test data respectively;
  • Step S42 Calculate the application program according to the number of executed functions in the first test data or the second test data, and the number of all functions in the first test data or the second test data For example, when the number of executed functions in the first test data or the second test data is 86, and the total number of functions in the first test data or the second test data is 100, the application The coverage rate of the program is 86%, where the number of executed functions in the first test data or the second test data is 86 as determined executed functions.
  • the server When the server obtains the name of the determined function, it records the name of the function determined as executed in the first test data or the second test data, and counts the number of the executed function. When the server obtains the number of executed functions in the first test data or the second test data and the total number of functions in the first test data or the second test data, the number of executed functions is set to the total number of functions to obtain the total number of functions for the application. Function coverage. Multi-person or multi-machine parallel test data is aggregated to the server for calculation, which improves work efficiency, and the execution result of the function in the test data is stored in the background for traceability.
  • FIG. 8 is a detailed flowchart of step S41 in FIG. 7, and step S41 includes:
  • Step S411 When the first function name or the second function name determined to be an executed function is acquired, the first function name or the second function name is set up, wherein the first function name or the second function name The function name is the same as the name information of the second function name;
  • Step S412 Retain one by filtering out the same name of the first function or the name of the second function, recording the number of executed functions in the set, and taking the number of executed functions in the recorded set as the first The number of executed functions of one test data or the second test data.
  • the server obtains the first function name or the second function name that is determined to be an executed function
  • the first function name or the second function name is set up, wherein the first function name Same as the name information of the second function name, one is reserved by filtering out the same first function name or the second function name, the number of executed functions in the set is recorded, and the recorded
  • the number of executed functions is used as the number of executed functions of the first test data or the second test data. For example, when the first function name in the set is function 1, and the second function name is also function 1, remove Any function name is function 1, where the first function name and the second function name belong to the same function class name. When multiple class names appear, the same function name in the same class name in the set is filtered out.
  • the server when the server obtains the first function name and the second function name that is determined to be an executed function, it sets up the first function name and the second function name, wherein the first function name
  • the name information of a function name is the same as the name information of the second function name, one is reserved by filtering the second function name of the same first function name, and the number of executed functions in the set is recorded. Through the collection, the number of executed functions can be quickly obtained.
  • an embodiment of the present application also proposes a server.
  • the server includes a memory, a processor, and an evaluation program for application testing stored on the memory and running on the processor.
  • the application testing When the evaluation program is executed by the processor, the steps of the evaluation method for application test described in the above embodiment are implemented.
  • the present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium.
  • the computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the computer, the computer executes the following steps:
  • the first test data in the first test data is obtained respectively.
  • first identification information and the second identification information respectively determine whether the first function information and the second function information are executed functions
  • the coverage rate of the application program is calculated.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

An evaluation method for application program testing, comprising: when first test data and second test data which are sent by different terminals and used for testing a same preset application program are received, respectively obtaining a first dictionary file and first function information in the first test data and a second dictionary file and second function information in the second test data (S10); respectively reading first identification information of the first function information in the first dictionary file and second identification information of the second function information in the second dictionary file (S20); respectively determining whether the first function information and the second function information are executed functions according to the first identification information and the second identification information (S30); and when at least one of the first function information and the second function information is an executed function, calculating the coverage rate of the application program (S40). Further disclosed are a device, a server, and a storage medium. By means of multiple dictionary files, not only is the test precision calculation improved, but also the working efficiency is improved.

Description

应用程序测试的评价方法、装置、服务器及存储介质Evaluation method, device, server and storage medium for application program testing
本申请要求于2019年6月14日提交中国专利局、申请号为201910514835.1、发明名称为“应用程序测试的评价方法、装置、服务器及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 14, 2019, with the application number 201910514835.1, and the title of the invention "Appraisal method, device, server and storage medium for application testing", all of which are passed The reference is incorporated in the application.
技术领域Technical field
本申请涉及涉及云技术领域,尤其涉及一种应用程序测试的评价方法、装置、服务器及存储介质。This application relates to the field of cloud technology, and in particular to an evaluation method, device, server and storage medium for application program testing.
背景技术Background technique
代码覆盖率是软件测试中的一种度量,其描述程序中的源代码被执行的比例和程度。目前,在软件测试领域中,技术人员需要获取程序的代码覆盖率,根据该代码覆盖率确定程序是否被完整有效地测试。Code coverage is a measurement in software testing, which describes the proportion and extent of the source code executed in the program. Currently, in the field of software testing, technicians need to obtain the code coverage of the program, and determine whether the program is fully and effectively tested according to the code coverage.
当前获取到的代码覆盖率是在测试设备对程序中的代码进行测试时,记录被执行过的代码信息,根据被执行过的代码信息来计算该程序的代码覆盖率。当多个人在相同的测试设备上或同一个人在不同的测试设备上对相同的应用程序进行测试,得到不同结果的代码覆盖率。代码的覆盖率又不能简单的相加,当参考代码覆盖率为最大值时,存在一些代码在其它测试结果中执行过而在该测试结果中没有执行过,从而导致测试程序的代码覆盖率不准确。The currently acquired code coverage rate is to record the code information that has been executed when the test equipment tests the code in the program, and calculate the code coverage rate of the program based on the code information that has been executed. When multiple people test the same application on the same test device or the same person on different test devices, code coverage with different results is obtained. The code coverage rate cannot be simply added up. When the reference code coverage rate is the maximum, there are some codes that have been executed in other test results but have not been executed in the test results, which leads to the code coverage rate of the test program is not accurate.
发明内容Summary of the invention
本申请的主要目的在于提供一种应用程序测试的评价方法,旨在解决现有技术仅限于一个用户在一台测试设备上对应一个APP进行测试,从而导致测试程序的代码覆盖率不准确的技术问题。The main purpose of this application is to provide an evaluation method for application testing, which aims to solve the problem that the existing technology is limited to a user testing one APP on a test device, which leads to inaccurate code coverage of the test program. problem.
为实现上述目的,本申请第一方面提供了一种应用程序测试的评价方法,包括:在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。In order to achieve the foregoing objective, the first aspect of the present application provides an evaluation method for application testing, which includes: receiving first test data sent by a first terminal for testing a preset application and testing sent by a second terminal. When the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained; Respectively read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file; according to the first identification information and the second Identification information, respectively determining whether the first function information and the second function information are executed functions; when at least one of the first function information and the second function information is an executed function, it is calculated The coverage of the application.
本申请第二方面提供了一种应用程序测试的评价装置,包括:获取单元,用于在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;读取单元,用于分别读取所述第一函数信息在第一字典文件 中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;判定单元,用于根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;计算单元,用于当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。A second aspect of the present application provides an evaluation device for application testing, including: an acquiring unit configured to receive first test data sent by a first terminal for testing a preset application and a test sent by a second terminal When the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained; The reading unit is used to read the first identification information of the first function information in the first dictionary file, and the second identification information of the second function information in the second dictionary file; the determination unit uses For determining whether the first function information and the second function information are executed functions respectively according to the first identification information and the second identification information; the calculation unit is used for when the first function information and the When at least one of the second function information is an executed function, the coverage rate of the application program is calculated.
本申请第三方面提供了一种应用程序测试的评价服务器,包括:存储器和至少一个处理器,所述存储器中存储有指令,所述存储器和所述至少一个处理器通过线路互联;所述至少一个处理器调用所述存储器中的所述指令,以使得所述应用程序测试的评价服务器执行上述第一方面所述的方法。A third aspect of the present application provides an evaluation server for application program testing, including: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected by wires; A processor invokes the instructions in the memory, so that the evaluation server of the application program test executes the method described in the first aspect.
本申请的第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行上述第一方面所述的方法。The fourth aspect of the present application provides a computer-readable storage medium, the computer-readable storage medium stores computer instructions, and when the computer instructions run on a computer, the computer executes the above-mentioned first aspect method.
本申请实施例提出的一种应用程序测试的评价方法、装置、服务器及存储介质,通过在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率,实现了通过多份字典文件,获取测试数据中函数的执行情况不仅提高测试精度计算,还提高工作效率,且测试数据中函数的执行结果保存在后台,有迹可循。The evaluation method, device, server, and storage medium of application program testing proposed in the embodiments of the present application are tested by receiving the first test data sent by the first terminal to test the preset application program and the test sent by the second terminal. When the second test data of the application program is preset, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second function information in the second test data are respectively obtained; Respectively read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file; according to the first identification information and the second Identification information, respectively determining whether the first function information and the second function information are executed functions; when at least one of the first function information and the second function information is an executed function, it is calculated The coverage rate of the application program realizes that obtaining the execution status of the function in the test data through multiple dictionary files not only improves the test accuracy calculation, but also improves the work efficiency, and the execution result of the function in the test data is stored in the background. Follow.
附图说明Description of the drawings
图1为本申请中实施例方案涉及的硬件运行环境的服务器结构示意图;FIG. 1 is a schematic diagram of the server structure of the hardware operating environment involved in the embodiment of the application;
图2为本申请中应用程序测试的评价方法的第一实施例的流程示意图;FIG. 2 is a schematic flowchart of a first embodiment of the evaluation method for application program testing in this application;
图3为本申请中应用程序测试的评价方法的第二实施例的流程示意图;3 is a schematic flowchart of a second embodiment of the evaluation method for application program testing in this application;
图4为本申请中应用程序测试的评价方法的第三实施例的流程示意图;4 is a schematic flowchart of a third embodiment of the evaluation method for application program testing in this application;
图5为本申请中应用程序测试的评价方法的第四实施例的流程示意图;FIG. 5 is a schematic flowchart of a fourth embodiment of the evaluation method for application program testing in this application;
图6为本申请中应用程序测试的评价方法的第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of the evaluation method for application program testing in this application;
图7为本申请中应用程序测试的评价方法的第六实施例的流程示意图;FIG. 7 is a schematic flowchart of a sixth embodiment of the evaluation method for application testing in this application;
图8为图7中步骤S41的细化流程示意图。Fig. 8 is a detailed flowchart of step S41 in Fig. 7.
具体实施方式Detailed ways
本申请实施例提供了提出的一种应用程序测试的评价方法、装置、服务器及存储介质,通过多份字典文件,获取测试数据中函数的执行情况不仅提高测试精度计算,还提高工作效率,且测试数据中函数的执行结果保存在后台,有 迹可循。The embodiments of this application provide a proposed evaluation method, device, server and storage medium for application testing. Obtaining the execution status of functions in the test data through multiple dictionary files not only improves the test accuracy calculation, but also improves work efficiency, and The execution result of the function in the test data is saved in the background, and there is a trace to follow.
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例进行描述。In order to enable those skilled in the art to better understand the solutions of the present application, the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”或“具有”及其任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。为便于理解,下面对本申请实施例的具体流程进行描述,如图1所示,图1为本申请实施例方案涉及的硬件运行环境的服务器结构示意图。The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, without having to use To describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments described herein can be implemented in an order other than the content illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device including a series of steps or units is not necessarily limited to those clearly listed Steps or units, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment. To facilitate understanding, the following describes the specific process of the embodiment of the present application, as shown in FIG. 1, which is a schematic diagram of the server structure of the hardware operating environment involved in the solution of the embodiment of the present application.
本申请实施例终端为服务器。The terminal in the embodiment of this application is a server.
如图1所示,该终端可以包括:处理器1001,例如CPU,网络接口1004,用户接口1003,存储器1005,通信总线1002。其中,通信总线1002用于实现这些组件之间的连接通信。用户接口1003可以包括显示屏(Display)、输入单元比如键盘(Keyboard),可选用户接口1003还可以包括标准的有线接口、无线接口。网络接口1004可选的可以包括标准的有线接口、无线接口(如WI-FI接口)。存储器1005可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1005可选的还可以是独立于前述处理器1001的存储装置。As shown in FIG. 1, the terminal may include a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as a magnetic disk memory. Optionally, the memory 1005 may also be a storage device independent of the foregoing processor 1001.
本领域技术人员可以理解,图1中示出的终端结构并不构成对终端的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the terminal structure shown in FIG. 1 does not constitute a limitation on the terminal, and may include more or fewer components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种计算机存储介质的存储器1005中可以包括操作系统、网络通信模块、用户接口模块以及应用程序测试的评价程序。As shown in FIG. 1, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an evaluation program for application program testing.
在图1所示的终端中,网络接口1004主要用于连接后台服务器,与后台服务器进行数据通信;用户接口1003主要用于连接客户端(用户端),与客户端进行数据通信;而处理器1001可以用于调用存储器1005中存储的应用程序测试的评价程序,并执行以下操作:In the terminal shown in FIG. 1, the network interface 1004 is mainly used to connect to the back-end server and communicate with the back-end server; the user interface 1003 is mainly used to connect to the client (user side) and communicate with the client; and the processor 1001 can be used to call the evaluation program of the application test stored in the memory 1005, and perform the following operations:
在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试预设应用程序的第二测试数据时,分别获取第一测试数据中的第一字典文件和第一函数信息,以及第二测试数据中的第二字典文件和第二函数信息;When the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first dictionary file and the first dictionary file in the first test data are respectively obtained A function information, and the second dictionary file and the second function information in the second test data;
分别读取第一函数信息在第一字典文件中的第一标识信息,以及第二函数信息在第二字典文件中的第二标识信息;Respectively read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
根据第一标识信息和第二标识信息,分别判定第一函数信息和第二函数信息是否为已执行函数;According to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
当第一函数信息和第二函数信息中至少有一个为已执行函数时,计算出应用程序的覆盖率。When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评价程序,还执行以下操作:Further, the processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试预设应用程序的第二测试数据时,分别获取第一测试数据中的第一二进制文件,第一函数名称和第一函数类名称,以及第二测试数据中的第二二进制文件,第二函数名称和第二函数类名称,其中,第一函数名称、所述第一函数类名称、第二函数名称和第二函数类名称至少为一个;When the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first binary file in the first test data is obtained respectively , The first function name and the first function class name, and the second binary file, the second function name and the second function class name in the second test data, where the first function name and the first function class At least one name, second function name, and second function class name;
通过第一函数名称和第一函数类名称将第一二进制文件按照类转换为第一字典文件,通过第二函数名称和第二函数类名称将第二二进制文件按照类转换为第二字典文件。The first binary file is converted into the first dictionary file according to the first function name and the first function class name, and the second binary file is converted into the first dictionary file according to the second function name and the second function class name. Two dictionary files.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评价程序,还执行以下操作:Further, the processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
判断第一字典文件和第二字典文件的格式信息是否为预置JSON格式;Determine whether the format information of the first dictionary file and the second dictionary file is a preset JSON format;
当确定第一字典文件和/或第二字典文件的格式信息不是预置JSON格式时,获取预置的转换程序,读取第一字典文件数据要素中的第一key值和第一value值和/或第二字典文件数据要素中的第二key值和第二value值;When it is determined that the format information of the first dictionary file and/or the second dictionary file is not the preset JSON format, the preset conversion program is obtained, and the first key value and the first value value in the data element of the first dictionary file are read. / Or the second key value and the second value value in the data element of the second dictionary file;
将第一key值和第一value值拼接成字串符,生成JSON格式的第一字典文件和/或将第二key值和第二value值拼接成字串符,生成JSON格式的第二字典文件。Combine the first key value and the first value value into string characters to generate the first dictionary file in JSON format and/or combine the second key value and the second value value into string characters to generate the second dictionary in JSON format file.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评价程序,还执行以下操作:Further, the processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
分别搜索第一函数类名称在JSON格式的第一字典文件中的第一类信息,以及第二函数类名称在JSON格式的第二字典文件中的第二类信息;Search separately for the first type of information in the first dictionary file of the first function class name in the JSON format, and the second type of information in the second dictionary file of the second function class name in the JSON format;
分别根据第一函数名称,读取第一函数名称在第一类信息中的第一标识信息,以及根据第二函数名称,读取第二函数名称在第二类信息中的第二标识信息。The first identification information of the first function name in the first type of information is read according to the first function name, and the second identification information of the second function name in the second type of information is read according to the second function name.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评价程序,还执行以下操作:Further, the processor 1001 may call the evaluation program of the application test stored in the memory 1005, and also perform the following operations:
当第一标识信息和第二标识信息不相同时,判定第一函数名称和第二函数名称对应的函数为已执行函数;When the first identification information and the second identification information are not the same, it is determined that the function corresponding to the first function name and the second function name is an executed function;
当第一标识信息和第二标识信息相同时且为已执行函数标识时,判定第一函数名称和第二函数名称对应的函数为已执行函数。When the first identification information and the second identification information are the same and are an executed function identification, it is determined that the function corresponding to the first function name and the second function name is an executed function.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评 价程序,还执行以下操作:Further, the processor 1001 may call an evaluation program for application program testing stored in the memory 1005, and also perform the following operations:
分别记录第一测试数据或第二测试数据中已执行函数的数量;Record the number of executed functions in the first test data or the second test data respectively;
根据第一测试数据和第二测试数据中已执行函数的数量,以及第一测试数据或第二测试数据中所有函数的数量,计算出应用程序的覆盖率。According to the number of executed functions in the first test data and the second test data, and the number of all functions in the first test data or the second test data, the coverage rate of the application program is calculated.
进一步地,处理器1001可以调用存储器1005中存储的应用程序测试的评价算程序,还执行以下操作:Further, the processor 1001 may call the evaluation calculation program of the application test stored in the memory 1005, and also perform the following operations:
当获取到判定为已执行函数的第一函数名称或所述第二函数名称时,将第一函数名称或所述第二函数名称建立集合,其中,第一函数名称和第二函数名称的名称信息相同;When the first function name or the second function name determined to be an executed function is acquired, the first function name or the second function name is set up, where the names of the first function name and the second function name The same information;
通过对相同的第一函数名称或所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量,并将记录的集合中已执行函数数量作为第一测试数据或第二测试数据的已执行函数数量。By filtering the same first function name or the second function name, one is retained, the number of executed functions in the set is recorded, and the number of executed functions in the recorded set is used as the first test data or the second test The number of executed functions of the data.
参照图2,本申请为应用程序测试的评价方法的第一实施例,所述应用程序测试的评价方法包括:2, this application is a first embodiment of an evaluation method for application testing, and the evaluation method for application testing includes:
步骤S10,在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试预设应用程序的第二测试数据时,分别获取第一测试数据中的第一字典文件和第一函数信息,以及第二测试数据中的第二字典文件和第二函数信息;Step S10, when the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first dictionary in the first test data is obtained respectively File and first function information, and second dictionary file and second function information in the second test data;
服务器接收终端发送应用程序的第一测试数据和第二测试数据,第一测试数据和第二测试数据均为应用程序的测试数据,获取第一测试数据中的第一字典文件和第一函数信息,以及第二测试数据中的第二字典文件和第二函数信息,且第一测试数据和第二测试数据中的函数类名称、函数名称以及函数数量相同。第一测试数据和第二测试数据为不同终端在检测同一应用程序覆盖率得到的应用程序中已执行的函数以及未执行的函数的数据文件,应用程序为APP,APP可以是通信类等不同功能的APP。不同的终端在检测应用程序覆盖率的过程中将已执行的函数和未执行的函数分别做出标记,并在测试数据中将做出标记的已执行的函数名称和未执行的函数名称按照类的区别生成一个字典文件。服务器在接收到第一终端发送的第一测试数据和第二终端发送第二测试数据,分别获取到第一测试数据中的第一字典文件和第二测试数据中第二字典文件,且服务器接收终端发送的测试数据不止为两份,还可以为多份测试数据。The server receives the first test data and the second test data of the application program sent by the terminal, the first test data and the second test data are the test data of the application program, and obtains the first dictionary file and the first function information in the first test data , And the second dictionary file and second function information in the second test data, and the function class names, function names, and number of functions in the first test data and the second test data are the same. The first test data and the second test data are data files of the executed functions and the unexecuted functions in the application obtained by detecting the coverage of the same application by different terminals. The application is APP, which can be different functions such as communication APP. Different terminals mark the executed function and the unexecuted function separately in the process of detecting application coverage, and mark the executed function name and the unexecuted function name in the test data according to the class The difference generates a dictionary file. When the server receives the first test data sent by the first terminal and the second test data sent by the second terminal, the server obtains the first dictionary file in the first test data and the second dictionary file in the second test data respectively, and the server receives The test data sent by the terminal is not only two copies, but also multiple copies of test data.
步骤S20,分别读取第一函数信息在第一字典文件中的第一标识信息,以及第二函数信息在第二字典文件中的第二标识信息;Step S20, respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
当服务器获取到第一测试数据中的第一字典文件和函数信息时,根据函数信息获取到该函数在第一字典文件中的标识信息,例如,当获取到函数信息的名称时,根据该函数名称在第一字典文件进行搜索,搜索到该函数名称对应的标识信息为红色识,或者搜索到该函数名称对应的标识信息为绿色识。当获取 到第二测试数据中的第二字典文件时和函数信息时,根据函数信息获取该函数在第二字典文件中的标识信息,例如,当获取到函数信息的名称时,根据该函数名称在第二字典文件进行搜索,搜索到该函数名称对应的标识信息为红色标识,或者搜索到该函数名称对应的标识信息为绿色识。服务器在获取到第一测试数据或第二测试数据中所有的函数信息,分别获取到搜索函数信息在第一字典文件和第二字典文件中的对应的标识信息。When the server obtains the first dictionary file and function information in the first test data, it obtains the identification information of the function in the first dictionary file according to the function information. For example, when the name of the function information is obtained, according to the function The name is searched in the first dictionary file, the identification information corresponding to the searched function name is red identification, or the identification information corresponding to the searched function name is green identification. When the second dictionary file and the function information in the second test data are obtained, the identification information of the function in the second dictionary file is obtained according to the function information, for example, when the name of the function information is obtained, according to the function name Searching in the second dictionary file, the identification information corresponding to the searched function name is red identification, or the identification information corresponding to the searched function name is green identification. When the server obtains all the function information in the first test data or the second test data, it obtains the corresponding identification information of the search function information in the first dictionary file and the second dictionary file, respectively.
步骤S30,根据第一标识信息和第二标识信息,分别判定第一函数信息和第二函数信息是否为已执行函数;Step S30, according to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
当服务器获取到第一测试数据或第二测试数据中所有的函数在第一字典文件和第二字典文件中的标识信息,判定函数信息的标识信息是否为已执行函数。当红色标识为未执行函数标识,绿色标识为已执行函数标识。或者,当红色标识为已执行函数标识,绿色标识为未执行函数标识。根据标识的颜色对函数进行判定,判定该函数是否为已执行函数。When the server obtains the identification information of all functions in the first test data or the second test data in the first dictionary file and the second dictionary file, it is determined whether the identification information of the function information is an executed function. When the red flag is not executed function flag, the green flag is executed function flag. Or, when the red flag is the executed function flag, the green flag is the unexecuted function flag. Judge the function according to the color of the mark, and determine whether the function is an executed function.
步骤S40,当第一函数信息和第二函数信息中至少有一个为已执行函数时,计算出应用程序的覆盖率。Step S40: When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
当服务器获取到判定的已执行函数,统计第一测试数据或第二测试数据中已执行函数的数量和所有函数的函数数量。将已执行函数除以所有函数的总量,计算出应用程序的函数覆盖率。When the server obtains the determined executed function, it counts the number of executed functions and the number of functions of all functions in the first test data or the second test data. Divide the executed functions by the total of all functions to calculate the function coverage of the application.
在本实施例中,服务器接收到不同终端发送应用程序的第一测试数据和第二测试数据,分别获取第一测试数据和第二测试数据中的字典文件和函数信息,在获取到函数信息在第一字典文件和第二字典文件中的标识信息时,判定该函数是否为已执行函数,在统计到已执行函数的数量时,获取到第一测试数据或第二测试数据中的函数总量,计算出应用程序的函数覆盖率。将多人或多机并行的测试数据汇总至服务器,服务器通过多份字典文件,获取测试数据中函数的执行情况不仅提高测试精度计算,还提高工作效率,且测试数据中函数的执行结果保存在后台,有迹可循。In this embodiment, the server receives the first test data and the second test data of the application program sent by different terminals, and obtains the dictionary file and function information in the first test data and the second test data respectively. After obtaining the function information, When identifying information in the first dictionary file and the second dictionary file, determine whether the function is an executed function. When the number of executed functions is counted, the total number of functions in the first test data or the second test data is obtained , Calculate the function coverage of the application. Summarize the test data of multiple persons or computers in parallel to the server. The server obtains the execution of the function in the test data through multiple dictionary files, which not only improves the test accuracy calculation, but also improves the work efficiency. The execution result of the function in the test data is saved in There are traces to follow in the background.
进一步的,参照图3,图3为本申请应用程序测试的评价方法提供的第二实施例,基于上述图2所示的实施例,步骤S10包括:Further, referring to FIG. 3, FIG. 3 is a second embodiment provided by the application test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S10 includes:
步骤S11,在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试预设应用程序的第二测试数据时,分别获取第一测试数据中的第一二进制文件,第一函数名称和第一函数类名称,以及第二测试数据中的第二二进制文件,第二函数名称和第二函数类名称;Step S11, when the first test data of the test preset application sent by the first terminal and the second test data of the test preset application sent by the second terminal are received, the first and the second test data of the first test data are respectively acquired. Binary file, the first function name and the first function class name, and the second binary file, the second function name and the second function class name in the second test data;
步骤S12,通过第一函数名称和第一函数类名称将第一二进制文件按照类转换为第一字典文件,通过第二函数名称和第二函数类名称将第二二进制文件按照类转换为第二字典文件。In step S12, the first binary file is converted into a first dictionary file according to the class by the first function name and the first function class name, and the second binary file is converted according to the class by the second function name and the second function class name. Convert to the second dictionary file.
服务器接收第一测试数据和第二测试数据均为应用程序的测试数据,且第一测试数据中的第一函数名称、第一函数类名称以及函数数量与第二测试数据 中的第二函数名称、第二函数类名称以及函数数量相同。第一测试数据和第二测试数据为终端在检测应用程序覆盖率得到的应用程序中已执行的函数以及未执行的函数的数据文件。服务器在检测应用程序覆盖率的过程中将已执行的函数和未执行的函数分别做出标记,并在测试数据中将做出标记的已执行的函数名称和未执行的函数名称按照类的区别生成一个二进制文件。服务器在测试数据中获取到二进制文件时,通过函数名称以及函数的标记信息按照函数类名称自动将二进制文件转换为字典文件。并获取到第一测试数据或第二测试数据中的函数名称以及该函数名称所处函数类名称。The first test data and the second test data received by the server are both test data of the application, and the first function name, the first function class name and the number of functions in the first test data are the same as the second function name in the second test data The name of the second function class and the number of functions are the same. The first test data and the second test data are data files of functions that have been executed and functions that have not been executed in the application program obtained by the terminal from detecting the coverage rate of the application program. In the process of detecting application coverage, the server marks the executed function and the unexecuted function separately, and marks the executed function name and the unexecuted function name in the test data according to the class distinction Generate a binary file. When the server obtains the binary file in the test data, it automatically converts the binary file into a dictionary file according to the function name and the label information of the function. And obtain the function name in the first test data or the second test data and the name of the function class where the function name is located.
在本实施例中,服务器接收到终端发送应用程序的第一测试数据和第二测试数据,分别获取到第一测试数据和第二测试数据中的二进制文件以及函数名称和函数类名称。在获取到二进制文件时,将二进制文件通过函数的名称以及函数类名称自动将二进制文件按照类转换为字典文件。通过函数名称和函数类名称将测试数据中的二进制文件转换为字典文件,提高服务器接收测试数据的效率。In this embodiment, the server receives the first test data and the second test data of the application program sent by the terminal, and obtains the binary file, the function name and the function class name in the first test data and the second test data, respectively. When the binary file is obtained, the binary file is automatically converted into a dictionary file according to the class by the name of the function and the name of the function class. The binary file in the test data is converted into a dictionary file through the function name and function class name to improve the efficiency of the server receiving test data.
参照图4,图4为本申请应用程序测试的评价方法提供的第三实施例,基于上述图2所示的实施例,步骤S12之后,包括:Referring to Fig. 4, Fig. 4 is a third embodiment provided by the application test evaluation method of this application. Based on the embodiment shown in Fig. 2, after step S12, it includes:
步骤S50,判断第一字典文件和第二字典文件的格式信息是否为预置JSON格式;Step S50: Determine whether the format information of the first dictionary file and the second dictionary file are in a preset JSON format;
步骤S60,当确定第一字典文件和/或第二字典文件的格式信息不是预置JSON格式时,获取预置的转换程序,读取第一字典文件数据要素中的第一key值和第一value值和/或第二字典文件数据要素中的第二key值和第二value值;Step S60: When it is determined that the format information of the first dictionary file and/or the second dictionary file is not the preset JSON format, obtain the preset conversion program, and read the first key value and the first key value in the data element of the first dictionary file. value value and/or the second key value and the second value value in the data element of the second dictionary file;
步骤S70,将第一key值和第一value值拼接成字串符,生成JSON格式的第一字典文件和/或将第二key值和第二value值拼接成字串符,生成JSON格式的第二字典文件。Step S70, splicing the first key value and the first value value into a string character to generate a first dictionary file in JSON format and/or splicing the second key value and the second value value into a string character to generate a JSON format The second dictionary file.
服务器在获取到第一测试数据的第一字典文件和第二测试数据的第二字典文件时,获取第一字典文件和第二字典文件的格式信息,并判断第一字典文件的格式信息或第二字典文件的格式信息是否为预置JSON格式。当第一字典文件的格式信息或第二字典文件的格式信息不是预置JSON格式时,服务器获取第一字典文件中的数据要素和第二字典文件中的数据要素,启动预存的转换程序,该格式转换程序可以为启动编程语言在格式为文本文件的字典文件中用I/O来进行编程,通过用FileWriter类来将获取到的字典文件的文本格式转换为JSON格式。具体为分别读取第一测试数据的字典文件中的数据要素和第二测试数据的字典文件中的数据要素中的key值和value值,key是合法的变量名,value是结果值。服务器将读取到的key值和value值通过预存的转换程序拼接成字串符,生成JSON(JavaScript Object Notation)对象和数组格式的字典文件。测试数据中函数的标记信息在文件文本中的字典形式如下:When the server obtains the first dictionary file of the first test data and the second dictionary file of the second test data, it obtains the format information of the first dictionary file and the second dictionary file, and determines the format information or the first dictionary file of the first dictionary file. Second, whether the format information of the dictionary file is a preset JSON format. When the format information of the first dictionary file or the format information of the second dictionary file is not the preset JSON format, the server obtains the data elements in the first dictionary file and the data elements in the second dictionary file, and starts the pre-stored conversion program. The format conversion program can use I/O to program in the dictionary file formatted as a text file for the startup programming language, and convert the text format of the acquired dictionary file into JSON format by using the FileWriter class. Specifically, read the key value and value in the data element in the dictionary file of the first test data and the data element in the dictionary file of the second test data respectively, where the key is a legal variable name, and the value is the result value. The server splices the read key value and value value into a string character through a pre-stored conversion program to generate a JSON (JavaScript Object Notation) object and a dictionary file in the array format. The dictionary form of the label information of the function in the test data in the file text is as follows:
Figure PCTCN2019118663-appb-000001
Figure PCTCN2019118663-appb-000001
Figure PCTCN2019118663-appb-000002
Figure PCTCN2019118663-appb-000002
在通过转换成程序转换成JSON之后就是这样:After being converted to JSON through a conversion program, this is the case:
{"类A":{"函数1":"YES","函数2":"NO","函数3":"NO","函数4":"YES"},"类B":{"函数1":"NO","函数2":"NO","函数3":"YES"}}服务器在将文本文件格式的字典文件转换为JSON格式时,服务器根据测试数据中的函数信息在字典文件中获取到对应函数的标识信息,该标识信息"YES"表示该函数已执行,“NO”标识该函数未执行。{"Class A":{"Function 1":"YES","Function 2":"NO","Function 3":"NO","Function 4":"YES"},"Class B":{ "Function 1": "NO", "Function 2": "NO", "Function 3": "YES"}} When the server converts the dictionary file in the text file format into JSON format, the server uses the function in the test data The information obtains the identification information of the corresponding function in the dictionary file. The identification information "YES" indicates that the function has been executed, and "NO" indicates that the function has not been executed.
在本实施例中,服务器在获取到第一字典文件或第二字典文件的格式信息不是预置JSON格式时,获取第一字典文件中的数据要素或第二字典文件中的数据要素,启动预存的转换程序,分别读取第一测试数据的字典文件中的数据要素和第二测试数据的字典文件中的数据要素中的key值和value值,服务器将读取到的key值和value值通过预存的转换程序拼接成字串符,生成JSON格式的第一字典文件和/或第二字典文件。将字典文件的格式转换为JSON格式,使服务器快速的获取到字典文件中的函数标识。In this embodiment, when the server obtains that the format information of the first dictionary file or the second dictionary file is not the preset JSON format, it obtains the data elements in the first dictionary file or the data elements in the second dictionary file, and starts pre-storing The conversion program reads the data elements in the dictionary file of the first test data and the key and value values in the data elements in the dictionary file of the second test data respectively, and the server passes the read key and value values The pre-stored conversion program is spliced into string characters to generate the first dictionary file and/or the second dictionary file in JSON format. Convert the format of the dictionary file to the JSON format, so that the server can quickly obtain the function identifier in the dictionary file.
参照图5,图5为本申请应用程序测试的评价方法提供的第四实施例,基于上述图2所示的实施例,步骤S20包括:Referring to FIG. 5, FIG. 5 is a fourth embodiment provided by the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S20 includes:
步骤S21,分别搜索第一函数类名称在JSON格式的第一字典文件中的第一类信息,以及第二函数类名称在JSON格式的第二字典文件中的第二类信息;Step S21, searching respectively for the first type of information in the first dictionary file of the first function class name in the JSON format, and the second type of information in the second dictionary file of the second function class name in the JSON format;
步骤S21,分别根据第一函数名称,读取第一函数名称在第一类信息中的第一标识信息,以及根据第二函数名称,读取第二函数名称在所述第二类信息中的第二标识信息。Step S21: Read the first identification information of the first function name in the first type of information according to the first function name, and read the second function name in the second type of information according to the second function name. The second identification information.
当服务器获取到第一测试数据中的第一字典文件和函数名称以及函数类名称时,根据函数类名称获取到该函数在第一字典文件中所处的类,再根据函数名称获取到该函数在该类中的对应的标识。例如,当获取到函数类名称为类A时,根据该函数的类A名称在第一字典文件进行搜索,当搜索到类A时,在根据该函数名称函数1进行查找,在查找到该函数名称对应的标识信息为“YES”,或者搜索到该函数名称对应的标识信息为“NO”标识。当服务器获取到第二测试数据中的第二字典文件和函数名称以及函数类名称时,根据函数类名称获取到该函数在第二字典文件中所处的类,再根据函数名称获取到该函数在该类中的对应的标识。例如,当获取到函数类名称为类A时,根据该函数的类A名称在第二字典文件进行搜索,当搜索到类A时,在根据该函数名称函数1进行查找,在查找到该函数名称对应的标识信息为“YES”标识,或者搜索到该函数名称对应的标识信息为“NO”标识。服务器在获取到第一测试数据或 第二测试数据中所有的函数名称和类形成,分别搜索该函数在第一字典文件和第二字典文件中的对应的标识信息。When the server obtains the first dictionary file and function name and function class name in the first test data, it obtains the class of the function in the first dictionary file according to the function class name, and then obtains the function according to the function name The corresponding identifier in the class. For example, when the function class name is class A, the first dictionary file is searched according to the class A name of the function. When class A is searched, the search is performed according to the function name function 1, and the function is found. The identification information corresponding to the name is "YES", or the identification information corresponding to the searched function name is "NO". When the server obtains the second dictionary file and function name and function class name in the second test data, it obtains the class of the function in the second dictionary file according to the function class name, and then obtains the function according to the function name The corresponding identifier in the class. For example, when the function class name is class A, the second dictionary file is searched according to the class A name of the function. When class A is searched, the search is performed according to the function name function 1, and the function is found. The identification information corresponding to the name is the "YES" mark, or the identification information corresponding to the searched function name is the "NO" mark. After the server obtains all the function names and class formations in the first test data or the second test data, it searches for the corresponding identification information of the function in the first dictionary file and the second dictionary file, respectively.
在本实施例中,当服务器获取到第一测试数据或第二测试数据中函数的名称和类新名称时,分别在第一字典文件和第二字典文件中获取到对应的标识信息,服务器通过多份字典文件,获取测试数据中函数的执行情况提高测试精度。In this embodiment, when the server obtains the name of the function and the new name of the class in the first test data or the second test data, it obtains the corresponding identification information in the first dictionary file and the second dictionary file, and the server passes Multiple dictionary files to obtain the execution status of functions in the test data to improve test accuracy.
参照图6,图6为本申请应用程序测试的评价方法提供的第五实施例,基于上述图2所示的实施例,步骤S30包括:Referring to FIG. 6, FIG. 6 is a fifth embodiment provided by the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S30 includes:
步骤S31,当所述第一标识信息和所述第二标识信息不相同时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数;Step S31: When the first identification information and the second identification information are not the same, determine that the function corresponding to the first function name and the second function name is an executed function;
步骤S32,当所述第一标识信息和所述第二标识信息相同时且为已执行函数标识时,判定第一函数名称和所述第二函数名称对应的函数为已执行函数。Step S32: When the first identification information and the second identification information are the same and are the executed function identification, it is determined that the function corresponding to the first function name and the second function name is the executed function.
当服务器获取到测试数据中同一函数根据名称在JSON格式的第一字典文件和第二字典文件中的标识信息时,判断该函数在JSON格式的第一字典文件和第二字典文件中的标识信息是否相同,当标识信息不相同时,判定该函数为已执行函数,例如,当该函数在JSON格式的第一字典文件中的标识为“YES”标识,在JSON格式的第二字典文件中为“NO”标识。或者,在当该函数在JSON格式的第一字典文件中的标识为“NO”标识,在JSON格式的第二字典文件中为“YES”标识,服务器都判定该函数为已执行函数。当标识信息相同且标识信息为已执行函数标识时,判定该函数为已执行函数。例如,该函数在JSON格式的第一字典文件和第二字典文件中为“YES”标识时,服务器也判定该函数为已执行函数。When the server obtains the same function in the test data according to the identification information of the name in the first dictionary file and the second dictionary file in JSON format, determine the identification information of the function in the first dictionary file and second dictionary file in JSON format Whether it is the same. When the identification information is not the same, the function is determined to be an executed function. For example, when the function is identified as "YES" in the first dictionary file in JSON format, it is in the second dictionary file in JSON format. "NO" logo. Or, when the function is identified as "NO" in the first dictionary file in JSON format and "YES" in the second dictionary file in JSON format, the server determines that the function is an executed function. When the identification information is the same and the identification information is an executed function identification, it is determined that the function is an executed function. For example, when the function is identified as "YES" in the first dictionary file and the second dictionary file in JSON format, the server also determines that the function is an executed function.
在本实施例中,服务器在获取到同一函数在JSON格式的第一字典文件和JSON格式的第二字典中的标识信息,当标识信息不相同时,判定该函数为已执行函数,当标识信息相同且标识信息为已执行函数标识时,判定该函数为已执行函数,服务器通过多份字典文件,获取测试数据中函数的执行情况提高测试精度。In this embodiment, the server obtains the identification information of the same function in the first dictionary file in JSON format and the second dictionary in JSON format. When the identification information is not the same, it is determined that the function is an executed function. When the same and the identification information is an executed function identification, it is determined that the function is an executed function, and the server obtains the execution status of the function in the test data through multiple dictionary files to improve the test accuracy.
参照图7,图7为本申请应用程序测试的评价方法提供的第六实施例,基于上述图2所示的实施例,步骤S40包括:Referring to FIG. 7, FIG. 7 is a sixth embodiment of the application program test evaluation method of this application. Based on the embodiment shown in FIG. 2, step S40 includes:
步骤S41,分别记录所述第一测试数据或所述第二测试数据中已执行函数的数量;Step S41: Record the number of executed functions in the first test data or the second test data respectively;
步骤S42,根据所述第一测试数据或所述第二测试数据中已执行函数的数量,以及所述第一测试数据或所述第二测试数据中所有函数的数量,计算出所述应用程序的覆盖率,例如,当获取到第一测试数据或第二测试数据中已执行函数的数量为86个时,而第一测试数据或第二测试数据的函数总个数为100时,该应用程序的覆盖率为86%,其中,第一测试数据或第二测试数据中已执行函数的数量为86个为判定的已执行函数。Step S42: Calculate the application program according to the number of executed functions in the first test data or the second test data, and the number of all functions in the first test data or the second test data For example, when the number of executed functions in the first test data or the second test data is 86, and the total number of functions in the first test data or the second test data is 100, the application The coverage rate of the program is 86%, where the number of executed functions in the first test data or the second test data is 86 as determined executed functions.
当服务器获取到判定的函数名称时,记录第一测试数据或第二测试数据中 被判定为已执行函数的名称,并统计该已执行函数的数量。当服务器获取到第一测试数据或第二测试数据中已执行函数的数量和第一测试数据或第二测试数据的函数总量时,将已执行函数的数量处以函数总量得到该应用程序的函数覆盖率。多人或多机并行的测试数据汇总至服务器计算,提高工作效率,且测试数据中函数的执行结果保存在后台,有迹可循。When the server obtains the name of the determined function, it records the name of the function determined as executed in the first test data or the second test data, and counts the number of the executed function. When the server obtains the number of executed functions in the first test data or the second test data and the total number of functions in the first test data or the second test data, the number of executed functions is set to the total number of functions to obtain the total number of functions for the application. Function coverage. Multi-person or multi-machine parallel test data is aggregated to the server for calculation, which improves work efficiency, and the execution result of the function in the test data is stored in the background for traceability.
参照图8,图8为图7中步骤S41的细化流程示意图,步骤S41包括:Referring to FIG. 8, FIG. 8 is a detailed flowchart of step S41 in FIG. 7, and step S41 includes:
步骤S411,当获取到判定为已执行函数的所述第一函数名称或所述第二函数名称时,将所述第一函数名称或所述第二函数名称建立集合,其中,所述第一函数名称和所述第二函数名称的名称信息相同;Step S411: When the first function name or the second function name determined to be an executed function is acquired, the first function name or the second function name is set up, wherein the first function name or the second function name The function name is the same as the name information of the second function name;
步骤S412,通过对相同的所述第一函数名称或所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量,并将记录的集合中已执行函数数量作为所述第一测试数据或所述第二测试数据的已执行函数数量。Step S412: Retain one by filtering out the same name of the first function or the name of the second function, recording the number of executed functions in the set, and taking the number of executed functions in the recorded set as the first The number of executed functions of one test data or the second test data.
当服务器获取到判定为已执行函数的所述第一函数名称或所述第二函数名称时,将所述第一函数名称或所述第二函数名称建立集合,其中,所述第一函数名称和所述第二函数名称的名称信息相同,通过对相同的所述第一函数名称或所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量,并将记录的已执行函数的数量作为所述第一测试数据或所述第二测试数据的已执行函数数量,例如,当集合中的第一函数名称为函数1,而第二函数名称也为函数1时,去除任意一个函数名称为函数1,此处的第一函数名称与第二函数名称同属一个函数类名称,当出现多个类名称时,将集合中同一类名称中相同的函数名称进行滤除。When the server obtains the first function name or the second function name that is determined to be an executed function, the first function name or the second function name is set up, wherein the first function name Same as the name information of the second function name, one is reserved by filtering out the same first function name or the second function name, the number of executed functions in the set is recorded, and the recorded The number of executed functions is used as the number of executed functions of the first test data or the second test data. For example, when the first function name in the set is function 1, and the second function name is also function 1, remove Any function name is function 1, where the first function name and the second function name belong to the same function class name. When multiple class names appear, the same function name in the same class name in the set is filtered out.
在本实施例中,服务器获取到判定为已执行函数的所述第一函数名称所述第二函数名称时,将所述第一函数名称所述第二函数名称建立集合,其中,所述第一函数名称和所述第二函数名称的名称信息相同,通过对相同的所述第一函数名称所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量。通过集合,快速的获取到已执行函数的数量。In this embodiment, when the server obtains the first function name and the second function name that is determined to be an executed function, it sets up the first function name and the second function name, wherein the first function name The name information of a function name is the same as the name information of the second function name, one is reserved by filtering the second function name of the same first function name, and the number of executed functions in the set is recorded. Through the collection, the number of executed functions can be quickly obtained.
此外,本申请实施例还提出一种服务器,所述服务器包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的应用程序测试的评价程序,所述应用程序测试的评价程序被所述处理器执行时实现如上实施例所述的应用程序测试的评价方法的步骤。In addition, an embodiment of the present application also proposes a server. The server includes a memory, a processor, and an evaluation program for application testing stored on the memory and running on the processor. The application testing When the evaluation program is executed by the processor, the steps of the evaluation method for application test described in the above embodiment are implemented.
此外,本申请还提供一种计算机可读存储介质,该计算机可读存储介质可以为非易失性计算机可读存储介质,也可以为易失性计算机可读存储介质。计算机可读存储介质存储有计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:In addition, the present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on the computer, the computer executes the following steps:
在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件 和第二函数信息;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. A dictionary file and first function information, and a second dictionary file and second function information in the second test data;
分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;Respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;According to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Claims (20)

  1. 一种应用程序测试的评价方法,所述测试数据测试的评价方法包括:An evaluation method for application program testing. The evaluation method for test data testing includes:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. A dictionary file and first function information, and a second dictionary file and second function information in the second test data;
    分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;Respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
    根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;According to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
    当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
  2. 如权利要求1所述的应用程序测试的评价方法,所述在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息,包括:The evaluation method of application testing according to claim 1, wherein the first test data sent by the first terminal for testing the preset application and the second test data sent by the second terminal for testing the preset application are received. When testing data, acquiring the first dictionary file and first function information in the first test data, and the second dictionary file and second function information in the second test data, respectively, includes:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一二进制文件,第一函数名称和第一函数类名称,以及所述第二测试数据中的第二二进制文件,第二函数名称和第二函数类名称,其中,所述第一函数名称、所述第一函数类名称、所述第二函数名称和所述第二函数类名称至少为一个;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. Binary file, the first function name and the first function class name, and the second binary file, the second function name and the second function class name in the second test data, wherein the first function The name, the name of the first function class, the name of the second function, and the name of the second function class are at least one;
    通过所述第一函数名称和所述第一函数类名称将所述第一二进制文件按照类转换为第一字典文件,通过所述第二函数名称和所述第二函数类名称将所述第二二进制文件按照类转换为第二字典文件。The first binary file is converted into a first dictionary file according to the class according to the first function name and the first function class name, and the second function name and the second function class name The second binary file is converted into a second dictionary file according to the class.
  3. 如权利要求2所述的应用程序测试的评价方法,所述通过所述第一函数名称和所述第一函数类名称将所述第一二进制文件按照类转换为第一字典文件,通过所述第二函数名称和所述第二函数类名称将所述第二二进制文件按照类转换为第二字典文件之后,包括:The evaluation method for application testing according to claim 2, wherein the first binary file is converted into a first dictionary file according to the class by the first function name and the first function class name, and After the second function name and the second function class name convert the second binary file into a second dictionary file according to the class, it includes:
    判断所述第一字典文件和所述第二字典文件的格式信息是否为预置JSON格式;Judging whether the format information of the first dictionary file and the second dictionary file is a preset JSON format;
    当确定所述第一字典文件和/或所述第二字典文件的格式信息不是预置JSON格式时,获取预置的转换程序,读取所述第一字典文件数据要素中的第一key值和第一value值和/或所述第二字典文件数据要素中的第二key值和第二value值;When it is determined that the format information of the first dictionary file and/or the second dictionary file is not the preset JSON format, obtain the preset conversion program, and read the first key value in the data element of the first dictionary file And the first value and/or the second key value and the second value in the data element of the second dictionary file;
    将所述第一key值和所述第一value值拼接成字串符,生成JSON格式的第一字典文件和/或将所述第二key值和所述第二value值拼接成字串符,生成JSON格式的第二字典文件。Concatenate the first key value and the first value value into a string character, generate a first dictionary file in JSON format and/or concatenate the second key value and the second value value into a string character , Generate the second dictionary file in JSON format.
  4. 如权利要求2所述的应用程序测试的评价方法,所述分别读取所述第一函数信息在第一字典文件中的第一标识信息和所述第二函数信息在第二字典文件中的第二标识信息,包括:The evaluation method for application testing according to claim 2, wherein the first identification information of the first function information in the first dictionary file and the second function information in the second dictionary file are respectively read The second identification information includes:
    分别搜索所述第一函数类名称在所述JSON格式的第一字典文件中的第一类信息,以及所述第二函数类名称在所述JSON格式的第二字典文件中的第二类信息;Search respectively for the first type of information of the name of the first function class in the first dictionary file in the JSON format and the second type of information of the name of the second function class in the second dictionary file in the JSON format ;
    分别根据所述第一函数名称,读取所述第一函数名称在所述第一类信息中的第一标识信息,以及根据所述第二函数名称,读取所述第二函数名称在所述第二类信息中的第二标识信息。According to the first function name, read the first identification information of the first function name in the first type of information, and according to the second function name, read the second function name in the The second identification information in the second type of information.
  5. 如权利要求4所述的应用程序测试的评价方法,所述根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数,包括:5. The evaluation method of application test according to claim 4, said determining whether the first function information and the second function information are executed functions according to the first identification information and the second identification information, respectively, include:
    当所述第一标识信息和所述第二标识信息不相同时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数;When the first identification information and the second identification information are not the same, determining that the function corresponding to the first function name and the second function name is an executed function;
    当所述第一标识信息和所述第二标识信息相同时且为已执行函数标识时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数。When the first identification information and the second identification information are the same and are an executed function identification, it is determined that the function corresponding to the first function name and the second function name is an executed function.
  6. 如权利要求1-5中任意一项所述的应用程序测试的评价方法,所述当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率,包括:7. The evaluation method for application testing according to any one of claims 1 to 5, wherein when at least one of the first function information and the second function information is an executed function, the Application coverage, including:
    分别记录所述第一测试数据或所述第二测试数据中已执行函数的数量;Respectively recording the number of executed functions in the first test data or the second test data;
    根据所述第一测试数据或所述第二测试数据中已执行函数的数量,以及所述第一测试数据或所述第二测试数据中所有函数的数量,计算出所述应用程序的覆盖率。According to the number of executed functions in the first test data or the second test data, and the number of all functions in the first test data or the second test data, the coverage rate of the application program is calculated .
  7. 如权利要求6所述的应用程序测试的评价方法,所述根据所述分别记录所述第一测试数据和所述第二测试数据中已执行函数的数量,包括:7. The evaluation method of application testing according to claim 6, wherein said recording respectively the number of executed functions in said first test data and said second test data according to said, comprising:
    当获取到判定为已执行函数的所述第一函数名称或所述第二函数名称时,将所述第一函数名称或所述第二函数名称建立集合,其中,所述第一函数名称和所述第二函数名称的名称信息相同;When the first function name or the second function name that is determined to be an executed function is acquired, the first function name or the second function name is set up, wherein the first function name and The name information of the second function name is the same;
    通过对相同的所述第一函数名称或所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量,并将记录的所述集合中已执行函数数量作为所述第一测试数据或所述第二测试数据的已执行函数数量。By filtering out the same name of the first function or the name of the second function and retaining one, the number of executed functions in the set is recorded, and the recorded number of executed functions in the set is taken as the first The number of executed functions of the test data or the second test data.
  8. 一种应用程序测试的评价装置,所述测试数据测试的评价装置包括:An evaluation device for application program testing, the evaluation device for test data testing includes:
    获取单元,用于在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述 第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息。The obtaining unit is configured to obtain the first test data when the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received respectively The first dictionary file and the first function information in the data, and the second dictionary file and the second function information in the second test data.
    读取单元,用于分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;A reading unit, configured to read the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file respectively;
    判定单元,用于根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;A determining unit, configured to determine whether the first function information and the second function information are executed functions according to the first identification information and the second identification information;
    计算单元,用于当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。The calculation unit is configured to calculate the coverage rate of the application program when at least one of the first function information and the second function information is an executed function.
  9. 根据权利要求8所述的应用程序测试的评价装置,所述获取单元具体用于:According to the appraisal device for application test according to claim 8, the acquiring unit is specifically configured to:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一二进制文件,第一函数名称和第一函数类名称,以及所述第二测试数据中的第二二进制文件,第二函数名称和第二函数类名称,其中,所述第一函数名称、所述第一函数类名称、所述第二函数名称和所述第二函数类名称至少为一个;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. Binary file, the first function name and the first function class name, and the second binary file, the second function name and the second function class name in the second test data, wherein the first function The name, the name of the first function class, the name of the second function, and the name of the second function class are at least one;
    通过所述第一函数名称和所述第一函数类名称将所述第一二进制文件按照类转换为第一字典文件,通过所述第二函数名称和所述第二函数类名称将所述第二二进制文件按照类转换为第二字典文件。The first binary file is converted into a first dictionary file according to the class according to the first function name and the first function class name, and the second function name and the second function class name The second binary file is converted into a second dictionary file according to the class.
  10. 根据权利要求8所述的应用程序测试的评价装置,所述增量构建CUBE模型的装置,具体还包括:The evaluation device for application testing according to claim 8, wherein the device for incrementally constructing a CUBE model specifically further comprises:
    判断格式单元,用于判断所述第一字典文件和所述第二字典文件的格式信息是否为预置JSON格式;A determining format unit, configured to determine whether the format information of the first dictionary file and the second dictionary file is a preset JSON format;
    转换单元,用于当确定所述第一字典文件和/或所述第二字典文件的格式信息不是预置JSON格式时,获取预置的转换程序,读取所述第一字典文件数据要素中的第一key值和第一value值和/或所述第二字典文件数据要素中的第二key值和第二value值;The conversion unit is configured to obtain a preset conversion program when it is determined that the format information of the first dictionary file and/or the second dictionary file is not a preset JSON format, and read the data elements of the first dictionary file The first key value and the first value value of and/or the second key value and the second value value in the data element of the second dictionary file;
    生成单元,用于将所述第一key值和所述第一value值拼接成字串符,生成JSON格式的第一字典文件和/或将所述第二key值和所述第二value值拼接成字串符,生成JSON格式的第二字典文件。A generating unit, configured to splice the first key value and the first value value into a string character, generate a first dictionary file in JSON format and/or combine the second key value and the second value value Concatenate into string characters to generate a second dictionary file in JSON format.
  11. 根据权利要求9所述的应用程序测试的评价装置,所述读取单元具体用于:According to the appraisal device for application test according to claim 9, the reading unit is specifically configured to:
    分别搜索所述第一函数类名称在所述JSON格式的第一字典文件中的第一类信息,以及所述第二函数类名称在所述JSON格式的第二字典文件中的第二类信息;Search respectively for the first type of information of the name of the first function class in the first dictionary file in the JSON format and the second type of information of the name of the second function class in the second dictionary file in the JSON format ;
    分别根据所述第一函数名称,读取所述第一函数名称在所述第一类信息中的第一标识信息,以及根据所述第二函数名称,读取所述第二函数名称在所述 第二类信息中的第二标识信息。According to the first function name, read the first identification information of the first function name in the first type of information, and according to the second function name, read the second function name in the The second identification information in the second type of information.
  12. 根据权利要求11所述的应用程序测试的评价装置,所述判定单元具体用于:According to the appraisal device for application testing according to claim 11, the determining unit is specifically configured to:
    当所述第一标识信息和所述第二标识信息不相同时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数;When the first identification information and the second identification information are not the same, determining that the function corresponding to the first function name and the second function name is an executed function;
    当所述第一标识信息和所述第二标识信息相同时且为已执行函数标识时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数。When the first identification information and the second identification information are the same and are an executed function identification, it is determined that the function corresponding to the first function name and the second function name is an executed function.
  13. 根据权利要求8-12中任一项所述的应用程序测试的评价装置,所述计算单元具体用于:According to the evaluation device for application testing according to any one of claims 8-12, the calculation unit is specifically configured to:
    计录子单元,用于分别记录所述第一测试数据或所述第二测试数据中已执行函数的数量;A recording subunit for recording the number of executed functions in the first test data or the second test data;
    计算子单元,用于根据所述第一测试数据或所述第二测试数据中已执行函数的数量,以及所述第一测试数据或所述第二测试数据中所有函数的数量,计算出所述应用程序的覆盖率。The calculation subunit is used to calculate the total number of functions in the first test data or the second test data and the number of all functions in the first test data or the second test data. The coverage of the application.
  14. 根据权利要求13所述的应用程序测试的评价装置,所述计录子单元具体用于:The evaluation device for application testing according to claim 13, wherein the recording subunit is specifically configured to:
    当获取到判定为已执行函数的所述第一函数名称或所述第二函数名称时,将所述第一函数名称或所述第二函数名称建立集合,其中,所述第一函数名称和所述第二函数名称的名称信息相同;When the first function name or the second function name that is determined to be an executed function is acquired, the first function name or the second function name is set up, wherein the first function name and The name information of the second function name is the same;
    通过对相同的所述第一函数名称或所述第二函数名称进行滤除保留一个,记录所述集合中已执行函数数量,并将记录的所述集合中已执行函数的数量作为所述第一测试数据或所述第二测试数据的已执行函数数量。By filtering out the same name of the first function or the name of the second function and retaining one, the number of executed functions in the set is recorded, and the recorded number of executed functions in the set is taken as the first The number of executed functions of one test data or the second test data.
  15. 一种应用程序测试的评价服务器,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机可读指令,所述处理器执行所述计算机可读指令时实现如下步骤:An evaluation server for application program testing includes a memory, a processor, and computer readable instructions stored on the memory and capable of running on the processor, and the processor executes the computer readable instructions as follows step:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. A dictionary file and first function information, and a second dictionary file and second function information in the second test data;
    分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;Respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
    根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;According to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
    当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
  16. 根据权利要求15所述的应用程序测试的评价服务器,所述处理器执行所述计算机可读指令实现所述在接收到第一终端发送的测试预设应用程序 的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息时,包括以下步骤:The evaluation server for application testing according to claim 15, wherein the processor executes the computer-readable instructions to implement the first test data and the second terminal of the test preset application sent by the first terminal When the sent second test data of the preset application is tested, the first dictionary file and the first function information in the first test data, and the second dictionary file and the second dictionary file in the second test data are obtained respectively. The second function information includes the following steps:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一二进制文件,第一函数名称和第一函数类名称,以及所述第二测试数据中的第二二进制文件,第二函数名称和第二函数类名称,其中,所述第一函数名称、所述第一函数类名称、所述第二函数名称和所述第二函数类名称至少为一个;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. Binary file, the first function name and the first function class name, and the second binary file, the second function name and the second function class name in the second test data, wherein the first function The name, the name of the first function class, the name of the second function, and the name of the second function class are at least one;
    通过所述第一函数名称和所述第一函数类名称将所述第一二进制文件按照类转换为第一字典文件,通过所述第二函数名称和所述第二函数类名称将所述第二二进制文件按照类转换为第二字典文件。The first binary file is converted into a first dictionary file according to the class according to the first function name and the first function class name, and the second function name and the second function class name The second binary file is converted into a second dictionary file according to the class.
  17. 根据权利要求16所述的应用程序测试的评价服务器,所述处理器执行所述计算机可读指令实现所述通过所述第一函数名称和所述第一函数类名称将所述第一二进制文件按照类转换为第一字典文件,通过所述第二函数名称和所述第二函数类名称将所述第二二进制文件按照类转换为第二字典文件之后,还包括以下步骤:The evaluation server for application testing according to claim 16, wherein the processor executes the computer-readable instructions to implement the first binary entry through the first function name and the first function class name After the control file is converted into the first dictionary file according to the class, and the second binary file is converted into the second dictionary file according to the class according to the second function name and the second function class name, the following steps are further included:
    判断所述第一字典文件和所述第二字典文件的格式信息是否为预置JSON格式;Judging whether the format information of the first dictionary file and the second dictionary file is a preset JSON format;
    当确定所述第一字典文件和/或所述第二字典文件的格式信息不是预置JSON格式时,获取预置的转换程序,读取所述第一字典文件数据要素中的第一key值和第一value值和/或所述第二字典文件数据要素中的第二key值和第二value值;When it is determined that the format information of the first dictionary file and/or the second dictionary file is not the preset JSON format, obtain the preset conversion program, and read the first key value in the data element of the first dictionary file And the first value and/or the second key value and the second value in the data element of the second dictionary file;
    将所述第一key值和所述第一value值拼接成字串符,生成JSON格式的第一字典文件和/或将所述第二key值和所述第二value值拼接成字串符,生成JSON格式的第二字典文件。Concatenate the first key value and the first value value into a string character, generate a first dictionary file in JSON format and/or concatenate the second key value and the second value value into a string character , Generate the second dictionary file in JSON format.
  18. 根据权利要求16所述的应用程序测试的评价服务器,所述处理器执行所述计算机可读指令实现所述分别读取所述第一函数信息在第一字典文件中的第一标识信息和所述第二函数信息在第二字典文件中的第二标识信息时,包括以下步骤:The evaluation server for application testing according to claim 16, wherein the processor executes the computer-readable instructions to implement the reading of the first identification information and the first identification information in the first dictionary file of the first function information respectively. The second identification information of the second function information in the second dictionary file includes the following steps:
    分别搜索所述第一函数类名称在所述JSON格式的第一字典文件中的第一类信息,以及所述第二函数类名称在所述JSON格式的第二字典文件中的第二类信息;Search respectively for the first type of information of the name of the first function class in the first dictionary file in the JSON format and the second type of information of the name of the second function class in the second dictionary file in the JSON format ;
    分别根据所述第一函数名称,读取所述第一函数名称在所述第一类信息中的第一标识信息,以及根据所述第二函数名称,读取所述第二函数名称在所述第二类信息中的第二标识信息。According to the first function name, read the first identification information of the first function name in the first type of information, and according to the second function name, read the second function name in the The second identification information in the second type of information.
  19. 根据权利要求18所述的应用程序测试的评价服务器,所述处理器执 行所述计算机可读指令实现所述根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数时,包括以下步骤:The evaluation server for application testing according to claim 18, wherein said processor executes said computer-readable instructions to realize said determining said first function information and said first function information and said second identification information respectively according to said first identification information and second identification information. Whether the second function information is an executed function includes the following steps:
    当所述第一标识信息和所述第二标识信息不相同时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数;When the first identification information and the second identification information are not the same, determining that the function corresponding to the first function name and the second function name is an executed function;
    当所述第一标识信息和所述第二标识信息相同时且为已执行函数标识时,判定所述第一函数名称和所述第二函数名称对应的函数为已执行函数。When the first identification information and the second identification information are the same and are an executed function identification, it is determined that the function corresponding to the first function name and the second function name is an executed function.
  20. 一种计算机可读存储介质,所述计算机可读存储介质中存储计算机指令,当所述计算机指令在计算机上运行时,使得计算机执行如下步骤:A computer-readable storage medium that stores computer instructions, and when the computer instructions are executed on a computer, the computer executes the following steps:
    在接收到第一终端发送的测试预设应用程序的第一测试数据和第二终端发送的测试所述预设应用程序的第二测试数据时,分别获取所述第一测试数据中的第一字典文件和第一函数信息,以及所述第二测试数据中的第二字典文件和第二函数信息;When the first test data for testing the preset application program sent by the first terminal and the second test data for testing the preset application program sent by the second terminal are received, the first test data in the first test data is obtained respectively. A dictionary file and first function information, and a second dictionary file and second function information in the second test data;
    分别读取所述第一函数信息在第一字典文件中的第一标识信息,以及所述第二函数信息在第二字典文件中的第二标识信息;Respectively reading the first identification information of the first function information in the first dictionary file and the second identification information of the second function information in the second dictionary file;
    根据所述第一标识信息和第二标识信息,分别判定所述第一函数信息和所述第二函数信息是否为已执行函数;According to the first identification information and the second identification information, respectively determine whether the first function information and the second function information are executed functions;
    当所述第一函数信息和所述第二函数信息中至少有一个为已执行函数时,计算出所述应用程序的覆盖率。When at least one of the first function information and the second function information is an executed function, the coverage rate of the application program is calculated.
PCT/CN2019/118663 2019-06-14 2019-11-15 Evaluation method and device for application program testing, and server and storage medium WO2020248506A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910514835.1 2019-06-14
CN201910514835.1A CN110399289B (en) 2019-06-14 2019-06-14 Evaluation method and device for application program test, server and storage medium

Publications (1)

Publication Number Publication Date
WO2020248506A1 true WO2020248506A1 (en) 2020-12-17

Family

ID=68324057

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/118663 WO2020248506A1 (en) 2019-06-14 2019-11-15 Evaluation method and device for application program testing, and server and storage medium

Country Status (2)

Country Link
CN (1) CN110399289B (en)
WO (1) WO2020248506A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110399289B (en) * 2019-06-14 2023-10-20 平安科技(深圳)有限公司 Evaluation method and device for application program test, server and storage medium
CN114764562A (en) * 2021-01-15 2022-07-19 武汉斗鱼鱼乐网络科技有限公司 Text processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207828A (en) * 2012-01-12 2013-07-17 上海盛霄云计算技术有限公司 Code testing method and system
CN105468505A (en) * 2014-08-12 2016-04-06 腾讯科技(深圳)有限公司 Coverage test method and coverage test device
CN106502901A (en) * 2016-10-24 2017-03-15 网易(杭州)网络有限公司 Coverage rate detection method, device and equipment
CN110399289A (en) * 2019-06-14 2019-11-01 平安科技(深圳)有限公司 Evaluation method, device, server and the storage medium of Application testing

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104516740B (en) * 2013-09-26 2019-07-16 腾讯科技(深圳)有限公司 A kind of function calling method, device and mobile terminal
CN108052320B (en) * 2017-12-11 2021-03-05 上证所信息网络有限公司 Method for converting binary structure body into JSON object
CN109542761B (en) * 2018-10-11 2022-03-11 平安科技(深圳)有限公司 Software quality evaluation method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103207828A (en) * 2012-01-12 2013-07-17 上海盛霄云计算技术有限公司 Code testing method and system
CN105468505A (en) * 2014-08-12 2016-04-06 腾讯科技(深圳)有限公司 Coverage test method and coverage test device
CN106502901A (en) * 2016-10-24 2017-03-15 网易(杭州)网络有限公司 Coverage rate detection method, device and equipment
CN110399289A (en) * 2019-06-14 2019-11-01 平安科技(深圳)有限公司 Evaluation method, device, server and the storage medium of Application testing

Also Published As

Publication number Publication date
CN110399289B (en) 2023-10-20
CN110399289A (en) 2019-11-01

Similar Documents

Publication Publication Date Title
WO2021042521A1 (en) Contract automatic generation method, computer device and computer non-volatile storage medium
KR102002024B1 (en) Method for processing labeling of object and object management server
CN107908641B (en) Method and system for acquiring image annotation data
JP6741216B2 (en) Log analysis system, method and program
CN110532056B (en) Control identification method and device applied to user interface
WO2020248506A1 (en) Evaluation method and device for application program testing, and server and storage medium
US9965841B2 (en) Monitoring system based on image analysis of photos
CN109784339A (en) Picture recognition test method, device, computer equipment and storage medium
JPWO2017110720A1 (en) Log analysis system, log analysis method and program
WO2023103329A1 (en) Data labeling method, apparatus, and system, device, and storage medium
CN110688315A (en) Interface code detection report generation method, electronic device, and storage medium
US20160055157A1 (en) Digital information analysis system, digital information analysis method, and digital information analysis program
US20160125237A1 (en) Capturing specific information based on field information associated with a document class
CN109064121B (en) Method and device for signing electronic contract
CN108710636B (en) Medical record screening method, terminal equipment and computer readable storage medium
CN107391543B (en) Wireless hotspot type identification method and device
CN114095335B (en) Network alarm processing method and device and electronic equipment
CN108334800B (en) Stamp image processing device and method and electronic equipment
TW201322007A (en) Method and system for outputting measuring report
CN111933151A (en) Method, device and equipment for processing call data and storage medium
WO2020211248A1 (en) Living body detection log parsing method and apparatus, storage medium and computer device
JP2009129009A (en) Patent examination support system, patent examination support method, and patent examination support program
CN112149564B (en) Face classification and recognition system based on small sample learning
CN113255369A (en) Text similarity analysis method and device and storage medium
CN106970941B (en) Sales data comparison method and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19933169

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19933169

Country of ref document: EP

Kind code of ref document: A1