Method, device and equipment for obtaining jump protocol of application program

By using a registration tool to automatically collect and manage redirect protocols during application development, the problem of low search efficiency was solved, enabling rapid acquisition and improving development efficiency.

CN119781887BActive Publication Date: 2025-10-21BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411897906.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-10-21
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In application development, finding and obtaining redirect protocols is inefficient and affects development efficiency, especially when multiple iterations are required and a large number of redirect protocols are used.

Method used

By inserting a registration tool during the R&D process, redirection protocols are automatically collected and written to a registration list. Users can quickly obtain the required redirection protocols by querying this list and generate the target redirection protocol.

Benefits of technology

It enables quick and convenient acquisition of jump protocols, improving application development efficiency and the maintainability and reliability of jump protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781887B_ABST
    Figure CN119781887B_ABST
Patent Text Reader

Abstract

The present disclosure provides an obtaining method, device and equipment of a jump protocol of an application, relates to the technical field of computers, and in particular to the field of intelligent search and jump protocol management. The specific implementation scheme is as follows: when a user needs to obtain a jump protocol, the user can query in a registration list to obtain jump information of the required jump protocol. The jump information can include a method name of a jump method, parameters of the jump method, parameter information and the like. Based on the method name, the parameters and the parameter information, a jump protocol can be generated. The jump protocol can realize the jump of a function from a current application to another application. The jump protocol is displayed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to intelligent search and jump protocol management in computer technology, and in particular to a method, apparatus, and device for acquiring a jump protocol of an application. Background Art

[0002] During application operation and maintenance, there are often scenarios where you need to jump to other applications or web pages to participate in activities. During the development of these operation and maintenance scenarios, it is often necessary to obtain the jump protocol that has been developed to jump to other applications or web pages to achieve reuse of this network protocol.

[0003] Therefore, there is an urgent need for a solution that can quickly and conveniently obtain the jump protocol and realize the reuse of the jump protocol. Summary of the Invention

[0004] The present disclosure provides a method, apparatus, and device for acquiring a jump protocol for an application.

[0005] According to a first aspect of the present disclosure, a method for obtaining a jump protocol of an application is provided, comprising:

[0006] In response to a jump protocol acquisition request, matching jump information of a registered jump protocol from a registration list; wherein the jump protocol acquisition request is used to instruct acquisition of jump information of a registered jump protocol corresponding to a jump request; the jump protocol is used to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump request indicates an application function of the application to which the jump is to be directed;

[0007] According to the jump requirement, the jump information of the registered jump protocol is updated, and a target jump protocol is generated according to the updated jump information.

[0008] According to a second aspect of the present disclosure, a device for obtaining a jump protocol of an application is provided, comprising:

[0009] an acquisition unit, configured to match jump information of a registered jump protocol from a registration list in response to a jump protocol acquisition request; wherein the jump protocol acquisition request is used to instruct acquisition of jump information of a registered jump protocol corresponding to a jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump requirement indicates an application function of the application to which the jump is to be directed;

[0010] The determining unit is configured to update the jump information of the registered jump protocol according to the jump requirement, and generate a target jump protocol according to the updated jump information.

[0011] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0012] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described in the first aspect.

[0013] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0014] According to a fifth aspect of the present disclosure, a computer program product is provided, comprising: a computer program, wherein the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the electronic device executes the method described in the first aspect.

[0015] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.

[0017] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure;

[0018] Figure 2 is a schematic diagram according to a second embodiment of the present disclosure;

[0019] Figure 3 is a schematic diagram according to a third embodiment of the present disclosure;

[0020] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure;

[0021] Figure 5 is a schematic diagram according to a fifth embodiment of the present disclosure;

[0022] Figure 6 is a schematic diagram according to a sixth embodiment of the present disclosure;

[0023] Figure 7 is a schematic diagram according to a seventh embodiment of the present disclosure;

[0024] Figure 8is a schematic block diagram of an electronic device for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION

[0025] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding. These details should be considered as merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0026] During application development, there are many business scenarios where applications call functions from other applications. For example, a current application may have multiple activity pages. Users can click links to access these activity pages and participate in the activities. In this case, the application function of the application being disconnected may be an HTML5 page. Another example is a scenario where the current application is linked to another application. Users can click links within the current application to access the activity page or function page of the other application. In this case, the application function of the application being disconnected may be a page of the other application. These implementations of calling the application functions of other applications from the current application are typically achieved by adding a redirect protocol to the current application. This redirect protocol indicates a redirect from the current application's application function to the application function of the other application. Currently, a redirect protocol typically consists of three parts: a protocol header, a method name, and parameters. For example, the redirect protocol might be XXXXXX: / / X / XXXX.AAA?CC=DDDD. XXXXXX: / / is the protocol header, AAA is the method, CC is the parameter name, and DDDD is the parameter value.

