Traffic playback test method, device and equipment for recruitment platform search engine
Through automated testing methods, the new features of the new version of the search engine are turned off, and the differences in search results between the old and new versions are compared. This solves the problems of low efficiency and large error in the existing recruitment platform search engine testing, and achieves efficient and accurate test results.
Patent Information
- Application Number
- CN202411502184.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-25
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-10-25
AI Technical Summary
The traffic playback test of the existing recruitment platform search engine is inefficient, making it difficult to distinguish between existing functions and new functions. It also relies on manual testing, which is easily affected by human factors, resulting in large errors in the test results and making it difficult to meet the needs of rapid iteration and optimization.
Obtain user request parameters through traffic playback, turn off the new function switch of the new version of the search engine, compare the differences in search results between the new and old versions, automatically determine whether the test passes or fails, and use automated testing to reduce the impact of human factors.
It achieves efficient and accurate automated testing, improves test efficiency, reduces the impact of human factors, and ensures the accuracy and reliability of test results.
Smart Images

Figure CN119441037B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of big data service, and particularly relates to a traffic playback test method and device for a search engine of a recruitment platform, an electronic device, a computer readable storage medium and a computer program product. BACKGROUND
[0002] The search engine of the recruitment platform can be used by a user to search for a desired position or a job seeker's resume, so that the job seeker can find a suitable position and company, or the recruiter can find suitable talents.
[0003] After the version of the search engine of the recruitment platform is updated, in order to ensure that the new version of the search engine can normally run in different environments and provide good user experience, the traffic playback test of the new version of the search engine is usually needed. The current traffic playback test method usually does not distinguish the original function and the new function in the new version of the search engine, and the original function and the new function are usually tested together, which is low in test efficiency and is prone to errors. Moreover, the current traffic playback test of the search engine of the recruitment platform usually depends on manual execution, which not only consumes time and effort, but also is low in efficiency. With the continuous expansion and update of the function of the search engine, manual test has been difficult to meet the needs of rapid iteration and continuous optimization. Moreover, manual test is prone to be affected by human factors such as fatigue and distraction, which leads to errors in test results. SUMMARY
[0004] Therefore, the embodiments of the present application provide a traffic playback test method and device for a search engine of a recruitment platform, an electronic device, a computer readable storage medium and a computer program product, which are used to solve the at least one technical problem.
[0005] The embodiment of the application provides a traffic playback test method for a search engine of a recruitment platform, comprising the following steps: obtaining a plurality of request parameters of an interface of a search engine called by a user through traffic playback, wherein each request parameter comprises a target screening condition for searching a position or a resume; for any one request parameter, calling the interface of the first version of the search engine based on the request parameter to obtain a plurality of first search results corresponding to the request parameter; turning off the switch of the newly added function in the second version of the search engine; for any one request parameter, calling the interface of the second version of the search engine based on the request parameter to obtain a plurality of second search results corresponding to the request parameter; wherein for the same request parameter, the plurality of first search results corresponding to the request parameter are compared with the plurality of second search results corresponding to the request parameter to obtain the total quantity difference and the sorting difference; if the total quantity difference and / or the sorting difference exceeds a preset range, it is determined that the second version of the search engine fails to perform the search task of the request parameter; if the number of the request parameters that fail to perform is less than or equal to a preset threshold, it is determined that the second version of the search engine passes the test; if the number of the request parameters that fail to perform is greater than the preset threshold, it is determined that the second version of the search engine fails the test.
[0006] According to some embodiments of the application, optionally, for the same request parameter, the plurality of first search results corresponding to the request parameter are compared with the plurality of second search results corresponding to the request parameter to obtain the total quantity difference and the sorting difference, comprising: for any ith request parameter, calculating the difference between the total quantity of the plurality of first search results corresponding to the ith request parameter and the total quantity of the plurality of second search results corresponding to the ith request parameter to obtain the total quantity difference, wherein i is a positive integer; comparing the plurality of first search results corresponding to the ith request parameter with the plurality of second search results corresponding to the ith request parameter one by one according to the arrangement order, and recording the number or proportion of the second search results that are inconsistent with the first search results to obtain the sorting difference.
[0007] According to some embodiments of the application, optionally, the target screening condition comprises a fixed screening condition and a manually input screening condition, the manually input screening condition comprises a keyword input by a user in an input box of the search engine; the search engine is a position search engine, the fixed screening condition comprises a work location, a salary, a work seniority, an educational requirement, a company nature and / or a company size, and the keyword comprises a position, a function, an industry and / or a company name; or, the search engine is a resume search engine, the fixed screening condition comprises an age, a major, an education, a salary, a residence, a work experience and / or a skill, and the keyword comprises a position, a function and / or an industry.
[0008] According to some embodiments of the present application, optionally, before the interface of the first version of the search engine is called based on the request parameter, and the plurality of first search results corresponding to the request parameter are obtained, the traffic playback test method for the search engine of the recruitment platform further comprises: 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 there is, closing 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 the search engine of the recruitment platform further comprises: after the determination result of the search task of each request parameter performed by the second version of the search engine is obtained, outputting a test report; wherein the test report shows the ID corresponding to each request parameter, the request parameter description, the total quantity difference between the plurality of first search results and the plurality of second search results, the sorting difference between the plurality of first search results and the plurality of second search results, and the determination 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 of turning on the new function and a second state of turning off the new function; closing the switch of the new function in the second version of the search engine comprises: 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 embodiments of the present application provide a traffic playback test device for a search engine of a recruitment platform, comprising: an acquisition module configured to acquire a plurality of request parameters for calling an interface of a search engine by traffic playback, each request parameter comprising a target screening condition for searching for a position or a resume; a first calling module configured to, for any one request parameter, call an interface of a first version of the search engine based on the request parameter, and obtain a plurality of first search results corresponding to the request parameter; a closing module configured to close a switch of a new function in a second version of the search engine; a second calling module configured to, for any one request parameter, call an interface of the second version of the search engine based on the request parameter, and obtain a plurality of second search results corresponding to the request parameter; a comparison module configured to, for the same request parameter, compare the plurality of first search results corresponding to the request parameter with the plurality of second search results corresponding to the request parameter, and obtain a total quantity difference and a sorting difference; if the total quantity difference and / or the sorting difference exceeds a preset range, it is determined that the search task of the request parameter performed by the second version of the search engine fails; a determination module configured to, if the number of request parameters that fail to perform is less than or equal to a preset threshold, determine that the second version of the search engine passes the test; and if the number of request parameters that fail to perform is greater than the preset threshold, determine that the second version of the search engine fails the test.
[0012] The embodiment of the present application provides an electronic device, which comprises a processor and a memory storing computer program instructions; the processor implements the steps of the traffic playback test method for a recruitment platform search engine when executing the computer program instructions.
[0013] The embodiment of the present application provides a computer readable storage medium, which stores computer program instructions; the computer program instructions are executed by a processor to implement the steps of the traffic playback test method for a recruitment platform search engine.
[0014] The embodiment of the present application provides a computer program product, which comprises computer program instructions; the computer program instructions are executed by a processor to implement the steps of the traffic playback test method for a recruitment platform search engine.
[0015] The traffic playback test method, device, electronic device, computer readable storage medium and computer program product for a recruitment platform search engine provided by the embodiment of the present application can obtain a plurality of request parameters of an interface of a search engine called by a user through traffic playback, and the switch of a new function of a second version of the search engine is closed when the second version of the search engine is tested, so that the functions in the second version of the search engine are basically consistent with the functions in a first version of the search engine. Therefore, the search results of the two versions of the search engine are theoretically consistent for any request parameter, such as the total amount of the search results and the sorting of the search results. Then, the search results of the two versions of the search engine are compared, if the total amount difference and the sorting difference are large, it indicates that the second version of the search engine fails to execute the search task of the request parameter. Finally, the test result of the second version of the search engine is obtained according to the number of the request parameters that fail to be executed, and the efficient and accurate automatic test of the second version of the search engine can be realized. Through the automatic test, the test efficiency can be improved, the influence of human factors can be reduced, and the accuracy and reliability of the test result can be ensured. BRIEF DESCRIPTION OF DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings in the embodiments of the present application.
[0017] Figure 1 A flowchart of the traffic playback test method for a recruitment platform search engine provided by the embodiment of the present application.
[0018] Figure 2 Another flowchart of the traffic playback test method for a recruitment platform search engine provided by the 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 by an embodiment of the present application.
[0020] Figure 4 A hardware structural schematic diagram of an electronic device of an embodiment of the present application. DETAILED DESCRIPTION
[0021] The principles and spirits of the present application will be described below with reference to a plurality of exemplary embodiments. It should be understood that the purpose of providing these embodiments is to make the principles and spirits of the present application clearer and more thorough, and to enable those skilled in the art to better understand and implement the principles and spirits of the present application. The exemplary embodiments provided herein are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments herein, all other embodiments obtained by those skilled in the art without creative effort fall within the scope of protection of the present application.
[0022] It should be noted that, in the present document, the relationship terms such as first and second 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”, “contain” or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, 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 herein is only a description of the association relationship between the associated objects, which means that there can be three relationships, for example, A and / or B can represent the three cases of A alone, A and B together, and B alone. In addition, the character “ / ” herein generally represents an “or” relationship between the front and rear associated objects.
[0024] Various modifications and changes can be made to the present application without departing from the spirit or scope of the present application, which will be apparent to one skilled in the art. Therefore, the present application is intended to cover the modifications and changes of the present application falling within the scope of the corresponding claims (claimed technical solutions) and their equivalents. It should be noted that the embodiments provided by the embodiments of the present application can be combined with each other without contradiction.
[0025] Before the technical solutions provided by the embodiments of the present application are described, 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 can be used by users to search for desired positions or resumes of job seekers, so that the job seekers can find suitable positions and companies, or the recruiters can find suitable talents.
[0027] After the version of the search engine of the recruitment platform is updated, in order to ensure that the new version of the search engine can normally run in different environments and provide good user experience, it is usually necessary to perform traffic playback testing on the new version of the search engine. The current traffic playback testing method usually does not distinguish between the original functions and the new functions in the new version of the search engine, and the original functions and the new functions are often tested together, which is low in testing efficiency and prone to errors. Moreover, the current traffic playback testing of the search engine of the recruitment platform often relies on manual execution, which not only consumes time and effort, but also is low in efficiency. With the continuous expansion and update of the functions of the search engine, manual testing has been difficult to meet the needs of rapid iteration and continuous optimization. Moreover, manual testing is easily affected by human factors such as fatigue and distraction, resulting in 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 testing method, device, electronic equipment, computer readable storage medium and computer program product for a search engine of a recruitment platform, which can solve the at least one technical problem existing in the related art.
[0029] The traffic playback testing method for the search engine of the recruitment platform provided by the embodiments of the present application will be introduced first.
[0030] Figure 1 A flowchart of the traffic playback testing method for the search engine of the recruitment platform provided by the embodiments of the present application is shown. As shown in Figure 1 The traffic playback testing method for the search engine of the recruitment platform provided by the embodiments of the present application can include the following steps S101-S106.
[0031] S101: Obtain a plurality of request parameters of the interface of the search engine called by the user through traffic playback, and each request parameter includes a target screening condition for searching for a position or a resume.
[0032] Traffic Replay can verify the behavior and performance of a system by capturing real traffic online and replaying the traffic in a test environment. A user can search for a desired position or resume through a search engine by invoking an interface, such as an API interface, of the search engine of the recruitment platform. In S101, a plurality of request parameters for invoking the interface of the search engine by the same user or different users can be obtained, and the specific number can be flexibly adjusted according to actual conditions, which is not limited in the present application. For example, in some examples, 100, 1000 or 10000 request parameters for invoking the interface of the search engine by the same user or different users can be obtained. Each request parameter can include a target screening condition for searching for a position or a resume, such as age, major, education, salary, residence and / or work experience, etc. The target screening conditions in the plurality of request parameters can be different to test the comprehensiveness of the traffic replay of the search engine of the recruitment platform.
[0033] S102: For any one request parameter, based on the request parameter, an interface of the first version of the search engine is invoked to obtain a plurality of first search results corresponding to the request parameter.
[0034] Each request parameter can include a target screening condition for searching for a position or a resume. For any one request parameter, based on the target screening condition of the request parameter, the interface of the first version of the search engine is invoked to obtain a plurality of first search results corresponding to the request parameter searched by the first version of the search engine.
[0035] When the search engine is a position search engine and the target screening condition is a screening condition for searching for a position, the first search result can be a position 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 for a resume, the first search result can be a resume searched by the first version of the search engine.
[0036] S103: Turn off the switch of the newly added 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 search engines. 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, which is used to represent the version update of the second version of the search engine.
[0038] With the update of the version, the search engine of the second version can be provided with new functions, such as adding one or more filtering conditions to search for positions or resumes on the basis of the original functions, which are not limited in the application. When setting the new functions, the switch of the new functions can be set. The switch can be used to turn on or off the new functions in the search engine of the second version.
[0039] In S103, the switch of the new functions in the search engine of the second version can be turned off, that is, the new functions in the search engine of the second version are turned off, and only the original functions in the search engine of the second version are retained.
[0040] S104: For any one request parameter, based on the request parameter, the interface of the search engine of the second version is called to obtain a plurality of second search results corresponding to the request parameter.
[0041] For any one request parameter, the interface of the search engine of the second version can be called based on the target filtering condition of the request parameter, so as to obtain a plurality of second search results corresponding to the request parameter searched by the search engine of the second version.
[0042] When the search engine is a position search engine and the target filtering condition is a filtering condition for searching positions, the second search result can be a position searched by the search engine of the second version. When the search engine is a resume search engine and the target filtering condition is a filtering condition for searching resumes, the second search result can be a resume searched by the search engine of the second version.
[0043] S105: For the same request parameter, the plurality of first search results corresponding to the request parameter are compared with the plurality of second search results corresponding to the request parameter, and the total amount difference and the sorting difference are obtained; if the total amount difference and / or the sorting difference exceeds the preset range, it is determined that the search task of the request parameter performed by the search engine of the second version fails.
[0044] For the same request parameter, the plurality of first search results corresponding to the request parameter can be compared with the plurality of second search results corresponding to the request parameter, and the total amount difference and the sorting difference are obtained, that is, the total amount difference and the sorting difference between the plurality of first search results and the plurality of second search results corresponding to the request parameter.
[0045] Since the newly added function of the second version of the search engine is closed, the functions in the second version of the search engine are basically consistent with the functions 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 total amount difference and / or the sorting difference between the two versions exceeds the preset range, it can be determined that the second version of the search engine fails to perform the search task of the request parameter. The size of the preset range can be flexibly adjusted according to actual conditions, and the present application does not limit this.
[0046] S106: If the number of request parameters that fail to be executed is less than or equal to the preset threshold, it is determined that the second version of the search engine passes the test; if the number of request parameters that fail to be executed is greater than the preset threshold, it is determined that the second version of the search engine fails the test.
[0047] If the number of request parameters that fail to be executed in the plurality of request parameters is less than or equal to the preset threshold, it is determined that the second version of the search engine passes the test, at least indicating that the original function test of the second version of the search engine is correct. If the number of request parameters that fail to be executed in the plurality of request parameters is greater than the preset threshold, it is determined that the second version of the search engine fails the test. The size of the preset threshold can be flexibly adjusted according to actual conditions, and the present application does not limit this.
[0048] The embodiment of the present application provides a traffic playback test method for a search engine of a recruitment platform. The traffic playback is used to obtain a plurality of request parameters of a user calling an interface of the search engine. When testing the second version of the search engine, the switch of the newly added function of the second version of the search engine is closed, 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. Therefore, for any request parameter, the search results obtained by the two versions of the search engine are theoretically consistent, such as the consistency of the total amount of the search results and the consistency of the sorting of the search results. Then, by comparing the search results obtained by the two versions of the search engine, if the total amount difference and the sorting difference between the two versions are large, it indicates that the second version of the search engine fails to perform the search task of the request parameter. Finally, according to the number of request parameters that fail to be executed, the test result of the second version of the search engine is obtained, and efficient and accurate automatic testing of the second version of the search engine can be realized. Through automatic testing, the testing efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test result can be ensured.
[0049] According to some embodiments of the present application, optionally, S105: for the same request parameter, the plurality of first search results corresponding to the request parameter are compared with the plurality of second search results corresponding to the request parameter, and the total amount difference and the sorting difference between the two versions are obtained, which can include the following steps one and two.
[0050] Step one: for any ith request parameter, calculate the difference between the total number of the plurality of first search results corresponding to the ith request parameter and the total number of the plurality of second search results corresponding to the ith request parameter, to obtain the total number difference between the two.
[0051] The ith request parameter is any one of the plurality of request parameters, and i is a positive integer. For any ith request parameter, the difference between the total number of the plurality of first search results corresponding to the ith request parameter and the total number of the plurality of second search results corresponding to the ith request parameter can be calculated to obtain the total number difference between the two. For example, the total number of the plurality of first search results corresponding to the ith request parameter is N1, and the total number of the plurality of second search results corresponding to the ith request parameter is N2, then the total number difference between the two can be the absolute value of N1-N2. N1 and N2 are both positive integers.
[0052] Step two: according to the arrangement order, compare the plurality of first search results corresponding to the ith request parameter with the plurality of second search results corresponding to the ith 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 sorting difference between the two.
[0053] Specifically, the plurality of 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 plurality of 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, i.e. the same sorting strategy. Therefore, the arrangement order of the plurality of first search results corresponding to the ith request parameter is theoretically the same as the arrangement order of the plurality of second search results corresponding to the ith request parameter. Taking a position search as an example, for example, the plurality of first search results corresponding to the ith request parameter can be position 1, position 2, position 3, …, and the plurality of second search results corresponding to the ith request parameter can be position 1, position 2, position 3, ….
[0054] In step two, the first i request parameter corresponding to a plurality of first search results can be compared with the first i request parameter corresponding to a plurality of second search results in order of arrangement. That is, the first i request parameter corresponding to the first first search result is compared with the first i request parameter corresponding to the first second search result, the second first search result corresponding to the first i request parameter is compared with the second second search result corresponding to the first i request parameter, and so on. In step two, the number or proportion of second search results inconsistent with the first search results can be recorded, and the difference between the two rankings is obtained. For example, the fourth first search result corresponding to the i request parameter is position 4, and the fourth second search result corresponding to the i request parameter is position 4', which is inconsistent with position 4. Then the fourth second search result is the second search result inconsistent with the first search result.
[0055] According to some embodiments of the present application, the target screening condition can include a fixed screening condition and a manually input screening condition. The fixed screening condition can be one or more screening conditions selected by the user from a plurality of screening conditions preset by the search engine, and the manually input screening condition can include a keyword input by the user in the input box of the search engine.
[0056] In some embodiments, the search engine can be a position search engine, and accordingly, the fixed screening condition can include work location, salary, work experience, education requirement, company nature and / or company size, and the keyword can include position, function, industry and / or company name. The position usually refers to a specific post or role within an organization, such as "software development engineer". The function refers to a certain work field or responsibility range within an organization, and the function can span multiple positions, such as "marketing", "R&D", "finance", etc.
[0057] That is, the present application can realize the automatic testing of the new version of the position search engine. Through the automatic 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 can be a resume search engine, and accordingly, the fixed screening condition can include age, major, education, salary, residence, work experience and / or skill, and the keyword can include position, function and / or industry.
[0059] That is, the present application can realize the automatic testing of the new version of the resume search engine. Through the automatic 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 second version of the search engine 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, which facilitates 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 further include the following steps:
[0065] S201: Detect whether the first version of the search engine has a target function that is not present in the second version of the search engine. If so, disable the switch of the target function in the first version of the search engine.
[0066] Specifically, based on actual needs, one or more original functions may be deleted from the second version of the search engine, resulting in the presence of target functions in the first version of the search engine that are not present in the second version of the search engine. The target functions may be one or more functions that are not present in the second version of the search engine. If the first version of the search engine contains target functions that are not present in the second version of the search engine, the switch for the target functions in the first version of the search engine may be turned off, further making the functions in the second version of the search engine substantially consistent with those in the first version of the search engine, to facilitate subsequent comparison of search results. If the first version of the search engine contains target functions that are not present in the second version of the search engine, proceed to 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 the recruitment platform search engine can further include the following steps:
[0069] After obtaining the determination result of the second version of the search engine performing the search task of each request parameter, a test report is output.
[0070] The test report shows the ID corresponding to each request parameter, the request parameter description, the total quantity difference between the first search results and the second search results, the sorting difference between the first search results and the second search results, and the determination result. In some embodiments, the test report can also show the number or proportion of request parameters that fail to execute, and the test result of the second version of the search engine.
[0071] In this way, the operator can understand the test situation of each request parameter and the final test result of the second version of the search engine, so as to find the cause of the test failure in time.
[0072] Based on the same technical concept as the traffic playback test method for the recruitment platform search engine provided in the above embodiments, the present application also provides a traffic playback test device for a recruitment platform search engine.
[0073] Figure 3 A structural diagram of the traffic playback test device for the recruitment platform search engine provided by the embodiments of the present application is shown in FIG. 3. As shown in FIG. 3, the traffic playback test device 30 for the recruitment platform search engine provided by the embodiments of the present application can include the following modules: Figure 3
[0074] The acquisition module 301 is configured to acquire, through traffic playback, a plurality of request parameters for calling the interface of the search engine by a user, each request parameter including a target screening condition for searching for a position or a resume;
[0075] The first calling module 302 is configured to, for any one request parameter, call the interface of the first version of the search engine based on the request parameter, and obtain a plurality of first search results corresponding to the request parameter;
[0076] The closing module 303 is configured to close the switch of the newly added function in the second version of the search engine;
[0077] The second calling module 304 is configured to, for any one request parameter, call the interface of the second version of the search engine based on the request parameter, and obtain a plurality of second search results corresponding to the request parameter;
[0078] The comparison module 305 is configured to compare the plurality of first search results corresponding to the request parameter with the plurality of second search results corresponding to the request parameter, to obtain a total quantity difference and a ranking difference between the two, for the same request parameter; if the total quantity difference and / or the ranking difference between the two exceeds a preset range, it is determined that the second version of the search engine fails to perform the search task of the request parameter;
[0079] The determination module 306 is configured to determine that the second version of the search engine passes the test if the number of request parameters that fail to be executed is less than or equal to a preset threshold; and determine that the second version of the search engine fails the test if the number of request parameters that fail to be executed is greater than the preset threshold.
[0080] The device for traffic playback test of a search engine of a recruitment platform provided by the embodiments of the present application obtains a plurality of request parameters of a user calling an interface of a search engine through traffic playback, and when testing a second version of the search engine, the switch of a new function of the second version of the search engine is closed first, so that the functions in the second version of the search engine are basically consistent with the functions in a first version of the search engine. Therefore, for any request parameter, the search results obtained by the two versions of the search engine are theoretically consistent, such as the total quantity of the search results being consistent, the ranking of the search results being consistent, and the like. Then, the search results obtained by the two versions of the search engine are compared, if the total quantity difference and the ranking difference between the two are large, it indicates that the second version of the search engine fails to perform the search task of the request parameter; finally, according to the number of request parameters that fail to be executed, the test result of the second version of the search engine is obtained, and efficient and accurate automatic testing of the second version of the search engine can be realized. Through the automatic testing, the test efficiency can be significantly improved, the influence of human factors can be reduced, and the accuracy and reliability of the test result can be ensured.
[0081] According to some embodiments of the present application, the comparison module 305 can be configured to, for any ith request parameter, calculate the difference between the total quantity of the plurality of first search results corresponding to the ith request parameter and the total quantity of the plurality of second search results corresponding to the ith request parameter, to obtain a total quantity difference between the two, i is a positive integer; compare the plurality of first search results corresponding to the ith request parameter with the plurality of second search results corresponding to the ith request parameter one by one according to the arrangement order, and record the number or proportion of the second search results that are inconsistent with the first search results, to obtain a ranking difference between the two.
[0082] According to some embodiments of the present application, optionally, the target screening condition includes a fixed screening condition and a manually input screening condition, the manually input screening condition includes a keyword input by a user in an input box of the search engine; the search engine is a position search engine, the fixed screening condition includes a work location, a salary, a work seniority, an educational requirement, a company nature and / or a company size, and the keyword includes a position, a function, an industry and / or a company name; or, the search engine is a resume search engine, the fixed screening condition includes an age, a major, an education, a salary, a residence, a work experience and / or a skill, and the keyword includes a position, a function and / or an industry.
[0083] According to some embodiments of the present application, optionally, the device 30 for traffic playback test of a search engine of a recruitment platform provided by the embodiments of the present application can include a detection module configured to detect whether a target function in a first version of the search engine is not present in a second version of the search engine, and if so, close a switch of the target function in the first version of the search engine before an interface of the first version of the search engine is called to obtain a plurality of first search results corresponding to the request parameter.
[0084] According to some embodiments of the present application, optionally, the device 30 for traffic playback test of a search engine of a recruitment platform provided by the embodiments of the present application can include an output module configured to output a test report after a determination result of a search task of each request parameter performed by the second version of the search engine is obtained; and the test report shows an ID corresponding to each request parameter, a request parameter description, a total quantity difference between the plurality of first search results and the plurality of second search results, a sorting difference between the plurality of first search results and the plurality of second search results, and the determination 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 of turning on the new function and a second state of turning off the new function. The closing module 303 can be specifically configured 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 has the function of each step in the method for traffic playback test of a search engine of a recruitment platform provided by the method embodiments, and can achieve the corresponding technical effects. For brevity, it will not be described here.
[0087] The electronic device in the embodiments of the present application can be a user terminal device, can be a server, can be other computing devices, or can be a cloud server. Figure 4A hardware structure schematic diagram of an electronic device of an embodiment of the present application can include a processor 401 and a memory 402 storing computer program instructions, and the processor 401 implements the flow or function of the method of any of the above embodiments when executing the computer program instructions.
[0088] Specifically, the processor 401 can include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or can be configured to implement one or more integrated circuits of the embodiments of the present application. The memory 402 can include a mass storage for data or instructions. For example, the memory 402 can be at least one of 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 magnetic tape, a universal serial bus (USB) drive, or other physical / tangible memory storage devices. In another example, the memory 402 can include removable or non-removable (or fixed) media. In yet another example, the memory 402 can be internal or external to the integrated gateway disaster recovery device. The memory 402 can be a non-volatile solid-state memory. In other words, generally the memory 402 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 (e.g., by one or more processors), the operations described in the method of the embodiments of the present application can be performed. The processor 401 implements the flow or function of the method of any of 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 can also include a communication interface 403 and a bus 410. Among them, the processor 401, the memory 402, 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 various modules, devices, units and / or equipment in the embodiments of the application. The bus 410 includes hardware, software or both, which can couple the components of the online data flow billing device to each other. For example, the bus can include at least one of the following: accelerated graphics port (AGP) or other graphics bus, enhanced industry standard architecture (EISA) bus, front side bus (FSB), hyper transport (HT) interconnect, industry standard architecture (ISA) bus, infiniband interconnect, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnect (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standards association local (VLB) bus or other suitable bus. The bus 410 can include one or more buses. Although the embodiments of the application describe or show a specific bus, any suitable bus or interconnection method can be considered by the embodiments of the application.
[0090] In combination with the method in the above embodiments, the embodiments of the present application also provide a computer readable storage medium, which has stored thereon computer program instructions, and the computer program instructions are executed by a processor to implement the flow or function of any of the above-mentioned embodiments of the method for traffic playback test of a search engine of a recruitment platform.
[0091] In addition, the embodiments of the present application also provide a computer program product, which has stored thereon computer program instructions, and the computer program instructions are executed by a processor to implement the flow or function of any of the above-mentioned embodiments of the method for traffic playback test of a search engine of a recruitment platform.
[0092] The flowcharts and / or block diagrams of the methods, devices, systems and computer program products of the embodiments of the present application are described above as examples, and the related aspects are described. It should be understood that each block in the flowchart and / or block diagram can be implemented by computer program instructions, or by special hardware that performs specified functions or actions, or by a combination of special 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 apparatus to form a machine, so that the instructions executed by the processor enable the implementation of the functions / actions specified in each block or combination of blocks 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 structural block diagram of the embodiments 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 tasks. The program or code segment can be stored in a memory or transmitted through a data signal carried in a carrier wave over a transmission medium or communication link. 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 drawings. The above description is merely a specific implementation of the present application, and those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the described systems, devices, modules or units can refer to the corresponding processes in the method embodiments, which need not be described again. It should be understood that the scope of protection of the present application is not limited thereto, and any skilled in the art can think of various equivalent modifications or replacements within the technical scope disclosed by the present application, and these modifications or replacements should be covered within 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 calling the search engine interface are obtained. Each request parameter includes the target filter criteria for searching for positions or resumes. For any request parameter, based on the request parameter, call the interface of the first version of the search engine to obtain multiple first search results corresponding to the request parameter; Turn off the switch for 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 second version of the search engine to obtain multiple second search results corresponding to the request parameter; 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. If the total difference and / or the ranking difference exceeds a preset range, it is determined that the second version of the search engine has failed in executing the search task for the request parameter. If the number of request parameters that failed 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 failed 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, 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 ranking difference between the two, including: For any i-th request parameter, calculate the difference between the total number of first search results corresponding to the i-th request parameter and the total number of second search results corresponding to the i-th request parameter, and obtain the total 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 Target filtering conditions include fixed filtering conditions and manually input filtering conditions. Manually input filtering conditions include keywords entered by users in the search engine input box; The search engine is a job search engine, and the fixed screening criteria include job location, salary, years of work experience, educational requirements, company nature and / or company size, and the keywords include job title, function, industry and / or company name; or, The search engine is a resume search engine, and the fixed screening conditions 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, wherein Before calling the interface of the first version of the search engine 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 the first version of the search engine has a target function that is not present in the second version of the search engine. If so, the switch of the target function in the first version of the search engine is turned off.
5. The method according to claim 1, wherein 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 displays 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, the switch program having 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 is used to obtain multiple request parameters of the user's call to the search engine interface through traffic playback, each request parameter including target screening conditions for searching for positions or resumes; A first calling module is configured to call an interface of a first version of a 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 disable the switch of the new features in the second version of the search engine; A second calling module is configured to call an interface of a second version of the search engine based on any request parameter to obtain a plurality of second search results corresponding to the request parameter; A comparison module is used to compare, for the same request parameter, multiple first search results corresponding to the request parameter with multiple 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 judgment module is used to judge 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 judge 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 includes: a processor and a memory storing computer program instructions; when the electronic device executes the computer program instructions, it implements the traffic playback test method for a recruitment platform search engine according to any one of claims 1 to 6.
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 the traffic replay test method for a recruitment platform search engine according to any one of claims 1 to 6.
10. A computer program product, characterized in that It includes computer program instructions, which, when executed by a processor, implement the traffic replay test method for a recruitment platform search engine as described in any one of claims 1 to 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