CN112836471A - Batch labeling interface automation method and system - Google Patents

Batch labeling interface automation method and system Download PDF

Info

Publication number
CN112836471A
CN112836471A CN202110099727.XA CN202110099727A CN112836471A CN 112836471 A CN112836471 A CN 112836471A CN 202110099727 A CN202110099727 A CN 202110099727A CN 112836471 A CN112836471 A CN 112836471A
Authority
CN
China
Prior art keywords
interface
picture
labeling
module
request
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.)
Granted
Application number
CN202110099727.XA
Other languages
Chinese (zh)
Other versions
CN112836471B (en
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.)
Shanghai Weiyi Intelligent Manufacturing Technology Co ltd
Original Assignee
Shanghai Weiyi Intelligent Manufacturing 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 Shanghai Weiyi Intelligent Manufacturing Technology Co ltd filed Critical Shanghai Weiyi Intelligent Manufacturing Technology Co ltd
Priority to CN202110099727.XA priority Critical patent/CN112836471B/en
Publication of CN112836471A publication Critical patent/CN112836471A/en
Application granted granted Critical
Publication of CN112836471B publication Critical patent/CN112836471B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/117Tagging; Marking up; Designating a block; Setting of attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Image Analysis (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a batch labeling interface automation method and system, which are based on a jmeter as a development tool and comprise the following steps: verifying login; after logging in, constructing a tagging task list taskid; and executing the labeling work and the auditing work according to the labeling task list. The invention solves the problem that the interface between the simulation client and the server of the project is automated in the testing stage, and realizes the condition that a tester cannot mark a large number of picture defects in the industrial MEB testing process.

Description

Batch labeling interface automation method and system
Technical Field
The invention relates to the field of intelligent batch labeling, in particular to a batch labeling interface automation method and system, and especially relates to an industrial MEB (Manufacturing Executive Brain) feature engineering center batch labeling interface automation method and system.
Background
At present, quality detection links of a large number of enterprises in the industrial field are realized by manual quality inspection, namely, defect identification is mainly performed manually. However, manual quality inspection is difficult to standardize, and has high missing inspection and false inspection rates and high labor cost.
In addition, a small number of enterprises use traditional machine vision techniques for quality inspection. For example, patent document CN109584250A discloses a robust method for automatically dividing and labeling visual regions, in which a fourier polar-logarithmic coordinate correlation method is used to obtain a rotation angle and a scaling ratio between an image to be matched and a reference image, so as to obtain a primary matching image, and then a secondary matching method is used to further match each region, so as to obtain a final matching image. However, the traditional machine vision has high dependency on the object regularity and cannot realize modeling sharing.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a batch labeling interface automation method and system. In particular to a batch labeling interface automation method and system for quality detection.
The invention provides a batch labeling interface automation method based on a jmeter as a development tool, which comprises the following steps:
step SA: verifying login;
step SB: after logging in, constructing a tagging task list taskid;
step SC: and executing the labeling work and the auditing work according to the labeling task list.
Preferably, the step SA includes:
step SA 1: initializing project management information;
step SA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the step SA3 to execute;
step SA 3: obtaining a sample picture;
step SA 4: storing the sample picture by mysql;
step SA 5: screening the sample picture;
step SA 6: obtaining a screened picture, and recording the picture as a picture to be marked;
step SA 7: creating an annotation task according to the picture to be annotated;
step SA 8: and generating an annotation task list according to the annotation task.
Preferably, the step SB includes:
step SB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
step SB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
step SB 3: creating an audit task according to the marked pictures;
step SB 4: the method comprises the following steps of (1) aligning an interface request, namely whether the labeling results of auditors in an audit task are aligned or not is auditors, wherein the auditors are names of virtual roles for automatically executing audit by a computer;
step SB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
Preferably, the first and second electrodes are formed of a metal,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
Preferably, the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to realize importing of batch pictures to be marked.
The invention provides a batch labeling interface automation system based on a jmeter as a development tool, which comprises:
and a module MA: verifying login;
a module MB: after logging in, constructing a tagging task list taskid;
and a module MC: and executing the labeling work and the auditing work according to the labeling task list.
Preferably, the module MA comprises:
module MA 1: initializing project management information;
module MA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the module MA3 to execute;
module MA 3: obtaining a sample picture;
module MA 4: storing the sample picture by mysql;
module MA 5: screening the sample picture;
module MA 6: obtaining a screened picture, and recording the picture as a picture to be marked;
module MA 7: creating an annotation task according to the picture to be annotated;
module MA 8: and generating an annotation task list according to the annotation task.
Preferably, said module MB comprises:
module MB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
module MB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
module MB 3: creating an audit task according to the marked pictures;
module MB 4: the method comprises the following steps of (1) aligning an interface request, namely whether the labeling results of auditors in an audit task are aligned or not is auditors, wherein the auditors are names of virtual roles for automatically executing audit by a computer;
module MB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
Preferably, the first and second electrodes are formed of a metal,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
Preferably, the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to realize importing of batch pictures to be marked.
Compared with the prior art, the invention has the following beneficial effects:
the invention uses AI technology to carry out quality inspection, makes up the defects of the traditional machine vision technology and manual quality inspection, realizes the standardization and the modeling of the quality inspection, saves the investment of the quality inspection (comprising labor cost, time cost and the like) for enterprises, improves the accuracy and the consistency of the quality inspection, and can provide a customized test scene for a test team.
According to the invention, Java is used as a basic development language, a jmeter (interface and pressure testing tool) is used as a basic development tool, a series of processes of examining and checking pictures (acquiring directoryId and imageId) in a task auditing, creating a labeling task, constructing a labeling task list (acquiring taskId), allowing a labeler to label, allowing the labeler to submit an audit, allowing the examiner to align a request interface, allowing the examiner to pass the audit and the like are simulated in a real environment, and great convenience is provided for manual batch labeling testing of a simulated product.
According to the invention, the simulation client sends a request to the server, and the single thread and the multithreading send the sorted sample picture or the picture data to be marked to the back-end server serving as the server, so that the automation of an interface between the simulation client and the server of a project in a test stage is solved, and the condition that a marker cannot mark a large number of picture defects during an industrial MEB test is realized.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a schematic flow chart of the method of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The jmeter tool cannot directly simulate batch marking test of pictures, the self-contained function of the jmeter tool cannot realize the defects in the batch marking of the pictures, marking is difficult to complete in a short time, in order to save time and cost, a script needs to be developed secondarily, a jar packet is introduced to realize encryption verification (signature verification) of an interface, the script is developed by means of the benshell, and the jar packet is introduced. Therefore, the invention relies on some characteristics of the jmeter tool to carry out secondary development, increases jar package introduction, completes script development by the benshell, completes batch marking, and solves the difficult point that marking personnel and testing personnel are difficult to manually mark defect tasks in a large scale in a short time.
The invention provides a batch labeling interface automation method based on a jmeter as a development tool, which comprises the following steps:
step SA: verifying login;
step SB: after logging in, constructing a tagging task list taskid;
step SC: and executing the labeling work and the auditing work according to the labeling task list.
Preferably, the step SA includes:
step SA 1: initializing project management information;
step SA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the step SA3 to execute;
step SA 3: obtaining a sample picture;
step SA 4: storing the sample picture by mysql;
step SA 5: screening the sample picture;
step SA 6: obtaining a screened picture, and recording the picture as a picture to be marked; in a preferred example, the standard for screening pictures can be to screen out pictures which are not in compliance, such as the definition of the pictures is lower than a definition threshold value, and sample pictures can also be used as pictures to be labeled; the picture can be screened according to whether the ID of the picture meets the set condition.
Step SA 7: creating an annotation task according to the picture to be annotated;
step SA 8: and generating an annotation task list according to the annotation task.
Preferably, the step SB includes:
step SB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
step SB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
step SB 3: creating an audit task according to the marked pictures;
step SB 4: the method comprises the following steps of (1) aligning an interface request, namely whether the labeling results of auditors in an audit task are aligned or not is auditors, wherein the auditors are names of virtual roles for automatically executing audit by a computer; in a preferred embodiment, the defect list marked by the marker a is compared with the defect list marked by the marker B one by one, and if the comparison result exceeds a set ratio, for example 75%, the following conditions are met, then the marking results of the marker a and the marker B are considered to be aligned:
1) the types of defects are consistent;
2) the description of the defects is consistent. Therefore, the method can assist the auditor to audit the annotation results of a plurality of annotators,
step SB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
Preferably, the first and second electrodes are formed of a metal,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
Preferably, the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to realize importing of batch pictures to be marked.
The present invention will be described more specifically with reference to preferred examples.
The Project Management (PM) information comprises public variables, public variables (user-defined variables) are set through the setUp thread group, acquired data and basic data information such as initialization related enterprise names, enterprise ids, request addresses, port numbers, login user name passwords, Project ids, annotator name passwords and auditor name passwords are transmitted to the public variables, and some task names, scheme names, data set names and the like are defined by users.
Switching login items according to the item management information received from the login requester; and acquiring an access token _ token of item switching for later request use, referring to a base64 encrypted jar package of a third party for performing signature verification (bearer shell sample), and setting the encrypted parameters of the base64 as global.
Adding thread group-characteristics, setting a Transaction Controller for Transaction control to manage the case sets of each interface.
And a BeanShell PreProcessor PreProcessor is arranged for presetting base64 to encrypt and check labels, so that the later request call is facilitated. An admin preprocessor, a annotator A preprocessor and a annotator B preprocessor are respectively arranged.
And according to the request of the annotator for acquiring the annotation task list, returning the directory identifier directoryId, the picture identification number imageId and the file name fileName of the picture to be annotated to create the annotation task, and returning the annotation task list taskId to perform the annotation workflow.
The picture identification number imageId is parameterized by a CSV Data Set Config element, so that mass labeling of preparation Data is facilitated, for example, labeling of 1-1000 pictures with 10 defects per picture is facilitated.
And an index is set, so that statistics and storage of the number of times of the request of the labeling interface are facilitated, and the count is used as a parameter for cycle number control.
Through an HTTP Header Manager Header file Manager, the labeling of the picture, the storage of the labeling and the Header information of the request for submitting the checking interface are stored, and the format of the interface response data is specified: Content-Type ═ application/json; charset ═ UTF-8.
And after the interface is completely requested to be edited, introducing a Loop Controller circulation Controller to control and store the labeling interface.
Setting a Listener Listener; and using the View Results Tree to check a result Tree, checking detailed log information of the interface request, and observing an execution result.
In more preferred embodiments, the present invention is a testing tool, comprising:
1) user Defined Variables User defines the variable setting for other interfaces to call;
2) adding an interface request header, and calling ip and port in User Defined Variables;
3) login-item switch interface setup request;
4) login-item switch interface assertion;
5) obtaining access _ token;
6) setting a bearer shell sampler, calling a three-party jar packet, and setting the global;
7) a characteristic submodule:
8) adding admin, a annotator A and a BeanShell PreProcessor of an annotator B;
9) a task auditing interface request;
10) acquiring directoryId, imageId and fileName;
11) creating a request for labeling a task interface;
12) labeling a task list interface request;
13) acquiring taskId;
14) annotator a-annotate flow (transaction controller) -login-item switch-set base64 encryption
15) The annotator A-starts to annotate the interface request;
16) loop Controller:
17) counter-for counting the number of annotations;
18) CSV data file setup-parameterization file for mass labeling tasks;
19) the annotator A-saves the annotation interface request;
20) a marker A-submits an audit interface request;
21) annotator B-annotate flow (transaction controller) -login-item switch-set base64 encryption:
22) the annotator B starts to annotate the interface request;
23) loop Controller:
24) counter-for counting the number of annotations;
25) CSV data file setup-parameterization file for mass labeling tasks;
26) the annotator B stores the annotation interface request;
27) a marker B submits an audit interface request;
28) an alignment interface request;
29) an auditor refutes an interface request;
30) auditor-audit pass:
31) the annotator A, B saves the annotation interface request;
32) the annotator A, B submits a request for an audit interface;
33) auditor-audit pass interface request;
34) the Listener listens.
The invention also provides a batch labeling interface automatic system, and a user can use the batch labeling interface automatic system as a tool to realize the purpose of batch labeling of pictures.
The invention provides a batch labeling interface automation system based on a jmeter as a development tool, which comprises:
and a module MA: verifying login;
a module MB: after logging in, constructing a tagging task list taskid;
and a module MC: and executing the labeling work and the auditing work according to the labeling task list.
Preferably, the module MA comprises:
module MA 1: initializing project management information;
module MA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the module MA3 to execute;
module MA 3: obtaining a sample picture;
module MA 4: storing the sample picture by mysql;
module MA 5: screening the sample picture;
module MA 6: obtaining a screened picture, and recording the picture as a picture to be marked; in a preferred example, the standard for screening pictures can be to screen out pictures which are not in compliance, such as the definition of the pictures is lower than a definition threshold value, and sample pictures can also be used as pictures to be labeled; the picture can be screened according to whether the ID of the picture meets the set condition.
Module MA 7: creating an annotation task according to the picture to be annotated;
module MA 8: and generating an annotation task list according to the annotation task.
Preferably, said module MB comprises:
module MB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
module MB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
module MB 3: creating an audit task according to the marked pictures;
module MB 4: the method comprises the following steps of (1) aligning an interface request, namely whether the labeling results of auditors in an audit task are aligned or not is auditors, wherein the auditors are names of virtual roles for automatically executing audit by a computer; in a preferred embodiment, the defect list marked by the marker a is compared with the defect list marked by the marker B one by one, and if the comparison result exceeds a set ratio, for example 75%, the following conditions are met, then the marking results of the marker a and the marker B are considered to be aligned:
1) the types of defects are consistent;
2) the description of the defects is consistent. Therefore, the method can assist the auditor to audit the annotation results of a plurality of annotators,
module MB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
Preferably, the first and second electrodes are formed of a metal,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
Preferably, the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to realize importing of batch pictures to be marked.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A batch labeling interface automation method is characterized in that a jmeter is used as a development tool, and comprises the following steps:
step SA: verifying login;
step SB: after logging in, constructing a tagging task list taskid;
step SC: and executing the labeling work and the auditing work according to the labeling task list.
2. The batch annotation interface automation method of claim 1, wherein the step SA comprises:
step SA 1: initializing project management information;
step SA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the step SA3 to execute;
step SA 3: obtaining a sample picture;
step SA 4: storing the sample picture by mysql;
step SA 5: screening the sample picture;
step SA 6: obtaining a screened picture, and recording the picture as a picture to be marked;
step SA 7: creating an annotation task according to the picture to be annotated;
step SA 8: and generating an annotation task list according to the annotation task.
3. The batch annotation interface automation method according to claim 1, wherein the step SB comprises:
step SB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
step SB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
step SB 3: creating an audit task according to the marked pictures;
step SB 4: an alignment interface request; the method comprises the following steps that an auditor audits whether the labeling results among the annotators are aligned in an audit task, wherein the auditor is the name of a virtual role of which the computer automatically executes audit;
step SB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
4. The batch annotation interface automation method of claim 1 or 2,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
5. The batch annotation interface automation method of claim 1,
the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to import batch pictures to be marked.
6. A batch annotation interface automation system, based on a meter as a development tool, comprising:
and a module MA: verifying login;
a module MB: after logging in, constructing a tagging task list taskid;
and a module MC: and executing the labeling work and the auditing work according to the labeling task list.
7. The batch annotation interface automation system according to claim 6, wherein the module MA comprises:
module MA 1: initializing project management information;
module MA 2: according to the project management login information in the login request information, introducing a jar package to perform base64 signature verification; if the signature verification fails, logging out; if the signature verification is successful, triggering the module MA3 to execute;
module MA 3: obtaining a sample picture;
module MA 4: storing the sample picture by mysql;
module MA 5: screening the sample picture;
module MA 6: obtaining a screened picture, and recording the picture as a picture to be marked;
module MA 7: creating an annotation task according to the picture to be annotated;
module MA 8: and generating an annotation task list according to the annotation task.
8. The batch annotation interface automation system according to claim 6, wherein the module MB comprises:
module MB 1: labeling the picture to be labeled according to the operation of a labeling operator aiming at the labeling task list; wherein, the annotator is the name of the virtual role which is automatically annotated by the computer;
module MB 2: saving the label of the picture to be labeled by a label maker to obtain a labeled picture;
module MB 3: creating an audit task according to the marked pictures;
module MB 4: the method comprises the following steps of (1) aligning an interface request, namely whether the labeling results of auditors in an audit task are aligned or not is auditors, wherein the auditors are names of virtual roles for automatically executing audit by a computer;
module MB 5: receiving an auditing result of an auditor; if the result of the verification is passed, the marked picture is considered to be marked successfully; and if the examination is not passed, the annotator modifies the annotation and then carries out examination again until the examination is passed.
9. The batch marking interface automation system according to claim 6 or 7,
the project management information comprises public variables, the public variables defined by a user are set through the setUp thread group for interface calling, and initialization data are transmitted to the public variables;
switching login items according to the item management information received from the login requester; acquiring an access token _ token verification request for item switching, referring to a base64 encrypted jar packet of three parties for signature verification and setting parameters encrypted by base64 as a global state; setting a Transaction Controller to manage a use case set of each interface;
setting a PreProcessor BeanShell PreProcessor and presetting base64 to encrypt and check labels for requesting to call; respectively setting a preprocessor admin for a annotator;
according to a request of a marker for acquiring a marking task list, returning a directory identifier directoryId, a picture identification number imageId and a file name fileName of a picture to be marked to create a marking task, and returning a marking task list taskId to perform a marking workflow; parameterizing a picture identification number imageId through a CSV Data Set Config element;
setting index to count and store the request times of the labeling interface, and using count function as parameter to control the cycle times;
through an HTTP Header Manager, the Header information of the image marking, the mark storage and the submission of the interface checking request is stored, and the format of the interface response data is specified;
after the interface integrity request is edited, introducing a Loop Controller circulation Controller to control and store the labeling interface;
setting a Listener Listener; and using the View Results Tree to check a result Tree and check the log information requested by the interface.
10. The batch annotation interface automation system of claim 6,
the script is developed through the benshell, the jar packet is introduced to realize encryption verification of the interface, the pictures to be marked are encrypted through the jar packet, and a user is allowed to import batch pictures to be marked.
CN202110099727.XA 2021-01-25 2021-01-25 Batch labeling interface automation method and system Active CN112836471B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110099727.XA CN112836471B (en) 2021-01-25 2021-01-25 Batch labeling interface automation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110099727.XA CN112836471B (en) 2021-01-25 2021-01-25 Batch labeling interface automation method and system

