Disclosure of Invention
In order to solve the problem that the existing software development kit is low in efficiency of troubleshooting, the embodiment of the application provides a method, equipment and a 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 to-be-detected software development kit on at least one terminal device, wherein the target state parameters comprise state parameters of the at least one to-be-detected software development kit in a target operation stage, and the target state parameters are sent by the at least one to-be-detected software development kit through calling a target interface of a configuration software development kit of the at least one terminal device;
detecting the running state of the at least one to-be-detected software development kit in the target running stage according to the target state parameters;
and outputting the operation state detection result of the at least one to-be-detected software development kit in the target operation stage.
According to the method provided by the embodiment of the application, the software development kit to be detected on the terminal equipment sends the state parameters of the software development kit to be detected in the target operation stage by calling 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 software development kit to be detected on at least one terminal equipment. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit 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 in the to-be-detected software development kit, and the 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: carrying out validity and/or accuracy verification on the 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 to-be-detected software development kit on the at least one terminal device respectively according to the verification result of the configuration parameters.
The configuration parameter abnormity directly causes the configuration parameter writing stage abnormity of the software development kit to be detected, so that the configuration parameter written in the software development kit to be detected is obtained and verified, and whether the configuration parameter writing stage of the software development kit to be detected is abnormal can be effectively checked.
Optionally, the target operation phase may include a starting phase of the to-be-detected software development kit, and the target state parameter includes at least one of the following: the implementation manner of indicating the start information of the to-be-detected software development kit, indicating whether the to-be-detected software development kit is successfully started, and reporting error information of the start stage of the to-be-detected software development kit, and detecting the running state of the to-be-detected software development kit in the target running stage according to the target state parameters may include:
detecting the used amount of at least one software development kit according to the target state parameters sent by at least one to-be-detected software development kit on the at least one terminal device; and/or detecting the starting success rate and/or the starting error rate of at least one software development kit to be detected according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
If the software development kit to be detected is abnormal, the user does not use the software development kit to be detected subsequently, so that the usage amount of the software development kit to be detected can reflect the abnormality of the software development kit to be detected.
Optionally, the target operation phase includes a designated action execution phase, and the target state parameters include: the implementation manner of detecting the running state of the to-be-detected software development kit in the target running phase according to the target state parameter, which is based on the execution result of the specified action and/or the data generated in the execution process of the specified action, may include: and detecting the execution state of the at least one software development kit for executing the specified action on the at least one terminal device according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
The state detection of the specified action can be realized by predefining the execution action in the software development kit to be detected and acquiring the state parameter of the specified action.
On the basis of any of the above method embodiments, optionally, the obtaining of the target state parameter sent by the at least one to-be-detected software development kit on the at least one terminal device includes:
acquiring target state parameters sent by at least one to-be-detected software development kit on at least one terminal device meeting a predetermined screening condition, wherein the predetermined screening condition comprises at least one of the following parameters: and when the uploading time of the target state parameters is within a preset time range, the operating system of the terminal equipment is a designated operating system, and the version of the application program where the to-be-detected software development kit is located is a designated version.
In a second aspect, an embodiment of the present application provides an electronic device, including:
the target state parameter acquisition module is used for acquiring target state parameters sent by at least one to-be-detected software development kit on at least one terminal device, wherein the target state parameters comprise state parameters of the at least one to-be-detected software development kit in a target operation stage, and the target state parameters are sent by the at least one to-be-detected software development kit through a target interface for calling a 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 to-be-detected software development kit in the target running stage according to the target state parameters;
and the detection result output module is used for outputting the operation state detection result of the at least one to-be-detected software development kit in the target operation stage.
The electronic device provided by the embodiment of the application acquires the state parameters of the software development kit to be detected in the target operation stage, which are sent by calling the target interface of the configuration software development kit by the software development kit to be detected on the terminal device, and detects the state of the software development kit to be detected in the target operation stage according to the state parameters sent by the software development kit to be detected on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
Optionally, the target operation phase may include a configuration parameter writing phase of the to-be-detected software development kit, the target state parameter may include a configuration parameter written in the to-be-detected software development kit, and the state detection module is configured to: carrying out validity and/or accuracy verification on the 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 to-be-detected software development kit on the at least one terminal device respectively according to the verification result of the configuration parameters.
The configuration parameter abnormity directly causes the configuration parameter writing stage abnormity of the software development kit to be detected, so that the configuration parameter written in the software development kit to be detected is obtained and verified, and whether the configuration parameter writing stage of the software development kit to be detected is abnormal can be effectively checked.
Optionally, the target operation phase may include a starting phase of the to-be-detected software development kit, and the target state parameter includes at least one of the following: the state detection module may be configured to indicate information of starting the software development kit to be detected, indicate information of whether the software development kit to be detected is started successfully, and report error information of a starting stage of the software development kit to be detected, and be used to: detecting the used amount of at least one to-be-detected software development kit according to the target state parameters sent by the at least one to-be-detected software development kit on the at least one terminal device; and/or detecting the starting success rate and/or the starting error rate of at least one software development kit to be detected according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
If the software development kit to be detected is abnormal, the user does not use the software development kit to be detected subsequently, so that the usage amount of the software development kit to be detected can reflect the abnormality of the software development kit to be detected.
Optionally, the target operation phase includes a designated action execution phase, and the target state parameters include: specifying the result of the execution of the action and/or specifying data generated during the execution of the action, the state detection module may be configured to: and detecting the execution state of the at least one software development kit for executing the specified action on the at least one terminal device according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
The state detection of the specified action can be realized by predefining the execution action in the software development kit to be detected and acquiring the state parameter of the specified action.
On the basis of any of the above embodiments of the electronic device, optionally, the target state parameter obtaining module is configured to: acquiring target state parameters sent by at least one to-be-detected software development kit on at least one terminal device meeting a predetermined screening condition, wherein the predetermined screening condition comprises at least one of the following parameters: and when the uploading time of the target state parameters is within a preset time range, the operating system of the terminal equipment is a designated operating system, and the version of the application program where the to-be-detected software development kit is located is a designated 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 of the method embodiments of the first aspect;
the processor is configured to execute programs 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 kit in the target operation stage, which are sent by the to-be-detected software development kit on the terminal device through calling the configuration software development kit, and the network device detects the state of the to-be-detected software development kit in the target operation stage according to the state parameters sent by the to-be-detected software development kit on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, which stores a program for implementing any of the method embodiments of the first aspect.
The program stored in the computer-readable storage medium provided in the embodiment of the present application obtains the state parameters of the software development kit to be detected in the target operation phase, which are sent by the software development kit to be detected on the terminal device through calling the configuration software development kit, and the network device detects the state of the software development kit to be detected in the target operation phase according to the state parameters sent by the software development kit to be detected on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit 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 to-be-detected software installation package in the target operation stage to network equipment through the target interface, so that the network equipment can detect the operation state of the to-be-detected software development package in the target operation stage by using the state parameters.
According to the method provided by the embodiment of the application, the to-be-detected software development kit calls the target interface to send the state parameters of the to-be-detected software development kit in the target operation stage to the network equipment, so that the network equipment can detect the state of the to-be-detected software development kit 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 inspection of the abnormality of the software development kit to be detected.
Optionally, the target running phase includes a designated action execution phase, and the target interface is called in the target running phase of the to-be-detected software development kit, where the implementation manner of the target running phase may include: and acquiring the specified execution action identification information, and calling a target interface at the execution action execution stage indicated by the execution action identification information.
In a sixth aspect, an embodiment of the present application provides an electronic device, including:
the interface calling module is used for calling a preset target interface of the configuration 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 to-be-detected software installation package in the target operation stage to network equipment through the target interface so that the network equipment can detect the operation state of the to-be-detected software development package in the target operation stage by using the state parameters.
According to the electronic device provided by the embodiment of the application, the to-be-detected software development kit calls the target interface to send the state parameters of the to-be-detected software development kit in the target operation stage to the network device, so that the network device can detect the state of the to-be-detected software development kit 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 inspection of the abnormality of the software development kit 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 any of the method embodiments of the fifth aspect;
the processor is configured to execute programs stored in the memory.
According to the electronic device provided by the embodiment of the application, the to-be-detected software development kit calls the target interface to send the state parameters of the to-be-detected software development kit in the target operation stage to the network device, so that the network device can detect the state of the to-be-detected software development kit 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 inspection of the abnormality of the software development kit 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.
In the program stored in the computer-readable storage medium provided in the embodiment of the present application, the to-be-detected software development kit calls the target interface to send the state parameter of the to-be-detected software development kit in the target operation phase to the network device, so that the network device detects the state of the to-be-detected software development kit in the target operation phase by using the state parameter. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
As shown in fig. 1, an embodiment of the present application provides a software development kit state detection method, which may be implemented on a network device (e.g., a server), and the method includes the following operations:
step 101, obtaining target state parameters sent by at least one to-be-detected software development kit on at least one terminal device, wherein the target state parameters are state parameters of the at least one to-be-detected software development kit in a target operation stage, and the target state parameters are sent by the at least one to-be-detected software development kit calling a target interface of a configuration software development kit.
The terminal device may be a mobile terminal, such as a smart phone, a smart speaker, a vehicle-mounted computer, a wearable smart device, or a terminal device such as a personal computer or a tablet computer.
The state parameters are parameters reflecting whether the software development kit to be detected is abnormal in the target operation stage, the specific content of the state parameters is not limited in the embodiment of the application, 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 to-be-detected software development kit 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 the target operation stage.
And 103, outputting the operation state detection result of the to-be-detected software development kit in the target operation stage.
The present application does not limit the output mode 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 display interface of a designated application program of the target terminal device.
The network device implementing the method may be referred to as a cloud configuration platform, and the cloud configuration platform provides a detection item configuration interface, through which an administrator of a detected software development kit can configure some items to be detected in a targeted manner according to characteristics and requirements of the software development kit, including start-up phase detection (such as start-up time of the software development kit), configuration parameter write-in phase detection (such as parameters necessary for registering the software development kit), and a specified action (action) execution phase (such as a critical path code that 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, the required configuration and the user-defined software development kit detection result are automatically uploaded through the target interface. The results can be seen in real time on the cloud configuration platform, and the access and online conditions of the software development kit can be mastered at any time. And the reported error result can be timely notified to related responsible persons in the form of an email, so that online accidents are reduced and online early warning is enhanced.
According to the method provided by the embodiment of the application, the to-be-detected software development kit on the terminal equipment sends the state parameters in the target operation stage by calling the target interface of the configuration software development kit, and the network equipment detects the state of the to-be-detected software development kit in the target operation stage according to the state parameters sent by at least one terminal equipment. Therefore, the state of the software development kit is automatically detected, and the processing efficiency is improved compared with the manual detection of the abnormality of the software development kit.
In the embodiment of the application, one or more target operation stages can be configured as required. By way of example and not limitation, one or more of a startup phase, a configuration parameter writing phase, and a specified action execution phase of the software development kit to be detected may be configured as a target execution phase.
If the target operation phase includes a configuration parameter writing phase of the to-be-detected software development kit, the target state parameters may include configuration parameters written in the to-be-detected software development kit. 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: carrying out validity and/or accuracy verification on 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 at least one to-be-detected software development kit on at least one terminal device respectively according to the verification result of the configuration parameters.
In order to perform validity check, configuration parameters reported by a to-be-detected software development kit of a terminal device carry validity check information, the validity check information includes identification information (an application program name and an application program version number) of an application program where the to-be-detected software development kit is located and/or identification information (one or a combination of a terminal device operating system name and a 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 kit, if the comparison result is not completely consistent, the configuration information reported by the terminal device does not belong to the to-be-detected software development kit, the validity check fails, and otherwise, the validity check succeeds.
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 software development kit to be detected, if the comparison result is not completely consistent, it means that the configuration information reported by the terminal device is incorrect, and the accuracy verification fails, otherwise, the accuracy verification succeeds.
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 in a combined mode.
In the embodiment of the application, the configuration success rate of the software development kit to be detected is detected, and detection results in various forms can be obtained. For example, the detection may be performed periodically, the configuration parameters reported by each terminal in the period are detected, the configuration success rate of the to-be-detected software development kit of each terminal device in the period is obtained, and in addition, the configuration success rate obtained in the period is compared with the configuration success rate obtained in the previous period, so that the ring ratio difference between the configuration success rate of the to-be-detected software development kit in the period and the configuration success rate of the to-be-detected software development kit in the previous period is obtained.
The configuration parameter abnormity directly causes the configuration parameter writing stage abnormity of the software development kit to be detected, so that the configuration parameter written in the software development kit to be detected is obtained and verified, and whether the configuration parameter writing stage of the software development kit to be detected is abnormal can be effectively checked.
If the target operation phase includes at least one starting phase of the to-be-detected software development kit, the target state parameter may be information indicating the starting of the to-be-detected software development kit, may also be information indicating whether the to-be-detected software development kit is started successfully, and may also be error reporting information of the starting phase of the to-be-detected software development kit. Correspondingly, according to the specific content of the target state parameter, the target state parameter may have various implementation manners for detecting the operating state of the software development kit to be detected in the target operating phase. For example, if the target state parameter indicates the information indicating the start of the to-be-detected software development kit, that is, the information indicating the start of the to-be-detected software development kit sent by the terminal device is received, it indicates that the to-be-detected software development kit is used, and the used counter is incremented by 1, so that the used amount of the to-be-detected software development kit is detected according to the target state parameter sent by the to-be-detected software development kit on the at least one terminal device. For another example, if the target state parameter indicates whether the software development kit to be detected is successfully started, the start success rate and/or the start error rate of at least one software development kit to be detected are detected according to the target state parameter reported by at least one software development kit to be detected on at least one terminal device. For another example, if the target state parameter includes error reporting information of the software development kit to be detected in the starting stage, the starting success rate and/or the starting error rate of at least one software development kit to be detected are counted according to the target state parameter reported by at least one software development kit to be detected on at least one terminal device.
If the software development kit to be detected is abnormal, the user does not use the software development kit to be detected subsequently, so that the usage amount of the software development kit to be detected can reflect the abnormality of the software development kit to be detected.
If the target execution phase includes a specified action execution phase, the target state parameters may include the execution result of the specified action, data generated during execution, and the like. Correspondingly, the implementation manner of detecting the operating state of the at least one to-be-detected software development kit in the target operating phase according to the target state parameters may include: and detecting the execution state of the software development kit to be detected for executing the specified action on at least one terminal device according to the target state parameter sent by at least one software development kit to be detected on at least one terminal device.
The state detection of the specified action can be realized by predefining the execution action in the software development kit to be detected and acquiring the state parameter of the specified action.
According to the method provided by the embodiment of the application, the detection result of the running state of the to-be-detected software development kit is checked through the network equipment, and the running state detection of the to-be-detected software development kit can be configured. Correspondingly, the network device receives detection configuration information, the detection configuration information comprises information of a configuration target operation stage, information of a configuration detection mode and the like, and the received detection configuration information is sent to each terminal device provided with the 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, target state parameters and a detection mode through a human-computer interaction interface of the browser. The user can also configure the target operation stage, the target state parameters and the detection mode through the display interface of the specified application program of the target terminal equipment.
On the basis of any of the above method embodiments, in practical applications, the target state parameters corresponding to the terminal devices that meet the screening conditions may be screened from at least one terminal device according to the pre-configured screening conditions to perform the above detection. Wherein, the screening condition can include but not limited to at least one of the following: reporting time of the parameters, an 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 the target operation stage of the software development kit to be detected, calling a preset target interface of the management software development kit.
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 to-be-detected software development kit in the target operation stage to the network device through the target interface, so that the network device detects the operation state of the to-be-detected software development kit 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 program where the to-be-detected software development kit is located, or a server of a provider of the to-be-detected software development kit.
The method provided by the embodiment of the application sends the state parameters of the software development kit to be detected in the target operation stage to the network device through the target interface of the configuration software development kit, so that the network device 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, the target operational phase may be varied. If the target operation phase includes a designated action execution phase, correspondingly, in the target operation phase of the to-be-detected software development kit, the to-be-detected software development kit calls a target interface, and the implementation manner may include: and acquiring the specified execution action identification information, and calling a target interface at the execution action execution stage indicated by the execution action identification information.
The method provided by the embodiment of the present application will be described below from the perspective of implementing the network device and the terminal device cooperatively with a specific application scenario.
In the application scenario, a pushSDK (push SDK) is accessed in the application program A and is used for displaying the push information and the 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, then a detector logs in a server to perform the following configuration:
and configuring a target operation phase needing to be detected, configuring a starting phase and a configuration parameter writing phase of the pushed software development kit as the target operation phase in the scene, configuring an execution process of an execution action of opening a page corresponding to a trigger control as the target operation phase, and detecting the execution action.
The server notifies each terminal device installed with the application a of the target operation phase.
And when the application program A on the terminal equipment calls the display interface A', triggering the starting stage of pushing the software development kit. That is, the call display interface a' is a start timing of the pushed software development kit, at which the pushed software development kit calls a start timing detection interface in the configuration software development kit, and the execution results of each start step in the start phase of the pushed software development kit are reported to the server through the start timing detection interface.
Next, in a configuration parameter writing phase of the pushed software development kit, the pushed software development kit calls a configuration parameter detection interface packaged in the configuration software development kit, and the configuration parameters of the pushed software development kit are uploaded to the server through the configuration parameter detection interface.
When a user clicks a trigger control of the pushing software development kit, the pushing software development kit calls a specified action detection interface of the configuration software development kit, and an execution result of the specified action is reported to the server through the specified action detection interface.
And the push software development kit sends the state parameters, and simultaneously sends the operating system name of the terminal equipment, the version number of the application program A and the version number of the push software development kit 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 detection person needs to check the running state of the pushed software development kit, the first running state detection page of the server shown in fig. 3 is accessed, and the time range to be detected, the target terminal operating system, the target application program version number and the running stage to be checked are selected on the page. After acquiring the time range, the target terminal operating system and the target application program version number, the server screens the running stage state parameters to be checked, of which 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, from the stored state parameters; 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 starting stage of the pushed software development kit, the server screens the state parameters of the starting stage meeting the conditions, specifically the execution result of each step of the starting stage, and compares the reported execution result with the standard execution result, so as to judge whether the reported execution result is correct, if the execution result is correct, the step is correctly executed, otherwise, the step is incorrectly executed. By comparing the execution results reported by each terminal device within the specified time range, the accuracy of each starting step can be determined, and further, the accuracy ring 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, the number of mobile terminals accessing the pushing software development kit can be calculated, and the Daily Activity Unit (DAU) coverage rate of the pushing 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 accessing the pushed software development kit, the DAU coverage rate of the pushed software development kit and the ring ratio data of the pushed software development kit in the previous period, the correct rate of the starting stage and the ring ratio data of the pushed software development kit in the previous period, and a correct rate detail button control is also displayed. The user clicks the accuracy detail button control, the server responds to the click event, and calls a third running state detection page shown in fig. 5 to display the accuracy and the abnormal reason of each step in the starting stage of the pushing software development kit.
Assuming that the detection personnel needs to check the state of the specified execution action of the pushed software development kit, the server screens the state parameters of the specified execution action meeting the above conditions, specifically, the execution result of the specified execution action, and analyzes the reported execution result to determine the state of the execution action, in this embodiment, the state of the execution action is divided into: not valid, in valid, valid. The server calls the fourth running 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, in addition to displaying the detection result through the above-mentioned page, the early warning and warning 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, an 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 to-be-detected software development kit on at least one terminal device, where the target state parameter includes a state parameter of the at least one to-be-detected software development kit in a target operation stage, and the target state parameter is sent by the at least one to-be-detected software development kit through a target interface that calls a configuration software development kit of the at least one terminal device;
a state detection module 702, configured to detect, according to the target state parameter, an operation state of the at least one to-be-detected software development kit in the target operation stage;
a detection result output module 703, configured to output a detection result of the running state of the at least one to-be-detected software development kit in the target running stage.
The electronic device provided by the embodiment of the application acquires the state parameters of the software development kit to be detected in the target operation stage, which are sent by calling the target interface of the configuration software development kit by the software development kit to be detected on the terminal device, and detects the state of the software development kit to be detected in the target operation stage according to the state parameters sent by the software development kit to be detected on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
Optionally, the target operation phase may include a configuration parameter writing phase of the to-be-detected software development kit, the target state parameter may include a configuration parameter written in the to-be-detected software development kit, and the state detection module is configured to: carrying out validity and/or accuracy verification on the 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 to-be-detected software development kit on the at least one terminal device respectively according to the verification result of the configuration parameters.
The configuration parameter abnormity directly causes the configuration parameter writing stage abnormity of the software development kit to be detected, so that the configuration parameter written in the software development kit to be detected is obtained and verified, and whether the configuration parameter writing stage of the software development kit to be detected is abnormal can be effectively checked.
Optionally, the target operation phase may include a starting phase of the to-be-detected software development kit, and the target state parameter includes at least one of the following: the state detection module may be configured to indicate information of starting the software development kit to be detected, indicate information of whether the software development kit to be detected is started successfully, and report error information of a starting stage of the software development kit to be detected, and be used to: detecting the used amount of at least one to-be-detected software development kit according to the target state parameters sent by the at least one to-be-detected software development kit on the at least one terminal device; and/or detecting the starting success rate and/or the starting error rate of at least one software development kit to be detected according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
If the software development kit to be detected is abnormal, the user does not use the software development kit to be detected subsequently, so that the usage amount of the software development kit to be detected can reflect the abnormality of the software development kit to be detected.
Optionally, the target operation phase includes a designated action execution phase, and the target state parameters include: specifying the result of the execution of the action and/or specifying data generated during the execution of the action, the state detection module may be configured to: and detecting the execution state of the at least one software development kit for executing the specified action on the at least one terminal device according to the target state parameters sent by the at least one software development kit to be detected on the at least one terminal device.
The state detection of the specified action can be realized by predefining the execution action in the software development kit to be detected and acquiring the state parameter of the specified action.
On the basis of any of the above embodiments of the electronic device, optionally, the target state parameter obtaining module is configured to: acquiring target state parameters sent by at least one to-be-detected software development kit on at least one terminal device meeting a predetermined screening condition, wherein the predetermined screening condition comprises at least one of the following parameters: and when the uploading time of the target state parameters is within a preset time range, the operating system of the terminal equipment is a designated operating system, and the version of the application program where the to-be-detected software development kit is located is a designated 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, the electronic device includes:
the interface calling module 801 is used for calling a preset target interface of the configuration software development kit in a target operation stage of the software development kit;
a state parameter sending module 802, configured to send, through the target interface, the state parameter of the to-be-detected software installation package in the target operation phase to a network device, so that the network device detects, by using the state parameter, the operation state of the to-be-detected software development package in the target operation phase.
According to the electronic device provided by the embodiment of the application, the to-be-detected software development kit calls the target interface to send the state parameters of the to-be-detected software development kit in the target operation stage to the network device, so that the network device can detect the state of the to-be-detected software development kit 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 inspection of the abnormality of the software development kit to be detected.
It can 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, and is not described herein again.
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 above method embodiments;
the processor is configured to execute programs stored in the memory.
The electronic device provided by the embodiment of the application acquires the state parameters of the software development kit to be detected in the target operation stage, which are sent by calling the target interface of the configuration software development kit by the software development kit to be detected on the terminal device, and detects the state of the software development kit to be detected in the target operation stage according to the state parameters sent by the software development kit to be detected on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
Based on the same inventive concept as the method shown in fig. 1, the present application provides a computer-readable storage medium storing a program for implementing any of the method embodiments described above.
The program stored in the computer-readable storage medium provided in the embodiment of the present application obtains the state parameter of the software development kit to be detected in the target operation phase, which is sent by calling the target interface of the configuration software development kit by the software development kit to be detected on the terminal device, and detects the state of the software development kit to be detected in the target operation phase according to the state parameter sent by the software development kit to be detected on at least one terminal device. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit 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, which includes a processor and a memory;
the memory is used for storing a program for executing any of the above method embodiments;
the processor is configured to execute programs stored in the memory.
According to the electronic device provided by the embodiment of the application, the to-be-detected software development kit calls the target interface to send the state parameters of the to-be-detected software development kit in the target operation stage to the network device, so that the network device can detect the state of the to-be-detected software development kit 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 inspection of the abnormality of the software development kit to be detected.
Based on the same inventive concept as the method shown in fig. 2, the present application provides a computer-readable storage medium storing a program for implementing any of the method embodiments described above.
In the program stored in the computer-readable storage medium provided in the embodiment of the present application, the to-be-detected software development kit calls the target interface to send the state parameter of the to-be-detected software development kit in the target operation phase to the network device, so that the network device detects the state of the to-be-detected software development kit in the target operation phase by using the state parameter. Therefore, the state of the software development kit to be detected is automatically detected, and the processing efficiency is improved compared with the manual inspection of the abnormality of the software development kit to be detected.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.