Traffic playback test method, device and equipment for recruitment platform search engine

By comparing the search results differences between the first and second versions of search engines in the traffic replay test of the recruitment platform search engine, the problems of inefficiency and error-prone existing testing methods are solved, and the efficiency and accuracy of automated testing are achieved sex.

CN119441037AActive Publication Date: 2025-02-14QIAN JIN NETWORK INFORMATION TECH SHANGHAI LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411502184.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-25
Publication Date
2025-02-14
Estimated Expiration
2044-10-25

AI Technical Summary

Technical Problem

The traffic playback test method of the search engine of the existing recruitment platform fails to effectively distinguish between the original and the new functions, resulting in low testing efficiency and error-proneness. It relies on manual execution, which is time-consuming and labor-intensive, making it difficult to meet the rapid iteration and continuous optimization. need.

Method used

Through traffic playback, obtain the interface request parameters of the user calling the search engine, call the search engine interface of the first and second versions, close the new function switch of the second version, compare the total number and sorting differences between the search results of the two, and determine the test Pass or fail.

Benefits of technology

It realizes efficient and accurate automated testing of the search engine of the recruitment platform, significantly improves testing efficiency, reduces the impact of human factors, and ensures the accuracy and reliability of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119441037A_ABST
    Figure CN119441037A_ABST
Patent Text Reader

Abstract

The invention discloses a traffic playback test method, device and equipment for a recruitment platform search engine. The method comprises the following steps: acquiring a plurality of request parameters through traffic playback; for any request parameter, calling an interface of a search engine of a first version based on the request parameter to obtain a plurality of first search results corresponding to the request parameter; turning off a switch of a new function in the search engine of the second version; based on the request parameter, calling an interface of a search engine of a second version to obtain a plurality of second search results corresponding to the interface; comparing a plurality of first search results corresponding to the request parameter with a plurality of second search results to obtain a total quantity difference and a sorting difference of the first search results and the second search results; if the difference exceeds a preset range, it is judged that execution of the request parameter fails; if the number of the request parameters failing to be executed is smaller than or equal to a preset threshold value, it is judged that the search engine of the second version passes testing; otherwise, judging that the test is not passed. The test efficiency and accuracy can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data service technology, and in particular to a traffic playback test method, device, electronic device, computer-readable storage medium and computer program product for a recruitment platform search engine. Background Art

[0002] The search engine of the recruitment platform allows users to search for desired positions or job seekers' resumes, so that job seekers can find suitable positions and companies, or recruiters can find suitable talents.

[0003] After the search engine of the recruitment platform is updated, in order to ensure that the new version of the search engine can run normally in different environments and provide a good user experience, it is usually necessary to perform a traffic replay test on the new version of the search engine. The current traffic replay test method usually does not distinguish between the original functions and new functions in the new version of the search engine. The original functions and new functions are often tested together, which is inefficient and prone to errors. Moreover, the current traffic replay test of the search engine of the recruitment platform often relies on manual execution, which is not only time-consuming and labor-intensive, but also inefficient. With the continuous expansion and updating of search engine functions, manual testing can no longer meet the needs of rapid iteration and continuous optimization. Moreover, manual testing is easily affected by human factors, such as fatigue, distraction, etc., which leads to errors in the test results. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a traffic playback test method, device, electronic device, computer-readable storage medium and computer program product for a recruitment platform search engine, which are used to solve at least one of the above technical problems.

[0005] The embodiment of the present application provides a traffic playback test method for a search engine of a recruitment platform, comprising: obtaining multiple request parameters of an interface of a user calling a search engine through traffic playback, each request parameter including a target screening condition for searching positions or resumes; for any request parameter, based on the request parameter, calling the interface of a first version of the search engine to obtain multiple first search results corresponding to the request parameter; turning off the switch of a new function in a second version of the search engine; for any request parameter, based on the request parameter, calling the interface of a second version of the search engine to obtain multiple second search results corresponding to the request parameter; wherein, for the same request parameter, comparing the multiple first search results corresponding to the request parameter with the multiple second search results corresponding to the request parameter to obtain a total difference and a ranking difference between the two; if the total difference and / or the ranking difference between the two exceed a preset range, determining that the second version of the search engine fails in executing the search task of the request parameter; if the number of request parameters that fail to execute is less than or equal to a preset threshold, determining that the second version of the search engine test has passed; if the number of request parameters that fail to execute is greater than the preset threshold, determining that the second version of the search engine test has failed.

[0006] According to some embodiments of the present application, optionally, for the same request parameter, multiple first search results corresponding to the request parameter are compared with multiple second search results corresponding to the request parameter to obtain a total difference and a ranking difference between the two, including: for any i-th request parameter, calculate the difference between the total amount of the multiple first search results corresponding to the i-th request parameter and the total amount of the multiple second search results corresponding to the i-th request parameter to obtain the total difference between the two, where i is a positive integer; compare the multiple first search results corresponding to the i-th request parameter with the multiple second search results corresponding to the i-th request parameter one by one in order of arrangement, and record the number or proportion of the second search results that are inconsistent with the first search results to obtain the ranking difference between the two.