[0027] During application development, developers need to find the jump protocol when modifying or reviewing the code for the jump protocol. However, due to the rapid iteration of applications, it is often difficult to find the jump protocol. Often, developers even need to search through historical versions of the application's code. This jump protocol search process is inefficient. This is especially true when a large number of jump protocols are required in an application, as the search efficiency can be severely impacted. Consequently, a solution is urgently needed to quickly and conveniently retrieve an application's jump protocol.

[0028] To address the above issues, the present disclosure provides a method for obtaining a jump protocol for an application. By inserting a registration widget during the R&D and testing process, the method automatically collects jump protocols and writes them into a registration list. Based on the registration list, when a user needs to use a jump protocol, they can query the registration list to obtain the required jump protocol and generate a jump unit. Based on this protocol, the execution unit can complete the corresponding jump. This process enables quick and convenient acquisition of jump protocols and improves application development efficiency.

[0029] The present disclosure provides a method, apparatus, and device for obtaining a jump protocol of an application, which are applied to intelligent search and jump protocol management in the field of computer technology to achieve the effect of quickly and conveniently obtaining the jump protocol of an application.

[0030] It should be noted that the data in this embodiment is not data for a specific user and cannot reflect the personal information of a specific user. It should be noted that the data in this embodiment comes from a public data set.

[0031] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0032] In order to enable readers to have a deeper understanding of the implementation principle of this disclosure, the following Figure 2-Figure 5 right Figure 1 The illustrated embodiment is further refined.

[0033] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure, as shown in Figure 1 As shown, the present disclosure provides a method for obtaining a jump protocol of an application, the method comprising:

[0034] 101. In response to a jump protocol acquisition request, matching jump information of a registered jump protocol from a registration list; wherein the jump protocol acquisition request is used to indicate acquisition of jump information of a registered jump protocol corresponding to a jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; the jump requirement indicates the application function of the application to which the jump is to be directed.

[0035] In this embodiment, when a user needs to use a jump protocol, they can determine a jump requirement. The jump requirement indicates the application function of the application program to which the jump is currently directed. A jump protocol acquisition request can be generated based on the jump requirement. In response to the jump protocol acquisition request, the jump information of each registered jump protocol can be obtained from a preset registration list. Furthermore, the key information of the jump requirement included in the jump protocol acquisition request is matched with the jump information of each registered jump protocol to obtain the jump information of the registered jump protocol that matches the jump protocol acquisition request.

[0036] Optionally, the registration list may include at least one registered jump protocol. When a jump protocol is written to the registration list, it is considered to be registered and becomes a registered jump protocol. Otherwise, if the jump protocol is not in the registration list, it is not registered. Optionally, the registration list may be stored on a cloud server. Alternatively, the registration list may be stored on the test client. Optionally, the test client may be a local server.

[0037] Optionally, the jump protocol acquisition request includes key information of the jump requirement. Optionally, the key information can be one or more of the method name of the jump method, the description information of the jump method, the parameter name of the parameter included in the jump method, and the parameter information of the parameter included in the jump method. Optionally, the registered jump protocol obtained by matching the jump protocol acquisition request is usually one. Optionally, when there are multiple registered jump protocols obtained by matching the jump protocol acquisition request, the present disclosure may further include an interactive interface. Through the interactive interface, the multiple registered jump protocols can be displayed to the user, so that the user can finally select one of them based on the multiple registered jump protocols.

[0038] Optionally, the registration protocol may store the jump information of the jump protocol. Optionally, the jump information includes one or more of the following: the name of the jump method, the description of the jump method, the parameter name of the parameter included in the jump method, and the parameter information of the parameter included in the jump method.

[0039] The jump method is a method for implementing a jump protocol and indicates the application function of the application to be jumped to.

[0040] The redirect method description includes the method's purpose. This purpose indicates the application function of the application being redirected. Furthermore, the method description may include input and output information. Input information may include information such as the names, order, and data types of the required input parameters. Output information may include information such as the names, order, and data types of the output parameters.

[0041] Parameter information includes parameter values, including parameter data types, input data range, and other information.

[0042] Optionally, the jump information may also include application information. The application information indicates the application required to use the protocol. Optionally, the jump information may also include one or more jump screenshots. The jump screenshots indicate the jumps that can be achieved by the jump protocol.

[0043] Optionally, the jump information may further include a protocol format of the jump protocol. Optionally, the protocol format may include a protocol header and its content that needs to be fixedly input.

[0044] 102. Update the jump information of the registered jump protocol according to the jump requirement, and generate the target jump protocol according to the updated jump information.

[0045] In this embodiment, after obtaining the jump information of the registered jump protocol, the parameters included in the jump information can be determined. Furthermore, according to the jump requirement, the update information of each parameter can be obtained. The update information of the parameters in the jump information can be used to further update the registered jump protocol to generate the target jump protocol. Optionally, the target jump protocol can be in text format. When the target jump protocol is in text format, the target jump protocol can facilitate the user to write the target jump protocol into the application. Optionally, a QR code image of the target jump protocol can also be generated based on the target jump protocol in text format. When the QR code image of the target jump protocol is scanned, the jump test of the target jump protocol can be completed, thereby realizing the test before the jump protocol is written into the application and improving the test efficiency of the jump protocol.

[0046] In this embodiment, a jump protocol acquisition request is initiated based on a jump requirement to achieve matching of a registered jump protocol and acquisition of jump information for the registered jump protocol. Based on the jump requirement, the jump information can be further updated and a target jump protocol generated, thereby enabling rapid application of the jump protocol, improving the rapid use of the jump protocol during application development, increasing jump protocol query efficiency, improving application development efficiency, and improving the maintainability and reliability of the jump protocol.

[0047] Figure 2 is a schematic diagram according to the second embodiment of the present disclosure, as shown in Figure 2 As shown, the present disclosure provides a method for obtaining a jump protocol of an application. When the jump information includes the protocol format of the registered jump protocol and parameter information of the parameters, the specific process of generating the target jump protocol may include:

[0048] 201. Generate a required parameter value for each parameter according to the jump requirement and parameter information of each parameter in the jump information.

[0049] In this embodiment, the jump information may include parameter information of the parameters of the jump method of the jump protocol. The parameter information may specifically be the value of the parameter. The value may include information such as the parameter value range, the value selection method, and the data format of the parameter value. Based on the jump requirement, the parameter information of the parameter may be matched to generate a required parameter value for the parameter. The required parameter value may point to the application function of the application to which the user wants to jump. Optionally, when an interactive interface is included, the required parameter value of at least one parameter input by the user may also be obtained through the interactive interface.

[0050] 202. Generate a target jump protocol according to the protocol format of the registered jump protocol and the required parameter values ​​of the parameters.

[0051] In this embodiment, the jump information may also include the protocol format of the registered jump protocol. The protocol format may include the writing locations of the protocol header, jump method, parameters, and other contents, as well as the connecting characters between these contents. Since the registered jump method has been determined, the writing location of the protocol header, the writing location of the jump method, and the writing location of each parameter can be obtained according to the protocol format. For example, the protocol format may be XXXXXX: / / X / XXXX.AAA?CC=DDDD. Among them, the protocol header XXXXXX: / / , the jump method AAA, and the parameter CC can all be determined. According to the required parameter value of the parameter obtained in step 201, the writing of the parameter value can be completed, and the target jump protocol can be finally obtained.

[0052] Optionally, the target jump protocol may be generated in the following manner:

[0053] A character string for the target jump protocol is generated based on the protocol format. The protocol format may include the protocol header for the jump protocol. The method name of the jump method may be written into the corresponding location of the jump method in the protocol format. Alternatively, the method name corresponding to the jump method in the protocol format may be confirmed. At the location corresponding to the parameter name in the protocol format, it may be determined whether the parameter name of the parameter written into the jump protocol is consistent with the parameter of the jump method of the registered jump protocol. At the parameter name of the parameter, the location corresponding to the parameter value written may be determined. The desired parameter value may be inserted into this location. Alternatively, the existing information in the location of the parameter value may be replaced with the desired parameter value. Ultimately, the target jump protocol is obtained. By using this protocol format, the jump method and parameter information can be obtained to more accurately and quickly generate the target jump protocol, thereby achieving complete acquisition of the target jump protocol and even testing of the target jump protocol, greatly improving the acquisition and usage efficiency of the target jump protocol.

[0054] In this embodiment, by displaying the jump information of the queried target jump protocol, user interaction is achieved, the efficiency of the user in obtaining the target jump protocol is improved, the acquisition cost of the target jump protocol is reduced, and the user experience is improved.

[0055] exist Figure 1 The first embodiment shown and Figure 2 Based on the second embodiment shown, the registered jump protocol in the registration table can automatically register the jump protocol to be tested in the jump unit when the jump unit containing the jump protocol to be tested is tested. The registration process is the process of writing the jump protocol to the registration table. Specifically, in response to a test instruction, during the process of testing the jump protocol to be tested indicated by the test instruction, the jump protocol to be tested indicated by the test instruction is written into the registration table. The test instruction indicates the jump protocol to be tested.

[0056] Optionally, the test instruction can be triggered after the code writing of the jump unit to be tested is completed. Optionally, the execution stage of the test instruction is the testing stage of the jump unit by the developer or tester. In response to the test instruction, an automatic registration gadget can be started. The automatic registration gadget can be written into the jump unit and the startup of the automatic registration gadget is triggered under a test environment. The jump unit to be tested can include a jump protocol to be tested. While running the jump unit and testing, the test of the jump protocol to be tested is achieved. During the test process of the jump protocol to be tested, the step of writing the jump protocol to be tested into the registration list can be implemented through the automatic registration gadget. By writing the jump protocol to be tested into the registration list, the maintenance efficiency and reliability of the jump protocol to be tested can be improved.

