Position information release regression test method and system and electronic equipment

By using automated regression testing methods and systems, the problems of low efficiency and poor accuracy in job posting testing are solved, achieving efficient and comprehensive test coverage and data consistency, making it suitable for regression testing of job postings.

CN121764784APending Publication Date: 2026-03-31QIAN JIN NETWORK INFORMATION TECH SHANGHAI LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-30
Publication Date
2026-03-31

AI Technical Summary

Technical Problem

In existing technologies, regression testing for job postings is inefficient, error-prone, and labor-intensive, making it difficult to comprehensively cover multi-dimensional verification and ensuring data consistency.

Method used

An automated regression testing approach based on pre-built test case datasets is adopted, including simulated release, multi-dimensional verification, and report generation. Automated testing of job information is achieved using automation tools such as Selenium and Allure Report.

Benefits of technology

It improves testing efficiency, reduces manual labor, ensures testing accuracy and coverage, supports continuous integration and continuous delivery, and is maintainable and scalable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121764784A_ABST
    Figure CN121764784A_ABST
Patent Text Reader

Abstract

The invention relates to a regression test method and system for position information release and electronic equipment, and the method comprises the steps: obtaining a plurality of groups of test case data suitable for a target position based on a preset test case data set, the test case data comprising legal user identity data, test data and expected data; performing simulation release of target position information based on the test data of each test case; release response data of multiple dimensions are obtained, and verification is carried out based on the expected data of each test case in each dimension and the release response data; and recording data generated during simulation release of the target position information, release response data of multiple dimensions and verification data, and generating a regression test report for release of the target position information based on the recorded data. According to the invention, the test efficiency is improved, the manual labor amount is reduced, the test accuracy is high, the coverage is wide, and the expandability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a regression testing method, system, and electronic device for job information posting. Background Technology

[0002] With the widespread adoption of online recruitment, it has become standard practice for companies to post job information through their own recruitment platforms or third-party recruitment platforms. To facilitate the posting of job information, platforms typically provide some typical job function fields for recruiters to fill in. A typical job posting usually includes dozens of fields, such as job title, company, department, work address, job description, and job requirements. Furthermore, different job functions require different fields, and platform developers need to update and iterate the job posting function based on the increasing demand for new job functions and changes to existing job fields.

[0003] Currently, regression testing of the entire job posting process is required every time the job posting function undergoes a system iteration or update. This regression testing typically involves testers manually filling out and submitting forms, followed by multi-dimensional verification based on validation requirements. This current regression testing process has the following problems: First, manual testing is inefficient and error-prone. The overall testing process is time-consuming and prone to errors due to human fatigue.

[0004] Secondly, regression testing is labor-intensive. Testers need to manually test every change across all scenarios, which is a significant workload.

[0005] Furthermore, multi-dimensional verification is difficult. Complete testing requires not only verifying the front-end display, but also verifying the back-end database storage, various middleware data, and compatibility across different browsers / devices. Manual testing is unlikely to cover all these scenarios.

[0006] Furthermore, data consistency is difficult to guarantee. For complex fields (such as drop-down selection boxes and linked fields), inconsistencies between the front-end and back-end data can easily arise due to configuration errors, and manual testing is unlikely to fully cover all data combinations. Summary of the Invention

[0007] To address the technical problems existing in the prior art, this invention proposes a regression testing method, system, and electronic device for job information posting that is efficient, accurate, and covers a wide range of scenarios.

[0008] To address the aforementioned technical problems, according to one aspect of the present invention, a regression testing method for job information posting is provided, the method comprising: Based on a pre-set test case dataset, multiple sets of test case data suitable for the target position are obtained. The test case data includes legitimate user identity data, test data, and expected data. Simulate the posting of target job information based on test data from each test case; Acquire release response data from multiple dimensions and verify the expected data and release response data for each dimension based on each test case; and Record the data generated during the simulated posting of the target job information, the posting response data from multiple dimensions, and the verification data, and generate a regression test report on the posting of the target job information based on the recorded data.

