CN112068878B - Method, device and storage medium for detecting software development kit state - Google Patents

Method, device and storage medium for detecting software development kit state Download PDF

Info

Publication number
CN112068878B
CN112068878B CN202010934542.1A CN202010934542A CN112068878B CN 112068878 B CN112068878 B CN 112068878B CN 202010934542 A CN202010934542 A CN 202010934542A CN 112068878 B CN112068878 B CN 112068878B
Authority
CN
China
Prior art keywords
software development
detected
target
state
package
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
CN202010934542.1A
Other languages
Chinese (zh)
Other versions
CN112068878A (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.)
Douyin Vision Co Ltd
Original Assignee
Douyin Vision 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 Douyin Vision Co Ltd filed Critical Douyin Vision Co Ltd
Priority to CN202010934542.1A priority Critical patent/CN112068878B/en
Publication of CN112068878A publication Critical patent/CN112068878A/en
Application granted granted Critical
Publication of CN112068878B publication Critical patent/CN112068878B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a software development kit state detection method, device and storage medium. The method comprises the following steps: acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device, wherein the target state parameters are sent by the software development package to be detected through calling a target interface of a configuration software development package; detecting the running state of the software development kit to be detected in a target running stage according to the target state parameters; and outputting the running state detection result of at least one software development kit to be detected in the target running stage. According to the method, the terminal equipment sends the state parameters of the software development package to be detected in the target operation stage, and the network equipment detects the state of the software development package to be detected in the target operation stage according to the state parameters sent by at least one terminal equipment. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.

Description

