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

By automatically collecting and writing jump protocols using registration widgets during application development, the problem of inefficient search is solved, the rapid acquisition of jump protocols is achieved, and the development efficiency is improved.

CN119781887AActive Publication Date: 2025-04-08BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

During the application development process, there is a problem of low search efficiency, which leads to difficulty in querying jump protocols and affects the application development efficiency.

Method used

By inserting a registration widget during the R&D and development test process, the jump protocol is automatically collected and written to the registration list, users can quickly query and generate target jump protocols.

Benefits of technology

It realizes fast and convenient acquisition of jump protocols, improves application development efficiency, and reduces the acquisition cost of jump protocols.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781887A_ABST
    Figure CN119781887A_ABST
Patent Text Reader

Abstract

The invention provides a method, a device and equipment for acquiring a jump protocol of an application program, and relates to the technical field of computers, in particular to the field of intelligent search and jump protocol management. According to the specific implementation scheme, when a user needs to acquire a jump protocol, the user can query in a registration list to acquire jump information of the required jump protocol; the skipping information can comprise a method name of the skipping method, a parameter of the skipping method, parameter information and the like. Based on the method name, parameter, and parameter information, a jump protocol may be generated. The jump protocol may enable a jump from a current application to a function of another application. And displaying the jump protocol.
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, device and equipment for obtaining a jump protocol of an application. Background Art

[0002] During the operation and maintenance of an application, there are often some activity scenarios that require jumping to other applications or web pages to participate in. During the development of these operation and maintenance scenarios, it is usually necessary to obtain the already developed jump protocol to jump to other applications or web pages to achieve the reuse of the 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 obtaining 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 the jump information of the registered jump protocol from the registration list; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes at least one jump information of the registered jump protocol; the jump requirement indicates the application function of the application to be jumped to;

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

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

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

[0010] The determination unit is used 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 so that the at least one processor can 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 cause 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 content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are used to better understand the present solution 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 is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art 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] In the process of application development, there are many business scenarios that call the application functions of other applications. For example, multiple activity pages can be set in the current application. Users can enter the activity page by clicking a link to participate in the activity. At this time, the application function of the application that was dropped can be an H5 page. For another example, in the linkage scenario between the current application and another application, users can enter the activity page or function page of another application by clicking a link in the current application. At this time, the application function of the application that was dropped can be the page of another application. These implementations of calling the application functions of other applications in the current application can usually be implemented by adding a jump protocol to the current application. The jump protocol indicates jumping from the application function of the current application to the application function of another application. At present, a jump protocol can usually include three parts: protocol header, method name and parameter. For example, the jump protocol can be XXXXXXX: / / X / XXXX.AAA? CC=DDDD. Among them, XXXXXXX: / / can be a protocol header, AAA can be a method, CC is a parameter name, and DDDD is a parameter value.

[0027] During the development of an application, when developers need to modify and view the code of the jump protocol, they need to find the jump protocol. However, due to the rapid iteration of the application, it is easy to have difficulty in querying the jump protocol. Many times, it is even necessary to look for the jump protocol in the historical code version of the application. Obviously, the search process of the jump protocol has the problem of low search efficiency. Especially when a large number of jump protocols need to be used in the current application, the search efficiency will seriously affect the development efficiency of the application. Therefore, there is an urgent need for a solution that can quickly and conveniently obtain the jump protocol of the application.

[0028] Based on the above problems, the present disclosure provides a method for obtaining a jump protocol for an application program, which can realize automatic collection of jump protocols and write them into a registration list by inserting a registration gadget during the test process of R&D. Based on the registration table, when a user needs to use the jump protocol, he can obtain the required jump protocol by querying the registration list and generate a jump unit. Based on the protocol execution unit, the corresponding jump can be completed. This process can realize fast and convenient acquisition of jump protocols and improve the development efficiency of applications.

[0029] The present invention discloses a method, a device and an apparatus for obtaining a jump protocol of an application program, 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 the application program.

[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 solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0032] In order to enable readers to more deeply understand the implementation principle of the present 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, such as 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, match the jump information of the registered jump protocol from the registration list; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the 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 be jumped to.

[0035] In this embodiment, the user can determine the jump requirement when the jump protocol needs to be used. The jump requirement indicates the application function of the application program that currently needs to be jumped to. A jump protocol acquisition request can be generated according to the jump requirement. In response to the jump protocol acquisition request, the jump information of each registered jump protocol can be obtained from the preset registration list. Then, 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 into the registration list, it can be considered that the jump protocol has completed registration and becomes a registered jump protocol. Otherwise, if the jump protocol is not in the registration list, the jump protocol is not registered. Optionally, the registration list can be stored in a cloud server. Alternatively, the registration list can be stored in a test terminal. Optionally, the test terminal can be a local server.

[0037] Optionally, the jump protocol acquisition request includes key information of the jump requirement. Optionally, the key information may 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 also 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 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.

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

[0040] The description information of the jump method includes the function of the jump method. The function is used to indicate the application function of the application program to be jumped to. In addition, the description information of the jump method may also include input information, output information, etc. of the jump method. Among them, the input information may include information such as parameter names, order, and data types of parameters required for input. The output information may include information such as parameter names, order, and data types of 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 screenshot indicates the jump that can be achieved by the jump protocol.

[0043] Optionally, the jump information may also 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. According to the jump requirement, the jump information of the registered jump protocol is updated, and the target jump protocol is generated according to the updated jump information.

[0045] In the present embodiment, after the jump information of the registered jump protocol is obtained, the parameters included in the jump information can be determined. Then, 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 and 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 according to the target jump protocol in the 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, by initiating a jump protocol acquisition request according to the jump requirement, the matching of the registered jump protocol and the acquisition of the jump information of the registered jump protocol are realized. Based on the jump requirement, the jump information can be further updated and the target jump protocol can be generated, so as to realize the rapid application of the jump protocol, improve the rapid use of the jump protocol in the application development process, improve the query efficiency of the jump protocol, improve the development efficiency of the application, and improve the maintainability and reliability of the jump protocol.

[0047] Figure 2 is a schematic diagram according to the second embodiment of the present disclosure, such as 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 parameter, the specific process of generating the target jump protocol may include:

[0048] 201. Generate a required parameter value of 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 value range, value method, and data format of the parameter value of the parameter. According to the jump requirement, the parameter information of the parameter may be matched to generate the required parameter value of the parameter. The required parameter value may point to the application function of the application program 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 positions of the protocol header, jump method, parameters and the like, as well as the connecting characters between these contents. Since the registered jump method has been determined, the writing position of the protocol header, the writing position of the jump method, and the writing position 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 finally the target jump protocol is obtained.

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

[0053] According to the protocol format, a character string of the target jump protocol is generated. The protocol format may include a protocol header of the jump protocol. The method name of the jump method may be written in the position corresponding to the jump method of the protocol format. Alternatively, the confirmation of the method name corresponding to the jump method in the protocol format may be completed. At the position corresponding to the parameter name of the protocol format, it may be obtained whether the parameter name of the parameter written in the jump protocol is consistent with the parameter of the jump method of the registered jump protocol. The position of the parameter value written corresponding to the parameter may be determined in the parameter name of the parameter. The required parameter value may be inserted at this position. Alternatively, the original information in the position of the parameter value may be replaced with the required parameter value. Finally, the target jump protocol is obtained. Through the protocol format, the jump method and parameter information may be obtained, and the target jump protocol may be generated more accurately and quickly, thereby achieving complete acquisition of the target jump protocol, and even testing the target jump protocol, which greatly improves the acquisition efficiency and use 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 acquiring 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 On the basis of the second embodiment shown, the registered jump protocol in the registration table can complete the automatic registration of 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 into the registration list. Specifically, in response to the test instruction, in 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 list. Among them, the test instruction indicates the jump protocol to be tested.

[0056] Optionally, the test instruction can be triggered after the jump unit to be tested completes code writing. Optionally, the execution phase of the test instruction is the test phase of the jump unit by the developer or tester. In response to the test instruction, the automatically registered gadget can be started. The automatically registered gadget can be written in the jump unit, and the start of the automatically registered gadget is limited to be triggered under the 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 realized. In the test process of the jump protocol to be tested, the step of writing the jump protocol to be tested in the registration list can be realized by the automatically registered gadget. By writing the jump protocol to be tested into the registration list, the effect of improving the maintenance efficiency and reliability of the jump protocol to be tested can be achieved.

[0057] Figure 3 is a schematic diagram according to the third embodiment of the present disclosure, 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 firstly determined whether the registration list includes the jump protocol to be tested, and then the jump protocol to be tested is added or updated 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 protocol in the registration list can be matched with the jump protocol to be tested, so as to determine whether the registration list contains the jump protocol to be tested. If the registration list does not contain the 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 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 according to the jump protocol to be tested and the 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 protocol 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 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.

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