[0009] Optionally, the steps for simulating the posting of target job information based on test data for each test case include: The job posting page is invoked, wherein the job posting page includes multiple job information fields and user operation buttons, wherein the job information fields include at least a job function field, and the user operation buttons include at least a submit button representing posting; Fill in the job information field on the posting page based on the test data of the current test case; Simulate user clicks on user action buttons; and When a simulated click on the submit button is successfully responded to, the simulated posting of the target job information is confirmed to be complete.

[0010] Optionally, when filling in the job information fields on the posting page based on the test data of the current test case, a business logic verification step is further included: After filling in the job function fields on the posting page, retrieve the job information fields from the current posting page; Retrieve the business logic conditions for the current function's job information field from the job information field configuration file; Based on the aforementioned business logic conditions, validate the job information field in the currently published page; and If the job information fields on the current posting page conform to the business logic, fill in the remaining job information fields; if the job information fields on the current posting page do not conform to the business logic, end the regression test on the target job information posting based on the test data of the current test case.

[0011] Optionally, the dimension is displayed on the front end. Correspondingly, the steps of obtaining release response data for multiple dimensions and verifying the expected data and release response data for each dimension based on each test case include: Obtain the redirect page address after a successful simulated release; The content to be displayed on the redirected page is obtained based on the redirected page address; Compare whether the displayed content of the redirected page matches the expected data; and If the content displayed on the redirected page matches the expected data, the front-end display dimension verification of the current test case is determined to be successful; if the content displayed on the redirected page does not match the expected data, the front-end display dimension verification of the current test case is determined to be unsuccessful. Correspondingly, record the content displayed on the redirected page and the verification results of the front-end display dimension of the current test case.

[0012] Optionally, the dimension is persisted in the database. Correspondingly, the steps of obtaining release response data for multiple dimensions and verifying the expected data and release response data for each dimension based on each test case include: Query the job information drop-down table in the database to obtain the drop-down data for the target job information; Compare the consistency between the target job information data stored in the database and the expected data for the current test case; and If the data stored in the database for the target job information is consistent with the expected data for the current test case, the database persistence dimension verification for the current test case is confirmed to have passed. If the data stored in the database for the target job information is inconsistent with the expected data for the current test case, the database persistence dimension verification for the current test case is confirmed to have failed. Correspondingly, the database persistence dimension verification results of the target job information and the database persistence information of the current test case are recorded.

[0013] Optionally, the dimension is middleware. Correspondingly, the steps of obtaining release response data from multiple dimensions and verifying the expected data and release response data for each dimension based on each test case include: Query the middleware's data index list to obtain the index data for the target job information; Compare the consistency between the indexed data of the target job information and the expected data of the current test case; and If the index data of the target job information is consistent with the expected data of the current test case, the middleware dimension verification of the current test case is confirmed to be successful. If the index data of the target job information is inconsistent with the expected data of the current test case, the middleware dimension verification of the current test case is confirmed to be unsuccessful. Correspondingly, the index data of the target job information and the middleware dimension verification results of the current test case are recorded.

[0014] Optionally, the steps of obtaining multiple sets of test case data applicable to the target position based on a pre-built test case dataset include: Based on the target job query, a pre-set test case dataset is used to obtain the first primary data of multiple test cases suitable for the same type of job in different environments. The first primary data of each test case includes at least the input information of the pre-set job information field and the expected data of multiple verification dimensions. The input information of the pre-set job information field constitutes the test data. Determine whether the first primary data for each test case includes valid user identity data; and In response to the fact that the first primary data of the test case does not include valid user identity data, valid user identity data is created for the test case and added to the first primary data; The first set of primary data, which includes legitimate user identity data, test data, and expected data, constitutes a set of test case data.

[0015] Alternatively, another method for obtaining multiple groups of test case data applicable to the target position based on a pre-built test case dataset includes the following steps: Generate user identity data using multiple combination methods; and Based on each set of user identity data, a pre-set test case dataset is queried to obtain test case data for multiple test cases applicable to different environments of the target position for the user identity. The test case data includes legitimate user identity data, test data, and expected data.

[0016] Optionally, the application testing tool automatically simulates the release of the target job information based on the test data of each test case; and / or, the application testing reporting tool generates a regression test report on the release of the target job information based on the data recorded during the simulated release of the target job information, multi-dimensional release response data, and verification data.

