CN-121996555-A - Link testing method, device, equipment and medium
Abstract
The invention discloses a link testing method, a device, equipment and a medium. The method comprises the steps of obtaining at least one functional link corresponding to an application function, screening at least one missing link with access right of a first user and without access right of a second user from the functional links, performing response test on the missing links according to the missing links to obtain a first link response result of the first user and a second link response result of the second user, and comparing the first link response result with the second link response result to obtain a link test result of the missing links. The embodiment of the invention can improve the accuracy of the link test.
Inventors
- GAO HUANHUAN
- ZHANG ERQING
- SHEN SIYUE
Assignees
- 杭州浩联智能科技有限公司
- 杭州新中大科技股份有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20260121
Claims (10)
- 1. A method of link testing, the method comprising: acquiring at least one function link corresponding to an application function; screening at least one missing link with access right of a first user and without access right of a second user from the functional links; For each missing link, performing response test on the missing link to obtain a first link response result of the first user and a second link response result of the second user; and comparing the first link response result with the second link response result to obtain a link test result of the missing link.
- 2. The method of claim 1, wherein comparing the first link response result with the second link response result to obtain the link test result of the missing link comprises: Consistency comparison is carried out on the response code of the first link response result and the response code in the second link response result, and a response code comparison result is determined; calculating the difference between the response time of the first link response result and the response time of the second link response result, comparing the difference with a difference threshold value, and determining a time comparison result; Calculating a similarity value between a response field of the first link response result and a response field in the second link response result, comparing the similarity value with a similarity threshold value, and determining a field comparison result; And obtaining a link test result of the missing link according to the response code comparison result, the time comparison result and the field comparison result.
- 3. The method according to claim 2, wherein the obtaining the link test result of the missing link according to the response code comparison result, the time comparison result, and the field comparison result includes: when the response code comparison result is that the response codes are consistent, the time comparison result is that the difference value is smaller than the difference value threshold value, and the field comparison result is that the similarity value is larger than or equal to the similarity threshold value, determining the link detection result of the missing link as a link authority error of the second user; And when the response code comparison result is that the response codes are inconsistent, the time comparison result is that the difference value is more than or equal to a difference value threshold value or the field comparison result is that at least one of the similarity value is smaller than the similarity threshold value is established, determining that the link detection result of the missing link is correct in link authority of the second user.
- 4. The method of claim 1, further comprising, after said screening out at least one missing link in each of said functional links that the first user has access and the second user does not have access: For each missing link, detecting the missing link, and determining a dependent link corresponding to the missing link; Splicing the missing links and the dependent links corresponding to the missing links to obtain splicing results; And updating the missing link according to the splicing result.
- 5. The method of claim 4, further comprising, prior to said response testing for said missing link: acquiring a link template corresponding to the second user; Fusing the missing links and the link templates to obtain a link access request; and accessing the missing link according to the link access request.
- 6. The method of claim 1, further comprising, prior to said response testing of said missing links for each of said missing links to obtain a first link response result for said first user and a second link response result for said second user: when test limitations exist, acquiring link weights corresponding to the missing links for each missing link; Sorting the link weights corresponding to the missing links, and determining a priority sequence; the response test for the missing link comprises the following steps: determining a missing link to be subjected to response test currently according to the priority sequence; And carrying out response test on the missing link to be subjected to the response test currently.
- 7. The method of claim 6, wherein the obtaining the link weight corresponding to the missing link comprises: identifying the missing links and determining keywords; Acquiring preset mapping relation information, wherein the preset relation information comprises at least one sample word and word weights corresponding to the sample words; matching the keywords with the preset mapping relation information, and determining target weights corresponding to the keywords; and determining the target weight corresponding to the keyword as the link weight corresponding to the missing link.
- 8. A link testing apparatus, the apparatus comprising: The function link acquisition module is used for acquiring at least one function link corresponding to the application function; the missing link acquisition module is used for screening at least one missing link with the access right of the first user and the second user without the access right from the functional links; The response test module is used for carrying out response test on the missing links according to the missing links to obtain a first link response result of the first user and a second link response result of the second user; and the result comparison module is used for comparing the first link response result with the second link response result to obtain the link test result of the missing link.
- 9. A link testing apparatus, the link testing apparatus comprising: At least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the link test method of any one of claims 1-7.
- 10. A computer readable storage medium storing computer instructions for causing a processor to implement the link test method of any one of claims 1-7 when executed.
Description
Link testing method, device, equipment and medium Technical Field The present invention relates to the field of data processing technologies, and in particular, to a link testing method, device, apparatus, and medium. Background With rapid development of technology, application programs are increasingly classified, and in order to ensure the reliability of the application programs, the application programs need to be detected. Currently, links are manually configured to test the full amount of links to applications. However, the full-scale link test of the application program is relatively inefficient. Disclosure of Invention The invention provides a link testing method, a device, equipment and a medium, which are used for improving the accuracy of link testing. In a first aspect, an embodiment of the present invention provides a link testing method, where the method includes: acquiring at least one function link corresponding to an application function; screening at least one missing link with access right of a first user and without access right of a second user from the functional links; For each missing link, performing response test on the missing link to obtain a first link response result of the first user and a second link response result of the second user; and comparing the first link response result with the second link response result to obtain a link test result of the missing link. In a second aspect, an embodiment of the present invention further provides a link testing apparatus, where the apparatus includes: The function link acquisition module is used for acquiring at least one function link corresponding to the application function; the missing link acquisition module is used for screening at least one missing link with the access right of the first user and the second user without the access right from the functional links; The response test module is used for carrying out response test on the missing links according to the missing links to obtain a first link response result of the first user and a second link response result of the second user; and the result comparison module is used for comparing the first link response result with the second link response result to obtain the link test result of the missing link. In a third aspect, an embodiment of the present invention further provides a link test device, where the link test device includes: At least one processor, and A memory communicatively coupled to the at least one processor, wherein, The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the link test method of any one of the embodiments of the present invention. According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform a link test method according to any one of the embodiments of the present invention. According to the technical scheme, at least one functional link corresponding to an application function is obtained, at least one missing link which is provided with access rights by a first user and is not provided with access rights by a second user is screened out from the functional links, response tests are conducted on the missing links according to the missing links to obtain a first link response result of the first user and a second link response result of the second user, the first link response result and the second link response result are compared to obtain a link test result of the missing links, only the missing links which are accessible by the first user but not accessible by the second user are tested, the whole quantity of functional links of an application program are not tested, the functional links to be tested are reduced, and the link test efficiency is improved. It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows. Drawings In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. FIG. 1 is a flow chart of a link testing method according to a first embodiment of the present invention; FIG. 2 is a flowchart of a link testing method according to a second embodiment of the present invention; FIG. 3 is a block diagram of a link test apparatus provided according to an embodiment of the present invention; fig. 4 is a schematic structural diagram of a link test device acc