[0068] 30112. If it is determined that there is a second MD5 value that is the same as the first MD5 value, 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 domain 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 that is the same as 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 according to the jump information, the MD5 value is used to achieve a quick match between the jump protocol to be tested and the registered jump protocols in the registration list, thereby improving the matching efficiency between the jump protocol to be tested and 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 protocol 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. At this time, step 302 can be continued.

[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 the present embodiment, when the jump information of the registered jump protocol exists in the registration list and matches the jump information in the jump protocol to be tested, it can be determined that there is a registered jump protocol that matches the jump protocol to be tested in the registration list. At this time, it is not necessary 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 replace the jump information of the registered jump protocol in the registration list with the jump information of the jump protocol to be tested. 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 matching of the jump protocol to be tested and the registered jump protocols in the registration list is achieved, 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 protocol in the registration list, the jump protocol to be tested can be written into the registration list. Optionally, the jump information of the jump protocol to be tested can be written into the registration list. Optionally, the jump information of the jump protocol to be tested can 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 be jumped to.

[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 in the interception page. Optionally, an input box can also be displayed in the interception page. The tester or the developer can input the jump information of the jump protocol to be tested through the input box.

[0083] 3022. In response to the user's submission instruction, write the jump protocol to be tested 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 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 the developer clicks the submit button, a submit instruction of the interception page may be triggered. The submit instruction may include the jump information in the input box of the interception page. Furthermore, the jump information may be written into the registration list in response to the submit instruction. Optionally, the information in the input box may also be obtained by identifying the information in the image.

[0085] Through steps 3021 and 3022, the jump information of the jump protocol to be tested can be obtained, and the comprehensiveness of the jump information can be further ensured, 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, 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 starts testing, the test end can request the server to obtain the registration list. When the jump protocol to be tested starts testing, the added identification information of the jump protocol to be tested can be used. The identification information can be the MD5 value of the jump protocol to be tested. The MD5 value can be generated according to the jump method name and parameter name 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 an 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 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, the jump protocol to be tested has completed registration. Otherwise, if the jump protocol to be tested is not registered, the jump protocol to be tested is written into 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 into 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 executing the test process of the 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. Before the jump is completed and the interception mode is turned on, you can also take a screenshot of the page after the jump and save it 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 read record of the jump protocol to be tested. Thereafter, the interceptor will jump to an interception page.

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

[0095] In the present embodiment, a plurality of text boxes may be included on the interception page. The text box is used to input the jump information of the jump protocol to be tested. Optionally, the text box may 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 may 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 may also be user input data. The user may click the submit button after completing the filling or confirmation of the data. Optionally, when the interception page is submitted, the version package of the current application, the local user name of the developer, the time and other information may 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 interception page can be matched with the jump information of the registered jump protocol already in the registration list. If there is a registered jump protocol matching the jump information 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 there is no registered jump protocol matching the jump information in the registration list, the jump protocol to be tested can be written into the registration list.

[0100] Optionally, based on the registration list, the user can query the 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 matching the query request in the registration list 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, 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] In the research and development stage, after the development of the jump unit is completed, user 1 can start the test of the jump unit at the test end. The jump unit may include the jump protocol to be tested. The test end may request the server to obtain the registration list and obtain the registration list returned by the server. The test end may determine whether the jump protocol to be tested exists in the registration list, thereby determining whether the jump protocol to be tested has completed registration. If not registered, the unregistered jump protocol to be tested is written into the manager. The manager is an unregistered protocol manager. Among them, user 1 can perform the test of the jump unit and complete the jump at the test end. After completing the jump, the test end can start the 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 end can report the jump information to the server and obtain the reporting result returned by the server. The test end can contact the interception of the interceptor. User 1 can continue to test the jump unit.

[0103] In the query phase, user 2 can open the query page on the query end and send a query request to the server to query the registered jump protocol. The query end can obtain the query result returned by the server. The query result may include at least one registered jump protocol. The query end can render a page based on the query result and display the query result on the page. The user can view the query result on the page of the query end and obtain the final desired target jump protocol.

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

[0105] The acquisition unit 601 is used to match the jump information of the registered jump protocol from the registration list in response to the jump protocol acquisition request; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the jump requirement; the jump protocol is used to jump to the application function of another application; the registration list includes the jump information of at least one registered jump protocol; the jump requirement indicates the application function of the application to be jumped to.

[0106] The determination 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, Figure 7 As shown, the present disclosure provides a device 700 for obtaining a jump protocol of an application program, comprising:

[0109] The acquisition unit 710 is used to match the jump information of the registered jump protocol from the registration list in response to the jump protocol acquisition request; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the jump requirement; the jump protocol is used to jump to the application function of another application; the registration list includes the jump information of at least one registered jump protocol; the jump requirement indicates the application function of the application to be jumped to.

[0110] The determination 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: 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 an 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.

[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 used 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.

[0115] The determination module 722 is used 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 used 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 acquiring the jump protocol of the application further includes:

[0121] The registering unit 730 is used for responding to the test instruction and writing the jump protocol to be tested indicated by the test instruction into the registration list during the process of testing the jump protocol to be tested indicated by the test instruction. The test instruction indicates the jump protocol to be tested.

[0122] Optionally, the registration unit 730 includes:

[0123] The registration module 731 is used 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 used 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 used to determine that there is no registered jump protocol matching the jump protocol to be tested in the registration list if it is determined that there is no match. Otherwise, determine that 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 used for:

[0128] Generate a first MD5 value according to the method name in the jump method in the jump information 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.

[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 be jumped to.

[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 an embodiment 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 processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required 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. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. 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] A number of components in the device 800 are connected to the I / O interface 805, including: an input unit 806, such as a keyboard, a mouse, etc.; an output unit 807, such as various types of displays, speakers, etc.; a storage unit 808, such as a disk, an optical disk, etc.; and a communication unit 809, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0140] The computing unit 801 may be a variety of general and / or special 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 running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 801 performs the various methods and processes described above, such as the acquisition method of the jump protocol of the application. For example, in some embodiments, the acquisition method of the jump protocol of the application may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 808. In some embodiments, part or all of the computer program may 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 acquisition method of the jump protocol of the application described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to execute the acquisition method of the jump protocol of the application program in any other appropriate manner (for example, by means of firmware).

[0141] Various implementations of the systems and techniques described above herein 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), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including 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 may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0143] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may 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 may 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 may 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 with 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 may 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 the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services ("Virtual Private Server", or "VPS" for short). The server may also be a server of a distributed system, or a server combined with a blockchain.