[0007] According to some embodiments of the present application, optionally, the target filtering conditions include fixed filtering conditions and manually input filtering conditions, the manually input filtering conditions include keywords entered by the user in the input box of the search engine; the search engine is a job search engine, the fixed filtering conditions include work location, salary, years of work experience, educational requirements, company nature and / or company size, and the keywords include position, function, industry and / or company name; or, the search engine is a resume search engine, the fixed filtering conditions include age, major, education, salary, place of residence, work experience and / or skills, and the keywords include position, function and / or industry.

[0008] According to some embodiments of the present application, optionally, before calling the interface of the first version of the search engine based on the request parameter to obtain multiple first search results corresponding to the request parameter, the traffic playback test method for the recruitment platform search engine also includes: detecting whether there is a target function in the first version of the search engine that is not in the second version of the search engine, and if so, turning off the switch of the target function in the first version of the search engine.

[0009] According to some embodiments of the present application, optionally, the traffic playback test method for a recruitment platform search engine also includes: after obtaining the judgment result of the second version of the search engine executing the search task for each request parameter, outputting a test report; wherein the test report displays the ID corresponding to each request parameter, the request parameter description, the total difference between multiple first search results and multiple second search results, the sorting difference between multiple first search results and multiple second search results, and the judgment result.

[0010] According to some embodiments of the present application, optionally, each new function in the second version of the search engine is provided with a switch program, and the switch program has a first state for turning on the new function and a second state for turning off the new function; turning off the switch of the new function in the second version of the search engine includes: setting the state of the switch program of each new function in the second version of the search engine to the second state.

[0011] The embodiment of the present application provides a traffic playback test device for a search engine of a recruitment platform, comprising: an acquisition module, used to acquire multiple request parameters of an interface of a user calling a search engine through traffic playback, each request parameter including a target screening condition for searching for a position or a resume; a first calling module, used to call the interface of a first version of the search engine based on any request parameter to obtain multiple first search results corresponding to the request parameter; a closing module, used to turn off the switch of a newly added function in a second version of the search engine; a second calling module, used to call the interface of a second version of the search engine based on any request parameter to obtain multiple second search results corresponding to the request parameter; a comparison module, used to compare the multiple first search results corresponding to the request parameter with the multiple second search results corresponding to the request parameter for the same request parameter to obtain a total difference and a ranking difference between the two; if the total difference and / or the ranking difference between the two exceed a preset range, it is determined that the second version of the search engine fails to execute the search task of the request parameter; a determination module, used to determine that the test of the second version of the search engine passes if the number of request parameters that fail to execute is less than or equal to a preset threshold; if the number of request parameters that fail to execute is greater than the preset threshold, it is determined that the test of the second version of the search engine fails.

[0012] An embodiment of the present application provides an electronic device, which includes a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the traffic playback test method for a recruitment platform search engine as described above are implemented.

[0013] An embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the steps of the traffic playback test method for a recruitment platform search engine as described above are implemented.

[0014] An embodiment of the present application provides a computer program product, which includes computer program instructions. When the computer program instructions are executed by a processor, the steps of the traffic playback test method for a recruitment platform search engine as described above are implemented.

[0015] The traffic playback test method, device, electronic device, computer-readable storage medium and computer program product for the search engine of the recruitment platform provided by the embodiment of the present application are adopted, and multiple request parameters of the interface of the user calling the search engine are obtained through traffic playback. When testing the second version of the search engine, the switch of the new function of the search engine of the second version is first turned off, so that the function in the search engine of the second version is basically the same as that in the search engine of the first version. Therefore, for any request parameter, the search results obtained by the two versions of the search engine are also theoretically consistent, such as the total amount of the search results of the two versions are consistent, the ranking of the search results of the two versions is consistent, etc. Then, by comparing the search results obtained by the two versions of the search engine, if the difference in the total amount and the difference in the ranking of the two versions are large, it means that the search engine of the second version fails to execute the search task of the request parameter; finally, according to the number of request parameters that failed to execute, the test result of the second version of the search engine is obtained, and efficient and accurate automated testing of the second version of the search engine can be achieved. Through automated testing, the test efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test results can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following briefly introduces the drawings in the embodiments of the present application.

[0017] Figure 1 A flow chart of a traffic playback test method for a recruitment platform search engine provided in an embodiment of the present application.

[0018] Figure 2 Another flowchart of a traffic playback test method for a recruitment platform search engine provided in an embodiment of the present application.

