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

Method and device for determining program suitability Download PDF

Info

Publication number
CN112069071A
CN112069071A CN202010921972.XA CN202010921972A CN112069071A CN 112069071 A CN112069071 A CN 112069071A CN 202010921972 A CN202010921972 A CN 202010921972A CN 112069071 A CN112069071 A CN 112069071A
Authority
CN
China
Prior art keywords
program
host
information
test
frame 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.)
Granted
Application number
CN202010921972.XA
Other languages
Chinese (zh)
Other versions
CN112069071B (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 and a device for determining program suitability, electronic equipment and a computer readable storage medium, and relates to the technical field of computers, the technical field of parameter acquisition, the technical field of matching analysis, the technical field of program issuing and the technical field of small programs. The specific implementation scheme is as follows: after a query request for a host program containing program frame information is acquired, a test program set is determined based on the query information for the program frame information, the host program is tested by adopting the test program set to obtain a test result, an adaptation parameter list is generated according to the test result, and the adaptation parameter list containing the program frame information is output, so that the support capability of the host program is determined according to the adaptation parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, when the host program is determined to be not adapted or fails, 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 field of parameter acquisition technologies, matching analysis technologies, program distribution technologies, and applet technologies, and in particular, to a method and an apparatus for determining program suitability, an electronic device, and a computer-readable storage medium.
Background
With the improvement of the source and influence of the applet framework technology, the applet gradually becomes a technical scheme of a dynamic content container selected by more and more host main programs, but the running condition of the applet depends on the support capability of the host, so whether the host program can provide a required running environment for the applet or not needs to be considered when the applet is launched.
Even if a plurality of hosts adopt the technical stacks of the same applet framework, the hosts still have partial differences on the supporting interfaces and component capabilities of the applets, and the supporting capabilities of the hosts also have different differences due to version iteration of the hosts and the like.
Disclosure of Invention
The application provides a method, a device, an electronic device and a storage medium for determining program suitability.
In a first aspect, an embodiment of the present application provides a method for determining program suitability, including: acquiring a query request for the adaptive parameters of the host program; wherein, the query request at least comprises query information of the program frame information; determining a test program set based on the query information of the pair of program frame 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, an embodiment of the present application provides an apparatus for determining program suitability, including: an information acquisition unit configured to acquire a query request for adaptation parameters of a host program; wherein, the query request at least comprises query information of the program frame information; the parameter testing unit is configured to determine a testing program set based on the query information of the pair of program frame information, and test the host program by adopting the testing program set to obtain a testing result; a list generating 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, an embodiment of the present application provides 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, the instructions being executable by the at least one processor to enable the at least one processor to perform the method for determining program suitability as described in any implementation manner of the first aspect.
In a fourth aspect, embodiments of the present application provide a non-transitory computer readable storage medium having computer instructions stored thereon, comprising: the computer instructions are used for causing the computer to execute the method for determining the suitability of a program as described in any implementation manner of the first aspect.
After the query request for the host program containing the program frame information is obtained, the test program set is determined based on the query information for the program frame information, the host program is tested by the test program set to obtain the test result, the adaptation parameter list is generated according to the test result, and the adaptation parameter list containing the program frame information is output, so that the support capability of the host program is determined according to the adaptation parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, when the host program is determined to be not adapted or fails, accurate adjustment can be achieved based on the program frame information, and the efficiency is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is an exemplary system architecture to which embodiments of the present application may be applied;
FIG. 2 is a flow diagram of one embodiment of a method for determining program suitability according to the present application;
FIG. 3 is a flow diagram of another embodiment of a method for determining program suitability according to the present application;
FIG. 4 is a block diagram illustrating an embodiment of an apparatus for determining suitability of a program 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 an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those 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 the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 illustrates an exemplary system architecture 100 to which embodiments of the method, apparatus, electronic device, and computer-readable storage medium for determining program suitability of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104, so as to achieve the purposes of inquiring requests, sending program issuing requests, receiving programs to be issued, and the like. The terminal devices 101, 102, 103 may have various host applications installed thereon, such as social applications, query applications, software store applications, etc., that support program installation.
The terminal apparatuses 101, 102, and 103 may be hardware or software. Hardware, various electronic devices with display screens are possible, including but not limited to smart phones, 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 listed electronic devices. It may be implemented as a plurality of software or software modules (e.g., for determining program suitability, receiving a program to be issued, etc.), or as a single software or software module. And is not particularly limited herein.
The server 105 may be a server providing various services, for example, the server acquires a query request including the adaptation parameters of the query information of the program frame information from the terminal devices 101, 102, and 103 that send out the query request and the program issue request of the adaptation parameters in the present application through the network 104, then determines a test program set based on the query information of the pair of program frame 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 by the embodiment of the present application is generally executed by the server 105, and accordingly, the apparatus 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, it may be implemented as a distributed server cluster formed by multiple servers, or may be implemented as a single server. When the server is software, it may be implemented as multiple pieces of software or software modules, for example, to provide distributed services, or as a single piece of software or software module. And is not particularly limited herein.
Furthermore, the method for determining the suitability of the program may also be performed by the terminal 101, 102, 103, and accordingly, the means for determining the suitability of the program may also be provided in the terminal 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, a flow 200 of one embodiment of a method for determining program suitability according to the present application is shown. The method for determining the suitability of a program comprises the following steps:
step 201, obtaining a query request for the adaptation parameters of the host program, where the query request at least includes query information for the program framework information.
In this embodiment, an execution subject (for example, the server 105 shown in fig. 1) of the method for determining the program suitability may obtain, from a non-local device (for example, the terminal devices 101, 102, 103 shown in fig. 1), a query request for an adaptation parameter of the host program, which includes query information for the program frame information, or may obtain, from a local device, a query request for an adaptation parameter of the host, which includes query information for the program frame information, based on a mode of pre-storage or user entry, which is not limited in this application.
It should be understood that the execution subject of the method for determining the program suitability may be a server independent of the host program and the terminal device corresponding to the program to be issued, or may also be a device of the terminal corresponding to the host program, or may also be a terminal device corresponding to the program to be issued.
The program corresponding to the query information of the program frame information is often an applet installed for the host program, such as an applet with an additional function in a social program or a shopping program.
The method includes the steps of querying program frame information, wherein the step of querying the corresponding program frame information in the program frame information generally refers to packaging common functions, and then converting the program information for realizing the common functions into program information which can be supported by a program Development platform, namely, the final purpose of an application frame is to replace other languages into languages which can be understood by a processor when the processor expresses meanings, and a developer can also adjust the program frame information when designing a program so as to conveniently realize the required functions, and then calling based on the program frame information during Development can quickly realize the corresponding functions, such as JavaScript and JSSDK (JavaScript Software Development Kit, JSSDK for short).
It should be understood that although the program framework information is related to the interface support capability and the component support capability of the application program, the underlying program framework support capability in the interface support capability and the component support capability needs to be considered, and if only the interface version information of the application program is determined, there may be a problem that the interface version information does not correspond to the expected underlying program framework support capability, and thus the support capability of the host program cannot be accurately determined.
Step 202, determining a test program set by using the query information based on the pair of program frame information, and testing the host program to obtain a test result.
In this embodiment, after obtaining query information for program frame information in the query request for the adaptation parameter, determining a test program according to corresponding program frame information in the query information for the program frame information, after determining that the test program is completed, determining a test program set based on the test programs, testing the host program by using the test program set, and obtaining a corresponding test result according to a situation that the test program in the test program set runs in the host program, that is, a situation that whether the test program can be supported by the host program.
The test program is determined according to the content in the program framework information to be tested, that is, the content corresponding to the query information of the program framework information, for example, the test program with the corresponding version number is determined to be called according to the version number of the development kit required in the framework query information.
Preferably, a test program is determined for each specific content in the program framework information, a test set is generated based on the determined test programs, and the host program is tested, so that test errors caused by compatibility problems of the test programs and interference between the test programs are reduced, and accurate testing of each specific test content can be accurately realized.
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, the running status of the test program set obtained in step 202 in the host program is counted, and the running status of the test program is corresponding to the test content to generate an adaptive parameter list.
The adaptation parameter list records the result of the program frame information tested by the tested program, that is, the adaptation parameter list includes a record of whether the program frame information corresponding to the tested program is supported by the program host program.
It should be understood that, based on the query request of different adaptation parameters, a plurality of different adaptation parameter lists may be generated correspondingly, and the generated plurality of adaptation parameter lists may be summarized to generate a final adaptation parameter list so as to record the program framework information supported by the host program as much as possible.
According to the method for determining the program adaptability provided by the embodiment of the application, after the query request containing the program frame information for the host program is obtained, the test program set is determined based on the query information containing the program frame information, the host program is tested by adopting the test program set to obtain the test result, the adaptation parameter list is generated according to the test result, and the adaptation parameter list containing the program frame information is output, so that the support capability of the host program is determined according to the adaptation parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, when the host program is determined to be not adapted or fails, the accurate adjustment can be realized based on the program frame information, and the efficiency is improved.
In some optional implementations of this embodiment, determining the set of test programs based on the query information of the pair of program framework information includes: acquiring query information of different to-be-issued programs to the 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 program frame information set is a subset of the test program set.
Specifically, under the condition that a program to be issued exists in advance, query information of the program frame information may be determined according to the program frame information required by the program to be issued, and in addition, a program frame information set corresponding to the program frame query information may also be determined according to the program frame information of the program to be issued in the historical data, and finally, a corresponding test program set is determined according to the program frame information set.
The program frame information used by the test programs 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 programs 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, on this basis, the program frame information in the test program set can also be more than the program frame information in the program frame information set, so that the test on other types of program frame information is realized, and the applicability of the adaptation parameter list is improved.
In some optional implementation manners of this embodiment, the testing the host program by using the set of test programs, and obtaining the test result includes: and detecting whether the interface information and/or the component information corresponding to the query information of the pair of program frame information supports the test program in the test program set to obtain a test result.
Specifically, whether the interface information and the component information corresponding to the query information of the program frame information support the test program in the test program set is obtained, so as to obtain the adaptation condition of the interface information and the component information, so that when an adaptation parameter list is subsequently generated, the contents of the interface information and the component information are correspondingly added, so as to obtain an adaptation parameter list with more contents, and the use is facilitated.
In some optional implementation manners of this embodiment, the testing the host program by using the set of test programs, and obtaining the test result includes: acquiring an update log of the host program; determining host programs of various versions based on the update log; and testing the host programs of all versions by adopting the test program set to obtain test results.
Specifically, in order to meet the actual use requirement, the host program itself is also updated, and after the update, new support capability or past support capability may exist in the host program, for this reason, 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, and then a program test set is used to perform a test corresponding to each version of the host program, so as to determine the support capability of each version of the host program, and the support capability is added to an adaptation parameter list, so that the support capability of each version of the host program for information such as program frame information and the like is conveniently known, more support 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 updated content remarks to the adaptation parameter list based on the updated content of each version of the host program in the update log.
Specifically, the same is based on the updated content of each version of the host program, and the content is added to the adaptation parameter list in the form of remarks, identifications and the like, so that the user can know the added capability of each version of the host program after updating according to the remarks and identifications, or what should be noted so as to better use the adaptation parameter list.
In some optional implementations of the present embodiment, the method for determining program suitability further includes: determining program frame information which is not supported by the host program based on the adaptive parameter list, and generating a to-be-updated list indicating the program frame information which is not supported by the host program; and presenting the list to be updated to a service 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 the service side, so that the update content of the host program is determined according to the list to be updated subsequently, the host program is updated in a targeted manner, and the support capability of the host on the program to be issued is improved.
On the basis of this embodiment, the present application further provides a flow 300 of another embodiment of a method for determining program suitability through fig. 3, so as to illustrate a flow for determining whether a program to be issued is adapted based on a generated adaptation parameter list, which includes the following specific steps:
step 301, obtaining a query request for adaptation parameters of a host program, where the query request at least includes query information for program framework information.
Step 302, determining a test program set by using the query information based on the pair of program frame information, and testing the host program to obtain a test result.
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 the host program is acquired, and the program frame information of the program to be issued in the program issuing request is analyzed.
Step 305, detecting whether the program frame information required by the program to be issued is supported by the host program based on the adaptation parameter list and the program frame information.
Specifically, it is determined whether the program framework information of the to-be-delivered program can be supported by the host program based on the adaptive parameter list determined in step 303.
In step 306, in response to determining that the program framework information required by the program to be issued can be supported by the host program, the program to be issued is allowed to be issued to the host program.
Specifically, it is determined that the program frame information required by the program to be issued can be supported by the host program, that is, each test program in the test program set corresponding to the program frame information required by the program to be issued can normally run in the host program, and the running environment of the host program can support all the program frame information required by the program to be issued, so as to allow the program to be issued to the host program.
In the present embodiment, the contents of steps 301-. In the method for determining the program suitability provided in this embodiment, after the adaptation parameter list is determined, it may be subsequently detected whether the program to be delivered may normally run in the host program according to the adaptation parameter list, and when it is determined that the program to be delivered is not supported by the host program, the host program may be specifically adjusted according to the program frame information, so as to improve efficiency.
In order to deepen understanding, the application also provides a specific implementation scheme by combining a specific application scene. 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.
In the specific application scenario, after query information for program framework information included in the query request for the adaptive parameters is obtained as JSSDK 1.0, JSSDK 2.0, and JSSDK 3.0, it is detected that interface information and component information of a host program related to the query information are divided into an interface a, an interface B, and a component C, and accordingly, a corresponding generated test program set is generated based on the basic properties of the interface information and the component information, and the set includes test programs a1, a2, A3, a4, B1, C1, and C2.
The host program is tested by using the test set, and notes of update contents of each version are correspondingly added based on the update of the host program, so that a final test result is obtained, as shown in table 1.
Figure BDA0002667036380000091
TABLE 1
Finally, the list of the adaptation parameters of the host program is determined according to the test result, 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 scenario, after the program frame 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 adaptation parameter list is generated, and finally the adaptation parameter list containing the program frame information is output, so that the support capability of the host program is determined according to the adaptation parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, when the host program is determined to be not adapted or fails, the precise adjustment can be realized based on the program frame 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 obtaining unit 401 configured to obtain a query request for adaptation parameters of a host program; wherein, the query request at least comprises query information of the program frame information; a parameter testing unit 402 configured to determine a testing program set based on the query information of the pair of program framework information, and test the host program with the testing program set to obtain a testing 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 for a host program; wherein, the program issuing request comprises the program frame information of the program to be issued; an environment detection unit 405 configured to detect whether the program frame information required by the program to be issued is supported by the host program based on the adaptation parameter list and the program frame information; a program issuing determination unit 406 configured to allow the program to be issued to the host program in response to determining that the program frame information required by the program to be issued can be supported by the host program.
In some optional implementations of this embodiment, the determining, in the parameter testing unit 402, a set of test programs based on the query information of the pair of program framework information includes: acquiring query information of different to-be-issued programs to the 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 program frame information set is a subset of the test program set.
In some optional implementation manners 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, and obtaining the test result includes: and detecting whether the interface information and/or the component information corresponding to the query information of the pair of program frame information supports the test program in the test program set to obtain a test result.
In some optional implementation manners 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, and obtaining the test result includes: acquiring an update log of the host program; determining host programs of various versions based on the update log; and testing the host programs of all versions by adopting the test program set to obtain test results.
In some optional implementations of this embodiment, the parameter testing unit 402 further includes: and the remark adding subunit is configured to add an update content remark to the adaptation parameter list based on the update content of each version of the host program in the update log.
In some optional implementations of this embodiment, the apparatus further includes: an update list generation unit configured to determine program frame information that is not supported by the host program based on the adaptation parameter list, and generate a to-be-updated list indicating the program frame information that is not supported by the host program; and a list sending unit configured to present the list to be updated to a service side of the host program.
The present embodiment exists as an apparatus embodiment corresponding to the above method embodiment, and the same contents refer to the description of the method embodiment, which is not repeated herein. By the device for determining the program adaptability, the support capability of the host program can be determined according to the adaptive parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, and when the program is determined to be not adaptive or the host program fails, accurate adjustment can be realized based on the program frame information, so that the efficiency is improved.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 5 is a block diagram of an electronic device 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 phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the electronic apparatus includes: one or more processors 501, memory 502, and interfaces for connecting the various 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 for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 5, one processor 501 is taken as an example.
Memory 502 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for determining program suitability provided herein. 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, which is a non-transitory computer-readable storage medium, may be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as program instructions/modules corresponding to the method for determining program suitability in the embodiment of the present application (for example, the information acquisition unit 401, the parameter testing unit 402, the list generation unit 403, the program framework information receiving unit 404, the environment detection unit 405, and the program issuance determination unit 406 shown in fig. 4). The processor 501 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 502, that is, implements the method for determining program suitability in the method embodiment.
The memory 502 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device for determining the suitability of the program, and the like. Further, the 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 optionally includes memory located remotely from processor 501, which may be connected via a network to an electronic device for determining suitability of a program. 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 of the method for determining suitability of a program may further include: an input device 503 and an output device 504. The processor 501, the memory 502, the input device 503 and the output device 504 may be connected by a bus or other means, and fig. 5 illustrates the connection by a bus as an example.
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 apparatus for determining program suitability, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 504 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. 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 a pointing device (e.g., a mouse or a 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 can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end 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 back-end, 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 clients and servers. A client and server are generally 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 a parameter query request containing program frame information for a host program is obtained, a test program set is determined based on the query information of the program frame information, the host program is tested by adopting the test program set to obtain a test result, an adaptation parameter list is generated according to the test result, and the adaptation parameter list containing the program frame information is output, so that the support capability of the host program is determined according to the adaptation parameter list, the program adaptability is determined, the matching efficiency of the program can be improved, when the host program is determined to be not adapted or fails, accurate adjustment can be realized based on the program frame information, and the efficiency is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The specific embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (16)

1. A method for determining program suitability, comprising:
acquiring a query request for the adaptive parameters of the host program; wherein, the query request at least comprises query information of the program frame information;
determining a test program set based on the query information of the program frame 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 comprises program frame information.
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 frame 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 frame information;
and allowing the program to be issued to the host program in response to determining that the program frame information required by the program to be issued can be supported by the host program.
3. The method of claim 1, wherein the determining a set of test programs based on the query information for program framework information comprises:
acquiring query information of different to-be-issued programs to the 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 program framework information set is a subset of the test program set.
4. The method of claim 1, wherein testing the host program with the set of test programs to obtain a test result comprises:
and detecting whether the interface information and/or the component information corresponding to the query information of the program frame information support the test program in the test program set to obtain a test result.
5. The method of claim 1, wherein the testing the host program with the set of test programs to obtain a test result comprises:
acquiring an update log of the host program;
determining host programs of various versions based on the update logs;
and testing the host programs of all versions by adopting the test program set to obtain a test result.
6. The method of claim 5, further comprising:
and adding updated content remarks to the adaptive parameter list based on the updated content of each version of the host program in the update log.
7. The method of claim 1, further comprising:
determining program frame information which is not supported by the host program based on the adaptive parameter list, and generating a to-be-updated list indicating the program frame information which is not supported by the host program;
and presenting the list to be updated to a service party of the host program.
8. An apparatus for determining program suitability, comprising:
an information acquisition unit configured to acquire a query request for adaptation parameters of a host program; wherein, the query request at least comprises query information of the program frame information;
the parameter testing unit is configured to determine a testing program set based on the query information of the program frame information, and test the host program by adopting the testing program set to obtain a testing result;
a list generating unit configured to generate an adaptation parameter list according to the test result and output the adaptation parameter list; wherein, the adaptive parameter list comprises program frame information.
9. The apparatus of claim 8, further comprising:
a program framework information receiving unit configured to acquire a program issuing request for 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 the program frame information required by the program to be issued is supported by the host program based on the adaptation parameter list and the program frame information;
and the program issuing judgment unit is configured to respond to the fact that the program frame information required by the program to be issued can be supported by the host program and allow the program to be issued to the host program.
10. The apparatus of claim 8, wherein the determining of the set of test procedures in the parameter test unit based on the query information of the procedures for framework information comprises:
acquiring query information of programs of different programs to be issued on the 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.
11. The apparatus of claim 8, wherein the testing the host program with the set of test programs in the parameter testing unit to obtain a test result comprises:
and detecting whether the interface information and/or the component information corresponding to the query information of the program to the frame information supports the test program in the test program set to obtain a test result.
12. The apparatus of claim 8, wherein the testing the host program with the set of test programs in the parameter testing unit to obtain a test result comprises:
acquiring an update log of the host program;
determining host programs of various versions based on the update logs;
and testing the host programs of all versions by adopting the test program set to obtain a test result.
13. The apparatus of claim 12, the parameter testing unit further comprising:
and the remark adding subunit is configured to add an updated content remark to the adaptation parameter list based on the updated content of each version of the host program in the update log.
14. The apparatus of claim 8, further comprising:
an update list generation unit configured to determine program frame information that is not supported by a host program based on an adaptation parameter list, and generate a to-be-updated list indicating the program frame information that is not supported by the host program;
a list sending unit configured to present the list to be updated to a service side of the host program.
15. 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-7.
16. A non-transitory computer readable storage medium storing computer instructions, comprising: the computer instructions are for causing the computer to perform the method of any one of claims 1-7.
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 true CN112069071A (en) 2020-12-11
CN112069071B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905469A (en) * 2021-02-22 2021-06-04 北京百度网讯科技有限公司 Method and apparatus for detecting applet capability features

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180137286A1 (en) * 2016-11-16 2018-05-17 International Business Machines Corporation Method and apparatus for security testing of application flows that cannot be automated through http replay
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180137286A1 (en) * 2016-11-16 2018-05-17 International Business Machines Corporation Method and apparatus for security testing of application flows that cannot be automated through http replay
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
YOUNGJOON CHA等: "The Error-Amended Sharp Edge (EASE) Scheme for Image Zooming", 《 IEEE TRANSACTIONS ON IMAGE PROCESSING》 *
李查玮;吴艳霞;罗棋;周洋;: "基于微信小程序的地震仪器管理平台研究", 软件导刊, no. 06 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112905469A (en) * 2021-02-22 2021-06-04 北京百度网讯科技有限公司 Method and apparatus for detecting applet capability features
CN112905469B (en) * 2021-02-22 2023-08-04 北京百度网讯科技有限公司 Method and apparatus for detecting applet capability features

Also Published As

Publication number Publication date
CN112069071B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN110765024B (en) Simulation test method, simulation test device, electronic equipment and computer readable storage medium
CN112486820B (en) Method, apparatus, device and storage medium for testing code
US10178194B2 (en) Intelligent notifications to devices with multiple applications
US11063828B2 (en) Detecting software misconfiguration at a remote machine
CN111639027B (en) Test method and device and electronic equipment
CN110858172A (en) Automatic test code generation method and device
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
CN110752968B (en) Performance benchmark test method and device, electronic equipment and storage medium
CN111475164A (en) Component dependency relationship detection method and device and electronic equipment
CN112269706A (en) Interface parameter checking method and device, electronic equipment and computer readable medium
JP2021192214A (en) Method and device for verifying operation states of applications
CN110620806B (en) Information generation method and device
CN112069071B (en) Method and device for determining program suitability
WO2023169193A1 (en) Method and device for generating smart contract
CN113392010A (en) Common component testing method and device, electronic equipment and storage medium
US9497253B2 (en) Authorization review system
CN113655906A (en) Folding screen control method and device
CN111753330A (en) Method, device and equipment for determining data leakage subject and readable storage medium
CN111582480A (en) Method and device for pruning a model
CN111639116A (en) Data access connection session protection method and device
CN111290870A (en) Method and device for detecting abnormity
CN113900895B (en) Information processing method, information processing apparatus, storage medium, and electronic device
EP3872630A2 (en) Request processing method and apparatus, electronic device, and computer storage medium
CN111459887B (en) Resource screening method and device, electronic equipment and storage medium
CN111831319A (en) Differential data posterior method, device, equipment and storage medium

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