CN115144678A - Visual test condition configuration method and device - Google Patents

Visual test condition configuration method and device Download PDF

Info

Publication number
CN115144678A
CN115144678A CN202211059903.8A CN202211059903A CN115144678A CN 115144678 A CN115144678 A CN 115144678A CN 202211059903 A CN202211059903 A CN 202211059903A CN 115144678 A CN115144678 A CN 115144678A
Authority
CN
China
Prior art keywords
test condition
target
test
preset
type
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
CN202211059903.8A
Other languages
Chinese (zh)
Other versions
CN115144678B (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.)
Casco Signal Beijing Ltd
Original Assignee
Casco Signal Beijing 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 Casco Signal Beijing Ltd filed Critical Casco Signal Beijing Ltd
Priority to CN202211059903.8A priority Critical patent/CN115144678B/en
Publication of CN115144678A publication Critical patent/CN115144678A/en
Application granted granted Critical
Publication of CN115144678B publication Critical patent/CN115144678B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/005Testing of electric installations on transport means
    • G01R31/008Testing of electric installations on transport means on air- or spacecraft, railway rolling stock or sea-going vessels
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D21/00Measuring or testing not otherwise provided for

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention provides a visual test condition configuration method and device. The method comprises the following steps: analyzing the received configuration request, and determining a target test condition, a target operation and a target test condition type; judging whether the target test condition type is a preset condition type; if so, preprocessing a preset test condition set according to the target operation to determine a preprocessed test condition set; and determining a target test condition set by using the target test condition and the target operation based on the preprocessing test condition set. The invention can dynamically adjust the configured test condition set, thereby improving the configuration efficiency of the test condition set and improving the user experience.

Description

Visual test condition configuration method and device
Technical Field
The invention relates to the technical field of automatic testing, in particular to a visual testing condition configuration method and device.
Background
In the process of railway automation test, a worker usually configures test conditions required by a test scene, and after the test conditions are configured, the configured conditions are displayed on a display interface in a visual mode.
In the prior art, when a worker completes the configuration of the test conditions and modifies the configured test condition set, the visual configuration process of the test conditions in the prior art only supports static configuration, that is, when the worker needs to modify the configured test conditions, the worker needs to reconfigure the test conditions, thereby reducing user experience. Therefore, a method and an apparatus for configuring visual test conditions are needed.
Disclosure of Invention
In view of this, the invention provides a visual test condition configuration method and device, which can dynamically adjust a configured preset test condition set, thereby improving the configuration efficiency of the test condition set and improving the user experience.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in a first aspect, the present invention provides a visual test condition configuration method, where the method includes:
analyzing the received configuration request, and determining a target test condition, a target operation and a target test condition type;
judging whether the target test condition type is a preset condition type;
if so, preprocessing a preset test condition set according to the target operation, and determining a preprocessed test condition set;
and determining a target test condition set by using the target test condition and the target operation based on the preprocessing test condition set.
In a second aspect, the present invention provides a visual test condition configuration apparatus, including:
the analysis module is used for analyzing the received configuration request and determining a target test condition, a target operation and a target test condition type;
the judging module is used for judging whether the target test condition type is a preset condition type;
the preprocessing module is used for preprocessing a preset test condition set according to the target operation and determining a preprocessed test condition set;
and the operation module is used for determining a target test condition set by utilizing the target test condition and the target operation based on the preprocessing test condition set.
By means of the technical scheme, the invention provides a visual test condition configuration method and a visual test condition configuration device, and the method and the device specifically record that firstly, a received configuration request is analyzed, a target test condition, a target operation and a target test condition type included in the configuration request are determined, when the target test type is judged to be the preset condition type, a preset test condition set is preprocessed according to the target operation, a preprocessed test condition set is determined, and then the target operation is executed on the preprocessed test condition set according to the target test condition, so that the target test condition set is determined. According to the embodiment of the invention, under the condition that the target test condition type is the preset type, the preset test condition set is preprocessed according to the target operation, so that the configured test condition set can be dynamically adjusted, the configuration efficiency of the test condition set is further improved, the user experience is improved, and the problem that the test condition needs to be configured again when the configured test condition needs to be modified in the prior art, and the user experience is further reduced is effectively solved.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a visual test condition configuration method disclosed in the present invention;
FIG. 2 is a schematic flow chart of a pretreatment method disclosed in the present invention;
FIG. 3 is a schematic flow chart illustrating a method for determining a target test set according to the present invention;
FIG. 4 is a schematic flow chart illustrating a method for displaying a set of target test conditions according to the present invention;
FIG. 5 is a schematic view of a visual testing condition configuration apparatus according to the present disclosure;
fig. 6 is a schematic view of another visual test condition configuration apparatus disclosed in the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In the process of the actual railway automation test, the inventor finds that in the prior art, when the preset test condition set which is configured is modified, the test conditions need to be configured again.
In order to solve the above problem, an embodiment of the present invention provides a visual test condition configuration method, which includes the specific steps shown in fig. 1:
step 101, analyzing the received configuration request, and determining a target test condition, a target operation and a target test condition type.
In this embodiment, after receiving a configuration request configured by a worker, the configuration request is analyzed to obtain a target test condition, a type of the target test condition, and a corresponding target operation carried in the configuration request. The target test condition type in this embodiment includes a basic test condition and a logic test condition, the target operation includes a delete operation, a change of the logic test condition, an adjustment of the position of the basic test condition, and the like, and the logic test condition is used to connect the basic test condition. Specifically, for example, if the result of parsing the configuration request is [ Cond1, delete ], the configuration request is delete Cond1, where the type of Cond1 is the basic test condition.
And 102, judging whether the target test condition type is a preset condition type.
In this embodiment, after the step 101 is executed, after the target test condition type is obtained, the target test condition type is compared with the preset condition type, when the target test condition type is the same as the preset condition type, the target test type is determined to be the preset condition type, and when the target test condition type is different from the preset condition type, the target test condition type is determined to be the non-preset condition type. Specifically, for example, if the result after the configuration request is analyzed in step 101 is "AND, delete", the test type of "AND" is compared with the preset condition type, where the type of "AND" is a logic test condition, AND the preset condition type is a logic test condition, that is, the test condition type of [ AND, delete ] in the configuration request is the same as the preset condition type, otherwise, the test condition type in the configuration request is not the same as the preset condition type.
And 103, under the condition that the target test condition type is judged to be the preset condition type, preprocessing a preset test condition set according to the target operation, and determining a preprocessed test condition set.
In this embodiment, after step 102 is executed, if the target test condition type is determined to be the preset condition type, the preset test condition set is preprocessed according to the target operation obtained in step 101, so as to determine a preprocessed test condition set, where the preset test condition set is a test condition set that has been configured by a worker. Specifically, for example, the preset test condition set is [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ] ], AND when it is determined that the target test condition type is the preset condition type, that is, the target test type is the logic test condition, the preset test condition set is preprocessed to [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ], AND it is determined that the preprocessed test condition set is [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ].
And 104, determining a target test condition set by using the target test condition and the target operation based on the preprocessing test condition set.
In this embodiment, after step 103 is executed and the set of preprocessing test conditions is determined, the target operation is performed on the set of preprocessing test conditions by using the target test conditions determined in step 101. Specifically, for example, if the result of the analysis of the configuration request is "OR, delete", the preprocessing test condition set is "AND ', cond1, [' OR ', cond2, [' AND ', cond3, cond4] ], AND the operation of deleting" OR ", that is," OR "AND the test conditions that are duplicated in the preprocessing test set are deleted, so that the target test condition set is" AND', cond1, cond2, [ 'AND', cond3, cond4] ].
Further, under the condition that the target test condition is judged to be a non-preset condition type, determining a target test condition set by using the target test condition and the target operation. In this embodiment, after the step 102 is executed, when the target test condition is determined to be the basic test condition, the preset test condition set is not preprocessed, that is, the target test condition is directly utilized to perform the target operation on the preset test condition set, so as to determine the target test condition set. Specifically, for example, the preset test condition set is [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ] ], the result after the analysis of the configuration request is [ Cond1, delete ], AND then the target test condition set is determined to be [ 'AND', [ 'OR', cond2, [ 'AND', cond3, cond4] ] ].
The method comprises the steps of firstly analyzing a received configuration request, determining a target test condition, a target operation and a target test condition type which are included in the configuration request, preprocessing a preset test condition set according to the target operation when the target test type is judged to be the preset condition type, determining a preprocessed test condition set, and further performing the target operation on the preprocessed test condition set according to the target test condition to determine the target test condition set. According to the embodiment of the invention, under the condition that the target test condition type is the preset type, the preset test condition set is preprocessed according to the target operation, so that the configured test condition set can be dynamically adjusted, the configuration efficiency of the test condition set is further improved, the user experience is improved, and the problem that the test condition needs to be configured again when the configured test condition is modified in the prior art, and the user experience is further reduced is effectively avoided.
Further, an embodiment of the present invention provides a preprocessing method, which specifically introduces "preprocessing a preset test condition set according to the target operation and determining a preprocessed test condition set" in step 103 of the embodiment shown in fig. 1, and the specific steps are shown in fig. 2, and include:
step 201, when the target operation is a delete operation, according to the target test condition, determining a preset test condition subset corresponding to the target test condition and a root logic test condition corresponding to the preset test condition subset in the preset test condition set.
Wherein the root logic test condition is a logic test condition outside the test subset.
In this embodiment, when the preset test condition set is preprocessed, the target test condition is first obtained, the position of the target test condition in the preset test condition set is determined, and then the preset test condition subset corresponding to the target test condition and the root logic test condition corresponding to the preset test condition subset are determined according to the target test condition and the position of the target test condition in the preset test condition set. Specifically, for example, the preset test condition set is [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ] ], the target test condition is "OR", the determined preset test condition subset is [ 'OR', cond2, [ 'AND', cond3, cond4] ], AND the root logic test condition corresponding to the determined preset test condition subset is "AND".
Step 202, traversing the test conditions in the preset test condition subset, and determining the type of the test conditions.
In this embodiment, after step 201 is executed and a preset test condition subset is obtained, the test conditions in the preset test condition subset are traversed to determine the types of the test conditions. Specifically, for example, if the subset of predetermined test conditions is determined to be [ 'OR', cond2, [ 'AND', cond3, cond4] ], each test condition in the subset of predetermined test conditions is traversed, where "Cond2", "Cond3", AND "Cond4" are basic test conditions, AND "OR" AND "are logical test conditions.
Step 203, processing the preset test subset according to the test condition type, and determining the preprocessing test set.
In this embodiment, after the step 202 is executed, after the type of each test condition in the preset test condition subset acquired in the step 202 is determined, the preset test condition subset is processed according to the type of each test condition. Specifically, when the test condition is a basic test condition, the basic test condition is added to the root logic test condition, and when the test condition is a logic test condition, the logic test condition is added to the root logic test condition. For example, the predetermined subset of test conditions is determined as [ 'OR', cond2, [ 'AND', cond3, cond4] ], first determining "Cond2" as the base test condition, i.e. adding the base test condition at the root logic test condition "AND" corresponding to the predetermined subset of test conditions, the resulting set is [ [ 'OR', cond2, [ 'AND', cond3, cond4] ], cond2], AND continuing the traversal, AND determining [ 'AND', cond3, cond4] as the logic test condition, AND adding the logic test condition at the root logic test condition, the resulting set is [ 'OR', cond2, [ 'AND', cond3, cond4] ], cond2, AND [ 'AND' ] ], continuously traversing, AND judging that 'Cond 3' is a basic test condition, wherein the obtained set is [ 'OR', cond2, [ 'AND', cond3, cond4] ], cond2, [ 'AND', cond3] ], AND similarly, "Cond4" is a basic test condition, the obtained set is [ 'AND', cond3, cond4] ], cond2, [ 'AND', cond3, cond4] ], AND when the traversing is finished, the obtained set is combined with the preset test condition set except the preset test subset, so as to obtain a pre-processing test condition set, namely [ 'AND', cond1, [ 'OR', cond2, [ 'AND', cond3, cond4] ], cond2, [ 'AND', cond3, cond4] ].
According to the embodiment of the invention, the preset test condition subset and the root logic test condition corresponding to the preset test condition subset are accurately determined according to the target test condition and the target operation, the preset test condition subset is processed according to the type of the test condition in the preset test condition subset and the type of the test condition, so that the configured test condition set can be dynamically adjusted, the configuration efficiency of the test condition set is improved, and the user experience is improved.
Further, an embodiment of the present invention provides a method for determining a target test set, where the method is specifically introduced after "determining that the target test condition is a preset test condition" in step 102 in the embodiment shown in fig. 1, and specific steps are shown in fig. 3, where the method further includes:
step 301, when the target operation is to change the logic test condition, obtaining the position of the logic test condition to be changed corresponding to the target test condition in the preset test condition set.
In this embodiment, when the target test condition type is a preset test condition type, the position of the logic test condition to be changed corresponding to the target test condition is obtained in the preset test condition set. Specifically, for example, the preset test condition set is [ 'AND', cond1, [ 'OR', cond2, cond3] ], AND the configuration request is [ replacement, OR → AND ], the position of the logic test condition "OR" to be modified corresponding to the target test condition "AND" in the preset test condition set is first determined.
Step 302, based on the position of the logic test condition to be changed in the preset test condition set, replacing the logic test condition to be changed with the target test condition, and determining the target test condition set.
In this embodiment, after step 301 is executed, after the position of the logic test condition to be changed in the preset test condition set is determined, the target test condition is used to replace the logic test condition to be changed, so as to determine the target test condition set. Specifically, the preset test condition set is [ 'AND', cond1, [ 'OR', cond2, cond3] ], AND the configuration request is [ replace, OR → AND ], AND the obtained target test condition set is [ 'AND', cond1, [ 'AND', cond2, cond3] ].
In the embodiment of the invention, the position of the logic test condition to be changed corresponding to the target test condition in the preset test condition set is determined, and the logic test condition to be changed is accurately replaced by using the target test condition according to the position of the logic test condition to be changed in the preset test condition set, so that the configured test condition set can be dynamically adjusted, the configuration efficiency of the test condition set is improved, and the user experience is improved.
Further, in some embodiments, when the result after the analysis of the configuration request is (basic test condition, adjusting the position of the basic test condition), and the target test condition is moved to the adjusted position, the position of the root logic test condition in the preset test condition set is obtained, an empty test condition set is newly created according to the logic test condition, the test condition types except the root logic test condition in the preset test condition set are traversed, when the test condition is judged to be the basic test condition, the test condition is written into the empty test condition set, and the test condition is continuously traversed, when the test condition is judged to be the logic test condition, the logic test condition is obtained, an empty test condition subset is newly created in the empty test condition set, and the remaining test conditions are continuously traversed, when the test condition is judged to be the basic test condition, the basic test condition is written into the test condition subset, and the traversal is continuously completed until the traversal is completed, and the target test condition set corresponding to the configuration request is obtained.
Specifically, for example, if the configuration request is (Cond 2 adjusted to OR), the preset test condition set is [ 'AND', cond1, cond2, [ 'OR', cond3] ], according to the logic test condition, an empty test condition set [ 'AND' ] is newly created, the test condition types except for the root logic test condition in the preset test condition set are traversed, when the test condition "Cond1" is determined as the base test condition, the test condition is written into the empty test condition set to obtain [ 'AND', cond1], AND the test condition is continuously traversed, when the test condition "OR" is determined as the logic test condition, the logic test condition is obtained, AND an empty test condition subset [ 'OR' ]isnewly created, AND the remaining test conditions are continuously traversed, when the test condition "Cond3", "Cond2" is determined as the base test condition, the base test condition is written into the test condition subset [ 'OR', cond3, AND the Cond2], AND the traversal is continuously continued until the corresponding test condition set of the configuration request [ 'AND', cond3], AND the target set of the test condition set is obtained.
Further, in the embodiment of the present invention, after modifying the preset test condition set according to the configuration request and obtaining the target test set, whether the logic in the target test condition set is correct is verified, specifically, the target test set is obtained first to obtain the length of the target test condition set, where the length of each test condition is 1. When the length of the target test set is less than 2 and a test condition exists, the test condition is judged to be a basic test condition, if the test condition is not the basic test condition, a reminding signal is sent to a display interface to prompt a worker to perform manual judgment, when the length of the target test set is greater than or equal to 3, whether a test subset exists in the target test set is judged at first, when the test subset does not exist in the target test set, the logic in the target test condition set is judged to be correct, when the test subset exists in the target test set, the length in the test subset is acquired at first, when the length in the test subset is less than 3, the logic of the test subset is judged to be wrong, the logic of the target test set is judged to be wrong, when the length in the test subset is greater than or equal to 3, the logic of the test subset is judged to be correct, whether the test subset of the next level exists in the test subset is judged continuously, and when the logic of the subset of the next level exists in the test subset, the logic of the next level is judged to be correct, and the logic of the subset of the next level is judged to be correct in the target test set.
Further, an embodiment of the present invention provides a method for displaying a target test condition set, where the method is specifically introduced after "determining a target test condition set based on the preprocessed test condition set and using the target test condition and the target operation" in the embodiment shown in fig. 1, and specific steps are shown in fig. 4, where the method further includes:
step 401, obtaining all test conditions in the target test condition set.
In this embodiment, after the target test condition set is determined, all test conditions in the target test condition set are obtained. Specifically, for example, if the target test condition set is [ 'AND', cond1, [ 'OR', cond2, cond3] ], each test condition in the target test condition set is obtained.
Step 402, determining a test condition tree diagram according to all the test conditions.
In this embodiment, after step 401 is executed, the number of layers of the logic test condition in the tree diagram is first determined according to the position of each logic test condition in the target test set;
and filling the basic test conditions corresponding to each logic test condition in the target test set into the layer corresponding to the tree diagram to determine the tree diagram of the test conditions. Specifically, for example, if the target test condition set is [ 'AND', cond1, [ 'OR', cond2, cond3] ], the logical test condition "AND" in the target test set is at the first layer, that is, the logical test condition "AND" is at the first layer of the tree-like graph, AND meanwhile, the logical test condition "OR" in the target test set is at the second layer, that is, the logical test condition "OR" is at the second layer of the tree-like graph, after determining the number of layers corresponding to each logical test condition in the target test set in the tree-like graph, each basic test condition in the target test set is filled into the tree-like graph, that is, "Cond1" is filled into the first layer of the tree-like graph, AND "Cond2" AND "Cond3" are filled into the second layer of the tree-like graph, so as to determine the corresponding test condition tree-like graph, AND obtain the following tree-like graphs:
“AND”
Cond1
“OR”
Cond2
Cond3。
and step 403, sending the test condition tree diagram to a display interface to display the target test condition set.
In this embodiment, after step 402 is executed, the tree diagram determined in step 402 is sent to a display interface to display the target test condition set to the worker, so that the worker can perform visual configuration on the test conditions, thereby improving user experience.
Further, as an implementation of the method embodiments shown in fig. 1 to 4, an embodiment of the present invention provides a visual test condition configuration device, which can dynamically adjust a configured test condition set, so as to improve configuration efficiency of the test condition set and improve user experience. An embodiment of the apparatus corresponds to the foregoing method embodiment, and details in the foregoing method embodiment are not repeated in this embodiment for convenience of reading, but it should be clear that the apparatus in this embodiment can correspondingly implement all the contents in the foregoing method embodiment, specifically as shown in fig. 5, the apparatus includes:
the analysis module 10 is configured to analyze the received configuration request, and determine a target test condition, a target operation, and a target test condition type;
the judging module 20 is configured to judge whether the target test condition type is a preset condition type according to an analysis result of the analyzing module 10;
the preprocessing module 30 is configured to, when the determining module 20 determines that the target test condition type is the preset condition type, perform preprocessing on a preset test condition set according to the target operation, and determine a preprocessed test condition set;
an operation module 40, configured to determine a target test condition set by using the target test condition and the target operation based on the pre-processing test condition set determined by the pre-processing module 30.
Further, as shown in fig. 6, the preprocessing module 30 includes:
a first preprocessing unit 210, configured to determine, according to the target test condition, a preset test condition subset corresponding to the target test condition and a root logic test condition corresponding to the preset test condition subset in the preset test condition set when the target operation is a delete operation.
The second preprocessing unit 220 is configured to traverse the test conditions in the preset test condition subset, and determine the type of the test conditions.
A third preprocessing unit 230, configured to process the preset test subset according to the test condition type, and determine the preprocessed test set.
Further, as shown in fig. 6, the visual test condition configuration apparatus further includes a modification module 50, where the modification module 50 includes:
a first changing unit 510, configured to, when a target operation is to change a logic test condition, obtain, in the preset test condition set, a position of the logic test condition to be changed corresponding to the target test condition.
A second changing unit 520, configured to replace the to-be-changed logic test condition with the target test condition based on a position of the to-be-changed logic test condition in the preset test condition set, and determine the target test condition set.
Further, as shown in fig. 6, the visual test condition configuring apparatus further includes a display module 60, where the display module 60 includes:
the first display unit 610 is configured to obtain all test conditions in the target test condition set.
And a second display unit 620, configured to determine a test condition tree diagram according to all the test conditions.
A third display unit 630, configured to send the test condition dendrogram to a display interface, so as to display the target test condition set.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described in detail herein.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In addition, the memory may include volatile memory in a computer readable medium, random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both permanent and non-permanent, removable and non-removable media, may implement the information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional identical elements in the process, method, article, or apparatus comprising the element.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present invention, and are not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims (10)

1. A visual test condition configuration method is characterized by comprising the following steps:
analyzing the received configuration request, and determining a target test condition, a target operation and a target test condition type;
judging whether the target test condition type is a preset condition type or not;
if so, preprocessing a preset test condition set according to the target operation to determine a preprocessed test condition set;
and determining a target test condition set by using the target test condition and the target operation based on the preprocessing test condition set.
2. The method according to claim 1, wherein the preset condition type is a logic test condition, wherein the logic test condition is used for connecting a basic test condition;
the judging whether the target test condition type is a preset condition type comprises the following steps:
judging whether the type of the target test condition is the logic test condition or not;
when the target test condition type is the logic test condition, judging that the target test condition is a preset condition type;
and when the target test condition type is not the logic test condition, judging that the target test condition is a non-preset condition type.
3. The method of claim 1, wherein the target operation comprises a delete operation;
the preprocessing the preset test condition set according to the target operation to determine a preprocessed test condition set comprises the following steps:
according to the target test condition, determining a preset test condition subset corresponding to the target test condition and a root logic test condition corresponding to the preset test condition subset in the preset test condition set, wherein the root logic test condition is a logic test condition on the outer layer of the preset test subset;
traversing the test conditions in the preset test condition subset, and determining the type of the test conditions;
and processing the preset test subset according to the test condition type to determine the pretreatment test condition set.
4. The method of claim 3, wherein the test condition types include a base test condition and a logic test condition;
the processing the preset test subset according to the test condition type to determine the preprocessed test condition set includes:
acquiring the type of the test condition;
when the test condition is a basic test condition, adding the basic test condition at the root logic test condition to determine the preprocessing test condition set;
when the test condition is a logic test condition, the logic test condition is added at the root logic test condition to determine the preprocessing test condition set.
5. The method of claim 1, wherein the target operation comprises altering a logical test condition;
after the target test condition is judged to be the preset test type, the method further comprises the following steps:
acquiring the position of the logic test condition to be changed corresponding to the target test condition in the preset test condition set;
and replacing the logic test condition to be changed with the target test condition based on the position of the logic test condition to be changed in the preset test condition set, and determining the target test condition set.
6. The method of claim 1, wherein after determining a set of target test conditions using the target test conditions and the target operation based on the set of pre-processing test conditions, the method further comprises:
acquiring all test conditions in the target test condition set;
determining a test condition tree diagram according to all the test conditions;
and sending the test condition tree diagram to a display interface to display the target test condition set.
7. The method according to claim 6, wherein said determining a test condition tree based on all of said test conditions comprises:
determining the number of layers of the logic test conditions in the tree diagram according to the position of each logic test condition in the target test set;
and filling the basic test conditions corresponding to each logic test condition in the target test set into the layer corresponding to the tree diagram to determine the tree diagram of the test conditions.
8. A visual test condition configuration apparatus, the apparatus comprising:
the analysis module is used for analyzing the received configuration request and determining a target test condition, a target operation and a target test condition type;
the judging module is used for judging whether the target test condition type is a preset condition type or not;
the preprocessing module is used for preprocessing a preset test condition set according to the target operation and determining a preprocessed test condition set;
and the operation module is used for determining a target test condition set by utilizing the target test condition and the target operation based on the preprocessing test condition set.
9. A terminal, characterized in that the terminal is used for running a program, wherein the terminal executes the visual test condition configuration method according to any one of claims 1 to 7 when running.
10. A storage medium for storing a computer program, wherein the computer program is operable to control an apparatus in which the storage medium is located to execute the visual test condition configuration method according to any one of claims 1-7.
CN202211059903.8A 2022-09-01 2022-09-01 Visual test condition configuration method and device Active CN115144678B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211059903.8A CN115144678B (en) 2022-09-01 2022-09-01 Visual test condition configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211059903.8A CN115144678B (en) 2022-09-01 2022-09-01 Visual test condition configuration method and device

Publications (2)

Publication Number Publication Date
CN115144678A true CN115144678A (en) 2022-10-04
CN115144678B CN115144678B (en) 2022-12-09

Family

ID=83415318

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211059903.8A Active CN115144678B (en) 2022-09-01 2022-09-01 Visual test condition configuration method and device

Country Status (1)

Country Link
CN (1) CN115144678B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11243125A (en) * 1998-02-25 1999-09-07 Yokogawa Electric Corp Ic test system
CN103914385A (en) * 2014-04-11 2014-07-09 北京航空航天大学 Visualized and dynamic testing rule creating method oriented to parallel tests of safety demanding system
CN110321282A (en) * 2019-05-24 2019-10-11 深圳壹账通智能科技有限公司 The XML configuration file amending method and system of Mock test
CN111290955A (en) * 2020-02-18 2020-06-16 卡斯柯信号有限公司 Non-invasive automatic test system for subway signal system test software
CN111459818A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Visual test method and device
CN112069068A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Automatic test data processing method, device, equipment and readable storage medium
CN114297074A (en) * 2021-12-29 2022-04-08 腾云悦智科技(深圳)有限责任公司 Method for realizing automatic testing of functions, interfaces and performances based on dynamic configuration

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH11243125A (en) * 1998-02-25 1999-09-07 Yokogawa Electric Corp Ic test system
CN103914385A (en) * 2014-04-11 2014-07-09 北京航空航天大学 Visualized and dynamic testing rule creating method oriented to parallel tests of safety demanding system
CN110321282A (en) * 2019-05-24 2019-10-11 深圳壹账通智能科技有限公司 The XML configuration file amending method and system of Mock test
CN111290955A (en) * 2020-02-18 2020-06-16 卡斯柯信号有限公司 Non-invasive automatic test system for subway signal system test software
CN111459818A (en) * 2020-03-31 2020-07-28 中国银行股份有限公司 Visual test method and device
CN112069068A (en) * 2020-09-03 2020-12-11 中国平安财产保险股份有限公司 Automatic test data processing method, device, equipment and readable storage medium
CN114297074A (en) * 2021-12-29 2022-04-08 腾云悦智科技(深圳)有限责任公司 Method for realizing automatic testing of functions, interfaces and performances based on dynamic configuration

Also Published As

Publication number Publication date
CN115144678B (en) 2022-12-09

Similar Documents

Publication Publication Date Title
CN109542789B (en) Code coverage rate statistical method and device
CN108280137B (en) Task-based pipe network data editing method and device
CN111241073A (en) Data quality inspection method and device
CN106933823B (en) Data synchronization method and device
CN109145981B (en) Deep learning automatic model training method and equipment
CN112131075B (en) Method and equipment for detecting abnormality of storage monitoring data
CN115118627B (en) Temporary speed limiting server testing method and device
CN113641592B (en) Test sequence generation method and device
CN115144678B (en) Visual test condition configuration method and device
CN110795304B (en) Method and device for testing performance of distributed storage system
CN112055018A (en) Message analysis method and device
CN110209769A (en) Text filling method and device
CN115987821A (en) Gateway routing test method and device
CN113919683A (en) Method and device for calculating process man-hour, storage medium and processor
CN115687310A (en) Data cleaning method and device
CN112035308A (en) Method and device for generating system interface test table
CN113486637A (en) Intelligent dynamic custom contract generation method and device
CN107948227B (en) Performance optimization method and device of distributed system platform
CN116501653B (en) Software regression testing method and device
CN115687140B (en) Test case writing method and system based on automatic test
CN117632285A (en) Model management method and device
CN110727888B (en) Page processing method and device, computer storage medium and processor
CN115827484A (en) Interface testing method and device
CN115665089A (en) Multi-IP address host matching method, device and related equipment
CN108345459B (en) Site deployment method and device

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