[0019] Figure 3 A structural schematic diagram of a traffic playback test device for a recruitment platform search engine provided in an embodiment of the present application.

[0020] Figure 4 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that the purpose of providing these embodiments is to make the principles and spirit of the present application clearer and more thorough, so that those skilled in the art can better understand and implement the principles and spirit of the present application. The exemplary embodiments provided herein are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments herein, all other embodiments obtained by ordinary technicians of the art without creative work are within the scope of protection of this application.

[0022] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0023] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0024] It is obvious to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit or scope of the present application. Therefore, the present application is intended to cover modifications and changes of the present application that fall within the scope of the corresponding claims (technical solutions for protection) and their equivalents. It should be noted that the implementation methods provided in the embodiments of the present application can be combined with each other without contradiction.

[0025] Before describing the technical solutions provided by the embodiments of the present application, in order to facilitate the understanding of the embodiments of the present application, the present application first specifically describes the problems existing in the related art:

[0026] The search engine of the recruitment platform allows users to search for desired positions or job seekers' resumes, so that job seekers can find suitable positions and companies, or recruiters can find suitable talents.

[0027] After the search engine of the recruitment platform is updated, in order to ensure that the new version of the search engine can run normally in different environments and provide a good user experience, it is usually necessary to perform a traffic replay test on the new version of the search engine. The current traffic replay test method usually does not distinguish between the original functions and new functions in the new version of the search engine. The original functions and new functions are often tested together, which is inefficient and prone to errors. Moreover, the current traffic replay test of the search engine of the recruitment platform often relies on manual execution, which is not only time-consuming and labor-intensive, but also inefficient. With the continuous expansion and updating of search engine functions, manual testing can no longer meet the needs of rapid iteration and continuous optimization. Moreover, manual testing is easily affected by human factors, such as fatigue, distraction, etc., which leads to errors in the test results.

[0028] In view of the above research findings of the inventors, the embodiments of the present application provide a traffic playback test method, device, electronic device, computer-readable storage medium and computer program product for a recruitment platform search engine, which can solve at least one of the above technical problems existing in the related art.

[0029] The following first introduces the traffic playback test method for the recruitment platform search engine provided in the embodiment of the present application.

[0030] Figure 1 A flow chart of a traffic playback test method for a recruitment platform search engine provided in an embodiment of the present application. Figure 1 As shown, the traffic playback test method for a recruitment platform search engine provided in an embodiment of the present application may include the following steps S101 to S106.

[0031] S101: Acquire multiple request parameters of a user's interface for calling a search engine through traffic playback, each request parameter including a target screening condition for searching for positions or resumes.

[0032] Traffic Replay can verify the behavior and performance of the system by capturing real online traffic and replaying it in a test environment. Users can search for the desired position or resume through the search engine by calling the interface of the search engine of the recruitment platform, such as the API interface. In S101, multiple request parameters for the interface of the search engine called by the same user or different users can be obtained. The specific number can be flexibly adjusted according to the actual situation, and this application does not limit this. For example, in some examples, 100, 1000 or 10,000 request parameters for the interface of the search engine called by the same user or different users can be obtained. Each request parameter may include target screening conditions for searching positions or resumes, such as age, major, education, salary, place of residence and / or work experience. The target screening conditions in the multiple request parameters may be different to ensure the comprehensiveness of the traffic replay test of the search engine of the recruitment platform.

[0033] S102: For any request parameter, based on the request parameter, call the interface of the first version of the search engine to obtain a plurality of first search results corresponding to the request parameter.

[0034] Each request parameter may include a target screening condition for searching positions or resumes. For any request parameter, the interface of the first version of the search engine may be called based on the target screening condition of the request parameter, thereby obtaining a plurality of first search results corresponding to the request parameter obtained by searching the first version of the search engine.

[0035] When the search engine is a job search engine and the target screening condition is a screening condition for searching jobs, the first search result may be a job searched by the first version of the search engine. When the search engine is a resume search engine and the target screening condition is a screening condition for searching resumes, the first search result may be a resume searched by the first version of the search engine.

[0036] S103: Turn off the switch of the new function in the second version of the search engine.

[0037] The second version of the search engine and the first version of the search engine can be different versions of the search engine. For example, the first version of the search engine can be an old version of the search engine, and the second version of the search engine can be a new version of the search engine. It should be noted that the old version and the new version are only relative, and are used to characterize the version update of the second version of the search engine.

[0038] With the update of the version, the second version of the search engine may be provided with new functions, such as adding one or more screening conditions to search for positions or resumes based on the original functions, which is not limited in this application. When setting the new function, the switch of the new function may be set at the same time. The switch may be used to turn on or off the new function in the second version of the search engine.

[0039] In S103, the switch of the newly added function in the second version of the search engine may be turned off, that is, the newly added function in the second version of the search engine is turned off, and only the original function in the second version of the search engine is retained.