[0057] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure, as shown in Figure 3 As shown, the present disclosure provides a method for obtaining a jump protocol of an application. In the process of writing the jump protocol to be tested indicated by the test instruction into the registration list, it is first possible to determine whether the registration list includes the jump protocol to be tested, and then realize the addition or update of the jump protocol to be tested in the registration list. The specific process may include:

[0058] 301. Determine whether there is no registered jump protocol matching the jump protocol to be tested in the registration list.

[0059] In this embodiment, after obtaining the registration list, the registered jump protocols in the registration list can be matched with the jump protocol to be tested to determine whether the registration list contains the jump protocol to be tested. If the registration list does not contain a registered jump protocol that matches the jump protocol to be tested, step 302 can be executed to write the jump protocol to be tested into the registration list. Otherwise, if the jump protocol to be tested exists in the registration list, the registered jump protocol in the registration list can be updated using the jump protocol to be tested.

[0060] In one example, the process of matching the registered jump protocol in the registration list with the jump protocol to be tested may include:

[0061] 3011. Extract the jump information in the jump protocol to be tested, and match the jump information in the jump protocol to be tested with the jump information of the registered jump protocol in the registration list.

[0062] In this embodiment, the jump protocol to be tested can be obtained from the jump unit to be tested through the automatic registration gadget, and the jump information of the jump protocol to be tested can be obtained according to the test process. Then, the jump information can be matched with the jump information of the registered jump protocol in the registration list.

[0063] In one implementation, the automatically registered gadget can jump to the information input interface during the test process, and interact with the developer or tester through the information input interface to obtain the jump information input by the developer or tester.

[0064] In another implementation, the automatically registered gadget may obtain the jump information based on the jump protocol to be tested and execution information of the jump protocol to be tested during the test process.

[0065] In one implementation, matching the jump protocol to be tested with the jump information of the registered jump protocols in the registration list according to the jump information includes:

[0066] 30111. Generate a first MD5 value based on the method name in the jump method in the jump information of the jump protocol to be tested and the parameter name in the parameter information. Generate a second MD5 value based on the jump method name in the jump information of the registered jump protocol in the registration list and the parameter name in the parameter information.

[0067] In this embodiment, both the jump protocol to be tested and the registered jump protocols in the registration list include jump information. This jump information may include the method name and parameter names of the jump method. Based on the method name and parameter names, a first MD5 value of the jump protocol to be tested and a second MD5 value of the registered jump protocol in the registration list can be obtained using an information digest algorithm such as a hash algorithm.

[0068] 30112. If it is determined that a second MD5 value identical to the first MD5 value exists, determine that the jump information in the jump protocol to be tested matches the jump information of the registered jump protocol in the registration list.

[0069] In this embodiment, the first MD5 value can be compared with the second MD5 value in the registration list to determine whether there is a second MD5 value that is the same as the first MD5 value. If there is a second MD5 value that is the same as the first MD5 value, it is determined that the jump information of the registered jump protocol in the registration list corresponding to the second MD5 value matches the jump information in the jump protocol to be tested.

[0070] 30113. If it is determined that there is no second MD5 value identical to the first MD5 value, it is determined that the jump information in the jump protocol to be tested does not match the jump information of the registered jump protocol in the registration list.

[0071] In this embodiment, if after comparing the first MD5 value with all the second MD5 values ​​in the registration list, it is determined that there is no second MD5 value identical to the first MD5 value, then it is determined that the jump information in the jump protocol to be tested does not match the jump information of the registered jump protocol in the registration list.

[0072] In the above steps 30111 to 30113, by generating an MD5 value based on the jump information, the MD5 value is used to quickly match the jump protocol to be tested with the registered jump protocols in the registration list, thereby improving the matching efficiency of the jump protocol to be tested with the registered jump protocols in the registration list.

[0073] 3012. If it is determined that there is no match, it is determined that there is no registered jump protocol in the registration list that matches the jump protocol to be tested.

[0074] In this embodiment, when it is determined that the jump information in the jump protocol to be tested does not match the jump information of the registered jump protocols in the registration list, it can be determined that there is no registered jump protocol matching the jump protocol to be tested in the registration list.

[0075] 3013. Otherwise, determine whether there is a registered jump protocol in the registration list that matches the jump protocol to be tested.

[0076] In this embodiment, when the jump information of the registered jump protocol in the registration list matches the jump information in the jump protocol to be tested, it can be determined that the registered jump protocol that matches the jump protocol to be tested exists in the registration list. At this time, there is no need to add the jump protocol to be tested to the registration list. At this time, the jump information of the jump protocol to be tested can be updated to the jump information of the registered jump protocol in the registration list that matches the jump protocol to be tested. Optionally, the update process can be to use the jump information of the jump protocol to be tested to replace the jump information of the registered jump protocol in the registration list. And / or, the jump information of the jump protocol to be tested is written into the registration list as the latest information, and the original jump information in the registration list is retained as a historical version.