Method, device and storage medium for detecting software development kit state
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, and a storage medium for detecting a state of an SDK (Software Development Kit ).
Background
To provide a richer and more diverse functionality, a software development kit for implementing the target functionality is accessed in an application. For example, an account software development kit is accessed in the application program, and the account software development kit communicates through a server of the third party application program, thereby logging in to the application program using an account password of the third party application program. If a developer modifies the configuration parameters and the distribution flow of the software development kit accessing the application program due to misoperation, the software development kit can run abnormally.
At present, the method for checking the abnormality of the software development kit is that an inspector inspects each instance of the software development kit, so that the efficiency of checking and solving the abnormality is low.
Disclosure of Invention
In order to solve the problem of low abnormality investigation efficiency of the existing software development kit, the embodiment of the application provides a method, equipment and storage medium for detecting the state of the software development kit.
In a first aspect, an embodiment of the present application provides a method for detecting a state of a software development kit, where the method includes:
acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device, wherein the target state parameters comprise state parameters of the at least one software development package to be detected in a target operation stage, and the target state parameters are sent by the at least one software development package to be detected through calling a target interface of a configuration software development package of the at least one terminal device;
Detecting the running state of the at least one software development package to be detected in the target running stage according to the target state parameter;
and outputting the running state detection result of the at least one software development package to be detected in the target running stage.
According to the method provided by the embodiment of the application, the to-be-detected software development package on the terminal equipment transmits the state parameters of the to-be-detected software development package in the target operation stage by calling the configuration software development package, and the network equipment detects the state of the to-be-detected software development package in the target operation stage according to the state parameters transmitted by the to-be-detected software development package on at least one terminal equipment. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Optionally, the target operation stage may include a configuration parameter writing stage of the to-be-detected software development kit, the target state parameter may include a configuration parameter written into the to-be-detected software development kit, and an implementation manner of detecting the operation state of the to-be-detected software development kit in the target operation stage according to the target state parameter may include: verifying the validity and/or accuracy of the configuration parameters sent by the at least one software development kit to be detected on the at least one terminal device; and detecting the configuration accuracy of the at least one software development package to be detected on the at least one terminal device respectively according to the verification result of the configuration parameters.
The abnormality of the configuration parameters directly leads to the abnormality of the configuration parameter writing stage of the software development kit to be detected, so that the configuration parameters written into the software development kit to be detected are obtained and checked, and whether the abnormality exists in the configuration parameter writing stage of the software development kit to be detected can be effectively checked.
Optionally, the target running stage may include a start-up stage of the software development kit to be detected, and the target state parameter includes at least one of the following: the implementation manner for indicating the starting information of the software development package to be detected and indicating whether the software development package to be detected is successfully started or not, and the error reporting information of the starting stage of the software development package to be detected and detecting the running state of the software development package to be detected in the target running stage according to the target state parameters may include:
detecting the used amount of at least one software development packet according to the target state parameter sent by at least one software development packet to be detected on the at least one terminal device; and/or detecting the start success rate and/or the start error rate of the at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
If the software development package to be detected is abnormal, the user will not use the software development package to be detected later, so that the usage amount of the software development package to be detected can reflect the abnormality of the software development package to be detected.
Optionally, the target operation stage includes a designated action execution stage, and the target state parameters include: the implementation manner of detecting the running state of the software development kit to be detected in the target running stage according to the target state parameter can include: and detecting the execution state of the at least one software development packet for executing the appointed action on the at least one terminal device according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
By designating the execution action in the software development kit to be detected in advance and acquiring the state parameters of the designated action, the state detection of the designated action can be realized.
On the basis of any of the above method embodiments, optionally, the obtaining, on at least one terminal device, a target state parameter sent by at least one software development packet to be detected includes:
Acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device meeting preset screening conditions, wherein the preset screening conditions include at least one of the following: the uploading time of the target state parameter is within a preset time range, an operating system of the terminal equipment is a specified operating system, and the version of the application program where the software development package to be detected is located is a specified version.
In a second aspect, embodiments of the present application provide an electronic device, including:
the system comprises a target state parameter acquisition module, a configuration software development module and a configuration software development module, wherein the target state parameter acquisition module is used for acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device, the target state parameters comprise state parameters of the at least one software development package to be detected in a target operation stage, and the target state parameters are sent by the at least one software development package to be detected through calling a target interface of the configuration software development package of the at least one terminal device;
the state detection module is used for detecting the running state of the at least one software development package to be detected in the target running stage according to the target state parameter;
and the detection result output module is used for outputting the running state detection result of the at least one software development package to be detected in the target running stage.
The electronic device provided by the embodiment of the application acquires the state parameters of the to-be-detected software development package on the terminal device in the target operation stage, which are sent by calling the target interface of the configuration software development package, and detects the state of the to-be-detected software development package on the terminal device in the target operation stage according to the state parameters sent by the to-be-detected software development package on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Optionally, the target operation stage may include a configuration parameter writing stage of the software development kit to be detected, and the target state parameter may include a configuration parameter written in the software development kit to be detected, where the state detection module is configured to: verifying the validity and/or accuracy of the configuration parameters sent by the at least one software development kit to be detected on the at least one terminal device; and detecting the configuration accuracy of the at least one software development package to be detected on the at least one terminal device respectively according to the verification result of the configuration parameters.
The abnormality of the configuration parameters directly leads to the abnormality of the configuration parameter writing stage of the software development kit to be detected, so that the configuration parameters written into the software development kit to be detected are obtained and checked, and whether the abnormality exists in the configuration parameter writing stage of the software development kit to be detected can be effectively checked.
Optionally, the target running stage may include a start-up stage of the software development kit to be detected, and the target state parameter includes at least one of the following: information indicating the start of the software development package to be detected, information indicating whether the software development package to be detected is successfully started, error reporting information of the start stage of the software development package to be detected, and a state detection module can be used for: detecting the used amount of at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device; and/or detecting the start success rate and/or the start error rate of the at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
If the software development package to be detected is abnormal, the user will not use the software development package to be detected later, so that the usage amount of the software development package to be detected can reflect the abnormality of the software development package to be detected.
Optionally, the target operation stage includes a designated action execution stage, and the target state parameters include: the state detection module may be configured to specify a result of execution of the action and/or data generated during execution of the action: and detecting the execution state of the at least one software development packet for executing the appointed action on the at least one terminal device according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
By designating the execution action in the software development kit to be detected in advance and acquiring the state parameters of the designated action, the state detection of the designated action can be realized.
Based on any of the above electronic device embodiments, optionally, the target state parameter obtaining module is configured to: acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device meeting preset screening conditions, wherein the preset screening conditions include at least one of the following: the uploading time of the target state parameter is within a preset time range, an operating system of the terminal equipment is a specified operating system, and the version of the application program where the software development package to be detected is located is a specified version.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any method embodiment of the first aspect;
the processor is configured to execute a program stored in the memory.
The electronic device provided by the embodiment of the application acquires the state parameters of the software development package to be detected, which are sent by the terminal device through calling the configuration software development package, in the target operation stage, and the network device detects the state of the software development package to be detected in the target operation stage according to the state parameters sent by the software development package to be detected on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium storing a program for implementing any of the method embodiments of the first aspect.
The program stored in the computer readable storage medium provided by the embodiment of the application acquires the state parameter of the software development package to be detected, which is sent by the terminal device and is in the target operation stage, by calling the configuration software development package, and the network device detects the state of the software development package to be detected in the target operation stage according to the state parameter sent by the software development package to be detected on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
In a fifth aspect, an embodiment of the present application provides a method for detecting a state of a software development kit, where the method includes:
calling a preset target interface for configuring the software development kit in a target operation stage of the software development kit;
and sending the state parameters of the software installation package to be detected in the target operation stage to network equipment through the target interface so that the network equipment can detect the operation state of the software development package to be detected in the target operation stage by using the state parameters.
According to the method provided by the embodiment of the application, the state parameters of the software development package to be detected in the target operation stage are sent to the network equipment by calling the target interface, so that the network equipment detects the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Optionally, the target operation stage includes a designated action execution stage, and in the target operation stage of the software development kit to be detected, the target interface is called, which may include: and acquiring the designated execution action identification information, and calling the target interface in an execution stage of the execution action indicated by the execution action identification information.
In a sixth aspect, embodiments of the present application provide an electronic device, including:
the interface calling module is used for calling a preset target interface for configuring the software development kit in a target operation stage of the software development kit;
and the state parameter sending module is used for sending the state parameters of the software installation package to be detected in the target operation stage to network equipment through the target interface so that the network equipment can detect the operation state of the software development package to be detected in the target operation stage by using the state parameters.
According to the electronic equipment provided by the embodiment of the application, the state parameters of the software development package to be detected in the target operation stage are sent to the network equipment by calling the target interface, so that the network equipment can detect the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
In a seventh aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing an embodiment of the method of any fifth aspect;
the processor is configured to execute a program stored in the memory.
According to the electronic equipment provided by the embodiment of the application, the state parameters of the software development package to be detected in the target operation stage are sent to the network equipment by calling the target interface, so that the network equipment can detect the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
In an eighth aspect, an embodiment of the present invention provides a computer readable storage medium storing a program for implementing any of the method embodiments of the fifth aspect.
The program stored in the computer readable storage medium provided by the embodiment of the application is used for the software development package to be detected to call the target interface to send the state parameters of the software development package to be detected in the target operation stage to the network equipment, so that the network equipment detects the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Drawings
FIG. 1 is a flowchart of a method for detecting a status of a software development kit according to one embodiment of the present application;
FIG. 2 is a flowchart of a method for detecting a status of a software development kit according to another embodiment of the present application;
FIG. 3 is a schematic diagram of a first operation status detection page according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a second operation status detection page according to an embodiment of the present application;
FIG. 5 is a third operating condition detection schematic provided in one embodiment of the present application;
FIG. 6 is a schematic diagram of a fourth operation status detection page according to an embodiment of the present application;
FIG. 7 is a block diagram of an electronic device provided in one embodiment of the present application;
fig. 8 is a block diagram of an electronic device according to another embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In some of the processes described in the specification and claims of this application and the above figures, a number of operations occurring in a particular order are included, but it should be understood that these processes may include more or less operations, and that these operations may be performed sequentially or in parallel.
As shown in fig. 1, an embodiment of the present application provides a method for detecting a state of a software development kit, which may be implemented on a network device (e.g., a server), and includes the following operations:
step 101, obtaining a target state parameter sent by at least one software development package to be detected on at least one terminal device, wherein the target state parameter is a state parameter of the at least one software development package to be detected in a target operation stage, and the target state parameter is sent by the at least one software development package to be detected by calling a target interface of a configuration software development package.
The terminal device may be a mobile terminal, such as a smart phone, a smart speaker, a car computer, a wearable smart device, or a personal computer, a tablet computer, or other terminal devices.
The state parameters are parameters reflecting whether the software development kit to be detected has an abnormality in the target operation stage, and the embodiment of the application does not limit the specific content of the state parameters, and in practical application, different state parameters can be configured according to different target operation stages.
And 102, detecting the running state of the at least one software development kit to be detected in the target running stage according to the target state parameters.
The method and the device do not limit the specific implementation mode of state detection, and in practical application, different state detection means are determined according to the characteristics of a target operation stage.
And step 103, outputting the running state detection result of the software development kit to be detected in the target running stage.
The present application does not limit the output manner of the detection result. For example, the detection result may be displayed on a browser of the target terminal device, or may be displayed on a designated application display interface of the target terminal device.
The network device implementing the method can be called a cloud configuration platform, and the cloud configuration platform provides a configuration interface for detection matters, through which an administrator of the detected software development kit can specifically configure some detection matters according to the characteristics and requirements of the software development kit, including detection of a start-up stage (such as a start-up occasion of the software development kit), detection of a configuration parameter writing stage (such as parameters necessary for registering the software development kit), and execution stage of a specified action (such as critical path code which must be executed in a core flow of the software development kit). After the software development kit to be detected is started, the software development kit starting time, required configuration and self-defined software development kit detection results are automatically uploaded through the target interface. The cloud configuration platform can see the results in real time, and master the access and online conditions of the software development package at any time. The reported error result can be timely notified to related responsible persons in the form of mails, so that online accidents are reduced, and online early warning is enhanced.
According to the method provided by the embodiment of the application, the state parameters of the software development kit to be detected in the target operation stage are sent by the software development kit to be detected on the terminal equipment through calling the target interface of the configuration software development kit, and the network equipment detects the state of the software development kit to be detected in the target operation stage according to the state parameters sent by the at least one terminal equipment. Therefore, the state of the software development package is automatically detected, and the processing efficiency is improved compared with manual detection of the abnormality of the software development package.
In the embodiment of the application, one or more target operation stages can be configured according to requirements. By way of example and not limitation, one or more of a start-up phase, a configuration parameter write-in phase, a specified action execution phase of the software development kit to be detected may be configured as a target run phase.
If the target operating phase includes a configuration parameter writing phase of the software development kit to be detected, the target state parameter may include a configuration parameter written into the software development kit to be detected. Correspondingly, the detecting the running state of the software development kit to be detected in the target running stage according to the target state parameter may include: verifying the validity and/or accuracy of configuration parameters sent by at least one to-be-detected software development kit on the at least one terminal device; and detecting the configuration accuracy of the at least one software development kit to be detected on the at least one terminal device respectively according to the verification result of the configuration parameters.
In order to perform validity check, the configuration parameters reported by the to-be-detected software development package of the terminal device carry validity check information, where the validity check information includes identification information (application program name, application program version number) of an application program where the to-be-detected software development package is located and/or identification information (one or more combinations of terminal device operating system name and terminal device operating system version number) of the terminal device, the validity check information reported by the terminal device is compared with pre-stored standard information of the to-be-detected software development package, if the comparison result is not completely consistent, it means that the configuration information reported by the terminal device does not belong to the to-be-detected software development package, and if not, the validity check fails.
In order to perform accuracy verification, the configuration parameters reported by the terminal device may be compared with the pre-stored standard configuration information of the to-be-detected software development kit, if the comparison result is not completely consistent, this means that the configuration information reported by the terminal device is wrong, and the accuracy verification fails, otherwise, the accuracy verification is successful.
In the embodiment of the application, the success rates of the accuracy check and the validity check can be counted respectively, and the success rates of the accuracy check and the validity check can be counted together.
In the embodiment of the application, the configuration success rate of the software development kit to be detected is detected, and various detection results can be obtained. For example, the configuration parameters reported by each terminal in the present period may be detected periodically, so as to obtain the configuration success rate of the to-be-detected software development package of each terminal device in the present period, and in addition, the configuration success rate obtained in the present period is compared with the configuration success rate obtained in the previous period, so as to obtain the ring ratio difference between the configuration success rate of the to-be-detected software development package in the present period and the configuration success rate of the to-be-detected software development package in the previous period.
The abnormality of the configuration parameters directly leads to the abnormality of the configuration parameter writing stage of the software development kit to be detected, so that the configuration parameters written into the software development kit to be detected are obtained and checked, and whether the abnormality exists in the configuration parameter writing stage of the software development kit to be detected can be effectively checked.
If the target operation stage includes at least one start stage of the software development kit to be detected, the target state parameter may be information indicating that the software development kit to be detected is started, information indicating whether the software development kit to be detected is successfully started, or error reporting information of the start stage of the software development kit to be detected. Correspondingly, according to the specific content of the target state parameter, the implementation manner of detecting the running state of the software development kit to be detected in the target running stage by the target state parameter can be various. For example, if the target state parameter indicates that the to-be-detected software development package is started, that is, the information indicating that the to-be-detected software development package is started, which is sent by the terminal device, is received, the to-be-detected software development package is indicated to be used, and the to-be-detected software development package is added with 1 by the use counter, so that the used amount of the at least one to-be-detected software development package is detected according to the target state parameter sent by the at least one to-be-detected software development package on the at least one terminal device. For another example, if the target state parameter indicates whether the to-be-detected software development kit is successfully started, the start success rate and/or the start error rate of the to-be-detected software development kit are detected according to the target state parameter reported by the to-be-detected software development kit on the at least one terminal device. For another example, if the target state parameter includes error reporting information of the start-up stage of the to-be-detected software development package, statistics is performed on the start-up success rate and/or the start-up error rate of the at least one to-be-detected software development package according to the target state parameter reported by the at least one to-be-detected software development package on the at least one terminal device.
If the software development package to be detected is abnormal, the user will not use the software development package to be detected later, so that the usage amount of the software development package to be detected can reflect the abnormality of the software development package to be detected.
If the target execution phase includes a specified action execution phase, then the target state parameters may include the execution result of the specified action, data generated during execution, and so forth. Correspondingly, the implementation manner of detecting the running state of the at least one software development kit to be detected in the target running stage according to the target state parameter may include: and detecting the execution state of the software development package to be detected for executing the specified action on the at least one terminal device according to the target state parameter sent by the at least one software development package to be detected on the at least one terminal device.
By designating the execution action in the software development kit to be detected in advance and acquiring the state parameters of the designated action, the state detection of the designated action can be realized.
The method provided by the embodiment of the application not only can be used for checking the detection result of the running state of the software development kit to be detected through the network equipment, but also can be used for configuring the running state detection of the software development kit to be detected. Correspondingly, the network device receives detection configuration information, wherein the detection configuration information comprises information for configuring a target operation stage, information for configuring a detection mode and the like, and the received detection configuration information is sent to each terminal device provided with a to-be-detected software development kit. Specifically, a user can access the network device through a browser of the target terminal device, and configure a target operation stage, a target state parameter and a detection mode through a human-computer interaction interface of the browser. The user can also configure the target operation stage and the target state parameters and detection modes through the designated application program display interface of the target terminal equipment.
Based on any of the above method embodiments, in practical application, the target state parameter corresponding to the terminal device meeting the screening condition may be screened from at least one terminal device according to the pre-configured screening condition to perform the detection. Wherein the screening conditions may include, but are not limited to, at least one of: and reporting the parameter, namely, the time, the operating system of the terminal equipment and the version number of the application program.
As shown in fig. 2, an embodiment of the present application provides a method for detecting a state of a software development kit, where the method may be implemented on a terminal device, and the method includes the following operations:
step 201, in a target operation stage of a software development kit to be detected, a target interface of a preset management software development kit is called.
Wherein the target interface may be encapsulated in a software development kit for detection (i.e., a management software development kit).
Step 202, sending the state parameters of the software development package to be detected in the target operation stage to the network device through the target interface, so that the network device detects the operation state of the software development package to be detected in the target operation stage by using the state parameters.
The network device may include, but is not limited to, a server, which may be a server of an application where the software development kit to be detected is located, or a server of a provider of the software development kit to be detected.
According to the method provided by the embodiment of the application, the state parameters of the software development kit to be detected in the target operation stage are sent to the network equipment through the target interface of the configuration software development kit, so that the network equipment can detect the state of the software development kit to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development kit.
As described above, there may be a plurality of target operational phases. If the target operation stage includes a specified action execution stage, and correspondingly, in the target operation stage of the software development kit to be detected, the software development kit to be detected calls the target interface, and the implementation manner may include: and acquiring the designated execution action identification information, and calling the target interface in an execution stage of the execution action indicated by the execution action identification information.
The method provided by the embodiment of the application will be described in terms of the cooperation implementation of the network device and the terminal device with reference to a specific application scenario.
In the application scene, a pushSDK (push SDK) is accessed into an application program A, and is used for displaying push information and a trigger control on a display interface A' of the application program, and after a user clicks the trigger control, a corresponding page is opened. If the push software development kit needs to be detected, a detection person logs in to a server to perform the following configuration:
In the scene, a starting stage and a configuration parameter writing stage of a push software development kit are configured as target operation stages, and in addition, an execution process of an execution action of opening a page corresponding to a trigger control is configured as the target operation stage to detect the execution action.
The server notifies each terminal device installed with the application a of the target run phase.
The application program A on the terminal equipment triggers a starting stage of pushing the software development kit while calling the display interface A'. That is, the call display interface a' is a start timing of the push software development kit, at which the push software development kit calls a start timing detection interface in the configuration software development kit, and through which execution results of each start step of the start stage of the push software development kit are reported to the server.
And then, in the configuration parameter writing stage of the push software development kit, the push software development kit calls a configuration parameter detection interface encapsulated in the configuration software development kit, and the configuration parameters of the push software development kit are uploaded to a server through the configuration parameter detection interface.
When the user clicks the trigger control of the push software development kit, the push software development kit calls the appointed action detection interface of the configuration software development kit, and the execution result of the appointed action is reported to the server through the appointed action detection interface.
The push software development package sends the state parameters, and simultaneously sends the name of the operating system of the terminal equipment, the version number of the application program A and the version number of the push software development package to the server.
And the server receives the state parameters reported by each terminal device and stores the state parameters in association with the reporting time.
When a inspector needs to check the running state of the push software development kit, accessing a first running state detection page of the server shown in fig. 3, and selecting a time range to be detected, a target terminal operating system, a target application program version number and a running stage to be checked on the page. After the server acquires the time range, the target terminal operating system and the target application program version number, screening the running stage state parameters to be checked, wherein the reporting time is in the time range, the terminal operating system is the target terminal operating system, and the application program version number is the target application program version number; and carrying out state detection by using the screened state parameters and outputting a detection result.
If the detection personnel need to check the state of the start-up stage of the push software development kit, the server screens out the state parameters of the start-up stage meeting the conditions, specifically the execution result of each step of the start-up stage, compares the reported execution result with the standard execution result, so as to judge whether the reported execution result is correct or not, if the execution result is correct, the step is executed correctly, otherwise, the step is executed incorrectly. By comparing the execution results reported by the terminal devices in the appointed time range, the correct rate of each starting step can be determined, and further, the correct rate loop ratio of the period to the previous period can be obtained. In addition, the number of terminal devices reporting the execution result of the starting stage is counted, so that the number of mobile terminals accessing the push software development kit can be calculated, and the Daily Activity (DAU) coverage rate of the push software development kit can be calculated. The server calls a second running state detection page shown in fig. 4 to display the number of mobile terminals connected to the push software development kit, DAU coverage rate of the push software development kit, ring ratio data of the last period, correct rate of the starting stage, ring ratio data of the last period and a correct rate detail button control. The user clicks the correct rate detail button control, and the server responds to the click event and calls the third running state detection page shown in fig. 5 to display the correct rate and the abnormal reason of each step in the starting stage of the push software development kit.
If the detection personnel need to check the state of the appointed execution action of the push software development kit, the server screens the state parameters of the appointed execution action meeting the conditions, specifically the execution result of the appointed execution action, and analyzes the reported execution result to judge the state of the execution action, in this embodiment, the state of the execution action is divided into: not validated, in validation, validated. The server invokes the fourth run state detection page shown in fig. 6 to display the state of the specified execution action of the access push software development kit.
It should be noted that, besides displaying the detection result through the above page, early warning and alarm information can also be actively sent to the terminal device of the detection personnel.
Based on the same inventive concept as the method shown in fig. 1, the embodiment of the present application further provides an electronic device, as shown in fig. 7, including:
a target state parameter obtaining module 701, configured to obtain a target state parameter sent by at least one software development package to be detected on at least one terminal device, where the target state parameter includes a state parameter of the at least one software development package to be detected in a target operation stage, and the target state parameter is sent by the at least one software development package to be detected by calling a target interface of a configuration software development package of the at least one terminal device;
The state detection module 702 is configured to detect an operation state of the at least one software development package to be detected in the target operation stage according to the target state parameter;
and the detection result output module 703 is configured to output an operation state detection result of the at least one software development package to be detected in the target operation stage.
The electronic device provided by the embodiment of the application acquires the state parameters of the to-be-detected software development package on the terminal device in the target operation stage, which are sent by calling the target interface of the configuration software development package, and detects the state of the to-be-detected software development package on the terminal device in the target operation stage according to the state parameters sent by the to-be-detected software development package on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Optionally, the target operation stage may include a configuration parameter writing stage of the software development kit to be detected, and the target state parameter may include a configuration parameter written in the software development kit to be detected, where the state detection module is configured to: verifying the validity and/or accuracy of the configuration parameters sent by the at least one software development kit to be detected on the at least one terminal device; and detecting the configuration accuracy of the at least one software development package to be detected on the at least one terminal device respectively according to the verification result of the configuration parameters.
The abnormality of the configuration parameters directly leads to the abnormality of the configuration parameter writing stage of the software development kit to be detected, so that the configuration parameters written into the software development kit to be detected are obtained and checked, and whether the abnormality exists in the configuration parameter writing stage of the software development kit to be detected can be effectively checked.
Optionally, the target running stage may include a start-up stage of the software development kit to be detected, and the target state parameter includes at least one of the following: information indicating the start of the software development package to be detected, information indicating whether the software development package to be detected is successfully started, error reporting information of the start stage of the software development package to be detected, and a state detection module can be used for: detecting the used amount of at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device; and/or detecting the start success rate and/or the start error rate of the at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
If the software development package to be detected is abnormal, the user will not use the software development package to be detected later, so that the usage amount of the software development package to be detected can reflect the abnormality of the software development package to be detected.
Optionally, the target operation stage includes a designated action execution stage, and the target state parameters include: the state detection module may be configured to specify a result of execution of the action and/or data generated during execution of the action: and detecting the execution state of the at least one software development packet for executing the appointed action on the at least one terminal device according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
By designating the execution action in the software development kit to be detected in advance and acquiring the state parameters of the designated action, the state detection of the designated action can be realized.
Based on any of the above electronic device embodiments, optionally, the target state parameter obtaining module is configured to: acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device meeting preset screening conditions, wherein the preset screening conditions include at least one of the following: the uploading time of the target state parameter is within a preset time range, an operating system of the terminal equipment is a specified operating system, and the version of the application program where the software development package to be detected is located is a specified version.
Based on the same inventive concept as the method shown in fig. 2, an embodiment of the present application further provides an electronic device, as shown in fig. 8, including:
an interface calling module 801, configured to call a preset target interface of the software development kit in a target operation stage of the software development kit;
and the state parameter sending module 802 is configured to send, through the target interface, a state parameter of the to-be-detected software installation package in the target operation stage to a network device, so that the network device detects an operation state of the to-be-detected software development package in the target operation stage by using the state parameter.
According to the electronic equipment provided by the embodiment of the application, the state parameters of the software development package to be detected in the target operation stage are sent to the network equipment by calling the target interface, so that the network equipment can detect the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the module of the electronic device described above may refer to the corresponding process in the foregoing method embodiment, which is not repeated herein.
Based on the same inventive concept as the method shown in fig. 1, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any of the method embodiments described above;
the processor is configured to execute a program stored in the memory.
The electronic device provided by the embodiment of the application acquires the state parameters of the to-be-detected software development package on the terminal device in the target operation stage, which are sent by calling the target interface of the configuration software development package, and detects the state of the to-be-detected software development package on the terminal device in the target operation stage according to the state parameters sent by the to-be-detected software development package on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Based on the same inventive concept as the method shown in fig. 1, the present embodiment provides a computer-readable storage medium storing a program implementing any of the above-described method embodiments.
The program stored in the computer readable storage medium provided in the embodiment of the present application obtains a state parameter of a to-be-detected software development kit sent by a terminal device in a target operation stage by calling a target interface configuring the software development kit, and detects a state of the to-be-detected software development kit in the target operation stage according to the state parameter sent by the to-be-detected software development kit on at least one terminal device. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Based on the same inventive concept as the method shown in fig. 2, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a program for executing any of the method embodiments described above;
the processor is configured to execute a program stored in the memory.
According to the electronic equipment provided by the embodiment of the application, the state parameters of the software development package to be detected in the target operation stage are sent to the network equipment by calling the target interface, so that the network equipment can detect the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Based on the same inventive concept as the method shown in fig. 2, the present embodiment provides a computer-readable storage medium storing a program implementing any of the above-described method embodiments.
The program stored in the computer readable storage medium provided by the embodiment of the application is used for the software development package to be detected to call the target interface to send the state parameters of the software development package to be detected in the target operation stage to the network equipment, so that the network equipment detects the state of the software development package to be detected in the target operation stage by using the state parameters. Therefore, the state of the software development package to be detected is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development package to be detected.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The embodiments described above are only some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.