[0040] S104: For any request parameter, based on the request parameter, call the interface of the search engine of the second version to obtain a plurality of second search results corresponding to the request parameter.

[0041] For any request parameter, the interface of the second version of the search engine can be called based on the target screening condition of the request parameter, thereby obtaining multiple second search results corresponding to the request parameter obtained by searching the second version of the search engine.

[0042] When the search engine is a job search engine and the target screening condition is a screening condition for searching for jobs, the second search result may be a job searched by the second version of the search engine. When the search engine is a resume search engine and the target screening condition is a screening condition for searching for resumes, the second search result may be a resume searched by the second version of the search engine.

[0043] S105: For the same request parameter, compare the multiple first search results corresponding to the request parameter with the multiple second search results corresponding to the request parameter to obtain the total difference and the ranking difference between the two; if the total difference and / or the ranking difference between the two exceed a preset range, it is determined that the second version of the search engine fails in executing the search task for the request parameter.

[0044] For the same request parameter, the multiple first search results corresponding to the request parameter can be compared with the multiple second search results corresponding to the request parameter to obtain the total amount difference and the ranking difference between the two, that is, the total amount difference and the ranking difference between the multiple first search results corresponding to the request parameter and the multiple second search results.

[0045] Since the new functions of the second version of the search engine have been turned off, the functions in the second version of the search engine are basically the same as those in the first version of the search engine. Therefore, for the same request parameter, the search results obtained by the two versions of the search engine are theoretically consistent. If the difference in the total amount and / or the difference in the ranking between the two exceeds the preset range, it can be determined that the second version of the search engine failed when executing the search task for the request parameter. The size of the preset range can be flexibly adjusted according to actual conditions, and this application does not limit this.

[0046] S106: If the number of request parameters that fail to execute is less than or equal to the preset threshold, it is determined that the second version of the search engine test has passed; if the number of request parameters that fail to execute is greater than the preset threshold, it is determined that the second version of the search engine test has failed.

[0047] If the number of request parameters that failed to execute among the multiple request parameters is less than or equal to the preset threshold, the second version of the search engine test is determined to have passed, which at least indicates that the original function test in the second version of the search engine is correct. If the number of request parameters that failed to execute among the multiple request parameters is greater than the preset threshold, the second version of the search engine test is determined to have failed. The size of the preset threshold can be flexibly adjusted according to actual conditions, and this application does not limit this.

[0048] The traffic playback test method for the search engine of the recruitment platform provided by the embodiment of the present application obtains multiple request parameters of the interface of the user calling the search engine through traffic playback. When testing the second version of the search engine, the switch of the new function of the search engine of the second version is first turned off, so that the function in the search engine of the second version is basically the same as that in the search engine of the first version. Therefore, for any request parameter, the search results obtained by the two versions of the search engine are also theoretically consistent, such as the total amount of the search results of the two versions are consistent, the ranking of the search results of the two versions is consistent, etc. Then, by comparing the search results obtained by the two versions of the search engine, if the difference in the total amount and the difference in the ranking of the two versions are large, it means that the search engine of the second version fails to execute the search task of the request parameter; finally, according to the number of request parameters that failed to execute, the test result of the second version of the search engine is obtained, and efficient and accurate automated testing of the second version of the search engine can be achieved. Through automated testing, the test efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test results can be ensured.

[0049] According to some embodiments of the present application, optionally, S105: for the same request parameter, multiple first search results corresponding to the request parameter are compared with multiple second search results corresponding to the request parameter to obtain the total difference and the ranking difference between the two, which may include the following steps one and two.

[0050] Step 1: For any i-th request parameter, calculate the difference between the total amount of multiple first search results corresponding to the i-th request parameter and the total amount of multiple second search results corresponding to the i-th request parameter to obtain the total amount difference between the two.

[0051] The i-th request parameter is any one of the multiple request parameters, and i is a positive integer. For any i-th request parameter, the difference between the total amount of the multiple first search results corresponding to the i-th request parameter and the total amount of the multiple second search results corresponding to the i-th request parameter can be calculated to obtain the total amount difference between the two. For example, the total amount of the multiple first search results corresponding to the i-th request parameter is N1, and the total amount of the multiple second search results corresponding to the i-th request parameter is N2, then the total amount difference between the two can be the absolute value of N1-N2. N1 and N2 are both positive integers.

[0052] Step 2: Compare the multiple first search results corresponding to the i-th request parameter with the multiple second search results corresponding to the i-th request parameter one by one in order of arrangement, and record the number or proportion of second search results that are inconsistent with the first search results to obtain the ranking difference between the two.