[0077] By executing the above steps 3011 to 3013, the jump protocol to be tested is matched with the registered jump protocols in the registration list, thereby improving the matching efficiency of the jump protocol to be tested and the registered jump protocols in the registration list.

[0078] 302. Write the jump protocol to be tested into the registration list.

[0079] In this embodiment, when it is determined that the jump protocol to be tested does not match the registered jump protocols in the registration list, the jump protocol to be tested may be written into the registration list. Alternatively, the jump information of the jump protocol to be tested may be written into the registration list. Alternatively, the jump information of the jump protocol to be tested may be written according to the data format in the registration list.

[0080] In one example, the jump protocol to be tested is written into the registration list, including:

[0081] 3021. Run the jump protocol to be tested, jump to the application function of the application indicated by the jump protocol to be tested, and perform screenshot processing to obtain and display an image, wherein the image is the interface of the application function of the application to which the jump is directed.

[0082] In this embodiment, during the test process of the jump protocol to be tested, the operation of the jump protocol to be tested can be completed, and the jump can be made to the application function of the application indicated by the jump protocol to be tested. After jumping to the application function of the application, the automatically registered gadget can take a screenshot of the page of the application function of the application to obtain an image. Thereafter, the automatically registered gadget can jump to the interception page. The image can be displayed on the interception page. Optionally, an input box can also be displayed on the interception page. The tester or R&D personnel can enter the jump information of the jump protocol to be tested through the input box.

[0083] 3022. In response to the user's submission instruction, the jump protocol to be tested is written into the registration list according to the jump information indicated by the submission instruction. The submission instruction includes the jump information of the jump protocol to be tested determined by the user based on the displayed image.

[0084] In this embodiment, the interception page may include a submit button. When the tester or developer clicks the submit button, a submit instruction for the interception page may be triggered. The submit instruction may include the jump information in the input box of the interception page. Furthermore, in response to the submit instruction, the jump information may be written to the registration list. Optionally, the information in the input box may also be obtained by recognizing information in the image.

[0085] Through steps 3021 and 3022 , the jump information of the jump protocol to be tested can be obtained, further ensuring the comprehensiveness of the jump information, thereby improving the maintainability and reliability of the jump protocol to be tested.

[0086] In this embodiment, by matching the jump protocol to be tested with the registration list, when it is determined that the registration list does not contain the jump protocol to be tested, the jump protocol to be tested is written into the registration list, thereby realizing automatic maintenance of the jump protocol to be tested and improving the maintainability and reliability of the jump protocol to be tested.

[0087] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure, as shown in Figure 4 As shown, the present disclosure provides a method for obtaining a jump protocol of an application, comprising:

[0088] 401, Request registration list.

[0089] In this embodiment, when the jump protocol to be tested begins testing, the test end may request the server to obtain a registration list. When the jump protocol to be tested begins testing, identification information may be added based on the jump protocol to be tested. The identification information may be an MD5 value of the jump protocol to be tested. The MD5 value may be generated based on the jump method name and parameter names of the jump protocol to be tested.

[0090] 402. Determine whether the jump protocol to be tested has been registered. If not, write it into the unregistered protocol manager.

[0091] In this embodiment, after obtaining the registration list, the MD5 value of the jump protocol to be tested can be compared with the MD5 values ​​of each registered jump protocol in the registration list to determine whether the jump protocol to be tested has been registered. If the registration list contains the jump protocol to be tested, then the jump protocol to be tested has been registered. Otherwise, if the jump protocol to be tested is not registered, the jump protocol to be tested is written to the unregistered protocol manager. The unregistered manager can be a component in the automatically registered gadget. Specifically, the method name of the jump method of the jump protocol to be tested can be written to the unregistered protocol manager.

[0092] 403. After the jump protocol to be tested is executed, a screenshot is taken and the interception mode is triggered.

[0093] In this embodiment, when the user is performing a test of an unregistered jump protocol to be tested, the automatically registered gadget will call the interceptor of the test tool when it detects that the unregistered protocol manager contains the jump protocol to be tested. The interceptor can be used to record the jump protocol to be tested for this jump, and then execute the jump protocol to be tested, complete the jump, and turn on the interception mode. After the jump is completed and before the interception mode is turned on, the page after the jump can also be screenshoted and stored in the sandbox directory of the application. Thereafter, when the user touches the screen for the first time after the interceptor is turned on, the interceptor will intercept the user's gesture and split the recorded jump protocol to be tested. Thereafter, the interceptor will jump to an interception page.

[0094] 404. Obtain the jump information of the jump protocol to be tested.

[0095] In this embodiment, the interception page may include multiple text boxes. The text box is used to input the jump information of the jump protocol to be tested. Optionally, the text box can be used to input the method name of the jump method of the jump protocol to be tested, the function of the jump method of the jump protocol to be tested, the function of each parameter of the jump method of the jump protocol to be tested, etc. Optionally, the information in the text box can be obtained by automatically identifying the screenshot in step 403, or automatically splitting the jump protocol to be tested. Alternatively, the information in the text box can also be user-entered data. After completing the data filling or confirmation, the user can click the Submit button. Optionally, when the interception page is submitted, the version package of the current application, the developer's local user name, time and other information can also be automatically collected. And submitted together with the above-mentioned protocol information.

[0096] After the submission of the external interception page is completed, the jump protocol to be tested can be removed from the unregistered protocol manager.

[0097] Optionally, the jump information can be uploaded to the server.

[0098] 405. Write the jump information of the jump protocol to be tested into the registration list.

[0099] In this embodiment, the jump information uploaded by the intercepted page can be matched with the jump information of the registered jump protocol already in the registration list. If a registered jump protocol matching the jump information exists in the registration list, the jump information can be used to update the jump information of the registered jump protocol in the registration list. If a registered jump protocol matching the jump information does not exist in the registration list, the jump protocol to be tested can be written into the registration list.

[0100] Optionally, based on the registration list, a user can query a jump protocol through a preset registration list query interface. Optionally, the registration list query interface can include a front-end page. In response to the query request, the registration jump protocol in the registration list that matches the query request can be displayed on the front-end page. The user can quickly obtain the required registration jump protocol through the front-end page.

[0101] Figure 5 is a schematic diagram according to a fifth embodiment of the present disclosure, as shown in Figure 5 As shown, the present disclosure provides a signaling interaction diagram of a method for obtaining a jump protocol of an application. User 1 may be a developer or tester who tests a jump unit. User 2 may be a developer or operation and maintenance personnel who needs to use a target jump protocol.

[0102] During the R&D phase, after the development of the jump unit is complete, User 1 can initiate testing of the jump unit on the test side. The jump unit may include the jump protocol to be tested. The test side can request a registration list from the server and receive the registration list returned by the server. The test side can determine whether the jump protocol to be tested exists in the registration list, thereby determining whether the jump protocol to be tested is registered. If not, the unregistered jump protocol to be tested is written to the manager. This manager is the unregistered protocol manager. User 1 can then perform testing of the jump unit and complete the jump on the test side. After the jump is complete, the test side can activate an interceptor to take a screenshot of the page after the jump and enter the interception page. User 1 can enter the jump information on the interception page. The test side can report the jump information to the server and receive the report result returned by the server. The test side can trigger the interception by the interceptor. User 1 can then continue testing the jump unit.

[0103] During the query phase, User 2 can open a query page on the query client and send a query request to the server to query for registered redirect protocols. The query client then retrieves the query results returned by the server. These results may include at least one registered redirect protocol. The query client then renders a page based on these results and displays them on the page. The user can then view the query results on the query client page and obtain the desired target redirect protocol.

[0104] Figure 6 is a schematic diagram according to a sixth embodiment of the present disclosure, as shown in Figure 6 As shown, the present disclosure provides a device 600 for obtaining a jump protocol of an application, comprising:

[0105] An acquisition unit 601 is configured to match the jump information of a registered jump protocol from a registration list in response to a jump protocol acquisition request; the jump protocol acquisition request is configured to indicate acquisition of the jump information of a registered jump protocol corresponding to a jump requirement; the jump protocol is configured to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump requirement indicates the application function of the application to which the jump is to be directed.

[0106] The determining unit 602 is configured to update the jump information of the registered jump protocol according to the jump requirement, and generate a target jump protocol according to the updated jump information.

[0107] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0108] Figure 7 is a schematic diagram according to the seventh embodiment of the present disclosure, as shown in Figure 7 As shown, the present disclosure provides a device 700 for obtaining a jump protocol of an application, comprising:

[0109] An acquisition unit 710 is configured to match the jump information of a registered jump protocol from a registration list in response to a jump protocol acquisition request; the jump protocol acquisition request is configured to indicate acquisition of the jump information of a registered jump protocol corresponding to a jump requirement; the jump protocol is configured to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump requirement indicates the application function of the application to which the jump is to be directed.

[0110] The determining unit 720 is configured to update the jump information of the registered jump protocol according to the jump requirement, and generate a target jump protocol according to the updated jump information.

[0111] Optionally, the jump information includes one or more of the following: the method name of the jump method, the description information of the jump method, the parameter name of the parameters included in the jump method, the parameter information of the parameters included in the jump method, and the protocol format of the registered jump protocol; wherein, the jump method indicates the application function of the application to be jumped to; the description information of the jump method includes the function of the jump method; and the parameter information includes the value of the parameter.

