AI-based conversational test case generation method, apparatus, and device
By using an AI-generated method to generate session test cases, and utilizing a database of mobile phone numbers and registration information, session test cases are automatically created between C-end users and HR test accounts. This solves the problem of time-consuming and labor-intensive manual creation of test cases in IM system testing, and achieves efficient test automation.
Patent Information
- Application Number
- CN202410786844.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2025-10-21
- Estimated Expiration
- 2044-06-18
AI Technical Summary
In existing IM system testing, manually creating session test cases is time-consuming and labor-intensive, and cannot be created in batches, resulting in low testing efficiency.
By using an AI-generated method to generate session test cases, randomly generated mobile phone numbers are used to filter registered user IDs in the registration information data table. Combined with resume information and job information, session test cases between C-end users and HR test accounts are automatically created.
It has enabled the automation and batch processing of IM system testing, improving testing efficiency and reducing manual operation time.
Smart Images

Figure CN118708482B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, in particular to the field of software testing technology, and in particular to an AI-based conversation test case generation method, apparatus, and device. Background Art
[0002] With the continuous development of communication technology, the generation and transmission of information has been accelerated. People have put forward higher requirements for the real-time nature of information. Instant Messaging (IM) has emerged as the times require, and its application scenarios are becoming more and more extensive. In the online recruitment scenario, job seekers and recruiters can create sessions through IM systems and communicate through them.
[0003] In related technologies, IM systems must undergo rigorous testing before going online. During this testing process, testers are required to manually create session test cases to test the IM system, which is time-consuming and labor-intensive, and session test cases cannot be created in batches, resulting in low IM system testing efficiency. Summary of the Invention
[0004] In view of this, the embodiments of the present application provide an AI-based conversation test case generation method, apparatus, device, medium, and product, which can batch create conversation test cases for IM system testing and improve IM system testing efficiency.
[0005] In a first aspect, an embodiment of the present application provides an AI-based conversation test case generation method, the method comprising: when M randomly generated mobile phone numbers are obtained, traversing the M mobile phone numbers in a registration information data table, and screening out M1 first mobile phone numbers written in the registration information data table from the M mobile phone numbers, wherein the registration information data table is used to record the association relationship between the mobile phone number and the C-end user ID; querying the M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtaining the M1 resume ID associated with the M1 C-end user ID from the resume information data table, wherein the resume information data table is used to record the association relationship between the C-end user ID and the resume ID; for M2 second mobile phone numbers other than the M1 first mobile phone numbers, obtaining the M2 C-end user IDs associated with the M2 second mobile phone numbers by calling the recruitment application login interface, wherein, The M mobile phone numbers include M1 first mobile phone numbers and M2 second mobile phone numbers; obtain M2 job search details corresponding to the M2 C-end user IDs, and obtain the interface information of the resume creation interface for creating a resume from the API management platform; for each C-end user ID corresponding to the second mobile phone number, input the job search details and resume creation interface information corresponding to the C-end user ID into the large language model to generate the resume information associated with the C-end user ID and its resume ID; based on the HR test account ID, query at least one position ID associated with the HR test account ID from the position information data table; use the M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers as input parameters of the session creation interface, and create M session test cases between the M C-end user IDs and the HR test account ID by calling the session creation interface.
[0006] In some possible implementations of the first aspect, before traversing M mobile phone numbers in the registration information data table, it also includes: obtaining multiple mobile phone numbers configured by the user; registering and logging in to multiple mobile phone numbers in the recruitment application in response to multiple registration and login operations of the user, and generating a C-end user ID associated with each mobile phone number; and writing the association relationship between each mobile phone number and the C-end user ID in the registration information data table.
[0007] In some implementable methods of the first aspect, by calling the recruitment application login interface and the IM login interface, M2 C-end user IDs associated with M2 second mobile phone numbers are obtained, including: when the M2 second mobile phone numbers are not found in the registration information data table, it is determined that the M2 second mobile phone numbers have not been registered and logged in in the recruitment application; for each of the M2 second mobile phone numbers, each second mobile phone number is used as an input parameter of the recruitment application login interface, and by calling the recruitment application login interface, the M2 second mobile phone numbers are registered and logged in in the recruitment application respectively, and a C-end user ID associated with each second mobile phone number is generated to obtain M2 C-end user IDs.
[0008] In some implementation methods of the first aspect, M1 resume IDs associated with M1 C-end user IDs are obtained from a resume information data table, including: when M1 C-end user IDs are obtained, an HR test account ID and a session relationship data table for recording session relationships are obtained; the M1 C-end user IDs and the HR test account ID are traversed in the session relationship data table to determine whether the M1 C-end user IDs have a session relationship with the HR test account ID; the C-end user ID that does not have a session relationship with the HR test account ID is determined to be the first C-end user ID, and the C-end user ID that has a session relationship with the HR test account ID is determined to be the second C-end user ID; for the first C-end user ID, the resume ID associated with the first C-end user ID is obtained from the resume information data table; for each second C-end user ID, the first mobile phone number associated with each second C-end user ID is replaced with a randomly generated third mobile phone number; when the C-end user ID associated with the third mobile phone number is queried from the registration information data table, and the C-end user ID associated with the third mobile phone number does not have a session relationship with the HR test account ID, the resume ID associated with the C-end user ID is obtained from the resume information data table.
[0009] In some possible implementations of the first aspect, the resume creation interface includes a first interface for creating basic resume information, a second interface for creating educational experience in a resume, a third interface for creating work experience in a resume, and a fourth interface for creating job-seeking intentions in a resume. The interface information includes the incoming parameters of the first interface, the second interface, the third interface, and the fourth interface, and the incoming parameters include the parameter format and the type of each field.
[0010] In some implementations of the first aspect, the input parameters of the session creation interface include M sub-input parameters associated with M mobile phone numbers, and the sub-input parameters are used to create session test cases corresponding to the mobile phone numbers. Before using the M C-end user IDs, M resume IDs, HR test account IDs, and at least one position ID associated with the M mobile phone numbers as the input parameters of the session creation interface, the method further includes: based on the job search details information corresponding to the C-end user ID, screening from at least one position ID a position ID that matches the job search details information and is associated with the C-end user ID; and constructing the sub-input parameters for each mobile phone number based on the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and position ID associated with the C-end user ID.
[0011] In some implementation methods of the first aspect, before creating M session test cases between M C-end user IDs and HR test account IDs by calling the session creation interface, the method includes: for each of the M mobile phone numbers, passing the mobile phone number to the IM login interface, and logging in the mobile phone number in the recruitment application by calling the IM login interface; upon receiving the successful login result returned by the IM login interface, passing the HR test account ID and the C-end user ID, resume ID, and position ID associated with the mobile phone number to the session creation interface, and initiating session creation requests to the B-end and C-end respectively by calling the session creation interface to create a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number.
[0012] In some implementation methods of the first aspect, after creating a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number by calling the session creation interface, it also includes: creating a new session relationship between the C-end user ID associated with the mobile phone number and the HR test account ID in the session relationship data table.
[0013] In a second aspect, an embodiment of the present application provides an AI-based conversation test case generation device, which includes: a traversal and screening module for traversing the M mobile phone numbers in the registration information data table when M randomly generated mobile phone numbers are obtained, and screening out M1 first mobile phone numbers written in the registration information data table from the M mobile phone numbers, wherein the registration information data table is used to record the association relationship between the mobile phone number and the C-end user ID; a query module for querying the M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtaining the M1 resume ID associated with the M1 C-end user ID from the resume information data table, wherein the resume information data table is used to record the association relationship between the C-end user ID and the resume ID; an acquisition module for obtaining the M2 C-end user IDs associated with the M2 second mobile phone numbers other than the M1 first mobile phone numbers by calling the recruitment application login interface, wherein the M mobile phone numbers The numbers include M1 first mobile phone numbers and M2 second mobile phone numbers; the acquisition module is also used to obtain M2 job search details corresponding to M2 C-end user IDs, and obtain the interface information of the resume creation interface for creating a resume from the API management platform; the generation module is used to input the job search details corresponding to the C-end user ID and the interface information of the resume creation interface into the large language model for each C-end user ID corresponding to the second mobile phone number, and generate the resume information associated with the C-end user ID and its resume ID; the query module is used to query at least one position ID associated with the HR test account ID from the position information data table based on the HR test account ID; the session creation module is used to use the M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers as input parameters of the session creation interface, and create M session test cases between the M C-end user IDs and the HR test account ID by calling the session creation interface.
[0014] In some possible implementations of the second aspect, it also includes: an acquisition module, which is used to obtain multiple mobile phone numbers configured by the user before traversing M mobile phone numbers in the registration information data table; a generation module, which is used to register and log in multiple mobile phone numbers in the recruitment application in response to the user's multiple registration and login operations, and generate a C-end user ID associated with each mobile phone number; and a writing module, which is used to write the association relationship between each mobile phone number and the C-end user ID in the registration information data table.
[0015] In some possible implementations of the second aspect, the acquisition module includes: a determination unit, which determines that the M2 second mobile phone numbers have not been registered and logged in in the recruitment application when no M2 second mobile phone numbers are found in the registration information data table; a generation unit, which is used to use each second mobile phone number as an input parameter of the recruitment application login interface for each of the M2 second mobile phone numbers, and to register and log in the M2 second mobile phone numbers in the recruitment application by calling the recruitment application login interface, to generate a C-end user ID associated with each second mobile phone number, and to obtain M2 C-end user IDs.
[0016] In some implementation methods of the second aspect, the acquisition module includes: an acquisition unit, which is used to obtain the HR test account ID and a session relationship data table for recording the session relationship when M1 C-end user IDs are obtained; a traversal unit, which is used to traverse the M1 C-end user IDs and the HR test account ID in the session relationship data table to determine whether the M1 C-end user IDs have a session relationship with the HR test account ID; a determination unit, which is used to determine that the C-end user ID that does not have a session relationship with the HR test account ID is the first C-end user ID, and the C-end user ID that has a session relationship with the HR test account ID is the second C-end user ID. The ID is the second C-end user ID; the acquisition unit is also used to obtain the resume ID associated with the first C-end user ID from the resume information data table for the first C-end user ID; for each second C-end user ID, the first mobile phone number associated with each second C-end user ID is replaced with a randomly generated third mobile phone number; the acquisition unit is also used to obtain the resume ID associated with the C-end user ID from the resume information data table when the C-end user ID associated with the third mobile phone number is queried from the registration information data table and the C-end user ID associated with the third mobile phone number does not have a session relationship with the HR test account ID.
[0017] In some implementation methods of the second aspect, the resume creation interface includes a first interface for creating basic resume information, a second interface for creating resume educational experience, a third interface for creating resume work experience, and a fourth interface for creating resume job-seeking intentions. The interface information includes the incoming parameters of the first interface, the second interface, the third interface, and the fourth interface. The incoming parameters include the parameter format and the type of each field.
[0018] In some implementations of the second aspect, the input parameters of the session creation interface include M sub-input parameters associated with M mobile phone numbers, and the sub-input parameters are used to create session test cases corresponding to the mobile phone numbers. The interface also includes: a screening module for screening, based on the job search details information corresponding to the C-end user ID, the job ID that matches the job search details information from at least one job ID and is associated with the C-end user ID before using the M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers as the input parameters of the session creation interface; and a construction module for constructing the sub-input parameters for each mobile phone number based on the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and position ID associated with the C-end user ID.
[0019] In some implementation methods of the second aspect, the session creation module includes: a login unit, which is used to pass the mobile phone number of each of the M mobile phone numbers to the IM login interface, and log in the mobile phone number in the recruitment application by calling the IM login interface; a session creation unit, which is used to pass the HR test account ID and the C-end user ID, resume ID, and position ID associated with the mobile phone number to the session creation interface when receiving a successful login result returned by the IM login interface, and initiate session creation requests to the B-end and C-end respectively by calling the session creation interface to create a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number.
[0020] In some implementation methods of the second aspect, it also includes: a relationship creation module, which is used to create a new session relationship between the C-end user ID associated with the mobile phone number and the HR test account ID in the session relationship data table after creating a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number by calling the session creation interface.
[0021] In a third aspect, an embodiment of the present application provides an electronic device comprising: a processor and a memory storing computer program instructions; when the processor executes the computer program instructions, the steps of the AI-based conversation test case generation method of the first aspect are implemented.
[0022] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having computer program instructions stored thereon. When the computer program instructions are executed by a processor, the steps of the AI-based conversation test case generation method of the first aspect are implemented.
[0023] In a fifth aspect, an embodiment of the present application provides a computer program product, which is stored in a non-volatile storage medium. When the computer program product is executed by a processor, it implements the steps of the AI-based conversation test case generation method as in the first aspect.
[0024] In a sixth aspect, an embodiment of the present application provides a chip comprising a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the AI-based conversation test case generation method as in the first aspect.
[0025] The present application provides an AI-based conversation test case generation method, device, equipment, medium and product. The registration information data table is used to record the association between mobile phone numbers and C-end user IDs. The C-end user ID is generated after registering and logging in using a mobile phone number. Therefore, when M randomly generated mobile phone numbers are obtained, the M mobile phone numbers can be traversed in the registration information data table, and M1 first mobile phone numbers written in the registration information data table can be filtered out from the M mobile phone numbers. The first mobile phone number is the mobile phone number that has been registered and logged in in the recruitment application. Therefore, the C-end user ID generated after registering and logging in using the first mobile phone number can be queried from the registration information data table, that is, the M1 C-end user IDs associated with the M1 first mobile phone numbers. Based on this, the resume information data table is used to record the association between the C-end user ID and the resume ID. Therefore, the M1 resume IDs associated with the M1 C-end user IDs can be obtained from the resume information data table. For the M2 second mobile phone numbers other than the M1 first mobile phone numbers, since they have not been previously registered or logged in to the recruitment application, by calling the recruitment application login interface, the M2 C-end user IDs associated with the M2 second mobile phone numbers can be obtained, along with the M2 job application details corresponding to the M2 C-end user IDs. The interface information for the resume creation interface used to create resumes can also be obtained from the API management platform. For each C-end user ID corresponding to the second mobile phone number, the resume information associated with the C-end user ID and its resume ID can be generated by inputting the job application details corresponding to the C-end user ID and the resume creation interface information into the large language model. Based on this, to create a session test case between the B-end and C-end users, the position information data table can be queried based on the B-end HR test account ID for at least one position ID associated with the HR test account ID. The M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers can be used as input parameters to the session creation interface. By calling the session creation interface, M session test cases can be batch-created between the M C-end user IDs and the HR test account ID. In this way, during the IM system testing process, testers do not need to manually simulate real users logging into the recruitment application to initiate sessions. Instead, they can use multiple randomly generated mobile phone numbers to automatically generate multiple session test cases in batches for IM system testing, effectively improving the testing efficiency of the IM system. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] 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.
[0027] Figure 1 This is a flowchart of an AI-based conversation test case generation method provided in one embodiment of the present application;
[0028] Figure 2 This is a flowchart of an AI-based conversation test case generation method provided by another embodiment of the present application;
[0029] Figure 3 This is a flowchart of a method for generating conversational test cases based on AI provided in yet another embodiment of the present application;
[0030] Figure 4 This is a schematic diagram of a conversation interface provided by an embodiment of the present application;
[0031] Figure 5 This is a structural diagram of an AI-based conversation test case generation device provided in an embodiment of the present application;
[0032] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0033] The principles and spirit of the present application will be described below with reference to several exemplary embodiments. It should be understood that the purpose of providing these embodiments is to make the principles and spirit of the present application clearer and more thorough, so that those skilled in the art can better understand and implement the principles and spirit of the present application. The exemplary embodiments provided herein are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments herein, all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of this application.
[0034] In this document, terms such as first, second, and third are only used to distinguish one entity (or operation) from another entity (or operation), and are not intended to require or imply any order or relationship between these entities (or operations).
[0035] The following, in conjunction with the accompanying drawings, describes in detail the AI-based conversation test case generation method provided by the embodiment of the present application through specific embodiments and their application scenarios.
[0036] Figure 1This is a flow chart of an AI-based conversation test case generation method provided in one embodiment of the present application. The executing entity of the AI-based conversation test case generation method can be a test system corresponding to the IM system. The test system is connected to the IM system, and the IM system includes a job-seeking end (C-end) and a recruitment end (B-end) of a recruitment application.
[0037] The following describes the AI-based conversation test case generation method of the present application, taking the test system as an example of the execution subject of the AI-based conversation test case generation method. It should be noted that the above execution subjects and application scenarios do not constitute a limitation of the present application.
[0038] like Figure 1 As shown, the AI-based conversation test case generation method provided in the embodiment of the present application may include steps 110 to 170.
[0039] Step 110: When M randomly generated mobile phone numbers are obtained, the M mobile phone numbers are traversed in the registration information data table, and M1 first mobile phone numbers written into the registration information data table are screened out from the M mobile phone numbers;
[0040] Step 120: query the M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtain the M1 resume IDs associated with the M1 C-end user IDs from the resume information data table;
[0041] Step 130: For the M2 second mobile phone numbers other than the M1 first mobile phone numbers, obtain M2 C-end user IDs associated with the M2 second mobile phone numbers by calling the recruitment application login interface;
[0042] Step 140: Obtain M2 job application details corresponding to M2 C-end user IDs, and obtain interface information of a resume creation interface for creating resumes from the API management platform;
[0043] Step 150: For each C-end user ID corresponding to the second mobile phone number, input the job search details corresponding to the C-end user ID and the interface information of the resume creation interface into the large language model to generate the resume information and resume ID associated with the C-end user ID;
[0044] Step 160: Based on the HR test account ID, query the position information data table for at least one position ID associated with the HR test account ID.
[0045] In step 170 , M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers are used as input parameters of the session creation interface, and M session test cases are created between the M C-end user IDs and the HR test account ID by calling the session creation interface.
[0046] The AI-based conversation test case generation method provided in the embodiment of the present application is that the registration information data table is used to record the association between the mobile phone number and the C-end user ID. The C-end user ID is generated after registering and logging in using the mobile phone number. Therefore, when M randomly generated mobile phone numbers are obtained, the M mobile phone numbers can be traversed in the registration information data table, and the M1 first mobile phone numbers written in the registration information data table can be filtered out from the M mobile phone numbers. The first mobile phone number is the mobile phone number that has been registered and logged in in the recruitment application. Therefore, the C-end user ID generated after registering and logging in using the first mobile phone number can be queried from the registration information data table, that is, the M1 C-end user IDs associated with the M1 first mobile phone numbers. Based on this, the resume information data table is used to record the association between the C-end user ID and the resume ID. Therefore, the M1 resume IDs associated with the M1 C-end user IDs can be obtained from the resume information data table. For the M2 second mobile phone numbers other than the M1 first mobile phone numbers, since they have not been previously registered or logged in to the recruitment application, by calling the recruitment application login interface, the M2 C-end user IDs associated with the M2 second mobile phone numbers can be obtained, along with the M2 job application details corresponding to the M2 C-end user IDs. The interface information for the resume creation interface used to create resumes can also be obtained from the API management platform. For each C-end user ID corresponding to the second mobile phone number, the resume information associated with the C-end user ID and its resume ID can be generated by inputting the job application details corresponding to the C-end user ID and the resume creation interface information into the large language model. Based on this, to create a session test case between the B-end and C-end users, the position information data table can be queried based on the B-end HR test account ID for at least one position ID associated with the HR test account ID. The M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers can be used as input parameters to the session creation interface. By calling the session creation interface, M session test cases can be batch-created between the M C-end user IDs and the HR test account ID. In this way, during the IM system testing process, testers do not need to manually simulate real users logging into the recruitment application to initiate sessions. Instead, they can use multiple randomly generated mobile phone numbers to automatically generate multiple session test cases in batches for IM system testing, effectively improving the testing efficiency of the IM system.
[0047] The specific implementation of the above steps will be described in detail below with reference to specific embodiments.
[0048] In step 110, when M randomly generated mobile phone numbers are obtained, the M mobile phone numbers are traversed in the registration information data table, and M1 first mobile phone numbers written into the registration information data table are screened out from the M mobile phone numbers.
[0049] In step 110, M and M1 are both positive integers greater than 1, M1 is less than M, and the registration information data table is used to record the association between the mobile phone number and the C-end user ID. The C-end user ID is generated after registering and logging in to the recruitment application using the mobile phone number. After generation, the mobile phone number and the C-end user ID can be associated and stored in the registration information data table.
[0050] In some embodiments of the present application, in order to save IM system testing time, the above step 110 may further include the following steps before traversing the M mobile phone numbers in the registration information data table:
[0051] Get multiple mobile phone numbers configured by the user;
[0052] In response to multiple registration and login operations by the user, multiple mobile phone numbers are registered and logged in in the recruitment application, and a C-end user ID associated with each mobile phone number is generated;
[0053] Write the association between each mobile phone number and the C-end user ID in the registration information data table.
[0054] Specifically, multiple mobile phone numbers are used as test numbers. Multiple mobile phone numbers can be customized by users or randomly generated by algorithms, and then imported by users at one time. Users enter their mobile phone numbers in the recruitment application to register and log in one by one. Each mobile phone number is used to generate a user name and C-end user ID for a job-seeking account. The C-end user ID is used to uniquely identify a job-seeking account registered using a mobile phone number.
[0055] In this embodiment of the present application, before testing the IM system, users manually register and log in using multiple mobile phone numbers, obtain a client user ID associated with each mobile phone number, and store the associated information in a registration information data table. During subsequent IM system testing, for each of the M mobile phone numbers for which session test cases need to be generated, the client user IDs for the M1 primary mobile phone numbers can be obtained by simply traversing the registration information data table. This eliminates the need to register and log in using each of the M1 primary mobile phone numbers, saving IM system testing time.
[0056] Involving step 120, querying M1 C-end user IDs associated with M1 first mobile phone numbers from the registration information data table, and obtaining M1 resume IDs associated with the M1 C-end user IDs from the resume information data table.
[0057] In step 120, the first mobile phone number is the mobile phone number written into the registration information data table. That is, the first mobile phone number is a mobile phone number that has been previously registered and logged into the recruitment application. Therefore, a client user ID corresponding to the first mobile phone number can be pre-generated and written into the registration information data table. The client user ID is a job-seeking account ID uniquely generated by the recruitment application for each mobile phone number. The resume information data table is used to record the association between the client user ID and the resume ID. The resume ID is used to uniquely identify the resume information corresponding to the client user ID. This resume information can be stored in the resume information data table together with the resume ID.
[0058] Optionally, the resume information can be customized by the user for the C-end user ID before step 110, or randomly obtained from a preset resume library for association, or generated based on a large language model. This application does not make specific restrictions on this.
[0059] The field types of resume information may include but are not limited to: resume public status, user identity, expected function, expected work location, expected salary, school, major, education level, school start time, school end time, company, function, industry, job description, work start time, and work end time.
[0060] In some embodiments of the present application, in order to pre-associate the C-end user ID with the resume ID, before step 110, the method may further include the following steps:
[0061] Based on user input, configure job search details for each C-end user ID in the registration information data table, and obtain the interface information of the resume creation interface for creating resumes from the API management platform;
[0062] Input the job search details corresponding to the C-end user ID and the interface information of the resume creation interface into the large language model to generate the resume information and resume ID associated with each C-end user ID in the registration information data table;
[0063] Each C-end user ID in the registration information data table, and its associated resume information and resume ID are associated and stored in the resume information data table.
[0064] Specifically, the above user input may be a filling-in input by the user for job search details for each C-end user ID.
[0065] In some embodiments of the present application, in order to avoid establishing duplicate sessions and ensure the validity of session test cases, Figure 2 This is a flow chart of a method for generating conversational test cases based on AI provided by another embodiment of the present application. The above step 120 obtains M1 resume IDs associated with M1 C-end user IDs from the resume information data table, which may include Figure 2Steps 210 to 260 are shown.
[0066] Step 210: After obtaining M1 C-end user IDs, obtain the HR test account ID and a session relationship data table for recording session relationships.
[0067] Step 220: traverse the M1 C-end user IDs and HR test account IDs in the session relationship data table to determine whether the M1 C-end user IDs have a session relationship with the HR test account ID.
[0068] Step 230: Determine that the C-end user ID that does not have a session relationship with the HR test account ID is the first C-end user ID, and the C-end user ID that has a session relationship with the HR test account ID is the second C-end user ID;
[0069] Step 240: For the first C-end user ID, obtain the resume ID associated with the first C-end user ID from the resume information data table;
[0070] Step 250: For each second C-end user ID, replace the first mobile phone number associated with each second C-end user ID with a randomly generated third mobile phone number;
[0071] Step 260: When the C-end user ID associated with the third mobile phone number is queried from the registration information data table, and the C-end user ID associated with the third mobile phone number does not have a session relationship with the HR test account ID, obtain the resume ID associated with the C-end user ID from the resume information data table.
[0072] Specifically, the HR test account ID can include at least one. If a conversation message has been sent between the C-end user ID and the HR test account ID, a conversation relationship between the C-end user ID and the HR test account ID can be established in advance, and the conversation relationship can be pre-recorded in the conversation relationship data table. The conversation relationship data table can include the following fields: C-end user ID, HRID, and conversation creation time.
[0073] The session relationship data table can be divided into a B-side session relationship table and a C-side session relationship table. The B-side session relationship table can be associated with the HR test account ID. That is, each HR test account ID is associated with a B-side session relationship table, which records the session relationship between the HR test account ID and at least one C-side user ID.
[0074] For example, M1 C-end user IDs include IDc1, IDc2, IDc3, and IDc4, and the HR test account ID is IDb1. If the session relationship data table records the session relationship between IDc1, IDc2, and IDb1, but does not record the session relationship between IDc3, IDc4, and IDb1, then IDc1 and IDc2 are determined to be the second C-end user IDs, and IDc3 and IDc4 are determined to be the first C-end user IDs. Therefore, for IDc1 and IDc2, the first mobile phone number associated with IDc1 and IDc2 is replaced with the newly generated third mobile phone number.
[0075] In the embodiments of the present application, repeatedly created session test cases cannot be effectively applied to IM system testing, that is, the validity of the session test cases during the testing process cannot be guaranteed. Based on this, by traversing M1 C-end user IDs and HR test account IDs in the session relationship data table, the second C-end user ID that has already sent a session message with the HR test account ID can be accurately filtered out from the M1 C-end user IDs, avoiding the subsequent repeated creation of session test cases between the two and ensuring the validity of the session test cases during the testing process.
[0076] Involving step 130, for M2 second mobile phone numbers other than M1 first mobile phone numbers, by calling the recruitment application login interface, M2 C-end user IDs associated with the M2 second mobile phone numbers are obtained.
[0077] In step 130, M=M1+M2, the M mobile phone numbers include M1 first mobile phone numbers and M2 second mobile phone numbers, and the second mobile phone number is a mobile phone number that is not written into the registration information data table, that is, the registration information data table does not contain the C-end user ID associated with the second mobile phone number, so it is necessary to automatically generate the C-end user ID by calling the recruitment application login interface.
[0078] In some embodiments of the present application, in order to automatically generate a C-end user ID, Figure 3 This is a flow chart of a method for generating conversational test cases based on AI provided by another embodiment of the present application. The above step 130 obtains M2 C-end user IDs associated with M2 second mobile phone numbers by calling the recruitment application login interface and the IM login interface, which may include Figure 3 Steps 310 and 320 are shown.
[0079] Step 310: If no M2 second mobile phone numbers are found in the registration information data table, it is determined that the M2 second mobile phone numbers have not been registered or logged in in the recruitment application;
[0080] Step 320, for each of the M2 second mobile phone numbers, use each second mobile phone number as an input parameter of the recruitment application login interface, and by calling the recruitment application login interface, register and log in the M2 second mobile phone numbers in the recruitment application respectively, generate a C-end user ID associated with each second mobile phone number, and obtain M2 C-end user IDs.
[0081] Specifically, the input parameters of the recruitment application login interface may include a mobile phone number and a mobile phone verification code. By calling the recruitment application login interface, a registration and login request for the mobile phone number is initiated to the recruitment application server, so that the server uses the mobile phone number to register and log in to obtain the client user ID, thereby obtaining the return parameters of the recruitment application login interface, which may include the mobile phone number and the client user ID. The mobile phone verification code can be obtained by the server by calling the verification code generation interface.
[0082] In an embodiment of the present application, for the M2 second mobile phone numbers among the randomly generated M mobile phone numbers that have not been registered or logged in in the recruitment application, the test system can call the recruitment application login interface, automatically register and log in to the job-seeking account in the recruitment application using the second mobile phone number, and obtain the account ID of the job-seeking account, thereby realizing the automatic generation of the C-end user ID, omitting the need for testers to manually register and log in during the IM system testing process, and being able to generate multiple C-end user IDs in batches, greatly saving the IM system testing time.
[0083] Involving step 140, M2 job search details corresponding to M2 C-end user IDs are obtained, and interface information of a resume creation interface for creating a resume is obtained from the API management platform.
[0084] In step 140, the job search details information may include but is not limited to the job seeker's identity information and job search intention information. The job search details information may be configured by the user for each C-end user ID. The user pre-configures a job search details information for each of the M C-end user IDs.
[0085] For example, the C-end user ID is IDc1, and the job search details information configured for it can be "Job seeker identity: working person; job search intention: new media operation, public account editor".
[0086] As an example, Yapi is an efficient, easy-to-use, and powerful API management platform designed to provide developers, product developers, and testers with elegant interface management services. It helps developers easily create, publish, and maintain APIs, while also providing users with an excellent interactive experience. Developers can manage interfaces simply by using the platform's interface data writing tools and simple point-and-click operations.
[0087] In some embodiments of the present application, the resume creation interface includes a first interface for creating basic resume information, a second interface for creating educational experience in a resume, a third interface for creating work experience in a resume, and a fourth interface for creating job-seeking intentions in a resume. The interface information includes the input parameters of the first interface, the second interface, the third interface, and the fourth interface. The input parameters include the parameter format and the type of each field.
[0088] Specifically, the field type of the input parameters of the first interface can include the C-end user ID and the resume disclosure status; the field type of the input parameters of the second interface 2 can include the resume ID, C-end user ID, school, major, academic qualifications, school start time, and school end time; the field type of the input parameters of the third interface can include the resume ID, company, function, industry, job description, work start time, and work end time; the field type of the input parameters of the fourth interface can include the C-end user ID, expected function, expected work location, and expected salary.
[0089] In an embodiment of the present application, by splitting the resume creation interface into four sub-interfaces, namely the first interface, the second interface, the third interface and the fourth interface, the resume creation pressure can be shared in the process of calling the resume creation interface to create a resume, and part of the resume information content can be created simultaneously through the four interfaces, thereby improving the resume information creation speed.
[0090] Involving step 150, for each C-end user ID corresponding to the second mobile phone number, the job search details information corresponding to the C-end user ID and the interface information of the resume creation interface are input into the large language model to generate the resume information associated with the C-end user ID and its resume ID.
[0091] In step 150, the resume information is generated based on the job application details information corresponding to the C-end user ID and the interface information of the resume creation interface, so that the resume information can be matched with the job application details information and the interface information, and the resume ID is used to uniquely identify the corresponding resume information.
[0092] Large Language Models (LLM) are, for example, General Language Models (GLM), which are jointly trained by Tsinghua University KEG Laboratory and Zhipu AI. The largest model used is GLM3-6B, which has 130 billion parameters and supports Chinese and English. It can also be other models, such as the bilingual (Chinese and English) bidirectional dense model GLM-10B / 130B; Meta open source pre-trained language models, such as OPT-2.7B / 13B / 30B / 66B; Bloom series models, such as Bloom-7B / 13B / 176B; Open AI series models, GPT-4 / 3.5 / ; Google's PaLM2 series models, such as Gecko, Otter, Buson, Unicorn, etc. This application does not make specific limitations on this.
[0093] In some embodiments of the present application, before step 150, the resume information actually filled out by the registered user corresponding to the recruitment application can be collected, and the job application details information and interface information can be extracted from the resume information; the job application details information and interface information are used as input training data, and the resume information is used as output training data for training to obtain a large language model.
[0094] In step 160 , based on the HR test account ID, at least one position ID associated with the HR test account ID is searched from the position information data table.
[0095] In step 160, each HR test account ID can be associated with at least one position ID. The position information data table is a data table that records the association between the HR test account ID and the position ID. The field types of the position information data table can include HRID (i.e., HR test account ID), position ID, position status, position release time, and position expiration time.
[0096] Involving step 170, M C-end user IDs associated with M mobile phone numbers, M resume IDs, HR test account ID, and at least one position ID are used as input parameters of the session creation interface, and M session test cases are created between the M C-end user IDs and the HR test account ID by calling the session creation interface.
[0097] In step 170, a session test case can be created between an HR test account ID and the C-end user ID using an HR test account ID and a resume ID and a position ID associated with a C-end user ID. Therefore, for an HR test account ID and M C-end user IDs, M session test cases can be created; for P HR test account IDs and M C-end user IDs, P*M session test cases can be created.
[0098] In some embodiments of the present application, in step 170, creating M session test cases between M C-end user IDs and HR test account IDs by calling a session creation interface may specifically include the following steps:
[0099] For each of the M mobile phone numbers, pass the mobile phone number to the IM login interface, and log the mobile phone number in the recruitment application by calling the IM login interface;
[0100] Upon receiving the successful login result returned by the IM login interface, the HR test account ID and the C-end user ID, resume ID, and position ID associated with the mobile phone number are passed to the session creation interface. The session creation interface is then called to initiate session creation requests to the B-end and C-end respectively to create a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number.
[0101] Specifically, before creating a session test case, you first need to log in to your job-seeking account using your mobile phone number. After successfully logging in, you then pass the HR test account ID, along with the C-end user ID, resume ID, position ID, and session message content associated with each mobile phone number, to the session creation interface. This session creation interface then calls a third-party messaging interface, which in turn controls the third-party server to send session creation requests to both the B-end and the C-end. These requests contain the corresponding message sender and recipient information, as well as the session message content. Furthermore, the B-end and the C-end can use the resume ID and position ID passed in as parameters to display the resume and position information in the session window.
[0102] If the session test case is initiated from end B to end C, the message sender information is the HR test account ID and the message receiver information is the C-end user ID; if the session test case is initiated from end C to end B, the message receiver information is the HR test account ID and the message sender information is the C-end user ID.
[0103] In an embodiment of the present application, by calling the IM login interface and the session creation interface, session test cases can be automatically created in batches. In the recruitment application scenario, there is no need for testers to manually send session messages between the B-end and the C-end to create numbers, thereby improving the efficiency of creating session test cases.
[0104] In related technologies, during the IM system testing process, some customized C-end user resumes are required as test cases, but manually creating resumes is inefficient.
[0105] In some embodiments of the present application, to improve the efficiency of creating session test cases, the input parameters of the session creation interface may include M sub-input parameters associated with M mobile phone numbers. The sub-input parameters are used to create session test cases corresponding to the mobile phone numbers. Before the above step 170 uses the M C-end user IDs, M resume IDs, HR test account IDs, and at least one position ID associated with the M mobile phone numbers as the input parameters of the session creation interface, the method may further include the following steps:
[0106] Based on the job search details information corresponding to the C-end user ID, a job ID that matches the job search details information is selected from at least one job ID and associated with the C-end user ID;
[0107] Based on the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and position ID associated with the C-end user ID, construct the sub-input parameters for each mobile phone number.
[0108] Specifically, different position IDs correspond to different positions. For example, the three position IDs associated with the HR test account ID correspond to front-end page development, software testing, and new media operation, respectively. Then, you can filter out the position ID that matches the job-seeking intention in the job-seeking details from at least one position ID, thereby obtaining the position ID that matches the job-seeking details; by combining the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and position ID associated with the C-end user ID, you can obtain the sub-input parameters of each mobile phone number.
[0109] In this embodiment, if the HR test account ID is associated with more than one position ID, the position ID that matches the job application details is selected as a sub-input parameter for the mobile phone number to generate the session test case. This allows the creation of a session test case to better simulate a real-world conversation between the B-end and the C-end, resulting in a more realistic session test case. This results in better test results when using the session test case data for IM system testing.
[0110] In some embodiments of the present application, the sub-input parameter may further include user-defined or randomly generated conversation message content, and the conversation message content is used to be displayed in the conversation window.
[0111] As an example, Figure 4 The job seekers 1 to 9 shown are the C-end user IDs. After creating a conversation test case between the HR test account ID and job seekers 1 to 9, multiple conversation messages sent by job seekers 1 to 9 can be displayed on the B-end (i.e., the HR test account ID side). Among them, the content of the conversation message sent by job seeker 5 received by the B-end can be "This is message 123 sent through the number generation interface."
[0112] In some embodiments of the present application, after creating a session test case between an HR test account ID and a C-end user ID associated with a mobile phone number by calling a session creation interface, the method may further include the following steps:
[0113] Create a new session relationship between the C-end user ID associated with the mobile phone number and the HR test account ID in the session relationship data table.
[0114] Specifically, after creating a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number, a new data record can be created in the session relationship data table. The data record contains the following three fields: C-end user ID, HR test account ID, and session creation time.
[0115] In an embodiment of the present application, after creating a session test case between an HR test account ID and a C-end user ID associated with a mobile phone number, the session relationship between the C-end user ID and the HR test account ID is promptly synchronized to the session relationship data table. This allows the user to accurately determine whether a session relationship has been established between the HR test account ID and the C-end user ID by querying the session relationship data table for the HR test account ID and the C-end user ID corresponding to the mobile phone number. This prevents the repeated generation of the same session test case and, consequently, avoids repeated testing of the IM system using the same session test case data, thus ensuring the effectiveness of the testing.
[0116] Corresponding to the method embodiment of the present application, the present application also provides an AI-based conversation test case generation device.
[0117] Figure 5 This is a structural diagram of an AI-based conversation test case generation device provided in an embodiment of the present application. Figure 5 As shown, the AI-based conversation test case generation device 500 may include: a traversal and screening module 510 , a query module 520 , an acquisition module 530 , a generation module 540 and a conversation creation module 550 .
[0118] Among them, the traversal and screening module 510 is used to traverse the M mobile phone numbers in the registration information data table when M randomly generated mobile phone numbers are obtained, and screen out M1 first mobile phone numbers written in the registration information data table from the M mobile phone numbers, wherein the registration information data table is used to record the association relationship between the mobile phone number and the C-end user ID; the query module 520 is used to query the M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtain the M1 resume ID associated with the M1 C-end user ID from the resume information data table, wherein the resume information data table is used to record the association relationship between the C-end user ID and the resume ID; the acquisition module 530 is used to obtain the M2 C-end user IDs associated with the M2 second mobile phone numbers by calling the recruitment application login interface for the M2 second mobile phone numbers other than the M1 first mobile phone numbers, wherein the M mobile phone numbers include the M1 first mobile phone number and M2 second mobile phone numbers; the acquisition module 530 is also used to obtain M2 job search details corresponding to M2 C-end user IDs, and obtain the interface information of the resume creation interface for creating a resume from the API management platform; the generation module 540 is used to input the job search details corresponding to the C-end user ID and the interface information of the resume creation interface into the large language model for each C-end user ID, and generate the resume information associated with the C-end user ID and its resume ID; the query module 520 is used to query at least one position ID associated with the HR test account ID from the position information data table based on the HR test account ID; the session creation module 550 is used to use the M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers as input parameters of the session creation interface, and create M session test cases between the M C-end user IDs and the HR test account ID by calling the session creation interface.
[0119] In the AI-based conversation test case generation device provided by the embodiment of the present application, the registration information data table is used to record the association between the mobile phone number and the C-end user ID. The C-end user ID is generated after registering and logging in using the mobile phone number. Therefore, when M randomly generated mobile phone numbers are obtained, the M mobile phone numbers can be traversed in the registration information data table, and the M1 first mobile phone numbers written in the registration information data table can be filtered out from the M mobile phone numbers. The first mobile phone number is the mobile phone number that has been registered and logged in in the recruitment application. Therefore, the C-end user ID generated after registering and logging in using the first mobile phone number can be queried from the registration information data table, that is, the M1 C-end user IDs associated with the M1 first mobile phone numbers. Based on this, the resume information data table is used to record the association between the C-end user ID and the resume ID. Therefore, the M1 resume IDs associated with the M1 C-end user IDs can be obtained from the resume information data table. For the M2 second mobile phone numbers other than the M1 first mobile phone numbers, since they have not been previously registered or logged in to the recruitment application, by calling the recruitment application login interface, the M2 C-end user IDs associated with the M2 second mobile phone numbers can be obtained, along with the M2 job application details corresponding to the M2 C-end user IDs. The interface information for the resume creation interface used to create resumes can also be obtained from the API management platform. For each C-end user ID corresponding to the second mobile phone number, the resume information associated with the C-end user ID and its resume ID can be generated by inputting the job application details corresponding to the C-end user ID and the resume creation interface information into the large language model. Based on this, to create a session test case between the B-end and C-end users, the position information data table can be queried based on the B-end HR test account ID for at least one position ID associated with the HR test account ID. The M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers can be used as input parameters to the session creation interface. By calling the session creation interface, M session test cases can be batch-created between the M C-end user IDs and the HR test account ID. In this way, during the IM system testing process, testers do not need to manually simulate real users logging into the recruitment application to initiate sessions. Instead, they can use multiple randomly generated mobile phone numbers to automatically generate multiple session test cases in batches for IM system testing, effectively improving the testing efficiency of the IM system.
[0120] In some embodiments of the present application, it also includes: an acquisition module 530, which is also used to obtain multiple mobile phone numbers configured by the user before traversing M mobile phone numbers in the registration information data table; a generation module 540, which is used to register and log in multiple mobile phone numbers in the recruitment application in response to multiple registration and login operations of the user, and generate a C-end user ID associated with each mobile phone number; a writing module, which is used to write the association relationship between each mobile phone number and the C-end user ID in the registration information data table.
[0121] In some embodiments of the present application, the acquisition module 530 includes: a determination unit, which determines that the M2 second mobile phone numbers have not been registered and logged in in the recruitment application when the M2 second mobile phone numbers are not found in the registration information data table; a generation unit, which is used to use each second mobile phone number as an input parameter of the recruitment application login interface for each of the M2 second mobile phone numbers, and register and log in the M2 second mobile phone numbers in the recruitment application by calling the recruitment application login interface, generate a C-end user ID associated with each second mobile phone number, and obtain M2 C-end user IDs.
[0122] In some embodiments of the present application, the acquisition module 530 includes: an acquisition unit for acquiring an HR test account ID and a session relationship data table for recording session relationships when M1 C-end user IDs are acquired; a traversal unit for traversing the M1 C-end user IDs and the HR test account ID in the session relationship data table to determine whether the M1 C-end user IDs have a session relationship with the HR test account ID; a determination unit for determining that the C-end user ID that does not have a session relationship with the HR test account ID is the first C-end user ID, and the C-end user ID that has a session relationship with the HR test account ID is the second C-end user ID. The ID is the second C-end user ID; the acquisition unit is also used to obtain the resume ID associated with the first C-end user ID from the resume information data table for the first C-end user ID; for each second C-end user ID, the first mobile phone number associated with each second C-end user ID is replaced with a randomly generated third mobile phone number; the acquisition unit is also used to obtain the resume ID associated with the C-end user ID from the resume information data table when the C-end user ID associated with the third mobile phone number is queried from the registration information data table and the C-end user ID associated with the third mobile phone number does not have a session relationship with the HR test account ID.
[0123] In some embodiments of the present application, the resume creation interface includes a first interface for creating basic resume information, a second interface for creating educational experience in a resume, a third interface for creating work experience in a resume, and a fourth interface for creating job-seeking intentions in a resume. The interface information includes the input parameters of the first interface, the second interface, the third interface, and the fourth interface. The input parameters include the parameter format and the type of each field.
[0124] In some embodiments of the present application, the input parameters of the session creation interface include M sub-input parameters associated with M mobile phone numbers, and the sub-input parameters are used to create session test cases corresponding to the mobile phone numbers. It also includes: a screening module, which is used to, before using the M C-end user IDs, M resume IDs, HR test account ID, and at least one position ID associated with the M mobile phone numbers as the input parameters of the session creation interface, screen the position ID that matches the job search details information from at least one position ID and is associated with the C-end user ID based on the job search details information corresponding to the C-end user ID; a construction module, which is used to construct the sub-input parameters of each mobile phone number based on the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and position ID associated with the C-end user ID.
[0125] In some embodiments of the present application, the session creation module 550 includes: a login unit, which is used to pass the mobile phone number of each of the M mobile phone numbers to the IM login interface, and log in the mobile phone number in the recruitment application by calling the IM login interface; a session creation unit, which is used to pass the HR test account ID and the C-end user ID, resume ID, and position ID associated with the mobile phone number to the session creation interface when receiving a successful login result returned by the IM login interface, and initiate session creation requests to the B-end and C-end respectively by calling the session creation interface to create a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number.
[0126] In some embodiments of the present application, it also includes: a relationship creation module, which is used to create a new session relationship between the C-end user ID associated with the mobile phone number and the HR test account ID in the session relationship data table after creating a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number by calling the session creation interface.
[0127] The AI-based conversation test case generation device provided in the embodiment of the present application can achieve Figure 1-4 The various processes implemented by the service platform in the method embodiment can achieve the same technical effect. To avoid repetition, they will not be described here.
[0128] Figure 6 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.
[0129] like Figure 6 As shown, the electronic device 600 includes a memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .
[0130] In an example, the processor 602 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0131] The memory 601 may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, or an electrical, optical, or other physical / tangible memory storage device. Therefore, typically, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) 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 operations described with reference to the card activation method in the embodiment according to the first aspect of the present application.
[0132] The processor 602 runs a computer program corresponding to the executable program code by reading the executable program code stored in the memory 601, so as to implement the card activation method in the embodiment of the first aspect.
[0133] In some examples, the electronic device 600 may further include a communication interface 603 and a bus 610. Figure 6 As shown, the memory 601 , the processor 602 , and the communication interface 603 are connected via a bus 610 and communicate with each other.
[0134] The communication interface 603 is mainly used to implement communication between the modules, devices, units and / or equipment in the embodiment of the present application. Input devices and / or output devices can also be connected through the communication interface 603.
[0135] Bus 610 includes hardware, software, or both that couples components of electronic device 600 to each other. By way of example, and not limitation, bus 610 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-E) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Bus 610 may include one or more buses, where appropriate. Although embodiments herein describe and illustrate a particular bus, this application contemplates any suitable bus or interconnect.
[0136] The electronic device provided in the embodiment of the present application can realize Figure 1-4 The various processes implemented by the electronic device in the method embodiment can achieve the same technical effect, and to avoid repetition, they will not be described here.
[0137] In conjunction with the AI-based conversation test case generation method in the above embodiments, embodiments of the present application may provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when executed by a processor, the computer program instructions implement the steps of any of the AI-based conversation test case generation methods in the above embodiments.
[0138] In conjunction with the AI-based conversation test case generation method in the above embodiments, embodiments of the present application may be implemented by providing a computer program product. This (computer) program product is stored in a non-volatile storage medium and, when executed by at least one processor, implements the steps of any of the AI-based conversation test case generation methods in the above embodiments.
[0139] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned AI-based conversation test case generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0140] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0141] It should be understood that the present application is not limited to the specific configurations and processes described above and illustrated in the figures. For the sake of brevity, a detailed description of known methods is omitted here. In the above embodiments, several specific steps are described and illustrated as examples. However, the method process of the present application is not limited to the specific steps described and illustrated. Those skilled in the art can make various changes, modifications, and additions, or change the order of the steps after understanding the spirit of the present application.
[0142] The functional blocks shown in the block diagrams described above can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they may be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, and the like. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored in a machine-readable medium or transmitted via a data signal carried in a carrier wave over a transmission medium or communication link. "Machine-readable medium" may include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROMs, flash memory, erasable ROMs (EROMs), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, and the like. Code segments can be downloaded via a computer network such as the Internet or an intranet.
[0143] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps. In other words, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.
[0144] Aspects of the present disclosure have been described above with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present disclosure. It should be understood that each block in the flowcharts and / or block diagrams, as well as combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine such that execution of these instructions by the processor of the computer or other programmable data processing device enables the implementation of the functions / actions specified in one or more blocks in the flowcharts and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It should also be understood that each block in the block diagrams and / or flowcharts, as well as combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by dedicated hardware that performs the specified functions or actions, or by a combination of dedicated hardware and computer instructions.
[0145] The above description is only a specific embodiment of the present application. Those skilled in the art will clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the scope of protection of the present application.
Claims
1. A conversation test case generation method based on AI, characterized in that: include: When M randomly generated mobile phone numbers are obtained, the M mobile phone numbers are traversed in the registration information data table, and M1 first mobile phone numbers written in the registration information data table are screened out from the M mobile phone numbers, wherein the registration information data table is used to record the association between the mobile phone numbers and the C-end user ID, where the C-end is the job seeker end; Querying M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtaining M1 resume IDs associated with the M1 C-end user IDs from the resume information data table, wherein the resume information data table is used to record the association relationship between the C-end user ID and the resume ID; For M2 second mobile phone numbers other than the M1 first mobile phone numbers, obtain M2 C-end user IDs associated with the M2 second mobile phone numbers by calling the recruitment application login interface, wherein the M mobile phone numbers include the M1 first mobile phone numbers and the M2 second mobile phone numbers; Obtain M2 job search details corresponding to the M2 C-end user IDs, and obtain interface information of a resume creation interface for creating a resume from the API management platform; For each C-end user ID corresponding to the second mobile phone number, input the job search details information corresponding to the C-end user ID and the interface information of the resume creation interface into the large language model to generate the resume information associated with the C-end user ID and its resume ID; Based on the HR test account ID, querying at least one position ID associated with the HR test account ID from the position information data table; The M C-end user IDs, M resume IDs, the HR test account ID, and the at least one position ID associated with the M mobile phone numbers are used as input parameters of the session creation interface, and M session test cases are created between the M C-end user IDs and the HR test account ID by calling the session creation interface.
2. The method according to claim 1, characterized in that Before traversing the M mobile phone numbers in the registration information data table, the method further includes: Get multiple mobile phone numbers configured by the user; In response to multiple registration and login operations by the user, register and log in the multiple mobile phone numbers in the recruitment application, and generate a C-end user ID associated with each mobile phone number; The association relationship between each mobile phone number and the C-end user ID is written into the registration information data table.
3. The method according to claim 1, characterized in that The method of acquiring M2 C-end user IDs associated with the M2 second mobile phone numbers by calling the recruitment application login interface includes: If the M2 second mobile phone numbers are not found in the registration information data table, determining that the M2 second mobile phone numbers have not been registered or logged in in the recruitment application; For each of the M2 second mobile phone numbers, each second mobile phone number is used as an input parameter of the recruitment application login interface, and by calling the recruitment application login interface, the M2 second mobile phone numbers are registered and logged in in the recruitment application respectively, and a C-end user ID associated with each second mobile phone number is generated to obtain the M2 C-end user IDs.
4. The method according to claim 1, wherein The step of obtaining the M1 resume IDs associated with the M1 C-end user IDs from the resume information data table includes: When the M1 C-end user IDs are obtained, the HR test account ID and the session relationship data table for recording session relationships are obtained; Traversing the M1 C-end user IDs and the HR test account ID in the session relationship data table to determine whether the M1 C-end user IDs have a session relationship with the HR test account ID; Determine that a C-end user ID that does not have a session relationship with the HR test account ID is a first C-end user ID, and a C-end user ID that has a session relationship with the HR test account ID is a second C-end user ID; For the first C-end user ID, obtain the resume ID associated with the first C-end user ID from the resume information data table; For each second C-end user ID, replace the first mobile phone number associated with each second C-end user ID with a randomly generated third mobile phone number; When the C-end user ID associated with the third mobile phone number is queried from the registration information data table, and the C-end user ID associated with the third mobile phone number does not have a session relationship with the HR test account ID, the resume ID associated with the C-end user ID is obtained from the resume information data table.
5. The method according to claim 1, wherein The resume creation interface includes a first interface for creating basic resume information, a second interface for creating educational experience in a resume, a third interface for creating work experience in a resume, and a fourth interface for creating job-seeking intentions in a resume. The interface information includes the input parameters of the first interface, the second interface, the third interface, and the fourth interface, and the input parameters include the parameter format and the type of each field.
6. The method according to claim 1, characterized in that The input parameters of the session creation interface include M sub-input parameters associated with the M mobile phone numbers, and the sub-input parameters are used to create a session test case corresponding to the mobile phone numbers. Before the M C-end user IDs, M resume IDs, the HR test account ID, and the at least one position ID associated with the M mobile phone numbers are used as the input parameters of the session creation interface, the following is also included: Based on the job search details information corresponding to the C-end user ID, a job ID that matches the job search details information is selected from the at least one job ID and is associated with the C-end user ID; Based on the HR test account ID, the C-end user ID associated with each mobile phone number, and the resume ID and the position ID associated with the C-end user ID, the sub-input parameters of each mobile phone number are constructed.
7. The method according to claim 1, characterized in that The B side is the recruitment side, and the M session test cases between the M C side user IDs and the HR test account ID are created by calling the session creation interface, including: For each of the M mobile phone numbers, pass the mobile phone number to the IM login interface, and log in the mobile phone number in the recruitment application by calling the IM login interface; Upon receiving the successful login result returned by the IM login interface, the HR test account ID and the C-end user ID, resume ID, and position ID associated with the mobile phone number are passed to the session creation interface, and by calling the session creation interface, session creation requests are initiated to the B-end and C-end respectively to create a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number.
8. The method according to claim 7, characterized in that After creating a session test case between the HR test account ID and the C-end user ID associated with the mobile phone number by calling the session creation interface, the method further includes: A new session relationship is created in the session relationship data table between the C-end user ID associated with the mobile phone number and the HR test account ID.
9. An AI-based conversation test case generation device, characterized in that: include: a traversal and screening module for, upon obtaining M randomly generated mobile phone numbers, traversing the M mobile phone numbers in a registration information data table and screening out M1 first mobile phone numbers written into the registration information data table from the M mobile phone numbers, wherein the registration information data table is used to record the association between the mobile phone numbers and the C-end user IDs; a query module, configured to query M1 C-end user IDs associated with the M1 first mobile phone numbers from the registration information data table, and obtain M1 resume IDs associated with the M1 C-end user IDs from a resume information data table, wherein the resume information data table is used to record the association relationship between the C-end user ID and the resume ID; an acquisition module, configured to acquire, for M2 second mobile phone numbers other than the M1 first mobile phone numbers, M2 C-end user IDs associated with the M2 second mobile phone numbers by calling a recruitment application login interface, wherein the M mobile phone numbers include the M1 first mobile phone numbers and the M2 second mobile phone numbers, and the C-end is a job seeker; The acquisition module is further configured to acquire M2 job search details corresponding to the M2 C-end user IDs, and to acquire interface information of a resume creation interface for creating a resume from the API management platform; A generation module is used to input the job search details corresponding to each C-end user ID and the interface information of the resume creation interface into the large language model for each C-end user ID, and generate the resume information and resume ID associated with the C-end user ID; A query module, configured to query at least one position ID associated with the HR test account ID from a position information data table based on the HR test account ID; The session creation module is used to use the M C-end user IDs associated with the M mobile phone numbers, the M resume IDs, the HR test account ID, and the at least one position ID as input parameters of the session creation interface, and create M session test cases between the M C-end user IDs and the HR test account ID by calling the session creation interface.
10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; and when the electronic device executes the computer program instructions, the method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Session business test management method and system, management terminal, and test terminal
CN106559244A
Test method and device of online recruitment system and storage medium.
CN112286794A