[0017] According to another aspect of the present invention, the present invention also provides a regression testing system for job information posting, the system comprising: The data acquisition module is configured to acquire multiple sets of test case data applicable to the target position based on a preset test case dataset. The test case data includes legitimate user identity data, test data, and expected data. The simulated job posting module is configured to simulate the posting of target job information based on test data from each test case. The verification module is configured to acquire release response data across multiple dimensions and perform verification based on the expected data and release response data for each dimension for each test case; and The report generation module is configured to record data generated during the simulated posting of the target job information, posting response data from multiple dimensions, and verification data, and to generate a regression test report on the posting of the target job information based on the recorded data.

[0018] According to another aspect of the present invention, an electronic device is also provided, including a processor and a memory, wherein a set of computer program instructions is stored in the memory, and the regression testing method for job information posting is implemented when the processor executes the set of computer program instructions in the memory.

[0019] According to another aspect of the present invention, the present invention also provides a computer-readable storage medium, wherein a computer program instruction set is stored on the computer-readable storage medium, and the computer program instruction set, when executed by a processor, implements the regression testing method for job information posting.

[0020] According to another aspect of the present invention, the present invention also provides a computer program product comprising a computer program instruction set, which, when executed by a processor, implements the regression testing method for job information posting.

[0021] This invention improves testing efficiency, reduces manual labor, achieves high testing accuracy, has broad coverage, and is highly scalable. Attached Figure Description

[0022] The preferred embodiments of the present invention will now be described in further detail with reference to the accompanying drawings, wherein: Figure 1 This is a flowchart of a regression testing method for job information posting according to an embodiment of the present invention; Figure 2 This is a flowchart of a method for obtaining test case data applicable to a target position according to an embodiment of the present invention; Figure 3 This is a flowchart of a method for obtaining test case data applicable to a target position according to another embodiment of the present invention; Figure 4 This is a flowchart of a method for verifying front-end display dimensions according to an embodiment of the present invention; Figure 5 This is a flowchart of a method for performing database persistence dimension verification according to an embodiment of the present invention; Figure 6 This is a flowchart of a regression testing method for job information posting according to another embodiment of the present invention; Figure 7 This is a schematic diagram of a regression testing system for job information posting according to an embodiment of the present invention; and Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] In the following detailed description, reference can be made to the accompanying drawings, which form part of this application and illustrate specific embodiments of the present application. In the drawings, similar reference numerals describe substantially similar components in different figures. Specific embodiments of the present application are described in sufficient detail below to enable those skilled in the art to implement the technical solutions of the present application. It should be understood that other embodiments may also be utilized, or structural, logical, or electrical changes may be made to the embodiments of the present application.

[0025] See Figure 1 , Figure 1 This is a flowchart of a regression testing method for job information posting according to an embodiment of the present invention. The regression testing method for job information posting in this embodiment includes the following steps: Step S10: Based on a pre-set test case dataset, obtain multiple sets of test case data applicable to the target position. The test case data includes legitimate user identity data, test data, and expected data.

[0026] Step S11: Simulate the posting of target job information based on the test data of each test case.

[0027] Step S12: Obtain release response data from multiple dimensions, and verify the expected data and release response data for each dimension based on each test case.

[0028] Step S13: Generate a regression test report on the publication of the target job information.

[0029] This invention includes a pre-set test case set, comprising multiple test cases. Each test case includes multiple sets of data of different categories. For ease of explanation, in the following description, when data processing is involved, the multiple sets of data of different categories in a test case are collectively referred to as test case data. Each test case applies to a position or function, and the multiple sets of data of different categories included are at least test data and expected data. For job information posting, the system creates a job posting page. Depending on the function, the job posting page loads different job information fields. The test data in this invention consists of the input data for each field on the posting page. After the job information is posted, it will be displayed on the front end. Therefore, the expected data in this invention includes the expected data for the front-end page after the job information is posted, such as the interface (UI) display and error messages. After the job information is posted, it will also be stored in the database and submitted to the relevant middleware. Therefore, the expected data in this invention also includes the expected data for persistent storage in the database and the expected data submitted to the relevant middleware.

[0030] In addition, user identity data, such as user ID, member ID on the recruitment platform, corresponding company, department, contract, etc., is required for the posting of job information. A complete test case for a data category will also include user identity data; however, it is known that test cases may also exclude user identity data, which can be created during application deployment.

[0031] In order to be applicable to different testing environments and to be tested on different devices, the aforementioned test data and expected data in each test case of the present invention also have multiple different versions depending on the testing environment, device, etc., so as to facilitate the adaptation to different testing environments and devices during testing.

[0032] See Figure 2 , Figure 2 This is a flowchart illustrating a method for obtaining test case data applicable to a target position according to an embodiment of the present invention. The method for obtaining test case data in this embodiment includes the following steps: Step S101: Construct a first primary dataset based on a pre-defined test case dataset for the target job query. The first primary dataset includes multiple sets of primary data, each set corresponding to a test case. When selecting test cases, multiple test cases for different environments are chosen. Each test case's primary data includes at least input data for the pre-defined job information field and expected data for multiple validation dimensions, where the input data for the pre-defined job information field serves as the test data.

[0033] Step S102: Select a test case from the first primary dataset as the target test case.

[0034] Step S103: Determine whether the first primary data of the test case includes valid user identity data. If the first primary data of the test case does not include valid user identity data, proceed to step S104. If the first primary data of the test case includes valid user identity data, this indicates that the first primary data of the test case contains all the necessary data, then proceed to step S105.

[0035] Step S104: Create valid user identity data for the test cases and add it to the first primary data, thus forming a set of test case data. For example, select the identity data of a valid user, such as a member ID, from the user database of the recruitment platform.

[0036] Step S105: Determine if there are any unchecked test cases in the first primary dataset. If not, end the processing flow; if there are still unchecked test cases, return to step S102.

[0037] After the aforementioned process, test case data containing legitimate user identity data, test data, and expected data were obtained.

[0038] See Figure 3 , Figure 3 This is a flowchart of a method for obtaining test case data applicable to a target position according to another embodiment of the present invention. The method for obtaining test case data applicable to a target position in this embodiment includes the following steps: Step S201: Generate user identity data using a multi-combination method. For example, select the identity data of multiple legitimate users from the user database of a recruitment platform. The legitimate user identity data includes user IDs of a certain category, such as enterprise user IDs or individual user IDs.

[0039] Step S202: Use a set of legitimate user identity data as the target user identity data.

[0040] Step S203: Query the preset test case dataset to see if there is test case data with the same user identity. If so, proceed to step S204. If not, proceed to step S206.

[0041] Step S204: Query the test case data set of user identity to see if there is test case data for the target position. If there is, proceed to step S205; otherwise, proceed to step S206.

[0042] Step S205: Read the corresponding test case data. At this point, a complete test case data is obtained. Then, proceed to step S207.

[0043] Step S206: Obtain test case data that matches the target position and combine it with user identity data to form a set of test case data.

[0044] Step S207: Determine if there are any unused user identities. If all user identities have been used, end the process. If there are any unused user identities, return to step S202.

[0045] After the aforementioned process, test case data containing legitimate user identity data, test data, and expected data are obtained. While the process yields one test case data point per user identity, it's clear that multiple test case data points can be generated for a single user identity. For example, different test case data points for the same user identity may include different test data points and corresponding expected data.

[0046] After obtaining the test case data, in step S11, the target job information is simulated and published based on the test data of each test case. To achieve this simulated publication, in one embodiment, an application testing tool automatically simulates and publishes the target job information based on the test data of each test case. For example, a script can be written to call Selenium (an automated testing tool) to implement the simulated publication. This includes calling the job information publication page, filling in the job information fields on the page based on the test data of the current test case, and simulating a user clicking a user action button. The job information publication page includes a submit button; after clicking the submit button and successfully submitting, the simulated publication of the target job information is complete.

[0047] See Figure 4 , Figure 4 This is a flowchart of a method for verifying front-end display dimensions according to an embodiment of the present invention. After job information is published, the front-end displays the job information. This embodiment provides a method for verifying whether the front-end display is correct, including the following steps: Step S121: Obtain the redirect page address after successful simulated publishing.

[0048] Step S122: Obtain the display content of the redirected page based on the redirected page address. This includes reading at least the display content of each display field, or the prompts displayed on the page, such as error messages.

[0049] Step S123: Determine whether the displayed content of the redirected page matches the expected data. The expected data in the test case data includes valid data for each information field. For example, for the administrative secretary role, the work experience requirement field can include various types, such as "no experience required," "2-4 years," and "5+ years." During verification, if the displayed content falls under any of these categories, it is considered to match the expected data. After verifying each field one by one, if the displayed content of the redirected page matches the expected data, step S124 determines that the front-end display dimension verification of the current test case has passed; if the displayed content of the redirected page does not match the expected data, step S125 determines that the front-end display dimension verification of the current test case has failed.

[0050] During the aforementioned verification process, record the content displayed on the redirected page and the current verification result.

[0051] See Figure 5 , Figure 5 This is a flowchart of a method for performing database persistence dimension verification according to an embodiment of the present invention.

[0052] Step S221: Query the job information storage table in the database to obtain the storage data of the target job information; Step S222: Determine whether the database persistence data of the target job information matches the expected data of the current test case. If they match, confirm in step S223 that the database persistence dimension verification of the current test case has passed. If the database persistence data of the target job information does not match the expected data of the current test case, confirm in step S224 that the database persistence dimension verification of the current test case has failed.

[0053] Similarly, during the aforementioned verification process, the database persistence data of the target job information and the verification results of the current test case are recorded.

[0054] In addition, to improve data processing efficiency, recruitment platforms send job postings to relevant middleware along with the data submitted to the database. This middleware, for example, is Elastic Search (ES), a distributed search and data analysis engine based on Lucence, located between the operating system and application software, providing standardized data retrieval, storage, and analysis services. Using ES to query various data within the recruitment platform can improve the speed of data retrieval.

[0055] In this embodiment, similar to verifying the stored data, the middleware's data index list is first queried to obtain the index data of the target job information; then, the consistency between the index data of the target job information and the expected data of the current test case is compared. If the index data of the target job information matches the expected data of the current test case, the middleware dimension verification of the current test case is confirmed to have passed; if the index data of the target job information does not match the expected data of the current test case, the middleware dimension verification of the current test case is confirmed to have failed. Similarly, during the verification process, the results of the index data of the target job information and the middleware dimension verification of the current test case are recorded.

[0056] See Figure 6 , Figure 6 This is a flowchart of a regression testing method for job information posting according to another embodiment of the present invention.

[0057] Step S31: Based on a pre-set test case dataset, obtain multiple sets of test case data applicable to the target position. The test case data includes legitimate user identity data, test data, and expected data.

[0058] Step S32: Invoke the job information publishing page, wherein the job information publishing page includes multiple job information fields and user operation buttons, the job information fields include at least a job function field, and the user operation buttons include at least a submit button representing the publication.

[0059] Step S33: Enter the target job title in the job function field on the posting page.

[0060] Step S34: Obtain the job information fields and the business logic conditions for the job information fields of the current function from the current posting page. The job information field configuration file is used by the recruitment platform to store job information fields for various functions and the business logic conditions they must follow. The business logic conditions for the job information fields of the current function can be obtained from the job information field configuration file. The job information fields on the current posting page correspond to specific functions; different functions have different job information fields. After specific function information is entered, the posting page loads the corresponding job information fields.

[0061] Step S35: Select one of the job information fields as the target field.

[0062] Step S36: Verify whether the target field conforms to the business logic based on the stated business logic conditions. If the target field conforms to the business logic, proceed to step S37. If the target field does not conform to the business logic, end the regression test on the target job information posting based on the test data of the current test case, and also make corresponding records.

[0063] Step S37: Determine if there are any remaining fields that have not been validated. If so, return to step S35. If all fields have been validated, proceed to step S38.

[0064] Step S38: Fill in the remaining job information fields.

[0065] Step S39: Simulate the user clicking the user operation button.

[0066] Step S310: Determine if the submission was successful. For example, determine if the submit button was clicked. If the submit button was clicked and the submission was successful, proceed to step S311. If the submit button was not clicked, return to step S39 or S310.

[0067] Step S311, multi-dimensional verification. As in the aforementioned embodiments, the release response data is obtained, and verification is performed based on the expected data and release response data for each test case in each dimension. Examples include the aforementioned front-end display verification, database persistence verification, and middleware verification.

[0068] Step S312: Generate a regression test report on the publication of the target job information.

[0069] For different job functions, the job information fields and their logical relationships vary. For example, when posting a job as a taxi driver, the fields "Deposit / Security Fee," "Rental Fee," and "Other Charges" should be displayed. If these fields are selected as needed, the "Detailed Breakdown" field should also be displayed. Another example is that when the test case user is a group-level HR, the "Company" field can display companies within the group; however, non-group-level HRs can only display their own company. Furthermore, when the "Work Mode" field is set to "Remote," the "Specific Office Address" field should be hidden; and when the company posting the job has a company logo, the "Upload Company Logo" field should not be displayed. In this embodiment, these are collectively referred to as the business logic relationships between fields. When filling out the job posting form, the job field information and business logic relationships displayed on the page should match the job function being filled in. This embodiment ensures the correctness of the posted job information fields by verifying the logical relationships during the filling process.

[0070] In one embodiment, a test reporting tool (such as Allure Reports) is used to generate comprehensive test reports. For example, during the execution and verification of test cases, relevant data, such as test case data, captured response data, and verification result data, are recorded and stored in JSON format.

[0071] The test report generation tool is used to process the JSON data and output a detailed report. The report includes, but is not limited to, a test execution overview, detailed information on failed test cases, and system performance data. The test execution overview includes the pass rate, total number of test cases, and execution time. Detailed information on failed test cases includes the specific fields involved in the failure, the expected result, the actual result, and includes screenshots and network logs to facilitate quick problem identification. System performance data includes form submission and response times.

[0072] Regarding test case data generated for regression testing, one approach is to delete the used test case data after the test is completed. Another approach is to replace incomplete test cases in the test case set with complete test case data after the test is completed. Newly added complete test case data is retained.

[0073] Although the aforementioned description of regression testing methods states that the required number of test case data should be obtained before testing, it is also possible to test and verify a test case immediately after obtaining it, generate another test case after completing the test based on the current test case, and repeat this process until a sufficient number of tests have been performed, and then generate a test report based on the test and verification results.

[0074] See Figure 7 , Figure 7 This is a schematic diagram of a regression testing system for job information posting according to an embodiment of the present invention. The regression testing system in this embodiment includes a data acquisition module 100, a simulated posting module 200, a verification module 300, and a report generation module 400. The data acquisition module 100 acquires multiple sets of test case data applicable to the target job based on a pre-set test case dataset. The test case data includes legitimate user identity data, test data, and expected data. The simulated posting module 200 simulates the posting of the target job information based on the test data of each test case. The verification module 300 acquires posting response data from multiple dimensions and verifies the posting response data based on the expected data and posting response data of each test case in each dimension. The report generation module 400 records the data generated during the simulated posting of the target job information, the posting response data from multiple dimensions, and the verification data, and generates a regression test report on the posting of the target job information based on the recorded data.

[0075] In addition, the system in this embodiment also includes a rule configuration module, which provides rule configuration files. For example, the rule configuration file configures rules for obtaining test case data, rules for multi-dimensional verification, business logic conditions for validating job information fields in forms, rules to be followed when generating reports, etc. The aforementioned modules can obtain the corresponding rules from the rule configuration file as needed, and retrieve the corresponding data and perform multi-dimensional verification according to the rules. The processing procedures of each module are described in the aforementioned method and will not be repeated here.

[0076] The solution provided by this invention has the following advantages: This invention effectively improves testing efficiency. It reduces the manual testing process, which previously took hours, to minutes, freeing up significant human resources.

[0077] The test is highly accurate. This invention avoids human error and ensures the accuracy and consistency of each test.

[0078] Comprehensive Coverage. Through rule configuration and combined testing, this invention can cover a large number of boundary cases, abnormal cases, and field interaction cases, enabling the discovery of deep-seated defects.

[0079] Continuous Integration / Continuous Delivery (CI / CD) friendly. The method provided by this invention can be seamlessly integrated into CI / CD pipelines. After each code commit, the regression testing method and system provided by this invention are triggered, implementing quality gates and ensuring release quality.

[0080] It features maintainability and scalability. This invention separates rule configuration from test scripts. When fields in the job posting form change, typically only the rule configuration file needs to be updated, without modifying the core test code, resulting in low maintenance costs.

[0081] Figure 8 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. The electronic device can be implemented as a server or other various terminal devices, such as desktop personal computers, tablet computers, laptop computers, mobile phones, etc., including a processor 601 and a memory 602. The memory 602 stores a program instruction set. When the processor 601 executes the program instruction set in the memory 602, the aforementioned regression testing method for job information posting is implemented.

[0082] Specifically, the processor 601 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of the present invention.

[0083] Memory 602 may include mass storage for data or instructions. For example, and not limitingly, memory 602 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 602 may include removable or non-removable (or fixed) media. Where appropriate, memory 602 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 602 is non-volatile solid-state memory.

[0084] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the regression testing method for job posting provided by this invention.

[0085] In one example, the electronic device may also include a communication interface 603 and a bus 604. The processor 601, memory 602, and communication interface 603 are connected via the bus 604 and communicate with each other.

[0086] The communication interface 603 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0087] Bus 604 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel 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 Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 604 may include one or more buses. While specific buses are described and illustrated in embodiments of the invention, the invention contemplates any suitable bus or interconnect.

[0088] The present invention also provides a computer-readable storage medium storing computer program instructions thereon, which, when executed by a processor, implement any of the regression testing methods for job information posting in the foregoing embodiments. The computer-readable storage medium can be any tangible medium that contains or stores computer-executable instructions for use by or in connection with an instruction execution system, apparatus, or device. The storage medium can be a transient computer-readable storage medium or a non-transitory computer-readable storage medium. Non-transitory computer-readable storage media may include, but are not limited to, magnetic storage devices, optical storage devices, and / or semiconductor storage devices. Examples of such storage devices include, for example, magnetic disks, optical discs based on CD, DVD, or Blu-ray technology, and persistent solid-state storage such as flash memory and solid-state drives.

[0089] This invention also provides a computer program product comprising a set of computer program instructions, which, when executed by a processor, implement any of the regression testing methods for job information posting described in the foregoing embodiments. The computer program product includes, but is not limited to, application installation packages published on websites and in app stores, application plugins, and mini-programs that can run within certain applications.

[0090] It should be clarified that the present invention is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of the present invention.

[0091] The above embodiments are for illustrative purposes only and are not intended to limit the invention. Those skilled in the art can make various changes and modifications without departing from the scope of the invention. Therefore, all equivalent technical solutions should also fall within the scope of the invention.

Claims

1. A regression testing method for job information posting, characterized by, comprise: obtaining a plurality of sets of test case data applicable to the target position based on a preset test case data set, the test case data comprising legal user identity data, test data and expected data; conducting simulated publishing of the target position information based on the legal user identity data and the test data of each test case; obtaining publishing response data in multiple dimensions and verifying based on the expected data and the publishing response data in each dimension for each test case; and recording data generated when the target position information is simulated published, the publishing response data in multiple dimensions and the verification data, and generating a regression test report for publishing of the target position information based on the recorded data. The step of conducting simulated publishing of the target position information based on the test data of each test case comprises:

2. The method of claim 1, wherein, calling a publishing page of the position information, wherein the publishing page of the position information comprises a plurality of position information fields and user operation buttons, the position information fields at least comprising a function field, and the user operation buttons at least comprising a submit button representing publishing; filling in the position information fields in the publishing page based on the test data of the current test case; simulating user clicking of the user operation buttons; and when the simulated clicking operation on the submit button is successfully responded, confirming completion of the simulated publishing of the target position information. The step of filling in the position information fields in the publishing page based on the test data of the current test case further comprises a business logic verification step:

3. The method of claim 2, wherein, after filling in the function field in the publishing page, obtaining the position information fields in the current publishing page; obtaining the business logic conditions of the position information fields of the current function from a position information field configuration file; verifying the position information fields in the current publishing page based on the business logic conditions; in response to the position information fields in the current publishing page meeting the business logic, filling in the remaining position information fields; and in response to the position information fields in the current publishing page not meeting the business logic, ending the regression test for publishing of the target position information based on the test data of the current test case. The dimension is front-end display, and correspondingly, the step of obtaining the publishing response data in multiple dimensions and verifying based on the expected data and the publishing response data in each dimension for each test case comprises: obtaining a jump page address after the simulated publishing is successful; 4. The method of claim 1, wherein, obtaining the display content of the jump page based on the jump page address; comparing whether the display content of the jump page meets the expected data; and in response to the display content of the jump page meeting the expected data, determining that the front-end display dimension verification of the current test case passes, and in response to the display content of the jump page not meeting the expected data, determining that the front-end display dimension verification of the current test case fails; correspondingly, recording the display content of the jump page and the front-end display dimension verification result of the current test case. The dimension is database persistence, and correspondingly, the step of obtaining the publishing response data in multiple dimensions and verifying based on the expected data and the publishing response data in each dimension for each test case comprises: querying a position information database table in a database to obtain database landing data of the target position information; 5. The method of claim 1, wherein, ​ ​ comparing consistency of the landing data of the target job information and the expected data of the current test case; and in response to the landing data of the target job information being consistent with the expected data of the current test case, confirming that the database persistence dimension verification of the current test case passes, and in response to the landing data of the target job information being inconsistent with the expected data of the current test case, confirming that the database persistence dimension verification of the current test case fails; correspondingly, recording the landing data of the target job information and the database persistence dimension verification result of the current test case.

6. The method of claim 1, wherein, The dimensions are middleware, and correspondingly, the steps of obtaining the publishing response data of multiple dimensions and verifying the expected data and the publishing response data of each test case in each dimension based on each test case include: querying a data index list of the middleware to obtain index data of the target job information; comparing consistency of the index data of the target job information and the expected data of the current test case; and in response to the index data of the target job information being consistent with the expected data of the current test case, confirming that the middleware dimension verification of the current test case passes, and in response to the index data of the target job information being inconsistent with the expected data of the current test case, confirming that the middleware dimension verification of the current test case fails; correspondingly, recording the index data of the target job information and the middleware dimension verification result of the current test case.

7. The method of claim 1, wherein, The steps of obtaining multiple sets of test case data suitable for the target position based on a preset test case data set include: querying the preset test case data set based on the target position to obtain first primary data of multiple test cases for different environments of the same type of position, wherein the first primary data of each test case at least includes input information of a preset job information field and expected data of multiple verification dimensions, and the input information of the preset job information field constitutes test data; determining whether the first primary data of each test case includes legal user identity data; and in response to the first primary data of the test case not including legal user identity data, creating legal user identity data for the test case and adding it to the first primary data; wherein the first primary data including legal user identity data, test data and expected data constitutes a set of test case data.

8. The method of claim 1, wherein, The steps of obtaining multiple sets of test case data suitable for the target position based on a preset test case data set include: generating multiple sets of legal user identity data; and querying the preset test case data set based on each set of user identity data to obtain test case data of multiple test cases for different environments of the same type of position of the user identity, the test case data including legal user identity data, test data and expected data.

9. The method of claim 1 or 2, wherein, applying a test tool to automatically simulate publishing of the target job information based on the test data of each test case; and / or applying a test report tool to generate a regression test report on publishing of the target job information based on data recorded when the target job information is simulated and published, publishing response data of multiple dimensions and verification data.

10. A regression testing system for job information posting, characterized by, comprise: a data acquisition module configured to acquire a plurality of sets of test case data applicable to the target job based on a pre-set test case data set, the test case data comprising legitimate user identity data, test data and expected data; a simulation publishing module configured to simulate publishing of the target job information based on the test data of each test case; a verification module configured to acquire publishing response data in a plurality of dimensions and perform verification based on the expected data and the publishing response data in each dimension for each test case; and a report generation module configured to record data generated when the target job information is simulated published, the publishing response data in the plurality of dimensions and the verification data, and generate a regression test report for publishing of the target job information based on the recorded data. The regression test method for job information publishing according to any one of claims 1-9 is implemented when a processor executes a computer program instruction set on a memory.

11. An electronic device comprising a processor and a memory, said memory having stored thereon a set of computer program instructions, characterized in that, A computer program instruction set is stored on the computer readable storage medium, and the computer program instruction set is executed by a processor to implement the regression test method for job information publishing according to any one of claims 1-9.

12. A computer readable storage medium, wherein, The computer program instruction set is executed by a processor to implement the regression test method for job information publishing according to any one of claims 1-9.

13. A computer program product comprising a set of computer program instructions, characterized in that, ​