[0112] The jump protocol acquisition request includes one or more of the following: a method name of the jump method, description information of the jump method, parameter names of parameters included in the jump method, and parameter information of parameters included in the jump method.

[0113] Optionally, when the jump information includes the protocol format of the registration jump protocol and parameter information of the parameter, the determining unit 720 includes:

[0114] The display module 721 is configured to generate a required parameter value for each parameter according to the jump requirement and the parameter information of each parameter in the jump information.

[0115] The determination module 722 is configured to generate the target jump protocol according to the protocol format of the registered jump protocol and the required parameter value of the parameter.

[0116] Optionally, the determination module 722 includes:

[0117] The determination submodule 7221 is configured to determine the position of the parameter value of the parameter in the jump protocol according to the protocol format; and replace the parameter value in the jump protocol with the required parameter value of the parameter to obtain the target jump protocol.

[0118] Optionally, the determining unit 720 is further configured to:

[0119] According to the target jump protocol, a QR code image of the target jump protocol is generated and displayed.

[0120] Optionally, the device 700 for obtaining the jump protocol of the application further includes:

[0121] The registration unit 730 is configured to write the jump protocol to be tested indicated by the test instruction into the registration list in response to the test instruction during the process of testing the jump protocol to be tested indicated by the test instruction.

[0122] Optionally, the registration unit 730 includes:

[0123] The registration module 731 is configured to write the jump protocol to be tested into the registration list if it is determined that there is no jump protocol matching the jump protocol to be tested in the registration list.

[0124] Optionally, the registration module 731 includes:

[0125] The extraction submodule 7311 is configured to extract the jump information in the jump protocol to be tested, and match the jump information in the jump protocol to be tested with the jump information of the registered jump protocol in the registration list.

[0126] The matching submodule 7312 is configured to determine if no match is found, then determine if there is no registered jump protocol matching the jump protocol to be tested in the registration list, or otherwise determine if there is a registered jump protocol matching the jump protocol to be tested in the registration list.

[0127] Optionally, the extraction submodule 7311 is further configured to:

[0128] Generate a first MD5 value based on the method name in the jump method in the jump information and the parameter name in the parameter information.Generate a second MD5 value based on the name of the jump method in the jump information of the registered jump protocol in the registration list and the parameter name in the parameter information.

[0129] If it is determined that there is a second MD5 value that is the same as the first MD5 value, it is determined that the jump information in the jump protocol to be tested matches the jump information of the registered jump protocol in the registration list.

[0130] If it is determined that there is no second MD5 value identical to the first MD5 value, it is determined that the jump information in the jump protocol to be tested does not match the jump information of the registered jump protocol in the registration list.

[0131] Optionally, the registration module 731 includes:

[0132] The jump submodule 7313 is used to run the jump protocol to be tested, jump to the application function of the application indicated by the jump protocol to be tested, and perform screenshot processing to obtain and display an image, wherein the image is the interface of the application function of the application to which the jump is directed.

[0133] The writing submodule 7314 is used to respond to the user's submission instruction and write the jump protocol to be tested into the registration list according to the jump information indicated by the submission instruction. The submission instruction includes the jump information of the jump protocol to be tested determined by the user based on the displayed image.

[0134] The device of this embodiment can execute the technical solution in the above method. Its specific implementation process and technical principles are the same and will not be repeated here.

[0135] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0136] According to an embodiment of the present disclosure, the present disclosure also provides a computer program product, which includes: a computer program, the computer program is stored in a readable storage medium, at least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the solution provided by any of the above embodiments.

[0137] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are provided as examples only and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0138] like Figure 8 As shown, the device 800 includes a computing unit 801, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 802 or a computer program loaded from a storage unit 808 into a random access memory (RAM) 803. Various programs and data required for the operation of the device 800 can also be stored in the RAM 803. The computing unit 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0139] Various components in device 800 are connected to I / O interface 805, including an input unit 806, such as a keyboard, mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a magnetic disk, optical disk, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows device 800 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0140] The computing unit 801 can be a variety of general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the method for obtaining the jump protocol of the application. For example, in some embodiments, the method for obtaining the jump protocol of the application can be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 800 via the ROM 802 and / or the communication unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the method for obtaining the jump protocol of the application described above can be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the method for obtaining the jump protocol of the application program in any other appropriate manner (for example, by means of firmware).

[0141] Various embodiments of the systems and techniques described above can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0142] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0143] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0144] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0145] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0146] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. This client-server relationship is established by computer programs running on the respective computers, establishing a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and VPS services ("Virtual Private Servers" or simply "VPS"). The server may also be a server in a distributed system or a server integrated with blockchain.

[0147] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not a limitation herein.