[0053] Specifically, the multiple first search results corresponding to the ith request parameter can be sorted according to the sorting strategy in the first version of the search engine, and the multiple second search results corresponding to the ith request parameter can be sorted according to the sorting strategy in the second version of the search engine. In theory, the sorting strategy in the first version of the search engine is the same as the sorting strategy in the second version of the search engine, that is, the same sorting strategy. Therefore, the arrangement order of the multiple first search results corresponding to the ith request parameter is theoretically the same as the arrangement order of the multiple second search results corresponding to the ith request parameter. Taking job search as an example, for example, the multiple first search results corresponding to the ith request parameter can be Job 1, Job 2, Job 3, ... For example, the multiple second search results corresponding to the ith request parameter can be Job 1, Job 2, Job 3, ...

[0054] In step two, the multiple first search results corresponding to the i-th request parameter can be compared one by one with the multiple second search results corresponding to the i-th request parameter in the order of arrangement. That is, the first first search result corresponding to the i-th request parameter is compared with the first second search result corresponding to the i-th request parameter, the second first search result corresponding to the i-th request parameter is compared with the second second search result corresponding to the i-th request parameter, and so on, which will not be repeated here. In step two, the number or proportion of second search results that are inconsistent with the first search result can be recorded to obtain the ranking difference between the two. For example, the fourth first search result corresponding to the i-th request parameter is position 4, and the fourth second search result corresponding to the i-th request parameter is position 4', and position 4' is inconsistent with position 4, then the fourth second search result is the second search result that is inconsistent with the first search result.

[0055] According to some embodiments of the present application, the target filtering condition may optionally include a fixed filtering condition and a manually input filtering condition. The fixed filtering condition may be one or more filtering conditions selected by the user from a plurality of filtering conditions preset by the search engine, and the manually input filtering condition may include a keyword input by the user in the input box of the search engine.

[0056] In some embodiments, the search engine may be a job search engine, and accordingly, fixed screening conditions may include work location, salary, years of work experience, educational requirements, company nature and / or company size, and keywords may include position, function, industry and / or company name. Positions usually refer to specific positions or roles within an organization, such as "software development engineer". Functions refer to a certain work area or scope of responsibilities within an organization, and functions can span multiple positions, such as "marketing", "research and development", "finance", etc.

[0057] That is, the present application can realize the automated testing for the new version of the job search engine. Through the automated testing, the testing efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test results can be ensured.

[0058] In other embodiments, the search engine may be a resume search engine, and accordingly, the fixed screening conditions may include age, major, education, salary, place of residence, work experience and / or skills, and the keywords may include position, function and / or industry.

[0059] That is, the present application can realize the automated testing for the new version of resume search engine. Through the automated testing, the testing efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test results can be ensured.

[0060] According to some embodiments of the present application, optionally, each new function in the second version of the search engine is provided with a switch program, and the switch program has a first state for turning on the new function and a second state for turning off the new function.

[0061] Accordingly, S103: turning off the switch of the newly added function in the search engine of the second version may include the following steps:

[0062] The state of the switch program of each newly added function in the second version of the search engine is set to the second state.

[0063] In this way, by setting the state of the switch program of each new function in the second version of the search engine to the second state, each new function in the second version of the search engine can be turned off, so that the functions in the second version of the search engine are basically consistent with the functions in the first version of the search engine, so as to facilitate the comparison of subsequent search results.

[0064] Figure 2 Another flow chart of the traffic playback test method for the recruitment platform search engine provided in the embodiment of the present application. Figure 2 As shown, according to some embodiments of the present application, optionally, before S102: based on the request parameter, calling the interface of the first version of the search engine to obtain multiple first search results corresponding to the request parameter, the traffic playback test method for the recruitment platform search engine may also include the following steps:

[0065] S201: Detect whether there is a target function in the first version of the search engine that is not in the second version of the search engine. If so, turn off a switch of the target function in the first version of the search engine.

[0066] Specifically, according to actual needs, one or more original functions may be deleted in the second version of the search engine, resulting in the existence of target functions in the first version of the search engine that are not in the second version of the search engine. The target function may be one or more functions that are not in the second version of the search engine. If the first version of the search engine has target functions that are not in the second version of the search engine, the switch of the target function in the first version of the search engine may be turned off, further making the functions in the second version of the search engine basically consistent with the functions in the first version of the search engine, so as to facilitate the comparison of subsequent search results. If the first version of the search engine does not have the target function that is not in the second version of the search engine, execute the next step.

[0067] The process of turning off the switch of the target function in the first version of the search engine is similar to the process of turning off the switch of the newly added function in the second version of the search engine in S103 above, and will not be repeated here.

[0068] According to some embodiments of the present application, optionally, the traffic playback test method for a recruitment platform search engine may further include the following steps:

[0069] After obtaining the determination result of the search task of each request parameter executed by the search engine of the second version, a test report is output.

