CN111400190A - Automatic test flow generation method and device and computer readable storage medium - Google Patents

Automatic test flow generation method and device and computer readable storage medium Download PDF

Info

Publication number
CN111400190A
CN111400190A CN202010216919.XA CN202010216919A CN111400190A CN 111400190 A CN111400190 A CN 111400190A CN 202010216919 A CN202010216919 A CN 202010216919A CN 111400190 A CN111400190 A CN 111400190A
Authority
CN
China
Prior art keywords
test
dictionary
case
label
framework
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010216919.XA
Other languages
Chinese (zh)
Inventor
郭庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202010216919.XA priority Critical patent/CN111400190A/en
Publication of CN111400190A publication Critical patent/CN111400190A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses an automatic test flow generation method, which comprises the following steps: the method comprises the steps of receiving a test case set input by a user client and a selected automatic test frame, inputting the test case set into the automatic test frame, carrying out label numbering on the test case set in the automatic test frame to obtain a test case label set, carrying out missing value filling and dictionary format conversion on the test case label set to obtain a dictionary test label set, carrying out dictionary level division on the dictionary test label set to obtain level test labels, and carrying out operation priority adjustment on the level test labels to obtain a test flow. The invention also provides an automatic test flow generation device, electronic equipment and a computer readable storage medium. The invention can improve the selectivity and the dynamic property of the test process.

Description