[0148] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A method for obtaining a jump protocol of an application, comprising: In response to a jump protocol acquisition request, matching jump information of a registered jump protocol from a registration list; wherein the jump protocol acquisition request is used to instruct acquisition of jump information of a registered jump protocol corresponding to a jump request; the jump protocol is used to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump request indicates an application function of the application to which the jump is to be directed; According to the jump requirement, updating the jump information of the registered jump protocol, and generating a target jump protocol according to the updated jump information; Wherein, when the jump information includes the protocol format of the registered jump protocol and the parameter information of the parameters included in the jump method, updating the jump information of the registered jump protocol according to the jump requirement and generating the target jump protocol according to the updated jump information includes: generating a required parameter value of each parameter according to the jump requirement and the parameter information of each parameter in the jump information; According to the protocol format of the registered jump protocol, the position of the parameter value of the parameter in the jump protocol is determined; and the parameter value in the jump protocol is replaced with the required parameter value of the parameter to obtain the target jump protocol.

2. The method according to claim 1, wherein The jump information includes one or more of the following: a method name of the jump method, description information of the jump method, parameter names of parameters included in the jump method, parameter information of parameters included in the jump method, and a protocol format of a registered jump protocol; wherein the jump method indicates an application function of the application to be jumped to; the description information of the jump method includes the function of the jump method; and the parameter information includes parameter values; The jump protocol acquisition request includes one or more of the following: a method name of the jump method, description information of the jump method, parameter names of parameters included in the jump method, and parameter information of parameters included in the jump method.

3. The method according to claim 1 or 2, wherein: The method further comprises: According to the target jump protocol, a QR code image of the target jump protocol is generated and displayed.

4. The method according to claim 1 or 2, wherein: The method further comprises: In response to a test instruction, during a process of testing the jump protocol to be tested indicated by the test instruction, the jump protocol to be tested indicated by the test instruction is written into the registration list; wherein the test instruction indicates the jump protocol to be tested.

5. The method according to claim 4, wherein The step of writing the jump protocol to be tested indicated by the test instruction into the registration list includes: If it is determined that there is no registered jump protocol matching the jump protocol to be tested in the registration list, the jump protocol to be tested is written into the registration list.

6. The method according to claim 5, wherein: The determining that there is no registered jump protocol in the registration list that matches the jump protocol to be tested includes: Extracting the jump information in the jump protocol to be tested, and matching the jump information in the jump protocol to be tested with the jump information of the registered jump protocol in the registration list; If it is determined that there is no match, determining that there is no jump protocol matching the jump protocol to be tested in the registration list; Otherwise, it is determined that there is a registered jump protocol in the registration list that matches the jump protocol to be tested.

7. The method according to claim 6, wherein: The extracting the jump information in the jump protocol to be tested and matching the jump information in the jump protocol to be tested with the jump information of the registered jump protocol in the registration list includes: Generate a first MD5 value according to the method name in the jump method in the jump information of the jump protocol to be tested and the parameter name in the parameter information; generate a second MD5 value according to the name of the jump method in the jump information of the registered jump protocol in the registration list and the parameter name in the parameter information; If it is determined that there is a second MD5 value that is the same as the first MD5 value, determining that the jump information in the jump protocol to be tested matches the jump information of the registered jump protocol in the registration list; If it is determined that there is no second MD5 value identical to the first MD5 value, it is determined that the jump information in the jump protocol to be tested does not match the jump information of the registered jump protocol in the registration list.

8. The method according to any one of claims 5 to 7, wherein Writing the jump protocol to be tested into the registration list includes: Running the jump protocol to be tested, jumping to the application function of the application indicated by the jump protocol to be tested, and performing screenshot processing to obtain and display an image; wherein the image is the interface of the application function of the application to which the jump is directed; In response to a user's submission instruction, the jump protocol to be tested is written into the registration list according to the jump information indicated by the submission instruction; wherein the submission instruction includes the jump information of the jump protocol determined by the user based on the displayed image.

9. A device for obtaining a jump protocol of an application, comprising: an acquisition unit, configured to match jump information of a registered jump protocol from a registration list in response to a jump protocol acquisition request; wherein the jump protocol acquisition request is used to instruct acquisition of jump information of a registered jump protocol corresponding to a jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes jump information of at least one registered jump protocol; and the jump requirement indicates an application function of the application to which the jump is to be directed; A determining unit, configured to update the jump information of the registered jump protocol according to the jump requirement, and generate a target jump protocol according to the updated jump information; Wherein, when the jump information includes the protocol format of the registered jump protocol and the parameter information of the parameters included in the jump method, the determining unit is specifically configured to: generate a required parameter value of each parameter according to the jump requirement and the parameter information of each parameter in the jump information; According to the protocol format of the registered jump protocol, the position of the parameter value of the parameter in the jump protocol is determined; and the parameter value in the jump protocol is replaced with the required parameter value of the parameter to obtain the target jump protocol.

10. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.

12. A computer program product comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Page jump method and structure based on Android

    CN107729014A

  • Page jumping method and device, electronic device and storage medium

    CN110717119A