[0070] The test report displays the ID corresponding to each request parameter, the request parameter description, the total difference between the first search results and the second search results, the ranking difference between the first search results and the second search results, and the determination result. In some embodiments, the test report may also display the number or proportion of request parameters that failed to execute, and the test results of the second version of the search engine.

[0071] In this way, it is convenient for the operator to understand the test status of each request parameter and the final test result of the second version of the search engine, and it is convenient for the operator to find the cause of the test failure in time.

[0072] Based on the same technical concept as the traffic replay test method for a recruitment platform search engine provided in the above embodiment, the present application also provides a traffic replay test device for a recruitment platform search engine.

[0073] Figure 3 A schematic diagram of a structure of a traffic playback test device for a recruitment platform search engine provided in an embodiment of the present application. Figure 3 As shown, the traffic playback test device 30 for a recruitment platform search engine provided in an embodiment of the present application may include the following modules:

[0074] An acquisition module 301 is used to acquire multiple request parameters of a user's interface for calling a search engine through traffic playback, each request parameter including a target screening condition for searching for positions or resumes;

[0075] A first calling module 302 is used to call the interface of the first version of the search engine based on any request parameter to obtain a plurality of first search results corresponding to the request parameter;

[0076] A closing module 303 is used to close the switch of the newly added function in the second version of the search engine;

[0077] The second calling module 304 is used to call the interface of the search engine of the second version based on any request parameter to obtain multiple second search results corresponding to the request parameter;

[0078] The comparison module 305 is used to compare, for the same request parameter, a plurality of first search results corresponding to the request parameter with a plurality of second search results corresponding to the request parameter to obtain a total difference and a ranking difference between the two; if the total difference and / or the ranking difference between the two exceeds a preset range, it is determined that the search engine of the second version fails in executing the search task for the request parameter;

[0079] The determination module 306 is used to determine that the second version of the search engine test has passed if the number of request parameters that failed to execute is less than or equal to a preset threshold; and to determine that the second version of the search engine test has failed if the number of request parameters that failed to execute is greater than the preset threshold.

[0080] The traffic playback test device for the search engine of the recruitment platform provided by the embodiment of the present application obtains multiple request parameters of the interface of the user calling the search engine through traffic playback. When testing the second version of the search engine, the switch of the new function of the search engine of the second version is first turned off, so that the function in the search engine of the second version is basically the same as that in the search engine of the first version. Therefore, for any request parameter, the search results obtained by the two versions of the search engine are also theoretically consistent, such as the total amount of the search results of the two versions are consistent, the ranking of the search results of the two versions is consistent, etc. Then, by comparing the search results obtained by the two versions of the search engine, if the difference in the total amount and the difference in the ranking of the two versions are large, it means that the search engine of the second version fails to execute the search task of the request parameter; finally, according to the number of request parameters that failed to execute, the test result of the second version of the search engine is obtained, and efficient and accurate automated testing of the second version of the search engine can be achieved. Through automated testing, the test efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test results can be ensured.

[0081] According to some embodiments of the present application, optionally, the comparison module 305 can be specifically used to calculate, for any i-th request parameter, the difference between the total amount of multiple first search results corresponding to the i-th request parameter and the total amount of multiple second search results corresponding to the i-th request parameter, to obtain the total amount difference between the two, where i is a positive integer; in order of arrangement, compare the multiple first search results corresponding to the i-th request parameter with the multiple second search results corresponding to the i-th request parameter one by one, and record the number or proportion of the second search results that are inconsistent with the first search results, to obtain the ranking difference between the two.

[0082] According to some embodiments of the present application, optionally, the target filtering conditions include fixed filtering conditions and manually input filtering conditions, the manually input filtering conditions include keywords entered by the user in the input box of the search engine; the search engine is a job search engine, the fixed filtering conditions include work location, salary, years of work experience, educational requirements, company nature and / or company size, and the keywords include position, function, industry and / or company name; or, the search engine is a resume search engine, the fixed filtering conditions include age, major, education, salary, place of residence, work experience and / or skills, and the keywords include position, function and / or industry.

[0083] According to some embodiments of the present application, optionally, the traffic playback test device 30 for a recruitment platform search engine provided in the embodiments of the present application may include a detection module for detecting whether there is a target function in the first version of the search engine that is not in the second version of the search engine. If so, before calling the interface of the first version of the search engine to obtain multiple first search results corresponding to the request parameter, the switch of the target function in the first version of the search engine is turned off.

[0084] According to some embodiments of the present application, optionally, the traffic playback test device 30 for a recruitment platform search engine provided in an embodiment of the present application may include an output module for outputting a test report after obtaining the judgment result of the second version of the search engine executing the search task for each request parameter; wherein the test report displays an ID corresponding to each request parameter, a request parameter description, a total difference between multiple first search results and multiple second search results, a sorting difference between multiple first search results and multiple second search results, and a judgment result.