Automatic test flow generation method and device and computer readable storage medium
Technical Field
The present invention relates to the field of test related technologies, and in particular, to a method and an apparatus for generating an automated test flow, an electronic device, and a computer-readable storage medium.
Background
With the continuous development of the automatic testing technology, more and more automatic testing methods are endless, but most of the existing automatic testing methods are tested based on the programmed testing script, so that the testing selectivity and the dynamic property are poor; secondly, most of the automatic test methods are based on written test scripts, and a little of the test flow is changed, and script codes need to be modified again, so that more manpower and time are occupied.
Disclosure of Invention
The invention provides an automatic test flow generation method, an automatic test flow generation device, electronic equipment and a computer readable storage medium, and mainly aims to improve the selectivity and the dynamic property of a test flow.
In order to achieve the above object, the present invention provides an automated test flow generation method, which includes:
receiving a test case set input by a user client and a selected automatic test frame;
inputting the test case suite into the automated testing framework, and executing the following operations in the automated testing framework:
carrying out label numbering on the test case set to obtain a test case label set;
filling missing values and converting dictionary formats of the test case tag set to obtain a dictionary test tag set;
performing dictionary hierarchy division on the dictionary test label set to obtain hierarchy test labels;
and adjusting the operation priority of the hierarchical test label to obtain a test flow.
Optionally, the test case set includes a plurality of test cases and a test sequence of the plurality of test cases.
Optionally, the tag numbering the test case set to obtain the test case tag set includes:
according to the test sequence of the test cases in the test case set, using a preset test branch division rule to carry out test branch grouping on each test case to obtain one or more test branch groups;
and carrying out test flow numbering on the test cases in the one or more test branch groups to obtain the test case label set.
Optionally, the test flow number includes a test case set number, a test branch group identifier, and a test following case identifier.
Optionally, the performing dictionary hierarchy division on the dictionary test label set to obtain hierarchy test labels includes:
performing dictionary grammar check on the dictionary test tag set;
dividing the standard dictionary test tag set into one or more groups of dictionary test tag sets according to the test branch group numbers;
and selecting a corresponding standard dictionary test label from the standard dictionary test label set to fill the dictionary test label set to obtain a level test label according to the test branch group identification and the test following case identification.
Optionally, the automated test Framework comprises a Tellurium test Framework, a wtd test Framework, a QTP test Framework, a Robot Framework test Framework.
Optionally, the method further comprises:
and sequentially calling the test cases from the test case set according to the test flow to carry out automatic test.
In order to solve the above problem, the present invention further provides an automatic test flow generation apparatus, including:
the label numbering module is used for receiving a test case set input by a user client and a selected automatic test framework, inputting the test case set into the automatic test framework, and executing the following operations in the automatic test framework: carrying out label numbering on the test case set to obtain a test case label set;
the dictionary format conversion module is used for filling missing values and converting dictionary formats of the test case tag set to obtain a dictionary test tag set;
the dictionary level dividing module is used for performing dictionary level dividing on the dictionary test label set to obtain level test labels;
and the operation priority adjusting module is used for adjusting the operation priority of the hierarchical test label to obtain a test flow.
In order to solve the above problem, the present invention also provides an electronic device, including:
a memory storing at least one instruction; and
and the processor executes the instructions stored in the memory to realize the automatic test flow generation method.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, where at least one instruction is stored, and the at least one instruction is executed by a processor in an electronic device to implement the automated test flow generation method described in any one of the above.
The embodiment of the invention depends on the written test script, the dictionary test label set is obtained by mainly carrying out label numbering on the test case set and carrying out dictionary format conversion, and meanwhile, the test flow meeting the user requirements can be produced by carrying out dictionary hierarchy division and operation priority adjustment.
Drawings
Fig. 1 is a schematic flow chart of an automated test flow generation method according to an embodiment of the present invention;
FIG. 2 is a case diagram of an automated test flow generation method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an automated test flow generation method according to an embodiment of the present invention;
fig. 4 is a schematic internal structural diagram of an electronic device of an automated test flow generation method according to an embodiment of the present invention;
the implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides an automatic test flow generation method. Fig. 1 is a schematic flow chart of an automated test flow generation method according to an embodiment of the present invention. The method may be performed by an apparatus, which may be implemented by software and/or hardware.
In this embodiment, the method for generating an automated test flow includes:
and S1, receiving the test case set input by the user client and the selected automatic test framework.
The automated testing Framework is a simulation environment for generating the test case suite, and the automated testing Framework can adopt the currently published test cases such as Tellurium, wtd, QTP and Robot Framework. Such as simulating mouse and keyboard clicking or operating the computer in the RobotFramework automatic test framework, simulating voice to enable the computer to receive and store, simulating automatic opening of a browser in the computer, simulating automatic shutdown of the computer and the like, thereby judging the correctness of the computer program in operation,
the test case set is further composed of different test cases and test sequences among the different test cases, for example, a user selects a Robot Framework as an automatic test frame and inputs the test case set shown in fig. 2, including 8 test cases and the test sequences of the 8 test cases, wherein RF is a shorthand of the Robot Framework automatic test frame, for example, RF case 1 represents a mouse and keyboard click simulation, RF case 2 represents a voice simulation for receiving by a computer, RF case 3 represents a browser in the computer which is simulated to be automatically opened, and the like.
S2, inputting the test case set into the automatic test framework, and executing the following operations in the automatic test framework: and carrying out label numbering on the test case set to obtain the test case label set.
The test case suite is input into the automated testing framework, and the main reason is that the automated testing framework needs to provide a simulation environment to debug the test case suite.
Specifically, the tag numbering is performed on the test case set to obtain the test case tag set, and the method includes: according to the test sequence of each test case in the test case set and a preset test branch division rule, performing test branch division on each test case to obtain one or more test branch groups, and performing test flow numbering on the test cases in the one or more test branch groups to obtain the test case label set.
The test flow number includes: test case set number, test branch group identification, test follow case identification.
Further, the test branch division rule and the test flow number can be exemplarily illustrated according to the case diagram of fig. 2, for example, RF case 1 (representing simulated mouse and keyboard clicks) is tested first, and after the test of RF case 1 is completed, RF case 2 (simulated voice is received by the computer) or RF case 3 (simulated automatic opening of the browser in the computer) is selectively tested, so that RF case 1 is in the first test branch group, RF case 2 and RF case 3 are in the second test branch group, wherein the first test branch group only has RF case 1, so the test flow number of RF case 1 is fseq:001_ eq:001_ tflag:1, RF case 2 and RF case 3 are in the second test branch group, and no one who is tested first is indicated between RF case 2 and RF case 3, so the test flow numbers of RF case 2 and RF case 3 are both fseq:001_ eq:002_ tflag:2, fseq:001 represents the number of the test case set, eseq represents the test branch group identifier, e.g., eseq:001 represents that RF case 1 is in the first test branch group, eseq:002 represents that RF case 2 and RF case 3 are both in the second test branch group, tflag:1 represents the test branch group number, e.g., tflag:1 represents that RF case 1 is in the first test branch group, and RF case 2 and RF case 3 are in the second test branch group. Furthermore, on the premise that the test flow number of the RF case 1 is fseq:001_ eseq:001, the RF case 2 and the RF case 3 are followed, so that the test flow number of the RF case 1 can be continuously increased to fseq:001_ eseq:001_ tflag:1_ sum:2, which means that after the RF case 1, the RF case 2 and the RF case 3 wait for testing, and sum indicates the test following case identifier, similarly, the test flow number of the RF case 2 is fseq:001_ eseq:002_ tflag:2_ sum:3, and the test flow number of the RF case 3 is fseq:001_ eseq:002_ tflag:2_ sum:1, and each test flow number is collected to obtain a test case tag set.
And S3, performing missing value filling and dictionary format conversion on the test case label set to obtain a dictionary test label set.
As shown in fig. 2, if the test flow number of RF case 7 generated in step S2 is fseq:001_ eseq:003_ sum:0, because the tflag test branch group number is absent compared to fseq:001_ eseq:002_ tflag:2_ sum:1, the missing value padding operation is performed according to the preset test flow number form, and if the test flow number of RF case 7 is fseq:001_ eseq:002_ sum:0, the missing value padding operation obtains eq:001_ eseq:003_ tflag:3_ sum: 0.
The dictionary format conversion needs to be correspondingly converted according to the dependent programming language, for example, the dictionary form of the Python language is { key1: value, key2: value, key3: value, … }, and the dictionary form of the test flow number of the RF case 3 is { fseq:001, eseeq: 002, tflag:2, sum:1 }.
And S4, performing dictionary hierarchy division on the dictionary test label set to obtain hierarchy test labels.
In detail, the S4 includes: and performing dictionary grammar check on the dictionary test label set to obtain a standard dictionary test label set, dividing the standard dictionary test label set into one or more groups of dictionary test label sets according to the test branch group number, selecting corresponding standard dictionary test labels from the standard dictionary test label set to fill the sub-dictionary test label set according to the test branch group identification and the test following case identification, and putting the filled sub-dictionary test label sets into a dictionary to obtain hierarchical test labels.
The dictionary syntax checking needs to be carried out according to syntax rules of a dependent programming language, for example, when the dictionary form of Python language is { key1: value, key2: value, key3: value, …. }, the test flow number of RF case 3 is converted into the dictionary form of { fseq:001eseq:002, tflag:2, sum:1} and a comma is lacked, so that commas are added between numbers and letters and are changed into { fseq:001, eseq:002, tflag:2, sum:1 }.
As described above, the dictionary test tags corresponding to RF case 1 are { fseq:001, eseq:001, tflag:1, sum:2}, the dictionary test tags corresponding to RF case 2 are { fseq:001, eseq:002, tflag:2, sum:3}, the dictionary test tags corresponding to RF case 3 are { fseq:001, eseq:002, tflag:2, sum:1}, and the dictionary test tags corresponding to RF case 7 are { fseq:001, eseq:003, tflag:3, sum:0}, the test branch group number tflag is 1,2,3 in total, so the number of groups of the sub-dictionary test tags is 3, further, the first group is: 001, 1,2, 001, 002, 2, 001, 002, 2, 1, 001, 002, 1, 001, 003, 1, 001, 0, …, further such as the second component dictionary testing tag { fseq:001, 002, 2, 1} and the third component { fseq:001, 003, 3, 0} …, further such as the second component dictionary testing tag { fseq:001, 002, 2, 1} and knowing that there are iseq: 001 and eseq:003 before 002 according to the testing branch set identifier, so that { fseq:001, 002, tflag:2, sum:1} is padded with fseq:001, eseq:003, 002, 001, 002, 001, 002, and 1, and then the other is padded with the other component in the testing branch set identifier, so that the sample is padded with { fseq:001, 002, 2, 001, 002, 2, eseq 003, tflag 3 and sum 0.
Furthermore, each sub-dictionary test label is placed in one dictionary to obtain a hierarchy test label, so that the hierarchy test label only needs to be operated subsequently.
And S5, performing operation priority adjustment on the hierarchical test label to obtain a test flow.
The operation priority adjustment has various adjustment modes, for example, the priority adjustment is performed on the ranking of the importance degree of the test cases in the test case set in advance according to the user, and for example, the user wants to test the RF case 2 first and then test the RF case 3; priority adjustment can also be performed according to the test following case identifications, for example, after the RF case 2,3 test following case identifications are provided, and the RF case 2 and the 3 test following case identifications are tested first.
The operation priority can be in a left-to-right mode, for example, in the hierarchical test label, the priority of the left side is higher than that of the right side, so that the test case adjacent to the left side is continuously tested after the test of the test case on the left side is completed.
Further, when testing is needed, the test cases can be called from the test case set in sequence according to the test flow to carry out automatic testing.
Fig. 3 is a functional block diagram of the automated test flow generation apparatus according to the present invention.
The automated test flow generation 100 of the present invention may be installed in an electronic device. According to the realized functions, the automatic test flow generation device may include a tag numbering module 101, a dictionary format conversion module 102, a dictionary hierarchy dividing module 103, and an operation priority adjustment 104. A module according to the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the label numbering module 101 is used for receiving a test case set input by a user client and a selected automatic test frame, inputting the test case set into the automatic test frame, and performing label numbering on the test case set to obtain a test case label set;
the dictionary format conversion module 102 is configured to perform missing value filling and dictionary format conversion on the test case tag set to obtain a dictionary test tag set;
a dictionary hierarchy dividing module 103, configured to perform dictionary hierarchy dividing on the dictionary test label set to obtain hierarchy test labels;
and an operation priority adjustment module 104, configured to perform operation priority adjustment on the hierarchical test label to obtain a test flow.
In detail, the specific implementation steps of each module of the automatic test flow generation device are as follows:
the text vectorization module 101 receives a test case set input by a user client and a selected automated test framework, inputs the test case set into the automated test framework, and executes the following operations in the automated test framework: and carrying out label numbering on the test case set to obtain the test case label set.
The automated testing Framework is a simulation environment for generating the test case suite, and the automated testing Framework can adopt the currently published test cases such as Tellurium, wtd, QTP and Robot Framework. Such as simulating mouse and keyboard clicking or operating the computer in the RobotFramework automatic test framework, simulating voice to enable the computer to receive and store, simulating automatic opening of a browser in the computer, simulating automatic shutdown of the computer and the like, thereby judging the correctness of the computer program in operation,
the test case set is further composed of different test cases and test sequences among the different test cases, for example, a user selects a Robot Framework as an automatic test frame and inputs the test case set shown in fig. 2, including 8 test cases and the test sequences of the 8 test cases, wherein RF is a shorthand of the Robot Framework automatic test frame, for example, RF case 1 represents a mouse and keyboard click simulation, RF case 2 represents a voice simulation for receiving by a computer, RF case 3 represents a browser in the computer which is simulated to be automatically opened, and the like.
The test case suite is input into the automated testing framework, and the main reason is that the automated testing framework needs to provide a simulation environment to debug the test case suite.
Specifically, the tag numbering is performed on the test case set to obtain the test case tag set, and the method includes: according to the test sequence of each test case in the test case set and a preset test branch division rule, performing test branch division on each test case to obtain one or more test branch groups, and performing test flow numbering on the test cases in the one or more test branch groups to obtain the test case label set.
The test flow number includes: test case set number, test branch group identification, test follow case identification.
Further, the test branch division rule and the test flow number can be exemplarily described according to fig. 2, for example, RF case 1 (representing simulating mouse and keyboard clicks) is tested first, and after the test of RF case 1 is completed, RF case 2 (simulating voice to be received by a computer) or RF case 3 (simulating automatic opening of a browser in a computer) is selectively tested, so that RF case 1 is in a first test branch group, and RF cases 2 and 3 are in a second test branch group, wherein the first test branch group only has RF case 1, so the test flow number of RF case 1 is fseq:001_ eseq:001_ tflag:1, RF cases 2 and 3 are in the second test branch group, and no indication is made between RF case 2 and RF case 3 as to who is tested first, so the test flow numbers of RF cases 2 and 3 are fseq:001_ eseq:002_ tflag:2, fseq:001 represents the number of the test case set, eseq represents the test branch group identifier, e.g., eseq:001 represents that RF case 1 is in the first test branch group, eseq:002 represents that RF case 2 and RF case 3 are both in the second test branch group, tflag:1 represents the test branch group number, e.g., tflag:1 represents that RF case 1 is in the first test branch group, and RF case 2 and RF case 3 are in the second test branch group. Furthermore, on the premise that the test flow number of the RF case 1 is fseq:001_ eseq:001, the RF case 2 and the RF case 3 are followed, so that the test flow number of the RF case 1 can be continuously increased to fseq:001_ eseq:001_ tflag:1_ sum:2, which means that after the RF case 1, the RF case 2 and the RF case 3 wait for testing, and sum indicates the test following case identifier, similarly, the test flow number of the RF case 2 is fseq:001_ eseq:002_ tflag:2_ sum:3, and the test flow number of the RF case 3 is fseq:001_ eseq:002_ tflag:2_ sum:1, and each test flow number is collected to obtain a test case tag set.
The dictionary format conversion module 102 performs missing value filling and dictionary format conversion on the test case tag set to obtain a dictionary test tag set.
As shown in fig. 2, if the test flow number of the generated RF case 7 is fseq:001_ eseq:003_ sum:0, because the tflag test branch group number is absent compared with the fseq:001_ eseq:002_ tflag:2_ sum:1, the missing value padding operation is performed in an intelligent padding mode according to a preset test flow number, and if the test flow number of the RF case 7 is fseq:001_ eseq:002_ sum:0, the missing value padding operation is performed to obtain fseq:001_ eseq:003_ tflag:3_ sum: 0.
The dictionary format conversion needs to be correspondingly converted according to the dependent programming language, for example, the dictionary form of the Python language is { key1: value, key2: value, key3: value, … }, and the dictionary form of the test flow number of the RF case 3 is { fseq:001, eseeq: 002, tflag:2, sum:1 }.
The dictionary level division module 103 performs dictionary level division on the dictionary test label set to obtain level test labels.
In detail, the dictionary hierarchy dividing module includes: and performing dictionary grammar check on the dictionary test label set to obtain a standard dictionary test label set, dividing the standard dictionary test label set into one or more groups of dictionary test label sets according to the test branch group number, selecting corresponding standard dictionary test labels from the standard dictionary test label set to fill the sub-dictionary test label set according to the test branch group identification and the test following case identification, and putting the filled sub-dictionary test label sets into a dictionary to obtain hierarchical test labels.
The dictionary syntax checking needs to be carried out according to syntax rules of a dependent programming language, for example, when the dictionary form of Python language is { key1: value, key2: value, key3: value, …. }, the test flow number of RF case 3 is converted into the dictionary form of { fseq:001eseq:002, tflag:2, sum:1} and a comma is lacked, so that commas are added between numbers and letters and are changed into { fseq:001, eseq:002, tflag:2, sum:1 }.
As described above, the dictionary test tags corresponding to RF case 1 are { fseq:001, eseq:001, tflag:1, sum:2}, the dictionary test tags corresponding to RF case 2 are { fseq:001, eseq:002, tflag:2, sum:3}, the dictionary test tags corresponding to RF case 3 are { fseq:001, eseq:002, tflag:2, sum:1}, and the dictionary test tags corresponding to RF case 7 are { fseq:001, eseq:003, tflag:3, sum:0}, the test branch group number tflag is 1,2,3 in total, so the number of groups of the sub-dictionary test tags is 3, further, the first group is: 001, 1,2, 001, 002, 2, 001, 002, 2, 1, 001, 002, 1, 001, 003, 1, 001, 0, …, further such as the second component dictionary testing tag { fseq:001, 002, 2, 1} and the third component { fseq:001, 003, 3, 0} …, further such as the second component dictionary testing tag { fseq:001, 002, 2, 1} and knowing that there are iseq: 001 and eseq:003 before 002 according to the testing branch set identifier, so that { fseq:001, 002, tflag:2, sum:1} is padded with fseq:001, eseq:003, 002, 001, 002, 001, 002, and 1, and then the other is padded with the other component in the testing branch set identifier, so that the sample is padded with { fseq:001, 002, 2, 001, 002, 2, eseq 003, tflag 3 and sum 0.
Furthermore, each sub-dictionary test label is placed in one dictionary to obtain a hierarchy test label, so that the hierarchy test label only needs to be operated subsequently.
The operation priority adjustment module 104 performs operation priority adjustment on the hierarchical test label to obtain a test flow.
The operation priority adjustment has various adjustment modes, for example, the priority adjustment is performed on the ranking of the importance degree of the test cases in the test case set in advance according to the user, and for example, the user wants to test the RF case 2 first and then test the RF case 3; priority adjustment can also be performed according to the test following case identifications, for example, after the RF case 2,3 test following case identifications are provided, and the RF case 2 and the 3 test following case identifications are tested first.
The operation priority can be in a left-to-right mode, for example, in the hierarchical test label, the priority of the left side is higher than that of the right side, so that the test case adjacent to the left side is continuously tested after the test of the test case on the left side is completed.
Further, when testing is needed, the test cases can be called from the test case set in sequence according to the test flow to carry out automatic testing.
Fig. 4 is a schematic structural diagram of an electronic device implementing the method for generating an automated test flow according to the present invention.
The electronic device 1 may comprise a processor 12, a memory 11 and a bus, and may further comprise a computer program stored in the memory 11 and executable on the processor 12.
The memory 11 includes at least one type of readable storage medium, which includes flash memory, removable hard disk, multimedia card, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may also be an external storage device of the electronic device 1 in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only to store application software installed in the electronic device 1 and various types of data, such as codes generated by an automated test procedure, but also to temporarily store data that has been output or is to be output.
The processor 12 may be formed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or may be formed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips. The processor 12 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device 1 by running or executing programs or modules (e.g., executing automatic test flow generation, etc.) stored in the memory 11 and calling data stored in the memory 11.
The bus may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 12 or the like.
Fig. 4 only shows an electronic device with components, and it will be understood by those skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard (Keyboard)), optionally, a standard wired interface, a wireless interface, optionally, in some embodiments, the Display may be an L ED Display, a liquid crystal Display, a touch-sensitive liquid crystal Display, an O L ED (Organic light-Emitting Diode) touch-sensitive device, etc.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The memory 11 in the electronic device 1 stores a request automated test flow generation 12 that is a combination of instructions that, when executed in the processor 10, may implement:
and receiving a test case set input by a user client and the selected automatic test framework.
Inputting the test case suite into the automated testing framework, and executing the following operations in the automated testing framework:
and carrying out label numbering on the test case set to obtain the test case label set.
And filling missing values and converting dictionary formats of the test case label set to obtain a dictionary test label set.
And performing dictionary hierarchy division on the dictionary test label set to obtain hierarchy test labels.
And adjusting the operation priority of the hierarchical test label to obtain a test flow.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An automated test flow generation method, the method comprising:
receiving a test case set input by a user client and a selected automatic test frame;
inputting the test case suite into the automated testing framework, and executing the following operations in the automated testing framework:
carrying out label numbering on the test case set to obtain a test case label set;
filling missing values and converting dictionary formats of the test case tag set to obtain a dictionary test tag set;
performing dictionary hierarchy division on the dictionary test label set to obtain hierarchy test labels;
and adjusting the operation priority of the hierarchical test label to obtain a test flow.
2. The automated test flow generation method of claim 1, wherein the set of test cases includes a plurality of test cases and a test order of the plurality of test cases.
3. The method of claim 2, wherein the label numbering the test case set to obtain a test case label set comprises:
according to the test sequence of the test cases in the test case set, using a preset test branch division rule to carry out test branch grouping on each test case to obtain one or more test branch groups;
and carrying out test flow numbering on the test cases in the one or more test branch groups to obtain the test case label set.
4. The automated test flow generation method of claim 3, wherein the test flow number comprises a test case set number, a test branch group identification, a test follow case identification.
5. The automated test flow generation method of claim 4, wherein the performing dictionary hierarchy partitioning on the dictionary test tag set to obtain hierarchical test tags comprises:
performing dictionary grammar check on the dictionary test tag set;
dividing the standard dictionary test tag set into one or more groups of dictionary test tag sets according to the test branch group numbers;
and selecting a corresponding standard dictionary test label from the standard dictionary test label set to fill the dictionary test label set to obtain a level test label according to the test branch group identification and the test following case identification.
6. The automated test flow generation method of any one of claims 1 to 5, wherein the automated test Framework comprises a Tellurium test Framework, a wtd test Framework, a QTP test Framework, a Robot Framework test Framework.
7. The automated test flow generation method of any of claims 1 to 5, further comprising:
and sequentially calling the test cases from the test case set according to the test flow to carry out automatic test.
8. An automated test flow generation apparatus, the apparatus comprising:
the label numbering module is used for receiving a test case set input by a user client and a selected automatic test framework, inputting the test case set into the automatic test framework, and executing the following operations in the automatic test framework: carrying out label numbering on the test case set to obtain a test case label set;
the dictionary format conversion module is used for filling missing values and converting dictionary formats of the test case tag set to obtain a dictionary test tag set;
the dictionary level dividing module is used for performing dictionary level dividing on the dictionary test label set to obtain level test labels;
and the operation priority adjusting module is used for adjusting the operation priority of the hierarchical test label to obtain a test flow.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the automated test flow generation method of any one of claims 1 to 7.
10. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, implements the automated test flow generation method according to any one of claims 1 to 7.
CN202010216919.XA 2020-03-25 2020-03-25 Automatic test flow generation method and device and computer readable storage medium Pending CN111400190A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010216919.XA CN111400190A (en) 2020-03-25 2020-03-25 Automatic test flow generation method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010216919.XA CN111400190A (en) 2020-03-25 2020-03-25 Automatic test flow generation method and device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111400190A true CN111400190A (en) 2020-07-10

Family

ID=71431207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010216919.XA Pending CN111400190A (en) 2020-03-25 2020-03-25 Automatic test flow generation method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111400190A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271373A (en) * 2023-11-21 2023-12-22 太平金融科技服务(上海)有限公司深圳分公司 Automatic construction method and device for test cases, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117271373A (en) * 2023-11-21 2023-12-22 太平金融科技服务(上海)有限公司深圳分公司 Automatic construction method and device for test cases, electronic equipment and storage medium
CN117271373B (en) * 2023-11-21 2024-03-01 太平金融科技服务(上海)有限公司深圳分公司 Automatic construction method and device for test cases, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN112085217A (en) Method, device, equipment and computer medium for deploying artificial intelligence service
CN112732567B (en) Mock data testing method and device based on ip, electronic equipment and storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN112631903A (en) Task testing method and device, electronic equipment and storage medium
CN107506190A (en) XML file amending method and device based on Spring frameworks
CN113377661A (en) Interface testing method and device, electronic equipment and storage medium
CN113238929A (en) Code testing method and device based on Mock data, electronic equipment and storage medium
CN115408399A (en) Blood relationship analysis method, device, equipment and storage medium based on SQL script
CN113158634A (en) Batch data reporting method, device, equipment and computer readable storage medium
CN114880238A (en) Mobile terminal interface testing method, device, equipment and storage medium
CN114398282A (en) Test script generation method, device, equipment and storage medium
CN114385497A (en) Test environment generation method and device, electronic equipment and storage medium
CN112541688B (en) Service data verification method and device, electronic equipment and computer storage medium
CN111400190A (en) Automatic test flow generation method and device and computer readable storage medium
CN113360139A (en) Integration method and device of front-end frame, electronic equipment and storage medium
CN111400191A (en) Webpage security testing method and device and computer readable storage medium
CN113051171B (en) Interface testing method, device, equipment and storage medium
CN115496166A (en) Multitasking method and device, electronic equipment and storage medium
CN114489861A (en) Target component conversion method and device, electronic equipment and readable storage medium
CN114896164A (en) Interface optimization method and device, electronic equipment and storage medium
CN115033489A (en) Code resource detection method and device, electronic equipment and storage medium
CN114461531A (en) Platform adaptability test method, device, equipment and storage medium of test case
CN114020414A (en) Symbiotic method and device of Android system and bottom layer Linux, electronic equipment and storage medium
CN113176993A (en) Case testing method and device, electronic equipment and storage medium
CN113505079A (en) Application program testing method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination