CN109446065A - User tag test method, device, computer equipment and storage medium - Google Patents

User tag test method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109446065A
CN109446065A CN201811087759.2A CN201811087759A CN109446065A CN 109446065 A CN109446065 A CN 109446065A CN 201811087759 A CN201811087759 A CN 201811087759A CN 109446065 A CN109446065 A CN 109446065A
Authority
CN
China
Prior art keywords
test
label
data
user tag
collage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811087759.2A
Other languages
Chinese (zh)
Inventor
王丽杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201811087759.2A priority Critical patent/CN109446065A/en
Publication of CN109446065A publication Critical patent/CN109446065A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

This application involves big data processing field, in particular to a kind of user tag test method, device, computer equipment and storage medium.The described method includes: obtaining test file;The first identity data and expectation user tag corresponding with the first identity data are read from test file;First identity data is sent to digital simulation interface;Receive the first collage-credit data corresponding with the first identity data that digital simulation interface returns;Test user tag is calculated according to the first collage-credit data;It is compared test user tag to obtain label test result with desired user tag.User tag test coverage can be improved using this method.

Description

User tag test method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, set more particularly to a kind of user tag test method, device, computer Standby and storage medium.
Background technique
When buying financial product, financing corporation usually requires to calculate user's according to individual subscriber integrated information user User tag carries out user's portrait analysis to user according to user tag.
When the calculating process to user tag is tested, due to the huge number of user tag, and every kind of label is needed Different user data is used, and collected user data can not cover the test case of all user tags, usually need Processing manually is combined to meet different testing requirements to user data.Therefore, the test job of user tag is time-consuming Arduously, the coverage rate tested is low.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of use that can be improved user tag test coverage Family label test method, device, computer equipment and storage medium.
A kind of user tag test method, which comprises
Obtain test file;
The first identity data and expectation user corresponding with first identity data mark are read from the test file Label;
First identity data is sent to digital simulation interface;
Receive the first collage-credit data corresponding with first identity data that the digital simulation interface returns;
Test user tag is calculated according to first collage-credit data;
The test user tag is compared to obtain label test result with the expectation user tag.
Method in one of the embodiments, further include:
Receive newly-increased test request;
The second identity data and newly-increased sign corresponding with second identity data are read from the newly-increased test request Believe field name;
Collage-credit data configuration-direct is generated according to second identity data and the corresponding newly-increased reference field name;
The collage-credit data configuration-direct is sent to the digital simulation interface, the collage-credit data configuration-direct is used for Indicate the digital simulation interface according to the newly-increased reference field name to the corresponding user's reference number of second identity data According to being configured.
Test user tag is calculated according to user's collage-credit data in one of the embodiments, comprising:
Label measuring and calculating instruction is generated according to first identity data and first collage-credit data;
The label is calculated into instruction and sends label generation interface, it is raw that the label measuring and calculating instruction is used to indicate the label First identity data and first collage-credit data are inputted in default test case at interface and obtain test user tag;
It receives the label and generates the test user tag corresponding with label measuring and calculating instruction that interface returns.
In one of the embodiments, the method also includes:
Difference user tag is obtained from the label test result;
Test case inspection instruction is generated according to the difference user tag, test case inspection instruction is sent to The label generates interface, and the test case inspection instruction is used to indicate the label and generates interface according to the difference user Label checks the default test case.
In one of the embodiments, the method also includes:
Receive the newly-increased request of user tag;
Add User label and newly-increased label measuring and calculating logic are obtained from the newly-increased request of the user tag;
Label is read from the newly-increased label measuring and calculating logic to enter to join field;
It searches reference field and the label from the test file to enter to join the test data of fields match, and from described Digital simulation interface obtains the second collage-credit data corresponding with the test data;
When second collage-credit data meets the newly-increased label measuring and calculating logic, the label that Adds User is added to The expectation user tag of the test data.
In one of the embodiments, the method also includes:
According to Add User label and the newly-increased label measuring and calculating logic generation test case update request;
The test case is updated into request and is sent to label generation interface, the use-case update request is used to indicate described Label generates interface for the label and newly-increased label test logic is corresponding is added to the default test use of Adding User In example.
A kind of user tag test device, described device include:
File acquisition module, for obtaining test file;
First data read module, for read from the test file the first identity data and with first identity The corresponding expectation user tag of data;
Data transmission blocks, for first identity data to be sent to digital simulation interface;
Collage-credit data receiving module, for receiving the corresponding with first identity data of the digital simulation interface return The first collage-credit data;
Label computing module, for test user tag to be calculated according to first collage-credit data;
As a result module is obtained, for the test user tag to be compared to obtain label with the expectation user tag Test result.
Described device in one of the embodiments, further include:
Request receiving module, for receiving newly-increased test request;
Second data read module, for reading the second identity data from the newly-increased test request and with described second The corresponding newly-increased reference field name of identity data;
Configuration-direct generation module, for raw according to second identity data and the corresponding newly-increased reference field name At collage-credit data configuration-direct;
Configuration-direct sending module, for the collage-credit data configuration-direct to be sent to the digital simulation interface, institute It states collage-credit data configuration-direct and is used to indicate the digital simulation interface according to the newly-increased reference field name to second body The corresponding user's collage-credit data of part data configures.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing The step of device realizes the above method when executing the computer program.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of above method is realized when row.
Above-mentioned user tag test method, device, computer equipment and storage medium include identity data in test file Expectation user tag corresponding with identity data, after identity data is sent to digital simulation interface, digital simulation interface falls body The corresponding collage-credit data simulation of part data, and the collage-credit data of simulation is returned, label survey is carried out according to the collage-credit data of return It calculates, then the test user tag calculated is compared to obtain label test result with desired user tag.Pass through number Carrying out automation according to test data of the analog interface to the user tag of various tests, to make digital-to-analogue quasi-, can be improved the covering of test Rate, and improve testing efficiency.
Detailed description of the invention
Fig. 1 is the application scenario diagram of user tag test method in one embodiment;
Fig. 2 is the flow diagram of user tag test method in one embodiment;
Fig. 3 is the flow diagram of user tag test method in another embodiment;
Fig. 4 is the structural block diagram of user tag test device in one embodiment;
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to paraphrase the application, not For limiting the application.
User tag test method provided by the present application, can be applied in application environment as shown in Figure 1.Wherein, eventually End 102 is communicated by network with digital simulation server 104.Terminal 102 obtains test file, reads from test file First identity data is sent to digital simulation clothes by the first identity data and expectation user tag corresponding with the first identity data Business device 104 receives the first collage-credit data corresponding with the first identity data that digital simulation server 104 returns, according to first Test user tag is calculated in collage-credit data, and test user tag is compared to obtain label test with desired user tag As a result.Wherein, terminal 102 can be, but not limited to be the equipment such as various personal computers, laptop, digital simulation server 104 can be realized with the server cluster of the either multiple server compositions of independent server.
In one embodiment, as shown in Fig. 2, providing a kind of user tag test method, it is applied to Fig. 1 in this way In terminal 102 for be illustrated, comprising the following steps:
Step 210, test file is obtained.
The test data for carrying out user tag test is stored in test file.Test file includes multiple test numbers According to including at least three groups of data in each test data, respectively as the identity data for testing input data, as in test Between data collage-credit data, and as test oracle output result expectation user tag.Terminal acquisition test file, and from Read test data one by one in test file.
In the present embodiment, test file can be write using excel file or csv file, be convenient for counting According to read-write and maintenance.In other embodiments, test file can also be write using the file of extended formatting.
Step 220, the first identity data and expectation user corresponding with the first identity data mark are read from test file Label.
Server is from reading the corresponding phase in the first identity data and the test data in each test data of test file Hope user tag.
First identity data is the data for being used to indicate user identity in test sample, and such as the first identity data can be use Passport NO., the cell-phone number at family etc., it is expected that collage-credit data according to user tag in the test data is it can be anticipated that obtain User tag.
Different classes of user tag can be set according to the different aspect of user's collage-credit data, user tag may include The label of the classifications such as financial class, assets class, a mankind, life kind.As assets class label may include that income is stable, insure often Visitor, investment experiences are abundant etc.;Assets class label may include Fu Erdai, superstock owner etc.;Life kind label may include moonlight race, chop Hand race etc.;Personal class label may include well educated, unmarried etc..Therefore, the number of the expectation user tag in same test data Amount can be one or more.
Step 230, the first identity data is sent to digital simulation interface.
The corresponding digital simulation platform of digital simulation interface is used to carry out the simulation of user's collage-credit data, digital simulation platform On store all collage-credit datas for being tested, and collage-credit data and the user ID data of test one-to-one correspondence are deposited Storage.First identity data is sent to digital simulation interface by terminal, to transfer the reference number for test from digital simulation interface According to.To which terminal calls digital simulation interface to may be implemented to call personal reference platform interface to obtain in simulation actual production environment Take the process of family collage-credit data.
Step 240, the first collage-credit data corresponding with the first identity data that digital simulation interface returns is received.
After digital simulation platform passes through digital simulation interface to the first identity data, search and the first identity data pair The first collage-credit data answered, and the first collage-credit data found is returned into terminal by digital simulation interface.Server connects Receive the first collage-credit data that digital simulation interface returns.
First collage-credit data may include multiple reference fields, and reference field may include that user name gets off and produces quantity, name Lower house property quantity, loan application number etc., the first reference since the reference situation of different user is different, in different test datas The corresponding reference field of data may also be different.
In one embodiment, when digital simulation interface returns to the first collage-credit data to terminal, digital simulation interface can To return to the first collage-credit data with the data mode of JSON character string, the corresponding digital simulation platform of digital simulation interface can be with The data format of JSON character string is previously set, such as putting in order for reference field each in JSON character string is set, it is right The field name of each reference field carries out title unification etc..
Step 250, test user tag is calculated according to the first collage-credit data.
Terminal will carry out operation in received first collage-credit data input label test case, calculate and the first collage-credit data Matched test user tag.
Test case is to calculate logic according to the label of multiple user tags with testing requirement to be write and generated , then user tag output is used for test when the label that the collage-credit data of input meets some user tag calculates logic Family label, when the label that the collage-credit data of input meets multiple user tags calculates logic, then the test user tag that exports Quantity be it is multiple.
Step 260, it is compared test user tag to obtain label test result with desired user tag.
The test user tag of output is compared by terminal with the expectation user tag in test file, judges that test is used Whether family label is consistent with desired user tag, generates label test result according to comparison result.
For example, when test user tag it is consistent with desired user tag when, then corresponding test sample number in test file According to label test result be successfully tested.When testing user tag and desired user tag is inconsistent, then obtains test and use Inconsistent user tag in family label and desired user tag, the label of test crash is generated according to inconsistent user tag Test result.
Further, after the completion of test datas all in test file test, terminal can be by the label of test crash Test result carries out integrating generation label test statistics as a result, label test statistics result to be sent to the terminal of tester, Structural analysis test crash reason is tested according to label by tester, determination is the expectation user tag being arranged in test file Label in mistake or test case calculates logic error.
It include identity data and the corresponding expectation user of identity data in test file in above-mentioned user tag test method Label, after identity data is sent to digital simulation interface by terminal, digital simulation interface falls the corresponding collage-credit data of identity data Simulation, and the collage-credit data of simulation is returned, label measuring and calculating is carried out according to the collage-credit data of return, then the test calculated is used Family label is compared to obtain label test result with desired user tag.By digital simulation interface to various tests The test data of user tag carries out automation, and to make digital-to-analogue quasi-, can be improved the coverage rate of test, and improve testing efficiency.
In one embodiment, as shown in figure 3, user tag test method can also include:
Step 202, newly-increased test request is received.
Terminal receives the newly-increased test request that party in request sends, and increases newly in test request comprising newly-increased test to be tested Data also include at least identity data, collage-credit data and expectation user tag in newly-increased each test data.Terminal will be newly-increased Test data is added in test file.
Step 204, the second identity data and newly-increased sign corresponding with the second identity data are read from newly-increased test request Believe field name.
Terminal reads newly-increased in the second identity data and its corresponding newly-increased collage-credit data in newly-increased test data Reference field name.
Step 206, collage-credit data configuration-direct is generated according to the second identity data and corresponding newly-increased reference field name.
Second identity data of reading and corresponding newly-increased reference field name are associated by terminal, and according to associated Two identity datas and newly-increased reference field generate collage-credit data configuration-direct.
Step 208, collage-credit data configuration-direct is sent to digital simulation interface, collage-credit data configuration-direct is used to indicate Digital simulation interface configures the corresponding user's collage-credit data of the second identity data according to newly-increased reference field name.
Collage-credit data configuration-direct is used to indicate digital simulation interface according to the newly-increased reference field name in instruction to second The collage-credit data of the corresponding user of identity data configures.The collage-credit data configuration-direct of generation is sent to data mould by terminal Quasi- interface, digital simulation platform pass through digital simulation interface collage-credit data configuration-direct.Digital simulation platform is from reference number According to reading the second identity data and newly-increased reference field in configuration-direct, and looked into from the collage-credit data for each user being locally stored Reference field value corresponding with newly-increased reference field name is looked for, newly-increased reference is generated according to newly-increased reference field name and reference field value Field, and the second identity data and newly-increased reference field are associated storage, complete user's reference to newly-increased test data The configuration of data.
In the present embodiment, when there is newly-increased test request, terminal can add the test data in newly-increased test request It adds to and carries out data maintenance in test file, and the collage-credit data of test user to be tested can will be needed to be sent to data in advance Analog interface carries out data configuration.
In one embodiment, test user tag is calculated according to user's collage-credit data may include: according to first Identity data and the first collage-credit data generate label measuring and calculating instruction;Label is calculated into instruction and sends label generation interface, label is surveyed It calculates instruction and is used to indicate label and generates interface and input the first identity data and the first collage-credit data in default test case and obtain Test user tag;It receives label and generates the test user tag corresponding with label measuring and calculating instruction that interface returns.
In the present embodiment, terminal generates label measuring and calculating according to the first identity data of reading and the first collage-credit data and refers to It enables, label measuring and calculating instruction is used to indicate the first collage-credit data corresponding to the first identity data and carries out label measuring and calculating.
The label measuring and calculating instruction of generation is sent to label and generates interface by terminal, and label is calculated platform and connect by label generation Mouth receives label and calculates to instruction.Label calculates platform and reads the first identity data and the first reference number from label measuring and calculating instruction According to.Default test case is stored on label measuring and calculating platform, default test case is according to multiple users with testing requirement The label measuring and calculating logic of label is write and is generated, when the collage-credit data of input meets the label measuring and calculating of some user tag Then the user tag is exported as test user tag when logic.Label calculates platform for the first identity data and the first reference number According to default test case is input to, the multiple label arithmetic logics for including in default test case transport the first collage-credit data Point counting analysis, the test user tag for obtaining the test user tag to match with the first collage-credit data, and measuring and calculating being obtained and the One identity data is associated.Test user tag after identity data is associated with by label measuring and calculating platform is returned by label generation interface Back to terminal.
After terminal receives the test user tag that label generates interface return, the test associated identity of user tag is obtained Data, and the test data for the identification data matches searched and obtained from test file, read matched test data terminal It is expected that user tag, is compared the test user tag received to obtain label test result with desired user tag.
In the present embodiment, the operation of label generates the corresponding label measuring and calculating platform of interface by label and carries out, terminal The maintenance of test data and the inspection work of final test label are only carried out, it is practical so as to calculate platform simulation by label User's portrait platform of user's portrait is obtained by calculating user tag in production environment, to optimize the test of user tag Process.
In one embodiment, user tag test can also include: that difference user mark is obtained from label test result Label;Test case inspection instruction is generated according to difference user tag, test case inspection instruction is sent to label and generates interface, Test case inspection instruction is used to indicate label generation interface and is checked according to difference user tag default test case.
Difference user tag is to test user tag inconsistent in user tag and desired user tag, and terminal can be From the comparison result for showing difference user tag in test user tag and desired user tag in label test result.Terminal from The user tag that test user tag increases or lacks relative to desired user tag is obtained in difference user tag, and according to survey The user tag that examination user tag increases or lacks relative to desired user tag generates test case inspection instruction, test case It checks that instruction is used to indicate calculate to label corresponding in default test case measuring and calculating logic according to difference user tag to patrol It collects and checks.
Test case inspection instruction is sent to label and generates interface by terminal, and label calculates platform and generates interface by label Test case inspection instruction is received, difference user tag is read from test case inspection instruction, is looked into from default test case Label measuring and calculating logic corresponding with difference user tag is looked for, the label found measuring and calculating extracted is come out.
In one embodiment, label calculates the available label testing requirement document of platform, from label testing requirement text Label testing requirement data corresponding with difference user tag are searched in shelves, and logic is calculated according to label and corresponding label is tested Demand data generates label checking data and is shown, consequently facilitating staff is poor according to the inspection of label testing requirement data Whether the corresponding label measuring and calculating logic of different user tag is correct.It, can be to default test case when label calculates logic error In label measuring and calculating logic be modified.
In the present embodiment, when having differences user tag in label results of measuring, terminal can be according to difference user Label automatically generates test case inspection and instructs and be sent to label generation interface, carries out label measuring and calculating to default test case and patrols Collect detection.
In one embodiment, user tag test method can also include: to receive the newly-increased request of user tag;From user Add User label and newly-increased label measuring and calculating logic are obtained in the newly-increased request of label;Label is read from newly-increased label measuring and calculating logic Enter to join field;Reference field is searched from test file and label enters to join the test data of fields match, and is connect from digital simulation Mouth obtains the second collage-credit data corresponding with test data;It, will be new when the second collage-credit data meets newly-increased label measuring and calculating logic Increase the expectation user tag that user tag is added to test data.
When party in request creates new user tag, need to define the bookmark name of new user tag, label classification and Label calculates logic.Meanwhile party in request can be asked with synchronized update user tag testing requirement to terminal transmission user tag is newly-increased It asks, Add User label and corresponding newly-increased label measuring and calculating logic is carried in the newly-increased request of user tag.Terminal is from user tag Add User label and newly-increased label measuring and calculating logic are obtained in newly-increased request.
Define that the label that needs are used when user tag is calculated enters to join field and label enters in label measuring and calculating logic The arithmetic logic that the field value of ginseng field needs to meet.For example, user tag is " Fu Erdai ", the label of user tag enters to join word Section includes " nearest 3 months loan applications " and " name get off productions ", and it is " nearest 3 that label, which enters to join the arithmetic logic that field needs meet, A month loan application quantity is greater than 2, and name gets off and produces quantity greater than 2 ", when label, which enters to join field, meets the arithmetic logic, then Export " Fu Erdai " user tag.
Terminal reads label from newly-increased label test logic and enters to join field, and label is entered to join field name and the survey of field The reference field name of collage-credit data in examination file in each test data is matched, when the reference field name in collage-credit data is complete Then successful match, terminal find out reference field from test file and enter with label when entering to join the field name of field comprising label entirely The test data for joining fields match, obtains the identity data in matched test data, is generated and is levied according to the identity data of acquisition Letter data acquisition request is simultaneously sent to digital simulation interface, and the corresponding digital simulation platform of digital simulation interface receives reference number After acquisition request, the second collage-credit data corresponding with the identity data in request is searched, and the transmission of the second collage-credit data is returned Back to terminal.
After terminal gets the second collage-credit data, is read from the second collage-credit data and enter to join the corresponding reference of field with label The field value of field, and the field value of reading is substituted into newly-increased label measuring and calculating logic and carries out logical operation, and judges the second reference Whether data meet newly-increased label measuring and calculating logic.When the second collage-credit data meets newly-increased label measuring and calculating logic, then by newly-increased use Family label is added in the expectation user tag of matched test data.
In one embodiment, it is searched from test file when terminal less than the test number for entering to join fields match with label According to, or when corresponding second collage-credit data of test data that finds is unsatisfactory for newly-increased label measuring and calculating logic, terminal can root According to label and the newly-increased instruction of newly-increased label measuring and calculating logic generation test data of Adding User, and increase test data newly instruction transmission To tester's terminal, the label pair that adds and Add User in test file is instructed according to test data is newly-increased by tester The test data answered.
In one embodiment, user tag test method can also include: according to Add User label and newly-increased label Calculate logic and generates test case update request;Test case is updated into request and is sent to label generation interface, use-case update is asked Ask be used to indicate label generate interface will Add User label and newly-increased label test logic correspondence be added to default test case In.
Terminal according to Add User label and newly-increased label measuring and calculating logic generate test case update request Concurrency send to mark Label generate interface, and label calculates platform and generates the update request of interface test case by label, asks from test case update It asks middle and obtains Add User label and newly-increased label measuring and calculating logic, newly-increased label measuring and calculating logic is added to default test case In, and the label that will Add User increases label measuring and calculating logic corresponding use-case output result newly as with this.
In the above-described embodiments, it when terminal, which receives user tag, increases request newly, can be asked according to user tag is newly-increased It asks and the test data in test file is automatically updated, and newly-increased label can be calculated to logic and be added to default test use Data maintenance is carried out in example.
It should be understood that although each step in the flow chart of Fig. 2-3 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 2-3 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 4, providing a kind of user tag test device, comprising: file acquisition module 410, the first data read module 420, data transmission blocks 430, collage-credit data receiving module 440,450 and of label computing module As a result module 460 is obtained, in which:
File acquisition module 410, for obtaining test file.
First data read module 420, for read from test file the first identity data and with the first identity data Corresponding expectation user tag.
Data transmission blocks 430, for the first identity data to be sent to digital simulation interface.
Collage-credit data receiving module 440, for receiving data analog interface return corresponding with the first identity data the One collage-credit data.
Label computing module 450, for test user tag to be calculated according to the first collage-credit data.
As a result module 460 is obtained, is compared to obtain label test with desired user tag for user tag will to be tested As a result.
In one embodiment, device can also include:
Request receiving module, for receiving newly-increased test request.
Second data read module, for read from newly-increased test request the second identity data and with the second identity data Corresponding newly-increased reference field name.
Configuration-direct generation module, for generating reference number according to the second identity data and corresponding newly-increased reference field name According to configuration-direct.
Configuration-direct sending module, for collage-credit data configuration-direct to be sent to digital simulation interface, collage-credit data is matched It sets instruction and is used to indicate digital simulation interface according to newly-increased reference field name to the corresponding user's collage-credit data of the second identity data It is configured.
In one embodiment, label computing module 450 may include:
Directive generation module is calculated, for generating label measuring and calculating instruction according to the first identity data and the first collage-credit data.
Calculate instruction sending module, generates interface for label to be calculated instruction transmission label, label measuring and calculating instruction is used for Indicating label, which generates interface, to obtain test user's mark in the first identity data and the default test case of the first collage-credit data input Label.
Calculate label receiving module, generates the test use corresponding with label measuring and calculating instruction that interface returns for receiving label Family label.
In one embodiment, device can also include:
Difference label acquisition module, for obtaining difference user tag from label test result.
Use-case checks directive generation module, for generating test case inspection instruction according to difference user tag, will test Use-case inspection instruction is sent to label and generates interface, and test case inspection instruction is used to indicate label generation interface and is used according to difference Family label checks default test case.
In one embodiment, device can also include:
Newly-increased request receiving module, for receiving the newly-increased request of user tag.
Newly-increased data acquisition module, for obtaining Add User label and the survey of newly-increased label from the newly-increased request of user tag Calculate logic.
Enter to join field read module, enters to join field for reading label from newly-increased label measuring and calculating logic.
Fields match module enters to join the test number of fields match for searching reference field and label from test file According to, and the second collage-credit data corresponding with test data is obtained from digital simulation interface.
Label adding module is used for when the second collage-credit data meets newly-increased label measuring and calculating logic, by the label that Adds User It is added to the expectation user tag of test data.
In one embodiment, device can also include:
Use-case, which updates, requests generation module, for according to label and the newly-increased label measuring and calculating logic generation test use of Adding User Example updates request.
Use-case updates request sending module, is sent to label generation interface for test case to be updated request, use-case is more New request is used to indicate label and generates that interface will Add User label and newly-increased label test logic correspondence is added to default test In use-case.
Specific about user tag test device limits the limit that may refer to above for user tag test method Fixed, details are not described herein.Modules in above-mentioned user tag test device can fully or partially through software, hardware and its Combination is to realize.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with It is stored in the memory in computer equipment in a software form, in order to which processor calls the above modules of execution corresponding Operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 5.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of user tag test method.The display screen of the computer equipment can be liquid crystal display or electric ink is shown Screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible on computer equipment shell Key, trace ball or the Trackpad of setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, which is stored with Computer program, the processor perform the steps of acquisition test file when executing computer program;It is read from test file First identity data and expectation user tag corresponding with the first identity data;First identity data is sent to digital simulation to connect Mouthful;Receive the first collage-credit data corresponding with the first identity data that digital simulation interface returns;According to the first collage-credit data meter Calculation obtains test user tag;It is compared test user tag to obtain label test result with desired user tag.
In one embodiment, reception newly-increased test request is also performed the steps of when processor executes computer program; The second identity data and newly-increased reference field name corresponding with the second identity data are read from newly-increased test request;According to second Identity data and corresponding newly-increased reference field name generate collage-credit data configuration-direct;Collage-credit data configuration-direct is sent to number According to analog interface, collage-credit data configuration-direct is used to indicate digital simulation interface according to newly-increased reference field name to the second identity number It is configured according to corresponding user's collage-credit data.
In one embodiment, processor executes computer program realization and survey is calculated according to user's collage-credit data It tries to be also used to when the step of user tag: label measuring and calculating instruction is generated according to the first identity data and the first collage-credit data;It will mark Label measuring and calculating instruction sends label and generates interface, and label measuring and calculating instruction is used to indicate label and generates interface for the first identity data and the One collage-credit data, which inputs in default test case, obtains test user tag;It receives label and generates calculating with label for interface return Instruct corresponding test user tag.
In one embodiment, it is also performed the steps of from label test result when processor executes computer program Obtain difference user tag;Test case inspection instruction is generated according to difference user tag, test case inspection is instructed and is sent Interface is generated to label, test case inspection instruction is used to indicate label and generates interface according to difference user tag to default test Use-case is checked.
In one embodiment, it is newly-increased that reception user tag is also performed the steps of when processor executes computer program Request;Add User label and newly-increased label measuring and calculating logic are obtained from the newly-increased request of user tag;It is patrolled from the measuring and calculating of newly-increased label Label is read in volume to enter to join field;Reference field is searched from test file and label enters to join the test data of fields match, and The second collage-credit data corresponding with test data is obtained from digital simulation interface;When the second collage-credit data meets newly-increased label measuring and calculating When logic, the label that Adds User is added to the expectation user tag of test data.
In one embodiment, it is also performed the steps of when processor executes computer program according to the label that Adds User Test case, which is generated, with newly-increased label measuring and calculating logic updates request;Test case is updated into request and is sent to label generation interface, Use-case update request be used to indicate label generate interface will Add User label and newly-increased label test logic it is corresponding be added to it is pre- If in test case.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of acquisition test file when being executed by processor;Read from test file the first identity data and Expectation user tag corresponding with the first identity data;First identity data is sent to digital simulation interface;Receive data mould The first collage-credit data corresponding with the first identity data that quasi- interface returns;Test user is calculated according to the first collage-credit data Label;It is compared test user tag to obtain label test result with desired user tag.
In one embodiment, reception newly-increased test is also performed the steps of when computer program is executed by processor to ask It asks;The second identity data and newly-increased reference field name corresponding with the second identity data are read from newly-increased test request;According to Second identity data and corresponding newly-increased reference field name generate collage-credit data configuration-direct;Collage-credit data configuration-direct is sent To digital simulation interface, collage-credit data configuration-direct is used to indicate digital simulation interface according to newly-increased reference field name to the second body The corresponding user's collage-credit data of part data configures.
In one embodiment, computer program is executed by processor realization and is calculated according to user's collage-credit data It is also used to when testing the step of user tag: label measuring and calculating instruction is generated according to the first identity data and the first collage-credit data;It will Label measuring and calculating instruction sends label and generates interface, label measuring and calculating instruction be used to indicate label generate interface by the first identity data and First collage-credit data, which inputs in default test case, obtains test user tag;It receives label and generates surveying with label for interface return It calculates and instructs corresponding test user tag.
In one embodiment, it is also performed the steps of when computer program is executed by processor from label test result Middle acquisition difference user tag;Test case inspection instruction is generated according to difference user tag, test case inspection is instructed and is sent out It send to label and generates interface, test case inspection instruction is used to indicate label and generates interface according to difference user tag to default survey Example on probation is checked.
In one embodiment, it is new that reception user tag is also performed the steps of when computer program is executed by processor Increase request;Add User label and newly-increased label measuring and calculating logic are obtained from the newly-increased request of user tag;Calculate from newly-increased label Label is read in logic to enter to join field;Reference field is searched from test file and label enters to join the test data of fields match, And the second collage-credit data corresponding with test data is obtained from digital simulation interface;It is surveyed when the second collage-credit data meets newly-increased label When calculating logic, the label that Adds User is added to the expectation user tag of test data.
In one embodiment, it is also performed the steps of when computer program is executed by processor according to the mark that Adds User Label and newly-increased label measuring and calculating logic generate test case and update request;Test case update request is sent to label generation to connect Mouthful, use-case update request be used to indicate label generate interface will Add User label and newly-increased label test logic correspondence be added to In default test case.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of user tag test method, which comprises
Obtain test file;
The first identity data and expectation user tag corresponding with first identity data are read from the test file;
First identity data is sent to digital simulation interface;
Receive the first collage-credit data corresponding with first identity data that the digital simulation interface returns;
Test user tag is calculated according to first collage-credit data;
The test user tag is compared to obtain label test result with the expectation user tag.
2. the method according to claim 1, wherein the method also includes:
Receive newly-increased test request;
The second identity data and newly-increased reference word corresponding with second identity data are read from the newly-increased test request Section name;
Collage-credit data configuration-direct is generated according to second identity data and the corresponding newly-increased reference field name;
The collage-credit data configuration-direct is sent to the digital simulation interface, the collage-credit data configuration-direct is used to indicate The digital simulation interface according to the newly-increased reference field name to the corresponding user's collage-credit data of second identity data into Row configuration.
3. the method according to claim 1, wherein described be calculated test according to user's collage-credit data User tag, comprising:
Label measuring and calculating instruction is generated according to first identity data and first collage-credit data;
The label is calculated into instruction and sends label generation interface, the label measuring and calculating instruction is used to indicate the label generation and connects Mouthful first identity data and first collage-credit data are inputted in default test case and to obtain test user tag;
It receives the label and generates the test user tag corresponding with label measuring and calculating instruction that interface returns.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
Difference user tag is obtained from the label test result;
Test case inspection instruction is generated according to the difference user tag, test case inspection instruction is sent to described Label generates interface, and the test case inspection instruction is used to indicate the label and generates interface according to the difference user tag The default test case is checked.
5. the method according to claim 1, wherein the method also includes:
Receive the newly-increased request of user tag;
Add User label and newly-increased label measuring and calculating logic are obtained from the newly-increased request of the user tag;
Label is read from the newly-increased label measuring and calculating logic to enter to join field;
It searches reference field and the label from the test file to enter to join the test data of fields match, and from the data Analog interface obtains the second collage-credit data corresponding with the test data;
When second collage-credit data meets the newly-increased label measuring and calculating logic, the label that Adds User is added to described The expectation user tag of test data.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
According to Add User label and the newly-increased label measuring and calculating logic generation test case update request;
The test case is updated into request and is sent to label generation interface, the use-case updates request and is used to indicate the label It generates interface and Adds User label and newly-increased label test logic correspondence is added in the default test case for described.
7. a kind of user tag test device, which is characterized in that described device includes:
File acquisition module, for obtaining test file;
First data read module, for read from the test file the first identity data and with first identity data Corresponding expectation user tag;
Data transmission blocks, for first identity data to be sent to digital simulation interface;
Collage-credit data receiving module, corresponding with first identity data for receiving that the digital simulation interface returns One collage-credit data;
Label computing module, for test user tag to be calculated according to first collage-credit data;
As a result module is obtained, obtains label test for the test user tag to be compared with the expectation user tag As a result.
8. device according to claim 7, which is characterized in that described device further include:
Request receiving module, for receiving newly-increased test request;
Second data read module, for read from the newly-increased test request the second identity data and with second identity The corresponding newly-increased reference field name of data;
Configuration-direct generation module, for generating sign according to second identity data and the corresponding newly-increased reference field name Letter data configuration-direct;
Configuration-direct sending module, for the collage-credit data configuration-direct to be sent to the digital simulation interface, the sign Letter data configuration-direct is used to indicate the digital simulation interface according to the newly-increased reference field name to the second identity number It is configured according to corresponding user's collage-credit data.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 6 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 6 is realized when being executed by processor.
CN201811087759.2A 2018-09-18 2018-09-18 User tag test method, device, computer equipment and storage medium Pending CN109446065A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811087759.2A CN109446065A (en) 2018-09-18 2018-09-18 User tag test method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811087759.2A CN109446065A (en) 2018-09-18 2018-09-18 User tag test method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109446065A true CN109446065A (en) 2019-03-08