[0085] According to some embodiments of the present application, optionally, each new function in the second version of the search engine is provided with a switch program, and the switch program has a first state for turning on the new function and a second state for turning off the new function. The closing module 303 can be specifically used to set the state of the switch program of each new function in the second version of the search engine to the second state.

[0086] Figure 3 Each module / unit in the device shown has the function of implementing each step in the traffic playback test method for the recruitment platform search engine provided in the above method embodiment, and can achieve its corresponding technical effect. For the sake of concise description, it will not be repeated here.

[0087] The electronic device in the embodiment of the present application may be a user terminal device, a server, other computing devices, or a cloud server. Figure 4This is a hardware structure diagram of an electronic device of an embodiment of the present application. The electronic device may include a processor 401 and a memory 402 storing computer program instructions. When the processor 401 executes the computer program instructions, it implements the process or function of any of the above-mentioned embodiment methods.

[0088] Specifically, the processor 401 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application. The memory 402 may include a large-capacity memory for data or instructions. For example, the memory 402 may be at least one of the following: a hard disk drive (HDD), a read-only memory (ROM), a random access memory (RAM), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, a universal serial bus (USB) drive or other physical / tangible memory storage device. For another example, the memory 402 may include a removable or non-removable (or fixed) medium. For another example, the memory 402 may be inside or outside the integrated gateway disaster recovery device. The memory 402 may be a non-volatile solid-state memory. In other words, the memory 402 generally includes a tangible (non-transitory) computer-readable storage medium (such as a memory device) encoded with computer-executable instructions, and when the software is executed (such as executed by one or more processors), the operations described in the method of the embodiments of the present application may be performed. The processor 401 implements the process or function of any method in the above embodiments by reading and executing the computer program instructions stored in the memory 402 .

[0089] In one example, Figure 4The electronic device shown may also include a communication interface 403 and a bus 410. Among them, the processor 401, the memory 402, and the communication interface 403 are connected through the bus 410 and complete the communication between each other. The communication interface 403 is mainly used to realize the communication between each module, device, unit and / or device in the embodiment of the present application. The bus 410 includes hardware, software or both, and can couple the components of the online data traffic billing device to each other. For example, the bus may include at least one of the following: an accelerated graphics port (AGP) or other graphics bus, an enhanced industrial standard architecture (EISA) bus, a front-end bus (FSB), a hypertransport (HT) interconnect, an industrial standard architecture (ISA) bus, an infinite bandwidth interconnect, a low pin count (LPC) bus, a memory bus, a micro channel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standard association local (VLB) bus or other suitable buses. The bus 410 may include one or more buses. Although the embodiments of the present application describe or illustrate a specific bus, the embodiments of the present application may consider any suitable bus or interconnection method.

[0090] In combination with the method in the above embodiments, the embodiments of the present application also provide a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the process or function of any one of the traffic playback test methods for a recruitment platform search engine in the above embodiments is implemented.

[0091] In addition, an embodiment of the present application also provides a computer program product, which stores computer program instructions. When the computer program instructions are executed by a processor, they implement the process or function of any one of the traffic playback test methods for a recruitment platform search engine in the above embodiments.

[0092] The above exemplarily describes the flowcharts and / or block diagrams of the methods, devices, systems and computer program products of the embodiments of the present application, and describes the relevant various aspects. It should be understood that each box or combination thereof in the flowchart and / or block diagram can be implemented by computer program instructions, or by dedicated hardware that performs a specified function or action, or by a combination of dedicated hardware and computer instructions. For example, these computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to form a machine that enables these instructions executed by such a processor to enable the implementation of the functions / actions specified in each box or combination thereof in the flowchart and / or block diagram. Such a processor can be a general-purpose processor, a special-purpose processor, a special application processor or a field programmable logic circuit.

[0093] The functional blocks shown in the structured block diagram of the embodiment of the present application can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc.; when implemented in software, it is a program or code segment used to perform the required task. The program or code segment can be stored in a memory, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0094] It should be noted that the present application is not limited to the specific configurations and processes described above or shown in the figures. The above is only a specific implementation mode of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the described system, device, module or unit can refer to the corresponding process in the method embodiment without further description. It should be understood that the scope of protection of the present application is not limited to this. Any technician familiar with the technical field can think of various equivalent modifications or substitutions within the technical scope disclosed in the present application, and these modifications or substitutions should be included in the scope of protection of the present application.

Claims