Claims (11)

1. A method for detecting a state of a software development kit, the method comprising:
acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device, wherein the target state parameters comprise state parameters of the at least one software development package to be detected in a target operation stage, the target operation stage comprises a designated action execution stage, and the target state parameters comprise: the execution result of the appointed action and/or data generated in the execution process of the appointed action, wherein the target state parameter is sent by the at least one software development kit to be detected through calling a target interface of the configuration software development kit of the at least one terminal device;
Detecting the running state of the at least one software development package to be detected in the target running stage according to the target state parameter;
and outputting the running state detection result of the at least one software development package to be detected in the target running stage.
2. The method of claim 1, wherein the target operating phase includes a configuration parameter writing phase of the at least one software development kit to be detected, the target state parameter includes a configuration parameter written to the at least one software development kit to be detected, and the detecting the operating state of the at least one software development kit to be detected in the target operating phase according to the target state parameter includes:
verifying the validity and/or accuracy of the configuration parameters sent by the at least one software development kit to be detected on the at least one terminal device;
and detecting the configuration accuracy of the at least one software development package to be detected on the at least one terminal device respectively according to the verification result of the configuration parameters.
3. The method of claim 1, wherein the target run phase comprises a start-up phase of the at least one software development kit to be detected, and wherein the target state parameters comprise at least one of: information indicating the start of the software development package to be detected, information indicating whether the software development package to be detected is successfully started or not, error reporting information of the start stage of the software development package to be detected, and detecting the running state of the at least one software development package in the target running stage according to the target state parameter, wherein the information comprises:
Detecting the used amount of at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device; and/or the number of the groups of groups,
and detecting the starting success rate and/or the starting error rate of the at least one software development packet to be detected according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
4. The method according to claim 1, wherein the detecting the running state of the at least one software development package to be detected in the target running stage according to the target state parameter comprises:
and detecting the execution state of the at least one software development packet for executing the appointed action on the at least one terminal device according to the target state parameter sent by the at least one software development packet to be detected on the at least one terminal device.
5. The method according to any one of claims 1 to 4, wherein the obtaining the target state parameter sent by the at least one software development package to be detected on the at least one terminal device includes:
Acquiring target state parameters sent by at least one software development package to be detected on at least one terminal device meeting preset screening conditions, wherein the preset screening conditions include at least one of the following: the uploading time of the target state parameter is within a preset time range, an operating system of the terminal equipment is a specified operating system, and the version of the application program where the software development package to be detected is located is a specified version.
6. A method for detecting a state of a software development kit, the method comprising:
calling a preset target interface for configuring the software development kit in a target operation stage of the software development kit;
transmitting a state parameter of the software development package to be detected in the target operation stage to network equipment through the target interface, so that the network equipment detects the operation state of the software development package to be detected in the target operation stage by using the state parameter, wherein the target operation stage comprises a designated action execution stage, and the state parameter comprises: specifying the result of execution of the action and/or specifying data generated during execution of the action.
7. The method of claim 6, wherein invoking the target interface at the target run stage of the software development kit to be detected comprises: and acquiring the designated execution action identification information, and calling the target interface in an execution stage of the execution action indicated by the execution action identification information.
8. An electronic device, the electronic device comprising:
the system comprises a target state parameter acquisition module, a target state parameter generation module and a target state parameter generation module, wherein the target state parameter acquisition module is used for acquiring a target state parameter sent by at least one software development package to be detected on at least one terminal device, the target state parameter comprises a state parameter of the at least one software development package to be detected in a target operation stage, the target operation stage comprises a designated action execution stage, and the target state parameter comprises: the execution result of the appointed action and/or data generated in the execution process of the appointed action, wherein the target state parameter is sent by the at least one software development kit to be detected through calling a target interface of the configuration software development kit of the at least one terminal device;
the state detection module is used for detecting the running state of the at least one software development package to be detected in the target running stage according to the target state parameter;
and the detection result output module is used for outputting the running state detection result of the at least one software development package to be detected in the target running stage.
9. An electronic device, the electronic device comprising:
the interface calling module is used for calling a preset target interface for configuring the software development kit in a target operation stage of the software development kit;
The state parameter sending module is configured to send, to the network device, a state parameter of the software development package to be detected in the target operation stage through the target interface, so that the network device detects an operation state of the software development package to be detected in the target operation stage by using the state parameter, where the target operation stage includes a specified action execution stage, and the state parameter includes: specifying the result of execution of the action and/or specifying data generated during execution of the action.
10. An electronic device comprising a processor and a memory;
the memory is used for storing a program for executing the method of any one of claims 1 to 7;
the processor is configured to execute a program stored in the memory.
11. A computer-readable storage medium, characterized in that a program for executing the method of any one of claims 1 to 7 is stored.
CN202010934542.1A 2020-09-08 2020-09-08 Method, device and storage medium for detecting software development kit state Active CN112068878B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010934542.1A CN112068878B (en) 2020-09-08 2020-09-08 Method, device and storage medium for detecting software development kit state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010934542.1A CN112068878B (en) 2020-09-08 2020-09-08 Method, device and storage medium for detecting software development kit state