Family

ID=65532957

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811087759.2A Pending CN109446065A (en) 2018-09-18 2018-09-18 User tag test method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109446065A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083524A (en) * 2019-03-15 2019-08-02 深圳壹账通智能科技有限公司 Upload data test method, apparatus, computer equipment and storage medium
CN110245070A (en) * 2019-05-07 2019-09-17 平安科技(深圳)有限公司 Test user's screening technique, device, computer equipment and storage medium
CN110285902A (en) * 2019-07-30 2019-09-27 安徽江淮汽车集团股份有限公司 Rear axle Efficiency test method, user equipment, storage medium and device
CN110389897A (en) * 2019-06-18 2019-10-29 深圳壹账通智能科技有限公司 SDK logic test method, device, storage medium and server
CN111221743A (en) * 2020-03-18 2020-06-02 时时同云科技(成都)有限责任公司 Automatic testing method and system
CN112346994A (en) * 2020-12-01 2021-02-09 广州品唯软件有限公司 Test information correlation method and device, computer equipment and storage medium
CN112995256A (en) * 2019-12-13 2021-06-18 腾讯科技(深圳)有限公司 Behavior data processing method and related equipment
CN113127334A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and storage equipment
CN116663580A (en) * 2023-05-19 2023-08-29 深圳市铨顺宏科技有限公司 Module testing method, terminal and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226691A1 (en) * 2006-02-23 2007-09-27 Microsoft Corporation Associating attribute tags with test cases
CN102736975A (en) * 2011-04-13 2012-10-17 国民技术股份有限公司 Test method and test system for testing trusted computing password support platform
CN104572930A (en) * 2014-12-29 2015-04-29 小米科技有限责任公司 Data classifying method and device
US20160342501A1 (en) * 2015-05-18 2016-11-24 Hcl Technologies Limited Accelerating Automated Testing
CN106354622A (en) * 2015-07-14 2017-01-25 北京国双科技有限公司 Exhibiting method of test webpage and device
CN106650780A (en) * 2016-10-18 2017-05-10 腾讯科技(深圳)有限公司 Data processing method, device, classifier training method and system
CN106951242A (en) * 2017-03-10 2017-07-14 北京白帽汇科技有限公司 A kind of generation method, equipment and the computing device of validating vulnerability program
CN107391703A (en) * 2017-07-28 2017-11-24 北京理工大学 The method for building up and system of image library, image library and image classification method
CN107491554A (en) * 2017-09-01 2017-12-19 北京神州泰岳软件股份有限公司 Construction method, construction device and the file classification method of text classifier

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070226691A1 (en) * 2006-02-23 2007-09-27 Microsoft Corporation Associating attribute tags with test cases
CN102736975A (en) * 2011-04-13 2012-10-17 国民技术股份有限公司 Test method and test system for testing trusted computing password support platform
CN104572930A (en) * 2014-12-29 2015-04-29 小米科技有限责任公司 Data classifying method and device
US20160342501A1 (en) * 2015-05-18 2016-11-24 Hcl Technologies Limited Accelerating Automated Testing
CN106354622A (en) * 2015-07-14 2017-01-25 北京国双科技有限公司 Exhibiting method of test webpage and device
CN106650780A (en) * 2016-10-18 2017-05-10 腾讯科技(深圳)有限公司 Data processing method, device, classifier training method and system
CN106951242A (en) * 2017-03-10 2017-07-14 北京白帽汇科技有限公司 A kind of generation method, equipment and the computing device of validating vulnerability program
CN107391703A (en) * 2017-07-28 2017-11-24 北京理工大学 The method for building up and system of image library, image library and image classification method
CN107491554A (en) * 2017-09-01 2017-12-19 北京神州泰岳软件股份有限公司 Construction method, construction device and the file classification method of text classifier

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HONG YU: "Using Labeled Transition System Model in Software Access Control Politics Testing", 《2012 SECOND INTERNATIONAL CONFERENCE ON INSTRUMENTATION, MEASUREMENT, COMPUTER, COMMUNICATION AND CONTROL》 *
相玉娟;袁兆山;: "基于级别权重XML的自动化测试框架", 合肥工业大学学报(自然科学版), no. 03 *

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110083524A (en) * 2019-03-15 2019-08-02 深圳壹账通智能科技有限公司 Upload data test method, apparatus, computer equipment and storage medium
CN110245070A (en) * 2019-05-07 2019-09-17 平安科技(深圳)有限公司 Test user's screening technique, device, computer equipment and storage medium
CN110245070B (en) * 2019-05-07 2024-05-31 平安科技(深圳)有限公司 Test user screening method, device, computer equipment and storage medium
CN110389897A (en) * 2019-06-18 2019-10-29 深圳壹账通智能科技有限公司 SDK logic test method, device, storage medium and server
CN110285902A (en) * 2019-07-30 2019-09-27 安徽江淮汽车集团股份有限公司 Rear axle Efficiency test method, user equipment, storage medium and device
CN110285902B (en) * 2019-07-30 2020-11-03 安徽江淮汽车集团股份有限公司 Rear axle efficiency testing method, user equipment, storage medium and device
CN112995256A (en) * 2019-12-13 2021-06-18 腾讯科技(深圳)有限公司 Behavior data processing method and related equipment
CN113127334A (en) * 2020-01-15 2021-07-16 阿里巴巴集团控股有限公司 Data processing method and device, electronic equipment and storage equipment
CN111221743B (en) * 2020-03-18 2023-07-14 时时同云科技(成都)有限责任公司 Automatic test method and system
CN111221743A (en) * 2020-03-18 2020-06-02 时时同云科技(成都)有限责任公司 Automatic testing method and system
CN112346994A (en) * 2020-12-01 2021-02-09 广州品唯软件有限公司 Test information correlation method and device, computer equipment and storage medium
CN112346994B (en) * 2020-12-01 2024-06-04 广州品唯软件有限公司 Test information association method, device, computer equipment and storage medium
CN116663580A (en) * 2023-05-19 2023-08-29 深圳市铨顺宏科技有限公司 Module testing method, terminal and system

Similar Documents

Publication Publication Date Title
CN109446065A (en) User tag test method, device, computer equipment and storage medium
CN108804548B (en) Test data query method, device, computer equipment and storage medium
CN109634654A (en) A kind of page packaging method, device, system, computer equipment and storage medium
CN109726105A (en) Test data building method, device, equipment and storage medium
CN109144799A (en) Integrated testing method, apparatus, computer equipment and storage medium
CN109741035A (en) Data processing method, device, computer equipment and storage medium
CN109683982A (en) MES system control method, device, computer equipment and storage medium
CN109800147B (en) Test case generation method and terminal equipment
CN112286934A (en) Database table importing method, device, equipment and medium
CN110362478A (en) Application upgrade test method, device, computer equipment and storage medium
CN106033390A (en) Mail style testing method and apparatus
CN114327435A (en) Technical document generation method and device and computer readable storage medium
CN109815126A (en) Method for testing software, device, computer equipment and storage medium
CN110232018A (en) Interface test method, device, computer equipment
CN109767072A (en) Accreditation data creation method, device, computer equipment and storage medium
CN109885484A (en) Application page test method, device, computer equipment and storage medium
CN109656817A (en) A kind of automation interface test device and equipment
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN110177006B (en) Node testing method and device based on interface prediction model
CN116860636A (en) Unit test code generation method, device, equipment and storage medium
CN115169578A (en) AI model production method and system based on meta-space data markers
CN116541454B (en) Event configuration method, device, computer equipment and storage medium
CN110018814A (en) Unique identifier providing method, storage medium, electronic equipment and system
CN113342681B (en) Regression testing method and device
CN114327377B (en) Method and device for generating demand tracking matrix, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190308