1. A traffic playback test method for a recruitment platform search engine, characterized in that: include: Through traffic playback, multiple request parameters of the user's call to the search engine interface are obtained, each request parameter includes a target screening condition for searching for positions or resumes; For any request parameter, based on the request parameter, calling the interface of the first version of the search engine to obtain a plurality of first search results corresponding to the request parameter; Turn off the switch for the new features added to the second version of the search engine; For any request parameter, based on the request parameter, calling the interface of the search engine of the second version to obtain multiple second search results corresponding to the request parameter; Wherein, for the same request parameter, a plurality of first search results corresponding to the request parameter are compared with a plurality of second search results corresponding to the request parameter to obtain a total difference and a ranking difference between the two; if the total difference and / or the ranking difference between the two exceed a preset range, it is determined that the search engine of the second version fails in executing the search task for the request parameter; If the number of request parameters that fail to execute is less than or equal to the preset threshold, the second version of the search engine test is determined to have passed; if the number of request parameters that fail to execute is greater than the preset threshold, the second version of the search engine test is determined to have failed.

2. The method according to claim 1, characterized in that For the same request parameter, multiple first search results corresponding to the request parameter are compared with multiple second search results corresponding to the request parameter to obtain a total difference and a ranking difference between the two, including: For any i-th request parameter, calculate the difference between the total amount of multiple first search results corresponding to the i-th request parameter and the total amount of multiple second search results corresponding to the i-th request parameter to obtain the total amount difference between the two, where i is a positive integer; In order of arrangement, the multiple first search results corresponding to the i-th request parameter are compared one by one with the multiple second search results corresponding to the i-th request parameter, and the number or proportion of second search results that are inconsistent with the first search results are recorded to obtain the ranking difference between the two.

3. The method according to claim 1, characterized in that The target filtering conditions include fixed filtering conditions and manually input filtering conditions. The manually input filtering conditions include keywords entered by the user in the search engine input box; The search engine is a job search engine, and the fixed screening conditions include the location of work, salary, years of work experience, educational requirements, company nature and / or company size, and the keywords include position, function, industry and / or company name; or, The search engine is a resume search engine, and the fixed screening criteria include age, major, education, salary, place of residence, work experience and / or skills, and the keywords include position, function and / or industry.

4. The method according to claim 1, characterized in that: Before calling the interface of the search engine of the first version based on the request parameter to obtain a plurality of first search results corresponding to the request parameter, the method further includes: It is detected whether there is a target function in the first version of the search engine that is not in the second version of the search engine. If there is, the switch of the target function in the first version of the search engine is turned off.

5. The method according to claim 1, characterized in that The method further comprises: After obtaining the determination result of the search task executed by the second version of the search engine for each request parameter, outputting a test report; The test report shows the ID corresponding to each request parameter, the request parameter description, the total difference between the multiple first search results and the multiple second search results, the ranking difference between the multiple first search results and the multiple second search results, and the judgment result.

6. The method according to claim 1, characterized in that Each new function in the second version of the search engine is provided with a switch program, and the switch program has a first state of turning on the new function and a second state of turning off the new function; Turn off the switch for new features added to the second version of the search engine, including: The state of the switch program of each newly added function in the second version of the search engine is set to the second state.

7. A traffic playback test device for a recruitment platform search engine, characterized in that: include: An acquisition module, used to acquire multiple request parameters of the interface of the user calling the search engine through traffic playback, each request parameter including a target screening condition for searching positions or resumes; A first calling module is used to call the interface of the first version of the search engine based on any request parameter to obtain a plurality of first search results corresponding to the request parameter; The shutdown module is used to turn off the switch of the new functions in the second version of the search engine; A second calling module is used to call the interface of the search engine of the second version based on any request parameter to obtain a plurality of second search results corresponding to the request parameter; A comparison module, for comparing, for a same request parameter, a plurality of first search results corresponding to the request parameter with a plurality of second search results corresponding to the request parameter, to obtain a total difference and a ranking difference between the two. If the difference in total amount and / or ranking between the two exceeds a preset range, it is determined that the search engine of the second version fails in executing the search task for the request parameter; The determination module is used to determine that the second version of the search engine test has passed if the number of request parameters that failed to execute is less than or equal to a preset threshold; and to determine that the second version of the search engine test has failed if the number of request parameters that failed to execute is greater than the preset threshold.

8. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; when the electronic device executes the computer program instructions, the traffic playback test method for a recruitment platform search engine as described in any one of claims 1-6 is implemented.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement a traffic playback test method for a recruitment platform search engine as described in any one of claims 1-6.

10. A computer program product, characterized in that It includes computer program instructions, which, when executed by a processor, implement the traffic playback test method for a recruitment platform search engine as described in any one of claims 1-6.

Citation Information

Patent Citations

  • Search engine module testing method, search engine module testing system and devices

    CN102622296A

  • Evaluation method and device for search engine

    CN107291607A

  • System operation and maintenance monitoring method and device, electronic equipment and storage medium

    CN111831628A

  • Automatic regression test method and device, electronic equipment and storage medium

    CN112965910A

  • Method and system for developing a new version of software of an avionics computer

    US20190235854A1