[0147] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0148] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A method for obtaining a jump protocol of an application, comprising: In response to a jump protocol acquisition request, matching the jump information of the registered jump protocol from the registration list; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes at least one jump information of the registered jump protocol; the jump requirement indicates the application function of the application to be jumped to; According to the jump requirement, the jump information of the registered jump protocol is updated, and the target jump protocol is generated according to the updated jump information.

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 an application program 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: When the jump information includes the protocol format of the registered jump protocol and parameter information of the parameter, 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: Generate a required parameter value of each parameter according to the jump requirement and the parameter information of each parameter in the jump information; The target jump protocol is generated according to the protocol format of the registered jump protocol and the required parameter value of the parameter.

4. The method according to claim 3, wherein: The generating the target jump protocol according to the protocol format of the registered jump protocol and the required parameter value of the parameter comprises: According to the protocol format, 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.

5. The method according to any one of claims 1 to 4, wherein: The method further comprises: According to the target jump protocol, a QR code image of the target jump protocol is generated and displayed.

6. The method according to any one of claims 1 to 5, wherein: The method further comprises: 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 list; wherein the test instruction indicates the jump protocol to be tested.

7. The method according to claim 6, 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.

8. The method according to claim 7, wherein: The determining that there is no registered jump protocol matching the jump protocol to be tested in the registration list 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.

9. The method according to claim 8, 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, comprises: 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.

10. The method according to any one of claims 7 to 9, wherein: The step of writing the jump protocol to be tested into the registration list includes: 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 be jumped to; 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.

11. A device for acquiring a jump protocol of an application, comprising: An acquisition unit, configured to match the jump information of the registered jump protocol from the registration list in response to a jump protocol acquisition request; wherein the jump protocol acquisition request is used to indicate the acquisition of the jump information of the registered jump protocol corresponding to the jump requirement; the jump protocol is used to jump to an application function of another application; the registration list includes at least one jump information of the registered jump protocol; the jump requirement indicates the application function of the application to be jumped to; The determination unit is used 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.

12. 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 10.

13. 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-10.

14. A computer program product, comprising a computer program, which implements the steps of the method according to any one of claims 1 to 10 when executed by a processor.

Citation Information

Patent Citations

  • Page jump method and structure based on Android

    CN107729014A

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

    CN110717119A

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

    CN112905933A

  • Application software awakening method and device, storage medium and electronic equipment

    CN115185603A

  • Protocol-based routing jump method and device, electronic equipment and storage medium

    CN115481334A