Publications (2)

Publication Number Publication Date
CN112836471A true CN112836471A (en) 2021-05-25
CN112836471B CN112836471B (en) 2022-10-11

Family

ID=75931504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110099727.XA Active CN112836471B (en) 2021-01-25 2021-01-25 Batch labeling interface automation method and system

Country Status (1)

Country Link
CN (1) CN112836471B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597761A (en) * 2018-12-03 2019-04-09 四川长虹电器股份有限公司 A kind of automatic interface testing method based on Jmeter
CN111160432A (en) * 2019-12-19 2020-05-15 成都数之联科技有限公司 Automatic classification method and system for panel production defects
CN111639705A (en) * 2020-05-29 2020-09-08 江苏云从曦和人工智能有限公司 Batch picture marking method, system, machine readable medium and equipment
CN111709361A (en) * 2020-06-16 2020-09-25 广东电网有限责任公司 Unmanned aerial vehicle inspection data processing method for power transmission line
CN111723225A (en) * 2020-05-09 2020-09-29 江苏丰华联合科技有限公司 Image data annotation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109597761A (en) * 2018-12-03 2019-04-09 四川长虹电器股份有限公司 A kind of automatic interface testing method based on Jmeter
CN111160432A (en) * 2019-12-19 2020-05-15 成都数之联科技有限公司 Automatic classification method and system for panel production defects
CN111723225A (en) * 2020-05-09 2020-09-29 江苏丰华联合科技有限公司 Image data annotation method
CN111639705A (en) * 2020-05-29 2020-09-08 江苏云从曦和人工智能有限公司 Batch picture marking method, system, machine readable medium and equipment
CN111709361A (en) * 2020-06-16 2020-09-25 广东电网有限责任公司 Unmanned aerial vehicle inspection data processing method for power transmission line

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小小橡皮人: "jmeter登录密码加密,使用jar包方式 12", 《HTTPS://WWW.CNBLOGS.COM/YANGGUANGHUAYU/P/12141669.HTML》 *

Also Published As

Publication number Publication date
CN112836471B (en) 2022-10-11

Similar Documents

Publication Publication Date Title
US9419884B1 (en) Intelligent automated testing method for restful web services
US8074204B2 (en) Test automation for business applications
WO2001016751A1 (en) Method and system for web based software object testing
CN112380255A (en) Service processing method, device, equipment and storage medium
CN111597104B (en) Multi-protocol adaptive interface regression testing method, system, equipment and medium
CN112035363A (en) Automatic interface testing method and device
CN112650676A (en) Software testing method, device, equipment and storage medium
CN112463588A (en) Automatic test system and method, storage medium and computing equipment
CN112540924A (en) Interface automation test method, device, equipment and storage medium
CN112667501A (en) Link testing method and device based on automatic baffle and related equipment
CN113360376A (en) Buried point testing method and device
CN112860640B (en) Automatic method and system for uploading files in batches
CN113901476A (en) Vulnerability verification method, system, equipment and medium based on virtualization environment
CN106201887B (en) A kind of verification method and device of off-line data task
CN113220597B (en) Test method, test device, electronic equipment and storage medium
CN111930611B (en) Statistical method and device for test data
Manukonda ENHANCING TEST AUTOMATION COVERAGE AND EFFICIENCY WITH SELENIUM GRID: A STUDY ON DISTRIBUTED TESTING IN AGILE ENVIRONMENTS
CN112836471A (en) Batch labeling interface automation method and system
CN112181485A (en) Script execution method and device, electronic equipment and storage medium
CN114546814A (en) Recording playback method, recording playback device and storage medium
CN113138917A (en) Performance test platform
Zhang Research on software development and test environment automation based on android platform
Endo et al. An industrial experience on using models to test web service-oriented applications
CN114205276B (en) Performance test method and device for product management system and electronic equipment
CN118132412A (en) Method and system for optimizing three-party data transmission based on Jmeter simulation

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
GR01 Patent grant
GR01 Patent grant