Publications (2)

Publication Number Publication Date
CN112068878A CN112068878A (en) 2020-12-11
CN112068878B true CN112068878B (en) 2023-08-08

Family

ID=73664259

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010934542.1A Active CN112068878B (en) 2020-09-08 2020-09-08 Method, device and storage medium for detecting software development kit state

Country Status (1)

Country Link
CN (1) CN112068878B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502906A (en) * 2016-10-27 2017-03-15 广州华多网络科技有限公司 A kind of method and apparatus of test application program
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN107357732A (en) * 2017-07-17 2017-11-17 广州爱九游信息技术有限公司 User terminal and SDK access state detection means and method
CN107450909A (en) * 2017-06-30 2017-12-08 武汉斗鱼网络科技有限公司 The treating method and apparatus of validity check is integrated for SDK
CN107943688A (en) * 2017-11-02 2018-04-20 北京奇虎科技有限公司 A kind of SDK inspection methods, device, terminal device and storage medium
CN109960644A (en) * 2017-12-22 2019-07-02 北京奇虎科技有限公司 A kind of test method and system of SDK
CN110727716A (en) * 2019-10-24 2020-01-24 北京智游网安科技有限公司 Identification method for integrated SDK in application, intelligent terminal and storage medium
US10623417B1 (en) * 2017-11-18 2020-04-14 Sprint Communications Company L.P. Software development kit (SDK) fraud prevention and detection
CN111597101A (en) * 2019-02-21 2020-08-28 上海哔哩哔哩科技有限公司 SDK access state detection method, computer device and computer readable storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10163112B2 (en) * 2016-07-14 2018-12-25 International Business Machines Corporation Assessing penalties for SDKs that violate policies in mobile apps
US10025694B1 (en) * 2016-12-22 2018-07-17 SafeDK Mobile Ltd. Monitoring activity of software development kits using stack trace analysis

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502906A (en) * 2016-10-27 2017-03-15 广州华多网络科技有限公司 A kind of method and apparatus of test application program
CN106843978A (en) * 2017-01-23 2017-06-13 北京乐盟互动科技有限公司 A kind of SDK cut-in methods and system
CN107450909A (en) * 2017-06-30 2017-12-08 武汉斗鱼网络科技有限公司 The treating method and apparatus of validity check is integrated for SDK
CN107357732A (en) * 2017-07-17 2017-11-17 广州爱九游信息技术有限公司 User terminal and SDK access state detection means and method
CN107943688A (en) * 2017-11-02 2018-04-20 北京奇虎科技有限公司 A kind of SDK inspection methods, device, terminal device and storage medium
US10623417B1 (en) * 2017-11-18 2020-04-14 Sprint Communications Company L.P. Software development kit (SDK) fraud prevention and detection
CN109960644A (en) * 2017-12-22 2019-07-02 北京奇虎科技有限公司 A kind of test method and system of SDK
CN111597101A (en) * 2019-02-21 2020-08-28 上海哔哩哔哩科技有限公司 SDK access state detection method, computer device and computer readable storage medium
CN110727716A (en) * 2019-10-24 2020-01-24 北京智游网安科技有限公司 Identification method for integrated SDK in application, intelligent terminal and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马凯.面向Android生态系统中的第三方SDK安全性分析.《软件学报》.2018,第29卷(第5期),第1379-1391页. *

