CN114510424A - Test terminal selection method and device - Google Patents

Test terminal selection method and device Download PDF

Info

Publication number
CN114510424A
CN114510424A CN202210143154.0A CN202210143154A CN114510424A CN 114510424 A CN114510424 A CN 114510424A CN 202210143154 A CN202210143154 A CN 202210143154A CN 114510424 A CN114510424 A CN 114510424A
Authority
CN
China
Prior art keywords
terminal
application program
test
tested
attribute information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210143154.0A
Other languages
Chinese (zh)
Inventor
李阳
史传倩
刘月娥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Bilibili Technology Co Ltd
Original Assignee
Shanghai Bilibili Technology Co Ltd
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 Shanghai Bilibili Technology Co Ltd filed Critical Shanghai Bilibili Technology Co Ltd
Priority to CN202210143154.0A priority Critical patent/CN114510424A/en
Publication of CN114510424A publication Critical patent/CN114510424A/en
Pending legal-status Critical Current

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3696Methods or tools to render software testable

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)
  • Stored Programmes (AREA)

Abstract

The application provides a selection method and a device of a test terminal, wherein the selection method of the test terminal comprises the following steps: receiving an application program test request, and determining a target application program and an application program to be tested based on the application program test request; acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data; constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information; and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.

Description

Test terminal selection method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method for selecting a test terminal. The application also relates to a selection device of the test terminal, a computing device and a computer readable storage medium.
Background
At present, for software app tests, not only the integrity of business functions but also whether the business functions have good performances on different machine type devices need to be considered, and the actual machine types on the market are various and cannot cover all the machine types within limited time, so that only part of the machine types are generally selected for compatibility tests on software.
However, the existing model selection is easy to select blindly and randomly, and cannot achieve a good compatibility test effect; moreover, most software needs to be subjected to compatibility testing, and the current unscientific model selection coverage method causes that time and energy are needed to make a compatible equipment scheme for each software test, so that the testing efficiency is influenced.
Therefore, how to obtain a method for efficiently and accurately selecting a model for software compatibility testing becomes a technical problem to be solved urgently by those skilled in the art.
Disclosure of Invention
In view of this, the present application provides a method for selecting a test terminal. The application also relates to a selection device of the test terminal, a computing device and a computer readable storage medium, so as to solve the problem of low test terminal selection efficiency in the prior art.
According to a first aspect of an embodiment of the present application, a method for selecting a test terminal is provided, including:
receiving an application program test request, and determining a target application program and an application program to be tested based on the application program test request;
acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data;
constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information;
and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to a second aspect of the embodiments of the present application, there is provided a selection device of a test terminal, including:
the device comprises a receiving module, a test module and a test module, wherein the receiving module is configured to receive an application program test request and determine a target application program and an application program to be tested based on the application program test request;
an acquisition module configured to acquire user usage data of the target application program and determine an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user usage data;
a building module configured to build a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested includes a mapping relationship between the terminal classification information and the terminal attribute information;
and the screening module is configured to screen the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to a third aspect of embodiments herein, there is provided a computing device comprising a memory, a processor and computer instructions stored on the memory and executable on the processor, the processor implementing the steps of the method of selecting of the test terminal when executing the computer instructions.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium storing computer instructions which, when executed by a processor, implement the steps of the selection method of the test terminal.
The selection method of the test terminal receives an application program test request, and determines a target application program and an application program to be tested based on the application program test request; acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data; constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information; and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to the method and the device, the purpose that the terminal matrix to be tested is generated based on the user use data of the target application program is achieved, namely the attribute and the classification information of the terminal are determined according to the data of the user in actual use, and therefore the accuracy of the information is improved; the test terminals are screened from the terminal matrix to be tested according to the application program attribute information and the mapping relation, and the incidence relation between the test terminals and the application program to be tested is further improved, so that the accuracy of the subsequent test based on the determined test terminals is improved, the number of the screened test terminals is smaller, the test efficiency of the subsequent test can be improved under the condition that the accuracy is ensured, and the test cost is saved.
Drawings
Fig. 1 is a flowchart of a method for selecting a test terminal according to an embodiment of the present application;
fig. 2 is a processing flow chart of a selection method applied to a test terminal of live broadcast software according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a selection device of a test terminal according to an embodiment of the present application;
fig. 4 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application is intended to encompass any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
First, the noun terms to which one or more embodiments of the present application relate are explained.
The application program comprises the following steps: refers to a computer program that operates in a user mode, interacts with a user, and has a visual user interface for performing one or more specific tasks.
The present application provides a method for selecting a test terminal, and the present application also relates to a device for selecting a test terminal, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
Fig. 1 shows a flowchart of a method for selecting a test terminal according to an embodiment of the present application, which specifically includes the following steps:
step 102: receiving an application program test request, and determining a target application program and an application program to be tested based on the application program test request.
The application program test request refers to a request for testing an application program to be tested; the application program to be tested is the application program to be tested, wherein the testing refers to software testing, and the process of comparing the actual application effect with the expected application effect is software testing, such as compatibility testing of the application program, safety testing of the application program and the like; the target application program refers to the application program which is determined to be in the use stage of the user based on the application program test request; in practical applications, the target application may be an application already put into use, and the application to be tested may be an application that has no connection with the target application, or may be a part of functions of the target application, for example, the target application is social software a, the application to be tested is entertainment software B, for example, the target application is social software F, the application to be tested is a picture uploading function of the social software F, and the like.
In practical application, the application test request carries an application program identifier, that is, the specific method for determining the target application program and the application program to be tested based on the application program test request includes:
determining a target application program identifier and an application program identifier to be tested in the application program test request;
and determining a target application program based on the target application program identification, and determining an application program to be tested based on the application program identification to be tested.
The target application program identifier refers to a field which can uniquely represent the target program, such as an ID number, an application program name and the like; the application to be tested identification refers to a field that can uniquely represent the program to be tested, such as an ID number, an application name, and the like.
Specifically, after receiving an application program test request, analyzing the application program test request to obtain an application program identifier to be tested and a target application program identifier; and determining the application program to be tested which needs to be subjected to software testing based on the application program to be tested, and determining the target application program for acquiring the testing terminal based on the target application program testing request.
In a specific embodiment of the present application, taking an application program D to be tested as an example, receiving an application program test request Q, and acquiring a target application program identifier and an application program identifier to be tested in the application program test request; and determining a target application program A based on the target application program identification, and determining an application program D to be tested based on the application program identification to be tested.
By receiving the application program test request, the application program to be tested and the target application program can be conveniently determined based on the application program test request, and then the test terminal for testing the application program to be tested can be conveniently selected based on the relevant data of the target application program.
Step 104: and acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data.
The user use data refers to data related to the user use target application program in the log file; the log file refers to a file or a file set for recording log messages of the application program; determining which operations are performed on the application program by a user and operation result data correspondingly generated by the operations based on the log file of the target application program; the target application program is an application program which is already put into use by a user, and a log file corresponding to the target application program can be acquired; and analyzing the log file to determine the use information of the target application program used by the user, the terminal attribute information of the terminal where the target application program used by the user is positioned, and the like.
The initial terminal set is a set consisting of initial test terminals determined according to user use data; the terminal classification information refers to terminal type information of a terminal where a target application used by a user is located, for example, a user A uses social software on a terminal M, a user B uses social software on a terminal N, the terminal type of the terminal M is 1, and the terminal type of the terminal N is 2; the terminal attribute information refers to attribute information of a terminal where a target application used by a user is located, for example, terminal memory information, terminal resolution information, terminal system information, and the like.
In practical application, user usage data may be acquired from a log file of a target application program, and since the target application program includes many log files, in order to improve subsequent analysis efficiency on the log file, only the log file within a preset time period may be acquired, and user usage data may be determined in the acquired log file, where the method for specifically acquiring the user usage data of the target application program includes:
determining a preset time interval, and acquiring a log file of the target application program;
and acquiring user use data of the target application program in the log file based on the preset time interval.
The preset time interval refers to a preset time period, for example, a preset time interval from eight am to one pm is set; after the preset time interval is determined, only the log file corresponding to the target application program in the preset time interval is acquired; user usage data may be determined in the retrieved log file.
In a specific embodiment of the application, taking the preset time interval X as an example, if it is determined that the preset time interval X is 3:00-5:00, selecting a log file corresponding to the preset time interval X from a log database corresponding to the target application program, and acquiring user usage data in the log file.
By acquiring the application program attribute information of the application program to be tested and the log file of the target application program and acquiring the user use data in the log file, the test terminal for testing the application program to be tested is conveniently determined based on the user use data, and the test efficiency and the test accuracy are further improved.
In practical applications, the method for determining the initial terminal set based on the user usage data includes:
analyzing the user use data to obtain first classification information and second classification information;
determining an initial set of terminals based on the first classification information and the second classification information.
The first classification information is information obtained by sequencing terminal brand information obtained from user use data, for example, a preset sequencing rule is that sequencing is performed from high to low, the use number of terminal brands in the user use data is counted, the use number of the terminal brands is arranged according to the sequencing rule to obtain first classification information, and terminals corresponding to the first 50 terminal brands can be selected to construct an initial terminal set; the second classification information is information obtained by sorting the number of terminal types obtained from the usage data by the user, for example, counting the number of terminal types in the usage data by the user, sorting the number of terminal types from low to high according to a sorting rule to obtain the second classification information, and selecting the terminal corresponding to the last 30 terminal types to construct an initial terminal set.
Specifically, after user use data are analyzed and first classification information and second classification information are obtained, a terminal corresponding to the first classification information and a terminal corresponding to the second classification information are determined, whether repeated terminals exist or not is judged, if repeated terminals exist, merging is carried out, and a plurality of initial terminals are finally determined; an initial terminal set is composed of a plurality of initial terminals.
In a specific embodiment of the application, the user use data K is taken as an example, and the user use data K is analyzed to obtain terminal brand data and terminal classification data; sorting the terminal brand data and the terminal classification data based on a preset sorting rule, selecting terminal brand information conforming to a preset number as first classification information, and selecting terminal type information conforming to the preset number as second classification information; and forming an initial terminal set according to the initial terminal corresponding to the first classification information and the initial terminal corresponding to the second classification information.
The method comprises the steps of determining first classification information and second classification information corresponding to the terminal by analyzing user use data, determining initial terminals based on the first classification information and the second classification information, and forming an initial terminal set, so that the terminals in the initial terminal set are relatively strong in relevance with users, the test terminals can be conveniently selected from the initial terminal set subsequently, and the efficiency and the accuracy of selecting the test terminals are improved.
After the initial terminal set is determined, the terminal attribute information of each terminal in the initial terminal set can be obtained, and the method for determining the terminal attribute information of each terminal in the initial terminal set based on the user usage data specifically comprises the following steps:
determining target service information corresponding to each terminal set in the terminal sets based on the user use data, and determining a service processing result in the target service information;
and determining the terminal attribute information based on the service processing result.
The target service information refers to information generated when the terminal processes a target service, wherein the target service may be a service executable in a target application program, such as a live broadcast service, a communication service, and the like; the service processing result refers to a processing result obtained when the terminal processes the target service, for example, in the communication service, the transmission time for the user a to transmit the voice message 1 to the user B is 2 seconds, and then 2 seconds is the service processing result of the communication service; and determining terminal attribute information of the terminal based on the service processing result and the preset processing result, for example, the preset processing result in the communication service is 2 seconds, if the service processing result is 3 seconds, determining the terminal transmission speed of the terminal to be a class II grade according to the service processing result, and if the service processing result is 2 seconds, determining the terminal transmission speed of the terminal to be a class I grade according to the service processing result.
It should be noted that the terminal attribute information in this embodiment is determined based on the actual data of the service processing result, and is not completely consistent with the actual attribute information of the terminal.
In a specific embodiment of the application, a live broadcast service is taken as an example, and live broadcast page loading information corresponding to a terminal a and a corresponding loading result are determined; based on the loading result: and the loading time is 5 seconds, and the terminal processing speed of the terminal A is determined to be in a second class level.
The terminal attribute information of each terminal in the initial terminal set is determined based on the target service information, so that the terminal classification information can be conveniently determined based on the terminal attribute information, and the efficiency of subsequently selecting the test terminal in the initial terminal set is improved.
In practical applications, the specific method for determining the terminal classification information of each terminal in the initial terminal set based on the user usage data includes:
acquiring terminal attribute information of each terminal in an initial terminal set, and forming an attribute information set by the terminal attribute information of each terminal;
calculating the terminal score of each terminal based on a preset evaluation rule and the attribute information set;
and determining the terminal classification information of each terminal according to the terminal score of each terminal.
Specifically, terminal attribute information of each terminal is obtained, for example, transmission speed information, loading speed information, and the like of the terminal a are obtained; the terminal attribute information corresponding to each terminal is grouped into an attribute information set corresponding to each terminal, for example, the terminal attribute information 1 and the terminal attribute information 2 of the terminal B are grouped into an attribute information set of the terminal B.
The preset evaluation rule is a rule for evaluating the terminal based on the attribute information set, and the terminal score is a score of the terminal attribute of the initial terminal in the initial terminal set, that is, the score of the terminal classification information can be determined, for example, it is determined that each terminal attribute information of the terminal a corresponds to a terminal attribute score, and the terminal attribute average score, that is, the terminal score is calculated based on the terminal attribute score and the number of the terminal attributes, wherein the rule for calculating the terminal attribute average score is the preset evaluation rule; a classification table can be created based on requirements, the table comprises a score field and a classification field corresponding to the score field, and after the terminal score of the terminal is obtained through calculation, the terminal classification information of the terminal can be determined based on the classification table; in addition, in addition to creating a classification table based on the requirement, the terminals can be arranged based on the terminal score, a preset number of terminals are selected for classification, for example, the terminals are arranged from large to small based on the terminal score, the terminal with the top rank of 20 is determined to be a first-class terminal, the terminal with the rank of 20-40 is determined to be a second-class terminal, and the like.
By determining the terminal classification information of the terminals in the initial terminal set, the test terminals for testing the application program to be tested can be selected from the initial terminal set more efficiently in the follow-up process.
It should be noted that, in addition to determining the terminal attribute information and the terminal classification information only based on the user usage data, the terminal attribute information and the terminal classification information may also be determined by combining with existing data or third-party data; specifically, the method for determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user usage data includes:
acquiring target data and user use data in a third-party database;
and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the target data and the user usage data.
The third-party database is a database containing information of the terminals in the initial terminal set; the target data refers to data related to the terminal; for example, if the website database of website a includes the terminal chip type 1 of terminal a in the initial terminal set, the terminal chip type 1 may be used as the target data, and the website database may be used as the third-party database.
Specifically, after the target data and the user use data in the third-party data are determined, the terminal classification information and the terminal attribute information of the terminal can be determined by combining the target data and the user use data, because in practical application, only part of log files are generally obtained, and the part of log files may not contain data corresponding to a certain function of an application program used by a user, the terminal classification information and the terminal attribute information cannot be determined more comprehensively, and after the target data are combined, the target data can be used as a supplement for the user use data, so that the terminal classification information and the terminal attribute information are determined more comprehensively, and the content richness of the terminal matrix to be tested is further improved when a terminal matrix to be tested is subsequently constructed.
Step 106: and constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information. And the terminal matrix to be tested comprises the mapping relation between the terminal classification information and the terminal attribute information.
The terminal matrix to be tested is a data table composed of terminal identification of each terminal in the initial terminal set, terminal attribute information and terminal type information corresponding to each terminal; the terminal matrix to be tested comprises a mapping relation between terminal classification information and terminal attribute information, wherein the mapping relation refers to a relation existing between the terminal classification information and the terminal attribute information, and for example, a terminal name corresponding to a first classification and terminal attribute information corresponding to the terminal name can be determined to be 'terminal resolution, terminal cpu model and terminal memory' in the terminal matrix to be tested based on the 'first classification' of the terminal classification information.
In a specific embodiment of the present application, taking an initial terminal set T as an example, a data table C is created in a database, and a terminal ID field, a terminal attribute 1 field, a terminal attribute 2 field, a terminal attribute 3 field, and a terminal classification field are set; storing the terminal ID number, the terminal attribute information, and the terminal classification information of each terminal in the initial terminal set T into corresponding fields in a data table C, to obtain a data table C containing data as shown in table 1 below, where a mapping relationship exists between the terminal classification information and the terminal attribute information, and for example, the terminal attribute 1, the terminal attribute 2, and the terminal attribute 3 of terminals whose terminal ID numbers are 3 and 4 can be determined based on the terminal classification "three types":
TABLE 1
Figure BDA0003507359900000121
By constructing the terminal matrix to be tested based on the initial terminal set, the terminal classification information and the terminal attribute information, the testing terminal for testing the application program to be tested can be efficiently selected from the terminal matrix to be tested, so that the testing efficiency is improved, and the selection time of the testing terminal is saved.
Step 108: and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
After the matrix to be tested is generated, determining each terminal as a test terminal to test the application program to be tested according to the matrix to be tested; however, the number of terminals in the matrix to be tested is still large, and because the testing cost is high, in order to further improve the testing efficiency and save the testing cost, the testing terminals can be determined in the matrix to be tested based on the application program attribute information of the application program to be tested.
The application program attribute information refers to attribute information of an application program to be tested, for example, displayable resolution, running occupied space and the like of the social software A are attribute information of the social software A; according to the application program attribute information and the mapping relation of the application program to be tested, the terminal with strong association degree with the application program to be tested can be determined in the terminal to be used for testing the application program to be tested.
Specifically, the method for screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relationship comprises the following steps:
determining test terminal information corresponding to the application program attribute information in a terminal matrix to be tested based on the application program attribute information and the mapping relation;
and determining the test terminal according to the test terminal information.
The test terminal information refers to a field which can uniquely represent the test terminal, such as an ID number of the test terminal; and determining the test terminal for testing the application program to be tested according to the test terminal information.
Specifically, terminal classification information or terminal attribute information corresponding to the application attribute information may be determined in the terminal matrix to be tested based on the application attribute information and the mapping relationship in the terminal matrix to be tested, for example, the software to be tested is video software, and attributes that influence video playing such as terminal classification attributes and operating memory attributes of the terminal need to be considered when testing the video software, so that terminals corresponding to attribute information such as different operating memories and different classifications may be determined as test terminals in the terminal matrix to be tested.
By determining the test terminal in the terminal matrix to be tested based on the application program attribute information and the mapping relation, the test terminal more related to the application program to be tested can be conveniently screened, so that the accuracy of testing the software to be tested based on the test terminal is improved, and the efficiency of subsequent testing is improved.
In practical application, after screening the test terminals in the terminal matrix to be tested based on the application attribute information of the application to be tested and the mapping relationship, the method further includes:
and testing the application program to be tested based on the test terminal.
Specifically, a plurality of test terminals may be determined based on the application attribute information, and the to-be-tested terminal may test the to-be-tested application by the plurality of test terminals, where the test terminal may be an entity terminal or a virtual terminal, and this embodiment is not particularly limited.
The selection method of the test terminal receives an application program test request, and determines a target application program and an application program to be tested based on the application program test request; acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data; constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information; and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to the method and the device, the purpose that the terminal matrix to be tested is generated based on the user use data of the target application program is achieved, namely the attribute and the classification information of the terminal are determined according to the data of the user in actual use, and therefore the accuracy of the information is improved; the test terminals are screened from the terminal matrix to be tested according to the application program attribute information and the mapping relation, and the incidence relation between the test terminals and the application program to be tested is further improved, so that the accuracy of the subsequent test based on the determined test terminals is improved, the number of the screened test terminals is smaller, the test efficiency of the subsequent test can be improved under the condition that the accuracy is ensured, and the test cost is saved.
The following describes a selection method of a test terminal by taking an application of the selection method of the test terminal provided by the present application to a live broadcast application program as an example, with reference to fig. 2. Fig. 2 shows a processing flow chart of a selection method applied to a test terminal of a live application program according to an embodiment of the present application, which specifically includes the following steps:
step 202: receiving a live broadcast application program test request, and determining a target live broadcast application program and a live broadcast application program to be tested based on the live broadcast application program test request.
Specifically, a received live broadcast application program test request is analyzed to obtain a target live broadcast application program identifier and a live broadcast application program identifier to be tested; and determining a target live broadcast application program according to the target live broadcast application program identifier, and determining a live broadcast application program identifier to be tested based on the live broadcast application program identifier to be tested.
Step 204: and acquiring a log file of the target live broadcast application program and application program attribute information of the live broadcast application program to be tested.
Specifically, if the preset time interval is determined to be 8 am to 8 pm, acquiring a log file in the time interval from log data corresponding to the target live broadcast application program; and acquiring the application program attribute information of the live broadcast application program to be tested.
Step 206: and analyzing the log file to obtain the user use data.
Specifically, after the log file is obtained from the log database, the log file is analyzed, and information related to user operation in the log file is determined as user usage data.
Step 208: determining terminal brand ranking information and terminal model ranking information in the user usage data, and determining an initial terminal set based on the terminal brand ranking information and the terminal model ranking information.
Specifically, the brand and the model of the terminal used by the user are analyzed according to the user use data; counting the quantity information of the terminal brands and the quantity information of the terminal information which can be determined based on the log file, and arranging the quantity information from large to small to obtain terminal brand ranking information and terminal model ranking information; the terminal brand ranking information and the terminal model ranking information in a third-party database can be directly obtained; and determining that the terminal with the top rank of 100 in the terminal brand ranking information and the terminal with the top rank of 100 in the terminal model ranking information form an initial terminal set.
Step 210: terminal classification information and terminal attribute information for each terminal in the initial set of terminals is determined based on the user usage data.
Specifically, determining live broadcast service information corresponding to each terminal set in the terminal sets based on user usage data, and determining live broadcast service processing results in the live broadcast service information; determining terminal attribute information based on a live broadcast service processing result; acquiring terminal attribute information of each terminal in an initial terminal set, and forming an attribute information set by the terminal attribute information of each terminal; calculating a terminal score of each terminal based on a preset evaluation rule and an attribute information set; and determining the terminal classification information of each terminal according to the terminal score of each terminal.
Step 212: and constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information.
Specifically, each terminal in the initial terminal set and the terminal attribute information and the terminal classification information of each terminal are respectively stored in the corresponding fields of the data table based on the mapping relationship between the terminal classification information and the terminal attribute information, so as to obtain the terminal matrix to be tested.
Step 214: and screening target test terminals in the terminal matrix to be tested based on the application program attribute information and the mapping relation.
Specifically, test terminal information corresponding to the application program attribute information is determined in a terminal matrix to be tested based on the application program attribute information and a mapping relation, and if video function compatibility of live broadcast software to be tested is tested, test terminal information corresponding to different operating memory attributes is determined in the terminal matrix to be tested; and determining a target test terminal according to the test terminal information.
Step 216: and testing the live broadcast application program to be tested based on the target test terminal.
The selection method of the test terminal receives an application program test request, and determines a target application program and an application program to be tested based on the application program test request; acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data; constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information; and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to the method and the device, the purpose that the terminal matrix to be tested is generated based on the user use data of the target application program is achieved, namely the attribute and the classification information of the terminal are determined according to the data of the user in actual use, and therefore the accuracy of the information is improved; the test terminals are screened from the terminal matrix to be tested according to the application program attribute information and the mapping relation, and the incidence relation between the test terminals and the application program to be tested is further improved, so that the accuracy of the subsequent test based on the determined test terminals is improved, the number of the screened test terminals is smaller, the test efficiency of the subsequent test can be improved under the condition that the accuracy is ensured, and the test cost is saved.
Corresponding to the above method embodiment, the present application further provides an embodiment of a selection device of a test terminal, and fig. 3 shows a schematic structural diagram of a selection device of a test terminal provided in an embodiment of the present application. As shown in fig. 3, the apparatus includes:
a receiving module 302 configured to receive an application program test request, and determine a target application program and an application program to be tested based on the application program test request;
an obtaining module 304, configured to obtain user usage data of the target application program, and determine an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user usage data;
a constructing module 306, configured to construct a terminal matrix to be tested according to the initial terminal set, the terminal classification information, and the terminal attribute information, where the terminal matrix to be tested includes a mapping relationship between the terminal classification information and the terminal attribute information;
a screening module 308 configured to screen the test terminals in the terminal matrix to be tested based on the application attribute information of the application to be tested and the mapping relationship.
Optionally, the building module 306 is further configured to:
analyzing the user use data to obtain first classification information and second classification information;
determining an initial set of terminals based on the first classification information and the second classification information.
Optionally, the building module 306 is further configured to:
determining target service information corresponding to each terminal set in the terminal set based on the user use data, and determining a service processing result in the target service information;
and determining the terminal attribute information based on the service processing result.
Optionally, the building module 306 is further configured to:
acquiring terminal attribute information of each terminal in an initial terminal set, and forming an attribute information set by the terminal attribute information of each terminal;
calculating a terminal score of each terminal based on a preset evaluation rule and the attribute information set;
and determining the terminal classification information of each terminal according to the terminal score of each terminal.
Optionally, the receiving module 302 is further configured to:
determining a target application program identifier and an application program identifier to be tested in the application program test request;
and determining a target application program based on the target application program identification, and determining an application program to be tested based on the application program identification to be tested.
Optionally, the obtaining module 304 is further configured to:
determining a preset time interval, and acquiring a log file of the target application program;
and acquiring user use data of the target application program in the log file based on the preset time interval.
Optionally, the screening module 308 is further configured to:
determining test terminal information corresponding to the application program attribute information in a terminal matrix to be tested based on the application program attribute information and the mapping relation;
and determining the test terminal according to the test terminal information.
Optionally, the apparatus further comprises a testing module configured to:
and testing the application program to be tested based on the test terminal.
Optionally, the obtaining module 304 is further configured to:
acquiring target data and user use data in a third-party database;
and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the target data and the user usage data.
The selection device of the test terminal comprises a receiving module, a judging module and a judging module, wherein the receiving module receives an application program test request and determines a target application program and an application program to be tested based on the application program test request; the acquisition module is used for acquiring user use data of the target application program and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data; the building module is used for building a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information; and the screening module screens the test terminal in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
According to the embodiment of the application, the generation of the terminal matrix to be tested based on the user use data of the target application program is realized, namely the attribute and the classification information of the terminal are determined according to the data of the user in actual use, so that the accuracy of the information is improved; the test terminals are screened from the terminal matrix to be tested according to the application program attribute information and the mapping relation, the incidence relation between the test terminals and the application program to be tested is further improved, the accuracy of the subsequent test based on the test terminals is improved, the number of the test terminals obtained through screening is smaller, the test efficiency of the subsequent test can be improved under the condition that the accuracy is guaranteed, and the test cost is saved.
The above is a schematic scheme of a selection device of a test terminal of this embodiment. It should be noted that the technical solution of the selection device of the test terminal and the technical solution of the selection method of the test terminal belong to the same concept, and details that are not described in detail in the technical solution of the selection device of the test terminal can be referred to the description of the technical solution of the selection method of the test terminal.
Fig. 4 shows a block diagram of a computing device 400 provided according to an embodiment of the present application. The components of the computing device 400 include, but are not limited to, a memory 410 and a processor 420. Processor 420 is coupled to memory 410 via bus 430 and database 450 is used to store data.
Computing device 400 also includes access device 440, access device 440 enabling computing device 400 to communicate via one or more networks 460. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 440 may include one or more of any type of network interface (e.g., a Network Interface Card (NIC)) whether wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 400 and other components not shown in FIG. 4 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 4 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 400 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 400 may also be a mobile or stationary server.
Wherein the processor 420, when executing the computer instructions, performs the steps of the test terminal selection method.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the selection method of the test terminal described above belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the selection method of the test terminal described above.
An embodiment of the present application further provides a computer readable storage medium storing computer instructions, which when executed by a processor, implement the steps of the method for selecting a test terminal as described above.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the above-mentioned method for selecting a test terminal, and for details that are not described in detail in the technical solution of the storage medium, reference may be made to the description of the technical solution of the method for selecting a test terminal.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that for simplicity and convenience of description, the above-described method embodiments are described as a series of combinations of acts, but those skilled in the art will appreciate that the present application is not limited by the order of acts, as some steps may, in accordance with the present application, occur in other orders and/or concurrently. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (12)

1. A method for selecting a test terminal, comprising:
receiving an application program test request, and determining a target application program and an application program to be tested based on the application program test request;
acquiring user use data of the target application program, and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user use data;
constructing a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested comprises a mapping relation between the terminal classification information and the terminal attribute information;
and screening the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
2. The method of selecting test terminals according to claim 1, wherein determining an initial set of terminals based on the user usage data comprises:
analyzing the user use data to obtain first classification information and second classification information;
determining an initial set of terminals based on the first classification information and the second classification information.
3. The method for selecting a test terminal according to claim 1, wherein determining terminal attribute information for each terminal in the initial set of terminals based on the user usage data comprises:
determining target service information corresponding to each terminal set in the terminal sets based on the user use data, and determining a service processing result in the target service information;
and determining the terminal attribute information based on the service processing result.
4. The method of selecting a test terminal of claim 3, wherein determining terminal classification information for each terminal in the initial set of terminals based on the user usage data comprises:
acquiring terminal attribute information of each terminal in an initial terminal set, and forming an attribute information set by the terminal attribute information of each terminal;
calculating the terminal score of each terminal based on a preset evaluation rule and the attribute information set;
and determining the terminal classification information of each terminal according to the terminal score of each terminal.
5. The method for selecting a test terminal according to claim 1, wherein determining a target application and an application to be tested based on the application test request comprises:
determining a target application program identifier and an application program identifier to be tested in the application program test request;
and determining a target application program based on the target application program identification, and determining an application program to be tested based on the application program identification to be tested.
6. The test terminal selection method of claim 1, wherein obtaining user usage data for the target application comprises:
determining a preset time interval, and acquiring a log file of the target application program;
and acquiring user use data of the target application program in the log file based on the preset time interval.
7. The method for selecting test terminals according to claim 1, wherein screening test terminals in the test terminal matrix based on the application attribute information of the application to be tested and the mapping relationship comprises:
determining test terminal information corresponding to the application program attribute information in a terminal matrix to be tested based on the application program attribute information and the mapping relation;
and determining the test terminal according to the test terminal information.
8. The method for selecting a test terminal according to claim 1, wherein after screening test terminals in the terminal matrix to be tested based on the application attribute information of the application to be tested and the mapping relationship, the method further comprises:
and testing the application program to be tested based on the test terminal.
9. The method of selecting a test terminal of claim 1, wherein determining an initial set of terminals and terminal classification information and terminal attribute information for each terminal in the initial set of terminals based on the user usage data comprises:
acquiring target data and user use data in a third-party database;
and determining an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the target data and the user usage data.
10. A selection device for a test terminal, comprising:
the device comprises a receiving module, a test module and a test module, wherein the receiving module is configured to receive an application program test request and determine a target application program and an application program to be tested based on the application program test request;
the acquisition module is configured to acquire user usage data of the target application program and determine an initial terminal set and terminal classification information and terminal attribute information of each terminal in the initial terminal set based on the user usage data;
a building module configured to build a terminal matrix to be tested according to the initial terminal set, the terminal classification information and the terminal attribute information, wherein the terminal matrix to be tested includes a mapping relationship between the terminal classification information and the terminal attribute information;
and the screening module is configured to screen the test terminals in the terminal matrix to be tested based on the application program attribute information of the application program to be tested and the mapping relation.
11. A computing device comprising a memory, a processor, and computer instructions stored on the memory and executable on the processor, wherein the processor implements the steps of the method of any one of claims 1-9 when executing the computer instructions.
12. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 9.
CN202210143154.0A 2022-02-16 2022-02-16 Test terminal selection method and device Pending CN114510424A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210143154.0A CN114510424A (en) 2022-02-16 2022-02-16 Test terminal selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210143154.0A CN114510424A (en) 2022-02-16 2022-02-16 Test terminal selection method and device

Publications (1)

Publication Number Publication Date
CN114510424A true CN114510424A (en) 2022-05-17

Family

ID=81551474

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210143154.0A Pending CN114510424A (en) 2022-02-16 2022-02-16 Test terminal selection method and device

Country Status (1)

Country Link
CN (1) CN114510424A (en)

Similar Documents

Publication Publication Date Title
CN110321273B (en) Service statistics method and device
CN110209569B (en) Interface test method, interface test device and storage medium
CN109062807B (en) Method and device for testing application program, storage medium and electronic device
CN111737125A (en) Method and device for generating market data of quantitative transaction and server
CN107688533A (en) Applied program testing method, device, computer equipment and storage medium
CN111949324A (en) Distributed serial number generation method and device
CN108847948B (en) Method and device for creating activity group, medium and computing equipment
CN110688319A (en) Application keep-alive capability test method and related device
CN112579422B (en) Scheme testing method and device, server and storage medium
CN110446118B (en) Video resource preprocessing method and device and video resource downloading method and device
CN114466214B (en) Live broadcasting room people counting method and device
CN114510424A (en) Test terminal selection method and device
CN108834171B (en) Image method and device
CN112587922B (en) Model display method and device
CN115016995A (en) Interface testing method, computer device and computer storage medium
CN114741594A (en) Information pushing method and device, computer equipment and storage medium
CN114675767A (en) Information acquisition method and device, electronic equipment and storage medium
CN114566173A (en) Audio mixing method, device, equipment and storage medium
CN113918796A (en) Information searching method, device, server and storage medium
CN113704280A (en) Data list updating method and device
CN112905457A (en) Software testing method and device
CN111135580A (en) Game role standby animation generation method and device
CN112286808A (en) Application program testing method and device, electronic equipment and medium
CN111262871A (en) Data processing method and device and storage medium
CN111625341A (en) Task scheduling management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination