CN112069071B - Method and device for determining program suitability - Google Patents

Method and device for determining program suitability Download PDF

Info

Publication number
CN112069071B
CN112069071B CN202010921972.XA CN202010921972A CN112069071B CN 112069071 B CN112069071 B CN 112069071B CN 202010921972 A CN202010921972 A CN 202010921972A CN 112069071 B CN112069071 B CN 112069071B
Authority
CN
China
Prior art keywords
program
information
test
host
determining
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.)
Active
Application number
CN202010921972.XA
Other languages
Chinese (zh)
Other versions
CN112069071A (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010921972.XA priority Critical patent/CN112069071B/en
Publication of CN112069071A publication Critical patent/CN112069071A/en
Application granted granted Critical
Publication of CN112069071B publication Critical patent/CN112069071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/3604Software analysis for verifying properties of programs
    • G06F11/3612Software analysis for verifying properties of programs by runtime 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/3664Environments for testing or debugging software

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

Abstract

The application discloses a method, a device, electronic equipment and a computer readable storage medium for determining program suitability, and relates to the technical fields of computers, parameter acquisition, matching analysis, program issuing and applets. The specific implementation scheme is as follows: after a query request of the host program containing the program frame information is acquired, a test program set is determined based on the query information of the pair of program frame information, the host program is tested by adopting the test program set, a test result is obtained, an adaptive parameter list is generated according to the test result, and the adaptive parameter list containing the program frame information is output, so that the supporting capacity of the host program is determined according to the adaptive parameter list, the program suitability is determined, the matching efficiency of the program is improved, and when the discomfort or the failure of the host program is determined, the accurate adjustment can be realized based on the program frame information, and the efficiency is improved.

Description

Method and device for determining program suitability
Technical Field
The present application relates to the field of computer technologies, and in particular, to the fields of parameter acquisition technologies, match analysis technologies, program issuing technologies, and applet technologies, and in particular, to a method, an apparatus, an electronic device, and a computer readable storage medium for determining suitability of a program.
Background
With the improvement of the open source and influence of the applet framework technology, the applet gradually becomes a dynamic content container technical scheme selected by more and more host programs, but the running condition of the applet is very dependent on the supporting capability of the host, so that when the applet is put in, whether the host program can provide a required running environment for the applet is considered.
Even if multiple hosts use the technical stack of the same applet framework, they still have partial differences in applet support interfaces and component capabilities, and in addition, different differences in support capabilities of the hosts can be caused due to version iteration of the hosts and the like.
Disclosure of Invention
The application provides a method, a device, electronic equipment and a storage medium for determining program suitability.
In a first aspect, embodiments of the present application provide a method for determining program suitability, comprising: acquiring a query request of adaptation parameters of a host program; the query request at least comprises query information of program framework information; determining a test program set based on the query information of the pair of program framework information, and testing the host program by adopting the test program set to obtain a test result; generating an adaptation parameter list according to the test result, and outputting the adaptation parameter list; wherein the adaptive parameter list includes program frame information.
In a second aspect, embodiments of the present application provide an apparatus for determining suitability of a program, comprising: an information acquisition unit configured to acquire a query request for an adaptation parameter of a host program; the query request at least comprises query information of program framework information; the parameter testing unit is configured to determine a testing program set based on the query information of the pair of program framework information, and test the host program by adopting the testing program set to obtain a testing result; a list generation unit configured to generate an adaptation parameter list according to the test result, and output the adaptation parameter list; wherein the adaptive parameter list includes program frame information.
In a third aspect, embodiments of the present application provide an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method for determining program suitability as described in any one of the implementations of the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions comprising: the computer instructions are for causing the computer to perform the method for determining program suitability as described in any one of the implementations of the first aspect.
After acquiring a query request of the host program containing the program frame information, determining a test program set based on the query information of the program frame information, testing the host program by adopting the test program set to obtain a test result, generating an adaptive parameter list according to the test result, and outputting the adaptive parameter list containing the program frame information so as to determine the support capability of the host program according to the adaptive parameter list, determine the suitability of the program, not only improve the matching efficiency of the program, but also realize accurate adjustment based on the program frame information when the discomfort or the failure of the host program is determined, and improve the efficiency.
It should be understood that the description of this section is not intended to identify key or critical features of the embodiments of the application or to delineate the scope of the application. Other features of the present application will become apparent from the description that follows.
Drawings
The drawings are for better understanding of the present solution and do not constitute a limitation of the present application. Wherein:
FIG. 1 is an exemplary system architecture in which embodiments of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method for determining program suitability according to the present application;
FIG. 3 is a flow chart of another embodiment of a method for determining program suitability according to the present application;
FIG. 4 is a schematic structural view of one embodiment of an apparatus for determining program suitability according to the present application;
fig. 5 is a block diagram of an electronic device suitable for use in implementing the method for determining program suitability of embodiments of the present application.
Detailed Description
Exemplary embodiments of the present application are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present application to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the methods, apparatus, electronic devices, and computer-readable storage media for determining program suitability of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user can interact with the server 105 through the network 104 by using the terminal devices 101, 102, 103 to achieve the purposes of inquiry requests, sending of program issuing requests, receiving of programs to be issued and the like. Various host applications supporting program installation, such as social class applications, query class applications, software store class applications, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. In hardware, various electronic devices with display screens are possible, including but not limited to smartphones, tablet computers, laptop portable computers, desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the enumerated electronic devices. Which may be implemented as multiple software or software modules (e.g., to implement techniques for determining program suitability, receiving a program to be delivered, etc.), or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, for example, the network 104 obtains a query request including adaptation parameters of query information of program framework information from the terminal devices 101, 102, 103 that issue a query request of adaptation parameters and a program issuing request, and then determines a test program set based on the query information of the program framework information, and tests the host program by using the test program set to obtain a test result. It should be noted that, the method for determining the suitability of the program provided in the embodiments of the present application is generally performed by the server 105, and accordingly, the device for determining the suitability of the program is generally disposed in the server 105.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
Furthermore, the method for determining the suitability of the program may also be performed by the terminal devices 101, 102, 103, and correspondingly the means for determining the suitability of the program may also be provided in the terminal devices 101, 102, 103. At this point, the exemplary system architecture 100 may also not include the server 105 and the network 104.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, one embodiment of a process 200 for determining program suitability according to the present application is illustrated. The method for determining program suitability comprises the following steps:
step 201, obtaining a query request for adaptation parameters of a host program, wherein the query request at least comprises query information for program framework information.
In this embodiment, the execution body (e.g., the server 105 shown in fig. 1) of the method for determining the suitability of the program may obtain, from a non-local device (e.g., the terminal devices 101, 102, 103 shown in fig. 1), a query request for the adaptation parameters including the query information for the program framework information of the host program, or may obtain, from a local device, a query request for the adaptation parameters including the query information for the program framework information of the host program based on a pre-storage or user entry method or the like, which is not limited to this application.
It should be understood that the execution body of the method for determining the suitability of the program may be a server independent of the host program and a terminal device corresponding to the program to be issued, may be a device of a terminal corresponding to the host program, and may also be a terminal device corresponding to the program to be issued.
The programs corresponding to the query information of the program framework information are more common applets installed for the host program, such as applets with additional functions in social programs and shopping programs.
The method generally refers to packaging a common function, and then converting the program information for realizing the common function into program information which can be supported by a program development platform, that is, the final purpose of an application framework is to replace other languages with languages which can be understood by a processor when the processor expresses meaning, and a developer can adjust the program-forming framework information when designing a program so as to conveniently realize the required function, and then call based on the program framework information when developing, so that the corresponding function can be realized quickly, for example JavaScript, JSSDK (Javascript Software Development Kit is JSSDK for short).
It should be understood that, although the program framework information is related to the interface supporting capability and the component supporting capability of the application program, the supporting capability of the host program cannot be accurately determined if only the interface version information of the application program is determined by considering the supporting capability of the underlying program framework in the interface supporting capability and the component supporting capability.
And 202, determining a test program set by adopting query information based on the pair of program framework information, and testing a host program to obtain a test result.
In this embodiment, after acquiring the query information of the program framework information in the query request of the adaptation parameter, determining a test program according to the corresponding program framework information in the query information of the pair of program framework information, determining a test program set based on the test programs after determining that the test program is completed, testing a host program by adopting the test program set, and obtaining a corresponding test result according to the running condition of the test program in the host program, i.e. whether the test program in the test program set can be supported by the host program.
The test program is determined according to the content in the program frame information to be tested, i.e. the content corresponding to the query information of the program frame information, for example, the test program needing to call the corresponding version number is determined according to the version number of the development kit required in the frame query information.
Preferably, a test program is determined for each specific piece of content in the program framework information, a test set is generated based on the determined test programs, and the host program is tested so as to reduce test errors caused by compatibility problems of the test program and interference between the test programs, and accurate testing of each specific piece of test content can be accurately achieved.
Step 203, generating an adaptive parameter list according to the test result, and outputting the adaptive parameter list; wherein the adaptive parameter list includes program frame information.
In this embodiment, statistics is performed on the running condition of the test program set obtained in the step 202 in the host program, and the running condition of the test program is corresponding to the test content, so as to generate an adaptation parameter list.
The adaptive parameter list records the result of the program frame information tested by the test program, namely, records whether the program frame information corresponding to the test program is supported by the program host program.
It should be understood that, based on the query requests of different adaptation parameters, a plurality of different adaptation parameter lists may be correspondingly generated, and the generated plurality of adaptation parameter lists may be summarized to generate a final adaptation parameter list, so as to record as much program framework information supported by the host program as possible.
According to the method for determining the suitability of the program, after the query request of the host program containing the program framework information is obtained, the test program set is determined based on the query information of the host program containing the program framework information, the host program is tested by adopting the test program set, a test result is obtained, an adaptation parameter list is generated according to the test result, and the adaptation parameter list containing the program framework information is output, so that the supporting capability of the host program is determined according to the adaptation parameter list, the suitability of the program is determined, the matching efficiency of the program is improved, and when the discomfort or the failure of the host program is determined, the accurate adjustment can be realized based on the program framework information, and the efficiency is improved.
In some optional implementations of the present embodiment, determining the set of test programs based on the query information of the pair of program framework information includes: acquiring inquiry information of different programs to be issued on program frame information, and generating a program frame information set; determining the set of test programs based on the set of program framework information; wherein the set of program framework information is a subset of the set of test programs.
Specifically, in the case where a program to be issued exists in advance, query information about the program frame information may be determined according to program frame information required by the program to be issued, or a program frame information set corresponding to the program frame query information may be determined according to the program frame information about the program to be issued in the history data, and finally a corresponding test program set may be determined according to the program frame information set.
The program frame information used by the test program in the program test set is the same as that in the program frame information set, and the program frame information used by the test program in the test program set completely comprises the program frame information in the program frame information set so as to ensure that the program frame information can be completely tested, and the program frame information in the test program set can be more than the program frame information in the program frame information set on the basis of the program frame information so as to realize the test of other kinds of program frame information and improve the applicability of the adaptive parameter list.
In some optional implementations of this embodiment, testing the host program using the set of test programs, the obtaining test results includes: and detecting whether the interface information and/or the component information corresponding to the query information of the pair of program framework information support the test program in the test program set, and obtaining a test result.
Specifically, whether the corresponding interface information and component information in the query information of the program framework information support the test program in the test program set is acquired, so that the adaptation condition of the interface information and the component information is obtained, and when the adaptation parameter list is generated later, the content of the interface information and the component information is correspondingly added, so that the adaptation parameter list with more content is acquired, and the use is convenient.
In some optional implementations of this embodiment, testing the host program using the set of test programs, the obtaining test results includes: acquiring an update log of the host program; determining host programs of all versions based on the update log; and testing the host program of each version by adopting the test program set to obtain a test result.
Specifically, in order to meet the actual use requirement, the host program itself may be updated, and after the update, new supporting capability may exist in the host program or the past supporting capability may be lost, for this purpose, an update log of the host program is obtained, each version is determined based on version information of the host program in the update log, then a program test set is used for each version of the host program to test, so as to determine supporting capability of each version of the host program, and the supporting capability is added to the adaptive parameter list, so that the supporting capability of each version of the host program for information such as program framework information is conveniently known, more supporting capability information is provided, and the use is convenient.
In some optional implementations of the present embodiment, the method for determining program suitability further includes: and adding remarks of the update contents for the adaptation parameter list based on the update contents of each version of the host program in the update log.
Specifically, the updated content of each version of the host program is also based on the updated content of each version of the host program, and the updated content is added to the adaptive parameter list in the form of notes, identifiers and the like, so that a user can know the capability of each version of the host program to be increased after updating according to the notes, the identifiers or the matters to be noted, and the adaptive parameter list can be used better.
In some optional implementations of the present embodiment, the method for determining program suitability further includes: determining program framework information which is not supported by the host program based on the adaptive parameter list, and generating a to-be-updated list of the program framework information which is not supported by the host program; and presenting the list to be updated to a server side of the host program.
Specifically, program frame information which is not supported by the host program in the adaptive parameter list is obtained, a list to be updated is generated according to the program frame information, and the list to be updated is presented to a service side, so that updated contents of the host program are determined according to the list to be updated, the host program is updated in a targeted manner, and the supporting capacity of the host to the program to be issued is improved.
Based on this embodiment, the present application further provides a flow 300 of another embodiment of a method for determining suitability of a program according to fig. 3, which is used to illustrate a flow of determining whether a program to be delivered is suitable based on a generated adaptation parameter list, and specifically includes the following steps:
step 301, obtaining a query request for adaptation parameters of a host program, wherein the query request at least comprises query information for program framework information.
And step 302, determining a test program set by adopting query information based on the pair of program framework information, and testing the host program to obtain a test result.
Step 303, generating an adaptation parameter list according to the test result, and outputting the adaptation parameter list; wherein the adaptive parameter list includes program frame information.
Step 304, a program issuing request for the host program is obtained.
Specifically, a program issuing request for a host program is obtained, and program frame information of a program to be issued in the program issuing request is analyzed.
Step 305, based on the adapting parameter list and the program framework information, detecting whether the program framework information required by the to-be-issued program is supported by the host program.
Specifically, based on the adaptation parameter list determined in the step 303, it is determined whether the program framework information of the to-be-issued program can be supported by the host program.
In step 306, in response to determining that the program framework information required by the to-be-issued program can be supported by the host program, the to-be-issued program is allowed to be issued to the host program.
Specifically, it is determined that the program framework information required by the to-be-issued program may be supported by the host program, that is, each test program in the test program set corresponding to the program framework information required by the to-be-issued program may operate normally in the host program, and the operating environment of the host program may support all the program framework information required by the to-be-issued program, so as to allow the to-be-issued program to be issued to the host program.
In this embodiment, steps 301-303 are similar to steps 201-203 in the embodiment shown in fig. 2, and will not be described again. After the adaptive parameter list is determined, whether the to-be-issued program can normally run in the host program or not can be detected according to the adaptive parameter list, and when the to-be-issued program is determined not to be supported by the host program, the host program can be adjusted in a targeted manner according to the program framework information, so that the efficiency is improved, and it should be understood that the adaptive parameter list can also be used for detecting other to-be-issued programs, so that the detection efficiency is improved.
For the sake of understanding, the present application further provides a specific implementation scheme in combination with a specific application scenario. For example, the query information for the program framework information included in the query request for the adaptation parameters of the host program is JSSDK 1.0, JSSDK 2.0, and JSSDK 3.0.
Under the specific application scene, after query information of the program framework information included in the query request of the adaptation parameters is JSDK 1.0, JSDK 2.0 and JSDK 3.0, interface information and component information of the host program related to the query information are detected to be divided into an interface A, an interface B and a component C, and correspondingly generated test program sets are generated based on basic properties of the interface information and the component information, wherein the test program sets comprise test programs A1, A2, A3, A4, B1, C1 and C2.
And testing the host program by using the test set, and obtaining a final test result based on remarks of the update contents of the corresponding added versions of the update of the host program, as shown in table 1.
Figure BDA0002667036380000091
TABLE 1
Based on the test results, the adaptation parameter list of the host program is finally determined, as shown in table 2.
Interface or component call name Corresponding JSSDK version Corresponding host program version
Interface A 1.0 1.0
Interface B 1.0 1.0
Component C 1.0 1.0
Interface A 2.0 2.0
Interface B 1.0 2.0
Component C 2.0 2.0
TABLE 2
According to the application scene, after the program framework information set is determined, the test program set is correspondingly determined, the host program is tested by adopting the test program set, a test result is obtained, an adaptive parameter list is generated, and finally the adaptive parameter list containing the program framework information is output, so that the supporting capacity of the host program is determined according to the adaptive parameter list, the program suitability is determined, the matching efficiency of the program is improved, and when the discomfort or the failure of the host program is determined, the accurate adjustment can be realized based on the program framework information, and the efficiency is improved.
As shown in fig. 4, the apparatus 400 for determining program suitability of the present embodiment may include: an information acquisition unit 401 configured to acquire a query request for an adaptation parameter of a host program; the query request at least comprises query information of program framework information; a parameter testing unit 402, configured to determine a test program set based on the query information of the pair of program framework information, and test the host program by using the test program set to obtain a test result; a list generating unit 403 configured to generate an adaptation parameter list according to the test result, and output the adaptation parameter list; wherein the adaptive parameter list includes program frame information.
In some optional implementations of this embodiment, the apparatus further includes: a program framework information receiving unit 404 configured to acquire a program issuing request to the host program; the program issuing request comprises program frame information of a program to be issued; an environment detection unit 405 configured to detect whether program framework information required for the to-be-delivered program is supported by the host program based on the adaptation parameter list and the program framework information; the program issue determination unit 406 is configured to allow issuing of the program to be issued to the host program in response to determining that the program framework information required for the program to be issued can be supported by the host program.
In some optional implementations of this embodiment, determining the test program set in the parametric test unit based on the query information of the pair of program framework information 402 includes: acquiring inquiry information of different programs to be issued on program frame information, and generating a program frame information set; determining the set of test programs based on the set of program framework information; wherein the set of program framework information is a subset of the set of test programs.
In some optional implementations of this embodiment, the testing the host program by using the test program set in the parameter test unit 402 in the parameter test unit includes: and detecting whether the interface information and/or the component information corresponding to the query information of the pair of program framework information support the test program in the test program set, and obtaining a test result.
In some optional implementations of this embodiment, the testing of the host program by the set of test programs in the parametric test unit 402 includes: acquiring an update log of the host program; determining host programs of all versions based on the update log; and testing the host program of each version by adopting the test program set to obtain a test result.
In some optional implementations of the present embodiment, the parameter testing unit 402 further includes: and a remark adding subunit configured to add an update remark to the adaptation parameter list based on the update contents of the versions of the host program in the update log.
In some optional implementations of this embodiment, the apparatus further includes: an update manifest generating unit configured to determine program frame information not supported by the host program based on the fitting parameter list, and generate a manifest to be updated indicating the program frame information not supported by the host program; and a manifest sending unit configured to present the manifest to be updated to a service side of the host program.
The present embodiment exists as an apparatus embodiment corresponding to the above-mentioned method embodiment, and the same references are made to the description of this method embodiment, which is not repeated. Through the device for determining the program suitability, which is provided by the embodiment of the application, the supporting capability of the host program can be determined according to the adaptation parameter list, the program suitability is determined, the matching efficiency of the program can be improved, and when the adaptation or the host program is determined to be faulty, the accurate adjustment can be realized based on the program framework information, so that the efficiency is improved.
According to embodiments of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 5, a block diagram of an electronic device is provided for a method for determining program suitability according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the application described and/or claimed herein.
As shown in fig. 5, the electronic device includes: one or more processors 501, memory 502, and interfaces for connecting components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 501 is illustrated in fig. 5.
Memory 502 is a non-transitory computer readable storage medium provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the methods provided herein for determining program suitability. The non-transitory computer readable storage medium of the present application stores computer instructions for causing a computer to perform the method for determining program suitability provided herein.
The memory 502 is a non-transitory computer readable storage medium, and may be used to store a non-transitory software program, a non-transitory computer executable program, and modules, such as program instructions/modules corresponding to the method for determining suitability of a program in the embodiment of the present application (for example, the information acquisition unit 401, the parameter test unit 402, the list generation unit 403, the program framework information reception unit 404, the environment detection unit 405, and the program delivery determination unit 406 shown in fig. 4). The processor 501 performs various functional applications of the server and data processing, i.e. implements the method for determining program suitability in this method embodiment, by running non-transitory software programs, instructions, and modules stored in the memory 502.
Memory 502 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created from the use of the electronic device for determining program suitability, or the like. In addition, memory 502 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 502 may optionally include memory located remotely from processor 501, which may be connected via a network to an electronic device for determining program suitability. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device for determining the method of program suitability may further include: an input device 503 and an output device 504. The processor 501, memory 502, input devices 503 and output devices 504 may be connected by a bus or otherwise, for example in fig. 5.
The input device 503 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic device for determining program suitability, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointer stick, one or more mouse buttons, a track ball, a joystick, etc. input devices. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. Such display devices may include, but are not limited to, liquid Crystal Displays (LCDs), light Emitting Diode (LED) displays, and plasma displays. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, configured to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, after the parameter query request of the host program containing the program frame information is obtained, the test program set is determined based on the query information of the pair of program frame information, the host program is tested by adopting the test program set to obtain a test result, an adaptive parameter list is generated according to the test result, and the adaptive parameter list containing the program frame information is output, so that the supporting capacity of the host program is determined according to the adaptive parameter list, the program suitability is determined, the matching efficiency of the program is improved, and when the discomfort or the failure of the host program is determined, the accurate adjustment can be realized based on the program frame information, and the efficiency is improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
The specific embodiments are not intended to limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (8)

1. A method for determining program suitability, comprising:
acquiring a query request of adaptation parameters of a host program; wherein, the inquiry request at least comprises inquiry information of program frame information;
determining a test program set based on the inquiry information of the program framework information, and testing the host program by adopting the test program set to obtain a test result;
generating an adaptation parameter list according to the test result, and outputting the adaptation parameter list; the adaptive parameter list comprises program frame information;
the determining a test program set based on the query information for program framework information includes: acquiring inquiry information of different programs to be issued on program frame information, and generating a program frame information set; and determining the set of test programs based on the set of program framework information; wherein the program framework information set is a subset of the test program set;
the step of testing the host program by using the test program set to obtain a test result comprises the following steps: detecting whether the interface information and/or the component information corresponding to the query information of the program framework information support the test program in the test program set or not, and obtaining a test result; acquiring an update log of the host program; determining host programs of all versions based on the update log; testing the host program of each version by adopting the test program set to obtain a test result; and adding remarks of the update contents for the adaptation parameter list based on the update contents of the versions of the host program in the update log.
2. The method of claim 1, further comprising:
acquiring a program issuing request for a host program; the program issuing request comprises program frame information of a program to be issued;
detecting whether the program framework information required by the program to be issued is supported by the host program or not based on the adaptive parameter list and the program framework information;
in response to determining that the program framework information required by the to-be-issued program can be supported by the host program, issuing the to-be-issued program to the host program is allowed.
3. The method of claim 1, further comprising:
determining program framework information which is not supported by the host program based on the adaptive parameter list, and generating a to-be-updated list of the program framework information which is not supported by the host program;
and presenting the list to be updated to a server side of the host program.
4. An apparatus for determining program suitability, comprising:
an information acquisition unit configured to acquire a query request for an adaptation parameter of a host program; wherein, the inquiry request at least comprises inquiry information of program frame information;
the parameter testing unit is configured to determine a testing program set based on the query information of the program framework information, and test the host program by adopting the testing program set to obtain a testing result;
a list generation unit configured to generate an adaptation parameter list according to the test result, and output the adaptation parameter list; the adaptive parameter list comprises program frame information;
the determining the test program set based on the query information of the program to the frame information in the parameter test unit comprises: acquiring inquiry information of programs of different programs to be issued on frame information, and generating a program frame information set; determining the set of test programs based on the set of program framework information; wherein the program framework information set is a subset of the test program set;
the parameter testing unit adopts the testing program set to test the host program, and the test result comprises: detecting whether interface information and/or component information corresponding to query information of the program on the frame information support test programs in the test program set or not to obtain test results;
the step of testing the host program by using the test program set in the parameter test unit to obtain a test result includes: acquiring an update log of the host program; determining host programs of all versions based on the update log; testing the host program of each version by adopting the test program set to obtain a test result;
the parameter test unit further comprises: and the remark adding subunit is configured to add remarks of the update contents for the adaptation parameter list based on the update contents of the versions of the host program in the update log.
5. The apparatus of claim 4, further comprising:
a program framework information receiving unit configured to acquire a program issuing request to a host program; the program issuing request comprises program frame information of a program to be issued;
an environment detection unit configured to detect whether program framework information required for the to-be-delivered program is supported by the host program based on the adaptation parameter list and the program framework information;
and the program issuing judging unit is configured to allow issuing of the program to be issued to the host program in response to determining that the program framework information required by the program to be issued can be supported by the host program.
6. The apparatus of claim 4, further comprising:
an update manifest generating unit configured to determine program frame information not supported by a host program based on an adaptation parameter list, and generate a manifest to be updated indicating the program frame information not supported by the host program;
and the list sending unit is configured to present the list to be updated to a server side of the host program.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-3.
8. A non-transitory computer-readable storage medium storing computer instructions comprising: the computer instructions for causing the computer to perform the method of any one of claims 1-3.
CN202010921972.XA 2020-09-04 2020-09-04 Method and device for determining program suitability Active CN112069071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010921972.XA CN112069071B (en) 2020-09-04 2020-09-04 Method and device for determining program suitability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010921972.XA CN112069071B (en) 2020-09-04 2020-09-04 Method and device for determining program suitability

Publications (2)

Publication Number Publication Date
CN112069071A CN112069071A (en) 2020-12-11
CN112069071B true CN112069071B (en) 2023-06-23

Family

ID=73665068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010921972.XA Active CN112069071B (en) 2020-09-04 2020-09-04 Method and device for determining program suitability

Country Status (1)

Country Link
CN (1) CN112069071B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112988265A (en) * 2021-02-08 2021-06-18 百度在线网络技术(北京)有限公司 Applet processing method, applet processing apparatus, device, medium and product
CN112905469B (en) * 2021-02-22 2023-08-04 北京百度网讯科技有限公司 Method and apparatus for detecting applet capability features

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359237A (en) * 2018-09-30 2019-02-19 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
CN111382362A (en) * 2020-03-13 2020-07-07 百度在线网络技术(北京)有限公司 Applet processing method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10614221B2 (en) * 2016-11-16 2020-04-07 International Business Machines Corporation Method and apparatus for security testing of application flows that cannot be automated through HTTP replay

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359237A (en) * 2018-09-30 2019-02-19 上海掌门科技有限公司 It is a kind of for search for boarding program method and apparatus
CN111382362A (en) * 2020-03-13 2020-07-07 百度在线网络技术(北京)有限公司 Applet processing method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
The Error-Amended Sharp Edge (EASE) Scheme for Image Zooming;Youngjoon Cha等;《 IEEE Transactions on Image Processing》;全文 *
基于微信小程序的地震仪器管理平台研究;李查玮;吴艳霞;罗棋;周洋;;软件导刊(06);全文 *

Also Published As

Publication number Publication date
CN112069071A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN105630685A (en) Method and device for testing program interface
US10178194B2 (en) Intelligent notifications to devices with multiple applications
US11063828B2 (en) Detecting software misconfiguration at a remote machine
KR20210090575A (en) A method, an apparatus, an electronic device, a storage medium and a program for testing code
CN112069071B (en) Method and device for determining program suitability
CN110858172A (en) Automatic test code generation method and device
JP2021193606A (en) Operator registration processing method, device and electronic apparatus based on deep learning
US20180322032A1 (en) App software audience impersonation for software testing
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
US9569335B1 (en) Exploiting software compiler outputs for release-independent remote code vulnerability analysis
CN111475164A (en) Component dependency relationship detection method and device and electronic equipment
CN110752968A (en) Performance benchmark test method and device, electronic equipment and storage medium
US11689630B2 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN112329708B (en) Bill identification method and device
CN106775835B (en) Method, server and terminal for acquiring upgrade file
CN111596897B (en) Code multiplexing processing method and device and electronic equipment
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
US20150370687A1 (en) Unit test generation
WO2023169193A1 (en) Method and device for generating smart contract
CN112256252B (en) Interface generation method and device, storage medium and electronic equipment
CN106796557B (en) Vendor-specific peripheral device class identifier
CN113392010B (en) Public assembly testing method and device, electronic equipment and storage medium
WO2024030113A1 (en) System and method for bulk update of resource data for view parameters
CN115600213A (en) Vulnerability management method, device, medium and equipment based on application program
CN111506499B (en) Method and device for detecting availability of parameters in applet and electronic equipment

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
GR01 Patent grant
GR01 Patent grant