Also Published As

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

Similar Documents

Publication Publication Date Title
CN110445688B (en) Interface service function monitoring method and system based on data collection
CN111459794A (en) Communication network testing method, device, computer equipment and storage medium
CN111897724B (en) Automatic testing method and device suitable for cloud platform
CN111124919A (en) User interface testing method, device, equipment and storage medium
CN111666743A (en) Report automatic generation method and device, computer equipment and storage medium
US11310140B2 (en) Mitigating failure in request handling
CN111309505B (en) Page exception handling method and device and electronic equipment
CN110119350A (en) Software Development Kit test method, device and equipment and computer storage medium
CN111385123A (en) WEB service distributed intelligent monitoring method, device, computer equipment and storage medium
CN109657475A (en) Code vulnerabilities check method, apparatus, equipment and storage medium
CN108306787B (en) Application monitoring method and related equipment
CN113778879A (en) Fuzzy test method and device for interface
CN110347565B (en) Application program abnormity analysis method and device and electronic equipment
CN115543827A (en) Buried point data display method and device
CN112948224A (en) Data processing method, device, terminal and storage medium
CN111061448A (en) Log information display method and device, electronic equipment and storage medium
CN107704365B (en) Monitoring data reporting method and device for mobile terminal hybrid application
CN112068878B (en) Method, device and storage medium for detecting software development kit state
CN112241362A (en) Test method, test device, server and storage medium
CN114637685A (en) Performance test method, device, equipment and medium of application program in bank system
CN112131127B (en) Interface testing method, device and system and electronic equipment
CN113094251B (en) Method and device for testing embedded system, computer equipment and storage medium
CN106940647A (en) Code administration method and apparatus
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN111597101B (en) SDK access state detection method, computer equipment and computer readable 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant