A test method, device, terminal equipment and storage medium
After receiving the test instructions, the target test platform is determined, and the general attribute information and matching case items are extracted to generate user test information, which solves the problem of low testing efficiency on different platforms, realizes the multi-platform use of data base tables and case tables, and improves the testing Efficiency and accuracy.
Patent Information
- Application Number
- CN202010190753.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-03-18
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2040-03-18
AI Technical Summary
In the prior art, cases need to be written separately for testing on different sales platforms, resulting in low testing efficiency and large workload, which is easy to cause missed testing.
After receiving the test instructions, determine the target test platform, extract the general attribute information and matching case items in the case table from the preset data base table, generate user test information, and send it to the target test platform for unified testing, avoiding Configure the data base table and case table separately for each platform.
It reduces the difficulty of configuring the data base table and case table, expands its scope of use, improves testing efficiency, reduces manpower and material consumption, and avoids missed testing.
Smart Images

Figure CN111427778B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of testing technology, and in particular, relates to a testing method, apparatus, terminal device and storage medium. Background Art
[0002] As new consumption patterns continue to gain popularity, any product or service can be sold through multiple platforms such as websites, telephones, applications, and specific merchants. Usually, different sales platforms have different sales rules. When selling certain special types of products, not only do you need to meet the regulatory rules of the corresponding platform, but you will also have different purchasing requirements for consumers.
[0003] In order to meet the regulatory rules of each platform and confirm whether consumers are qualified to purchase products on the platform, merchants will test the sales process of each platform before officially selling a product to ensure that the product will not be purchased by unqualified consumers after the official sale.
[0004] At present, merchants conduct tests before formal sales based on different sales platforms. For example, if a product is planned to be sold through four platforms such as websites, telephones, applications, and merchant consignment sales, testers need to test the above four platforms separately. During the test, one platform is usually used for one Excel form, and different test parameters for each platform also need to be maintained separately. For testers, they need to be familiar with the testing tools of different platforms, which can easily bring a relatively large operational burden to testers and lead to relatively low testing efficiency. Moreover, for some products sold on multiple platforms, cases need to be written separately for different platforms, which is not only a very large workload and consumes a lot of manpower and material resources, but also prone to missed tests. Summary of the invention
[0005] In view of this, the embodiments of the present application provide a testing method, apparatus, terminal device and storage medium to solve the problem in the prior art that tests for different platforms need to be written separately, resulting in low testing efficiency.
[0006] A first aspect of an embodiment of the present application provides a testing method, comprising:
[0007] When a test instruction for a target user is received, a target test platform corresponding to the test instruction is determined,
[0008] Extracting general attribute information from a preset data base table, and extracting case items matching the target user attribute information of the target user from a preset case table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0009] Generate user test information for the target user using the general attribute information and the case items;
[0010] The user testing information is sent to the target testing platform, where the user testing information is used to instruct the target testing platform to test the target user.
[0011] A second aspect of an embodiment of the present application provides a testing device, including:
[0012] A target test platform determination module is used to determine the target test platform corresponding to the test instruction when receiving the test instruction for the target user;
[0013] A general attribute information extraction module is used to extract general attribute information from a preset data base table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0014] A case item extraction module, used to determine the target test platform corresponding to the test instruction, and extract case items matching the target user attribute information of the target user from a preset case table;
[0015] A user test information generating module, configured to generate user test information for the target user by using the general attribute information and the case items;
[0016] The user test information sending module is used to send the user test information to the target test platform, and the user test information is used to instruct the target test platform to test the target user.
[0017] A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the test method described in the first aspect when executing the computer program.
[0018] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the test method described in the first aspect are implemented.
[0019] Compared with the prior art, the embodiments of the present application have the following advantages:
[0020] In the embodiment of the present application, upon receiving a test instruction for a target user, by determining the target test platform corresponding to the test instruction, general attribute information can be extracted from a preset data base table, and case items matching the target user attribute information of the target user can be extracted from a preset case table, and then the above general attribute information and case items are used to generate user test information for the target user. After the user test information is sent to the target test platform, the target test platform can uniformly test the target user. In this embodiment, by configuring the data base table and the case table, after receiving the test instruction, the target test platform to be tested in the test instruction can be determined, and then data can be extracted from the above two data tables to generate user test information for the target test platform. There is no need to configure the data base table and the case table for each test platform respectively. The uniformly configured data base table and case table can be used by multiple test platforms, which reduces the configuration difficulty of the data base table and the case table, expands the scope of use of the data base table and the case table, and improves the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the embodiments or prior art descriptions. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 This is a schematic diagram of the steps of a testing method according to an embodiment of the present application;
[0023] Figure 2 This is a schematic diagram of a process flow of generating a data base table according to an embodiment of the present application;
[0024] Figure 3 This is a schematic diagram of a process flow of generating a case table according to an embodiment of the present application;
[0025] Figure 4 It is a schematic diagram of the steps of another testing method according to an embodiment of the present application;
[0026] Figure 5 is a schematic diagram of a testing device according to an embodiment of the present application;
[0027] Figure 6 It is a schematic diagram of a terminal device according to an embodiment of the present application. DETAILED DESCRIPTION
[0028] In the following description, specific details such as specific system structures, technologies, etc. are proposed for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from hindering the description of the present application.
[0029] The technical solution of the present application is described below through specific embodiments.
[0030] Reference Figure 1 , shows a schematic flow chart of a testing method according to an embodiment of the present application, which may specifically include the following steps:
[0031] S101, when receiving a test instruction for a target user, determining a target test platform corresponding to the test instruction;
[0032] It should be noted that this method can be applied to a test system, which can be generated by configuring a terminal device and a server accordingly. The execution subject of this embodiment can be a terminal device, such as a computer, a desktop computer, etc. By generating user test information through a terminal device and sending it to a corresponding server, the test of the user can be implemented.
[0033] The target user may be a user who needs to be tested. Generally, there may be multiple target users. Each target user may correspond to a test instruction, that is, a test on one user may be completed through one instruction; or a test instruction may carry information of multiple target users, and a test may be triggered to complete the test on multiple users. This embodiment does not limit the correspondence between the target user and the test instruction.
[0034] In this embodiment, when receiving a test instruction for a target user, the terminal device may first determine a target test platform corresponding to the test instruction.
[0035] Usually, the test instruction carries information about a specific test platform, that is, on which platform or platforms the target user needs to be tested. Different test platforms may have different test requirements for the target user.
[0036] S102, extracting common attribute information from a preset data base table, wherein the common attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0037] The above-mentioned general attribute information can be sample information obtained by collecting a large number of sample users, that is, these sample information are user attribute information that can be adapted to multiple test platforms at the same time, such as basic information of a large number of users, such as gender, city of residence, home address, etc.
[0038] It should be noted that, according to the actual situation of the test requirements, the amount of general attribute information extracted for a target user or a test instruction may also be different. For example, for a target user or a test instruction, the number of general attribute information extracted may be 500 or 5000, and this embodiment does not limit this.
[0039] S103, extracting a case item that matches the target user attribute information of the target user from a preset case table;
[0040] In this embodiment, the test instruction may carry target user attribute information of the target user, and a class of users with certain specific attributes may be determined through the attribute information, so that user test information for multiple users may be subsequently generated based on the target user attribute information in a test instruction.
[0041] The case table may include multiple case items, each of which can be matched with a certain user attribute information. Each case item can be connected with case_id (case ID).
[0042] For example, for case_id_00021, the target user attribute information it contains may be age_21 / channel_application / business object_critical illness insurance 002. This case item may represent a user who has purchased critical illness insurance 002 through the application and is 21 years old.
[0043] S104, using the general attribute information and the case items to generate user test information for the target user;
[0044] In this embodiment, when the general attribute information and the case items are used to generate the user test information for the target user, the extracted general attribute information can be directly combined with the case items to obtain the user test information.
[0045] It should be noted that, since the number of general attribute information extracted from the database base table may include many pieces, each piece of general attribute information needs to be combined with a case item respectively, so as to obtain multiple pieces of user test information.
[0046] S105: Send the user testing information to the target testing platform, where the user testing information is used to instruct the target testing platform to test the target user.
[0047] In this embodiment, different test platforms may correspond to different test requirements. After the user test information is generated, the information may be sent to a target test platform determined according to the test instruction, and the target test platform performs the test uniformly.
[0048] In an embodiment of the present application, upon receiving a test instruction for a target user, by determining the target test platform corresponding to the test instruction, general attribute information can be extracted from a preset data base table, and case items matching the target user attribute information in the test instruction can be extracted from a preset case table, and then the above-mentioned general attribute information and case items are used to generate user test information for the target user. After the user test information is sent to the target test platform, the target test platform can uniformly test the target user. This embodiment configures a data base table and a case table, and after receiving a test instruction, by determining the target test platform to be tested in the test instruction, and then extracting data from the above two data tables to generate user test information for the target test platform, there is no need to configure a data base table and a case table for each test platform, and the uniformly configured data base table and case table can be used by multiple test platforms, which reduces the configuration difficulty of the data base table and the case table, expands the scope of use of the data base table and the case table, and improves the test efficiency.
[0049] Reference Figure 2 , shows a schematic flow chart of steps for generating a data base table according to an embodiment of the present application, which may specifically include the following steps:
[0050] S201, setting a plurality of data fields included in the general attribute information;
[0051] It should be noted that this embodiment can be applicable to a terminal device, that is, a data base table for subsequent testing can be generated through a data processing process on the terminal device.
[0052] In this embodiment, the data base table can be used to store user information with certain common attributes, such as the user's home address, gender, job title, position, work unit, etc. When subsequently generating user test information to be tested, the corresponding information can be directly extracted from the data base table.
[0053] It should be noted that the data fields stored in the data base table can be specifically set according to actual needs, and the amount of data can be tens of thousands. As shown in Table 1, it is an example of the data fields of a data base table in this embodiment.
[0054] Table 1:
[0055]
[0056] S202, collecting user attribute information matching the multiple data fields from multiple sample users respectively;
[0057] The data stored in the data base table can be obtained by collecting user attribute information of multiple sample users. The information of these sample users can not only be the user information of the current enterprise, but also the information of other users obtained from other channels.
[0058] It should be noted that the user implementation information of any sample user may include information corresponding to all data fields in the data base table, or may only include information corresponding to some data fields therein, which is not limited in this embodiment.
[0059] S203: Write the user attribute information into corresponding data fields respectively to generate a data base table.
[0060] After the user attribute information of all sample users is written into each data field of the data base table, a complete data base table can be obtained, and the data base table can be stored in the database.
[0061] Of course, data fields with special functions can also be marked separately in the data base table, such as gender, industry, etc.
[0062] In the embodiment of the present application, a corresponding data base table can be generated by collecting attribute information of multiple sample users. In subsequent tests, information can be directly extracted from the data base table to form user test information. This embodiment generates common attribute information that is adapted to multiple test platforms, and there is no need to configure a test data table for each test platform separately.
[0063] Reference Figure 3 , shows a schematic flow chart of steps for generating a case table according to an embodiment of the present application, which may specifically include the following steps:
[0064] S301, determining a plurality of test objects and identification items of each test object, wherein the plurality of test objects respectively have a plurality of test platforms, and the identification items include a plurality of identification sub-items;
[0065] It should be noted that this embodiment can be applicable to a terminal device, that is, through the data processing process on the terminal device, a case table for subsequent testing can be generated.
[0066] In this embodiment, the test object can be determined according to actual business needs. For example, taking the verification of the insured's qualifications as an example, the test object can be a new insurance that is planned to be launched online.
[0067] Therefore, the test platform of the test object can refer to the channel or platform for selling the insurance, such as website, telephone, application, bank agency sales, etc., and the identification item of the test object can be determined according to the evaluation criteria of the test object. For example, insurance sales usually use age as the standard for whether the insured is eligible to purchase and how much premium should be paid. Age can also be used as the identification item of the test object of insurance, and different ages constitute multiple identification sub-items of the identification item.
[0068] S302: for any test platform, respectively establish corresponding relationships between the test platform, the test object and each identification sub-item of the test object to obtain multiple case items;
[0069] In this embodiment, for different test platforms, the test objects and identification items corresponding to the platform can be determined respectively, and then various data with corresponding relationships can be connected through case_id. As shown in Table 2, some examples of case items in this embodiment.
[0070] Table 2:
[0071]
[0072]
[0073] It should be noted that the case items may be generated based on the test platform, that is, each identification item and the test object under the test platform are connected through case_id to obtain a large number of case items.
[0074] S303: Summarize multiple case items of multiple test platforms to generate a case table.
[0075] By summarizing the case items obtained from multiple test platforms, a unified case table can be formed for extracting case items in subsequent tests.
[0076] In the embodiment of the present application, by generating a corresponding case table according to the test standards of different test platforms, in subsequent testing, case items can be directly extracted from the case table to form user test information. This embodiment associates the test object, test platform and identification item through case_id to form case items suitable for different platforms, reducing the complexity of configuring case items.
[0077] Reference Figure 4 , shows a schematic flow chart of another testing method according to an embodiment of the present application, which may specifically include the following steps:
[0078] S401, when receiving a test instruction for a target user, determining a target test platform corresponding to the test instruction;
[0079] For ease of understanding, this embodiment takes the example of different sales platforms testing the insured's insurance eligibility during the insurance sales process to introduce this method in detail.
[0080] Usually, when an insurance company launches a new insurance product, it needs to conduct preliminary testing of the sales of the insurance on various platforms. One of the main tests is to verify whether certain users (policyholders) have the corresponding insurance qualifications and to test the stability of the sales platform.
[0081] In this embodiment, the target user may be a type of user with certain specific attributes, and the tester may trigger a test on whether this type of user is eligible for insurance by generating a test instruction carrying the attribute information of this type of user.
[0082] When receiving a test instruction, the terminal device may first determine the target test platform that needs to be tested.
[0083] S402, extracting common attribute information from a preset data base table, wherein the common attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0084] Before testing, a large amount of common attribute information can be extracted from the database base table. The common attribute information is user attribute information that can be adapted to multiple different test platforms.
[0085] Usually, when an insurance policyholder purchases an insurance policy, the personal information that needs to be submitted to the insurance seller for verification does not only include age and the specific type of insurance purchased, but also includes the policyholder's gender, residence, home address, contact information, work unit and position, etc. All this information can be extracted from the database base table.
[0086] The process of generating the data base table can refer to the introduction of steps S201 to S203 of the above embodiment, which will not be described in detail in this embodiment.
[0087] S403, identifying the target test object and the target identification sub-item in the target user attribute information;
[0088] In this embodiment, the test on the target user can be completed for different test platforms and different test objects.
[0089] In the above example of testing whether the user is eligible for insurance, the target test platform can refer to the platform that sells insurance, which is also the platform where the insured actually purchases insurance, such as a website, phone, application, bank agency sales platform, etc. The target test object is the insurance type that needs to be tested, such as life insurance 001, life insurance 002, critical illness insurance 001, etc.
[0090] When a test instruction is received, the target user attribute information in the test instruction may be first identified to confirm which platform and which test object currently need to be tested.
[0091] For example, when the target user attribute information is "Platform_Application, Business Object_Critical Illness Insurance 002, Age_21", it is testing whether a large number of users who are 21 years old and purchase Critical Illness Insurance 002 through the application are eligible for insurance, and testing the stability of the corresponding platform.
[0092] S404, searching the case table for a target case item including the target test platform, the target test object, and the target identification sub-item;
[0093] After the target user attribute information is identified, the corresponding case item can be directly found from the case table. For example, the case item corresponding to the target user attribute information can be the case item corresponding to case_id_00021.
[0094] S405, determining a target test item included in the user test information to be generated, wherein the target test item is one of the general attribute information;
[0095] In this embodiment, the target test item may refer to a test field that needs to be additionally added under the current test requirements.
[0096] For example, taking case_id_00800:34 / Bank Agency Sales / Life Insurance 002 as an example, if the target test item is the attribute item of gender, then for the gender attribute, it should be ensured that at least one user test information is generated for both the gender of male and the gender of female, such as case_id_0080001:34 / Bank Agency Sales / Life Insurance 002 / Male, and case_id_0080002:34 / Bank Agency Sales / Life Insurance 002 / Female.
[0097] In addition, during the insurance sales process, some types of insurance are more sensitive to the industry that the insured is engaged in. For example, some high-risk industries are usually restricted from purchasing accident insurance. Therefore, the target test item can also refer to the attribute item of the user's occupation during the test, which can be extracted from the data base table.
[0098] S406, combining the target case item with a plurality of general attribute information including the target test item to obtain a plurality of user test information;
[0099] It should be noted that for the target test item, when generating the complete personal information of the user to be tested, it should be ensured that the information stored in the field corresponding to the test item is extracted at least once for each case_id. For the information of other fields, it can be extracted randomly.
[0100] Therefore, the target case item can be combined with multiple common information including the above target test items to obtain multiple user test information. For example:
[0101] case_id_008000101: 34 / Bank agency sales / Life insurance 002 / Male / Office clerk;
[0102] case_id_008000102:34 / bank agency sales / life insurance 002 / male / sales;
[0103] case_id_008000103:34 / bank agency sales / life insurance 002 / male / policeman;
[0104] …
[0105] case_id_008000201: 34 / bank agency sales / life insurance 002 / female / office clerk;
[0106] …
[0107] case_id_008000207:34 / Bank agency sales / Life insurance 002 / Female / Doctor.
[0108] It should be noted that if a certain general attribute information extracted from the data base table conflicts with a certain user attribute information carried in the test instruction, the user attribute information in the test instruction shall be used as the basis for generating the final user test information.
[0109] S407: Send the user testing information to the target testing platform, where the user testing information is used to instruct the target testing platform to test the target user.
[0110] In this embodiment, the actual test can be performed by different test platforms. Therefore, after generating the user test information, the target data interface corresponding to the target test platform can be determined, and the target data interface can be used to establish a communication connection between the database storing the data base table and the case table and the target test platform, and then call the target data interface to send the generated user test information to the target test platform for testing.
[0111] Which interface should be called can be determined directly from the generated user test information. For example, for bank agency sales, the bank agency sales interface needs to be called and the user test will be transmitted to the bank agency sales platform for rule verification.
[0112] Generally speaking, there should be as many data interfaces connected to the database as there are sales platforms, and each interface should be connected to a test platform.
[0113] The test platform may exist in the form of a database. The test platform may be generated by writing various rules for the platform into the database.
[0114] When the testing platform receives user test information, it can verify each item listed in the test information one by one to confirm whether the information complies with the insurance rules of this platform.
[0115] For example, for case_id_008000103: 34 / bank agency sales / life insurance 002 / male / police, the test information can be transmitted to the platform used to verify the information of each user who is insured through bank agency sales through the bank agency sales interface. After receiving the test information, the platform can verify one by one whether the bank agency sales of life insurance 002 products are allowed to be sold to customers aged 34 according to the corresponding rules of this platform. If yes, continue to verify whether the product is allowed to be sold to male customers. If the product is a female-only product and is not allowed to be sold to male customers, this test information verification fails. If the above product is allowed to be sold to male customers, continue to verify whether it is allowed to be sold to police customers until all items are verified.
[0116] In an embodiment of the present application, by configuring a unified data base table and case table, after receiving a test instruction, the corresponding target test platform can be determined, and then data can be extracted from the above two data tables to generate user test information for different target users. There is no need to configure the data base table and case table for each test platform respectively. The uniformly configured data base table and case table can be used by multiple test platforms, which reduces the configuration difficulty of the data base table and case table, expands the scope of use of the data base table and case table, and improves the test efficiency.
[0117] It should be noted that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0118] Reference Figure 5 , shows a schematic diagram of a testing device according to an embodiment of the present application, which may specifically include the following modules:
[0119] The target test platform determination module 501 is used to determine the target test platform corresponding to the test instruction when receiving the test instruction for the target user;
[0120] The general attribute information extraction module 502 is used to extract general attribute information from a preset data base table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0121] A case item extraction module 503 is used to extract case items that match the target user attribute information of the target user from a preset case table;
[0122] A user test information generating module 504, configured to generate user test information for the target user using the general attribute information and the case items;
[0123] The user test information sending module 505 is used to send the user test information to the target test platform, where the user test information is used to instruct the target test platform to test the target user.
[0124] In the embodiment of the present application, the data base table can be generated by calling the following modules:
[0125] A data field setting module, used for setting a plurality of data fields included in the general attribute information;
[0126] A user attribute information collection module, used to collect user attribute information matching the multiple data fields from multiple sample users respectively;
[0127] The data base table generating module is used to write the user attribute information items into corresponding data fields respectively to generate a data base table.
[0128] In the embodiment of the present application, the case table can be generated by calling the following module:
[0129] An identification item determination module, used to determine a plurality of test objects and an identification item of each test object, wherein the plurality of test objects respectively have a plurality of test platforms, and the identification item includes a plurality of identification sub-items;
[0130] A case item generation module is used to establish, for any test platform, corresponding relationships between the test platform, the test object and each identification sub-item of the test object to obtain multiple case items;
[0131] The case table generation module is used to aggregate multiple case items of multiple test platforms and generate a case table.
[0132] In the embodiment of the present application, the case item extraction module 503 may specifically include the following submodules:
[0133] A user attribute information identification submodule, used to identify a target test object and a target identification sub-item in the target user attribute information;
[0134] The target case item search submodule is used to search for a target case item including the target test platform, the target test object and the target identification sub-item from the case table.
[0135] In the embodiment of the present application, the user test information generating module 504 may specifically include the following submodules:
[0136] A target test item determination submodule is used to determine the target test items included in the user test information to be generated;
[0137] The user test information generating submodule is used to respectively combine the target case item with a plurality of general attribute information including the target test item to obtain a plurality of user test information.
[0138] In the embodiment of the present application, the user test information sending module 505 may specifically include the following submodules:
[0139] A target data interface determination submodule, used to determine the target data interface corresponding to the target test platform;
[0140] The user test information sending submodule is used to call the target data interface to send the user test information to the target test platform.
[0141] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment part.
[0142] Reference Figure 6 , shows a schematic diagram of a terminal device according to an embodiment of the present application. Figure 6 As shown, the terminal device 600 of this embodiment includes: a processor 610, a memory 620, and a computer program 621 stored in the memory 620 and executable on the processor 610. When the processor 610 executes the computer program 621, the steps in each embodiment of the above-mentioned test method are implemented, for example Figure 1 Alternatively, when the processor 610 executes the computer program 621, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 5 Functions of modules 501 to 504 are shown.
[0143] Exemplarily, the computer program 621 may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 620 and executed by the processor 610 to complete the present application. The one or more modules / units may be a series of computer program instruction segments that can perform specific functions, and the instruction segments may be used to describe the execution process of the computer program 621 in the terminal device 600. For example, the computer program 621 may be divided into a target test platform determination module, a general attribute information extraction module, a case item extraction module, a user test information generation module, and a user test information sending module, and the specific functions of each module are as follows:
[0144] A target test platform determination module is used to determine the target test platform corresponding to the test instruction when receiving the test instruction for the target user;
[0145] A general attribute information extraction module is used to extract general attribute information from a preset data base table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms;
[0146] A case item extraction module, used to extract case items matching the target user attribute information of the target user from a preset case table;
[0147] A user test information generating module, configured to generate user test information for the target user by using the general attribute information and the case items;
[0148] The user test information sending module is used to send the user test information to the target test platform, and the user test information is used to instruct the target test platform to test the target user.
[0149] The terminal device 600 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device 600 may include, but is not limited to, a processor 610 and a memory 620. Those skilled in the art will appreciate that Figure 6 It is only an example of the terminal device 600 and does not constitute a limitation of the terminal device 600. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device 600 may also include input and output devices, network access devices, buses, etc.
[0150] The processor 610 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0151] The memory 620 may be an internal storage unit of the terminal device 600, such as a hard disk or memory of the terminal device 600. The memory 620 may also be an external storage device of the terminal device 600, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device 600. Further, the memory 620 may also include both an internal storage unit of the terminal device 600 and an external storage device. The memory 620 is used to store the computer program 621 and other programs and data required by the terminal device 600. The memory 620 may also be used to temporarily store data that has been output or is to be output.
[0152] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above-mentioned embodiments, a person skilled in the art should understand that the technical solutions described in the above-mentioned embodiments can still be modified, or some of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application.
Claims
1. A testing method, characterized in that: include: When receiving a test instruction for a target user, determining a target test platform corresponding to the test instruction; The test instruction carries target user attribute information of the target user; Extracting general attribute information from a preset data base table, and extracting case items matching the target user attribute information of the target user from a preset case table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms; The general attribute information and the case items are used to generate user test information for the target user, including: determining a target test item included in the user test information to be generated, wherein the target test item is one of the general attribute information; combining the target case item with a plurality of general attribute information including the target test item to obtain a plurality of user test information; the target test item is a test field that needs to be additionally added under the current test requirements; Sending the user test information to the target test platform, wherein the user test information is used to instruct the target test platform to test the target user; The data base table is generated by the following steps: Setting a plurality of data fields included in the general attribute information; Collecting user attribute information matching the multiple data fields from multiple sample users respectively; Writing the user attribute information into corresponding data fields respectively to generate a data base table; The case table is generated by the following steps: Determine a plurality of test objects and identification items of each test object, wherein the plurality of test objects respectively have a plurality of test platforms, and the identification items include a plurality of identification sub-items; For any test platform, respectively establish corresponding relationships between the test platform, the test object and each identification sub-item of the test object to obtain multiple case items; Aggregate multiple case items of multiple test platforms to generate a case table; The extracting, from the preset case table, case items that match the target user attribute information of the target user includes: Identify the target test object and the target identification sub-item in the target user attribute information; A target case item including the target test platform, the target test object and the target identification sub-item is found from the case table.
2. The method according to claim 1, characterized in that: The sending the user test information to the target test platform includes: Determine the target data interface corresponding to the target test platform; The target data interface is called to send the user test information to the target test platform.
3. A testing device, characterized in that: include: A target test platform determination module is used to determine the target test platform corresponding to the test instruction when receiving the test instruction for the target user; The test instruction carries target user attribute information of the target user; A general attribute information extraction module is used to extract general attribute information from a preset data base table, wherein the general attribute information is user attribute information that is simultaneously adapted to multiple test platforms; A case item extraction module, used to extract case items matching the target user attribute information of the target user from a preset case table; A user test information generating module, configured to generate user test information for the target user by using the general attribute information and the case items; The user test information generation module includes the following submodules: a target test item determination submodule, used to determine the target test items included in the user test information to be generated; a user test information generation submodule, used to respectively combine the target case items with a plurality of general attribute information including the target test items to obtain a plurality of user test information; The target test item is a test field that needs to be added additionally under the current test requirements; A user test information sending module, used to send the user test information to the target test platform, wherein the user test information is used to instruct the target test platform to test the target user; A data field setting module, used for setting a plurality of data fields included in the general attribute information; A user attribute information collection module, used to collect user attribute information matching the multiple data fields from multiple sample users respectively; A data base table generation module, used for writing the user attribute information into corresponding data fields respectively to generate a data base table; An identification item determination module, used to determine a plurality of test objects and an identification item of each test object, wherein the plurality of test objects respectively have a plurality of test platforms, and the identification item includes a plurality of identification sub-items; A case item generation module is used to establish, for any test platform, corresponding relationships between the test platform, the test object and each identification sub-item of the test object to obtain multiple case items; A case table generation module is used to aggregate multiple case items of multiple test platforms and generate a case table; The case item extraction module includes: A user attribute information identification submodule, used to identify a target test object and a target identification sub-item in the target user attribute information; The target case item search submodule is used to search for a target case item including the target test platform, the target test object and the target identification sub-item from the case table.
4. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the testing method according to claim 1 or 2 are implemented.
5. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the testing method according to claim 1 or 2 are implemented.
Citation Information
Patent Citations
Network server automated testing method and device
CN103902446A
Method, device and system for testing application
CN104699616A
Single-station verification service testing method and device
CN104735687A
Multi-source data-based test platform for integrating WAMS application system data
CN105868441A
Test case generation method and apparatus
CN106528395A