CN111181790A - Method, device, equipment and storage medium for quickly generating automatic test script - Google Patents

Method, device, equipment and storage medium for quickly generating automatic test script Download PDF

Info

Publication number
CN111181790A
CN111181790A CN201911416920.0A CN201911416920A CN111181790A CN 111181790 A CN111181790 A CN 111181790A CN 201911416920 A CN201911416920 A CN 201911416920A CN 111181790 A CN111181790 A CN 111181790A
Authority
CN
China
Prior art keywords
test
tested
parameter set
test script
equipment
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
CN201911416920.0A
Other languages
Chinese (zh)
Other versions
CN111181790B (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China 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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201911416920.0A priority Critical patent/CN111181790B/en
Publication of CN111181790A publication Critical patent/CN111181790A/en
Application granted granted Critical
Publication of CN111181790B publication Critical patent/CN111181790B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Automation & Control Theory (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to a method, a device, equipment and a storage medium for quickly generating an automatic test script, wherein the method for quickly generating the automatic test script is applied to a test control end and comprises the following steps: forming test configuration information according to the test configuration file; and generating an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result. By forming different test information according to the test configuration file and generating the automatic test script, the automatic test script can automatically realize test processes such as test environment initialization, test flow execution and the like, and saves the development time and the verification time of the test script.

Description

Method, device, equipment and storage medium for quickly generating automatic test script
Technical Field
The invention relates to the technical field of automatic testing, in particular to a method, a device, equipment and a storage medium for quickly generating an automatic test script.
Background
In order to improve the testing efficiency, most of the wireless communication digital equipment adopts automatic testing at present. Before the automatic test, an automatic test script needs to be developed, and because different devices have different working frequency bands, different test projects and different test methods, the automatic test script needs to be re-developed every time, which consumes a lot of labor and time.
Disclosure of Invention
The invention aims to overcome at least one defect (deficiency) of the prior art, and provides a method, a device, equipment and a storage medium for automatically and rapidly generating a test script, which can automatically realize test flows such as test environment initialization, test flow execution and the like according to loaded test configuration information, thereby saving the development time and verification time of the test script.
The technical scheme adopted by the invention is as follows:
a method for quickly generating an automatic test script is applied to a test control end and comprises the following steps:
forming test configuration information according to the test configuration file;
and generating an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result.
Test configuration information is formed according to the test configuration file and an automatic test script is generated, the automatic test script can automatically realize the control of test processes such as test environment initialization, test flow execution, test result processing and the like, and the development time and the verification time of the test script are saved.
Further, the test configuration file records one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set, and a result processing device parameter set.
By recording various parameter sets in the test configuration file, the generated automatic test script can realize the control of the process of sending the test control signal and the process of processing the test result in many aspects, thereby improving the test quality.
Further, forming test configuration information according to the test configuration file includes:
determining a current item to be detected;
and selecting one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set and a result processing device parameter set in the test configuration file to form test configuration information according to the requirement of the current item to be tested on the test configuration information.
According to the actual requirements of different items to be tested on the transmission of test control signals and/or the processing of test results, several parameter sets are selected and loaded from the test configuration file to generate an automatic test script, so that the parameter sets loaded in the test configuration file can be flexibly selected.
Further, when the device parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set are selected to form test configuration information, an automated test script is generated according to the test configuration information, so that the automated test script controls the signal source to send a test control signal to the device to be tested, including:
generating an automatic test script according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automatic test script controls a signal source to send a test control signal to equipment to be tested according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set;
when the result processing device parameter set is selected to form test configuration information, generating an automated test script according to the test configuration information, so that the automated test script controls the result processing device to process a test result, including:
and generating an automatic test script according to the result processing equipment parameter set so that the automatic test script controls the result processing equipment to process the test result according to the result processing equipment parameter set.
By selecting a parameter set from the test configuration file to form test configuration information for the corresponding parameter set, the generated automated test script may control the transmission of test control signals and/or control the processing of test results by the result processing device.
Further, generating an automated test script according to the device parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automated test script controls the signal source to send a test control signal to the device to be tested, including:
selecting a current task to be tested from a current project to be tested;
according to the to-be-tested equipment and/or the signal source and/or the initial environment requirement aimed at by the current to-be-tested task, selecting to-be-tested equipment parameters corresponding to the aimed to-be-tested equipment from the to-be-tested equipment parameter set, and/or selecting parameters of the aimed signal source from the signal source parameter set, and/or selecting parameters of the aimed initialization environment from the initialization environment parameter set, and generating an automatic test script according to the selected to-be-tested equipment parameters and/or the signal source parameters and/or the initialization environment parameters, so that the automatic test script controls the signal source to send a test control signal to the to-be-tested equipment according to the selected to-be-tested equipment parameters and/or the signal source parameters and/or the initialization environment parameters.
Corresponding parameters are selected from the corresponding parameter set through the equipment to be tested required to be tested by the current task to be tested and/or the signal source required to be controlled in the test and/or the initialization environment required to be set, so that an automatic test script is automatically generated to control the equipment to be tested, and the development time and the verification time of the test script are saved.
Further, generating an automated test script according to the result processing device parameters, so that the automated test script controls the result processing device to process the test result, including:
selecting a current task to be tested from a current project to be tested;
and according to the test result processing required by the current task to be tested, selecting the corresponding result processing equipment parameters of the required test result processing from the result processing equipment parameter set, and generating an automatic test script according to the selected result processing equipment parameters, so that the automatic test script controls the result processing equipment to perform the required test result processing on the test result according to the result processing equipment parameters.
The corresponding result equipment parameters are selected from the result processing equipment parameter set by processing the test result required by the current task to be tested, so that the test result is accurately processed, the test result processing efficiency is improved, and the verification time of the automatic test script is saved.
Further, the test configuration file also records at least one test task;
determining the current item to be tested, including:
and selecting at least one test task in the test configuration file to form a current project to be tested.
The plurality of test tasks are recorded in the test configuration file, and the required test tasks can be selected from the test configuration file to form the current to-be-tested item, so that the test tasks can be flexibly selected, and the to-be-tested item can be quickly formed according to the test requirements.
Further, after generating an automated test script according to the test configuration information, the method further includes:
and selecting the next task to be tested from the current project to be tested as the current task to be tested until all tasks to be tested in the current project to be tested are selected.
By selecting the next task to be tested from the current project to be tested as the current task to be tested, the automatic test script can be immediately generated according to the next task to be tested after the automatic test script of the current task to be tested is generated, the generation efficiency of the automatic test script is improved, and the time wasted due to the fact that the next task needs to be determined again after the automatic test script of the current task to be tested is generated is reduced.
An automatic test script rapid generation device is applied to a test control end and comprises:
the configuration acquisition module is used for forming test configuration information according to the test configuration file;
and the script generation module is used for generating an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result.
The configuration acquisition module forms test configuration information according to the test configuration file, and the script generation module generates an automatic test script according to the test configuration information, so that the control of test processes such as test environment initialization, test flow execution, test result processing and the like can be automatically realized, and the development time and the verification time of the test script are saved.
The computer equipment comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the automatic test script rapid generation method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the above-described automated test script rapid generation method.
Compared with the prior art, the invention has the beneficial effects that:
(1) according to the invention, the test configuration information is formed according to the test configuration file, the automatic test script can be rapidly generated through the test configuration information, when the test configuration needs to be changed, the test configuration information can be updated only by updating the test configuration file, the required automatic test script is generated, and the development time and the verification time of the test script are saved;
(2) the invention can select the parameter set required by the test from various parameter sets loaded in the test configuration file to form the test configuration information, and can select one or more test flows such as test environment initialization, test flow execution, test result processing and the like to be controlled according to the automatic test script generated by the test configuration information;
(3) the invention can also select parameters required by the test from the parameter set in the test configuration file to form the test configuration information, so that the automatic test script generated according to the test configuration information can pertinently control the test equipment oriented to the test, the signal source required to be controlled by the test and the test result equipment required by the test result processing.
Drawings
FIG. 1 is a diagram illustrating control of testing by an automated test script, in accordance with one embodiment of the present invention.
FIG. 2 is a flowchart of a method for fast generation of an automated test script according to an embodiment of the present invention.
FIG. 3 is a block diagram of an apparatus for fast generation of an automated test script according to an embodiment of the present invention.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
As shown in fig. 1, in an embodiment, an automated test script rapid generation method is provided, and is applied to a test control end, and includes: the test control end forms test configuration information according to the test configuration file;
and the test control end generates an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result.
The test control end can download the test configuration file from the server or locally acquire the test configuration file, form corresponding test configuration information according to the test configuration file, and then generate an automatic test script according to the test configuration information; the test control end sends a control command to the signal source by using the automatic test script, and controls the signal source to send a test control signal to the equipment to be tested so as to control test processes such as initializing a test environment, executing a test flow and the like; the device to be tested can return a test result to the test control end during and/or after the test flow is executed, and can also send the test result to the result processing device; and the test control end also processes the test result by using the automatic test script system result processing equipment so as to control the equipment to process the test result.
Test configuration information is formed according to the test configuration file and an automatic test script is generated, the automatic test script can automatically realize the control of test processes such as test environment initialization, test flow execution, test result processing and the like, and the development time and the verification time of the test script are saved.
In one embodiment, the test configuration file records one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set, and a result processing device parameter set.
The test configuration file records various parameter sets, the test control end forms corresponding test configuration information according to the parameter sets recorded in the test configuration file, and an automatic test script generated according to the corresponding test configuration information can realize multi-aspect control over the process of sending the test control signal and the process of processing the test result.
By recording various parameter sets in the test configuration file, the automatic test script generated by the test control end can realize multi-aspect control on the process of sending the test control signal and the process of processing the test result, thereby improving the test quality.
In a specific implementation process, the device parameter set to be tested may include a communication mode and a communication address of at least one device to be tested, and specifically, the communication mode of the device to be tested may include OMT communication, modulo direct communication, Telnet communication, serial port communication, and the like; the signal source parameter set may include identification information and a communication address of at least one signal source; the initialization environment parameter set may include a radio frequency signal switch state, an uplink attenuation value, a downlink attenuation value, an uplink diversity attenuation value, a center channel number, and the like.
In one embodiment, the forming, by the test control end, the test configuration information according to the test configuration file includes:
the test control end determines the current item to be tested;
and the test control end selects one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set and a result processing device parameter set in the test configuration file to form test configuration information according to the requirement of the current item to be tested on the test configuration information.
The test control end selects one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set and a result processing device parameter set in the test configuration file to form test configuration information according to the requirements of the selected current item to be tested on the test configuration information, and therefore the test control end can select and load several parameter sets from the test configuration file to generate an automatic test script according to the actual requirements of different items to be tested on test control signal sending and/or test result processing, and flexible selection of the parameter sets loaded in the test configuration file can be achieved.
In one embodiment, when the device parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set are selected to form test configuration information, the test control end generates an automated test script according to the test configuration information, so that the automated test script controls the signal source to send a test control signal to the device to be tested, including:
the test control end generates an automatic test script according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automatic test script controls a signal source to send a test control signal to the equipment to be tested according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set;
when the result processing device parameter set is selected to form test configuration information, the test control end generates an automatic test script according to the test configuration information, so that the automatic test script controls the result processing device to process a test result, including:
and the test control terminal generates an automatic test script according to the result processing equipment parameter set so that the automatic test script controls the result processing equipment to process the test result according to the result processing equipment parameter set.
In a specific implementation process, the test control end may select to control the sending of the test control signal or control the result processing device to process the test result or simultaneously control the sending of the test control signal and the result processing device to process the test result according to the difference of the parameter sets loaded in the selected configuration file. If the automatic test script needs to control the sending of the test control signal, specifically, when the signal source parameter is known, the parameter set that can be selected by the test control end is the device parameter set to be tested, and the generated automatic test script can control the known signal source to send the control signal to the corresponding device to be tested according to the device parameter set to be tested; when the parameters of the testing equipment are known, the parameter set which can be selected by the testing control end is a signal source parameter set, and the generated automatic testing script can control the corresponding signal source to send a testing control signal to the known testing equipment according to the signal source parameter set; when the parameters of the test equipment and the signal source are known, the parameter set which can be selected by the test control end is the initialization environment parameter set, and the generated automatic test script can control the known signal source to send a test control signal to the known equipment to be tested according to the initialization environment parameter set, so that the initialization environment of the equipment to be tested is realized. If the automatic test script needs to control the processing of the test result, and the parameter set that can be selected by the test control end is the result processing device parameter set, the generated automatic test script can control the processing of the test result in the result processing device according to the result processing device parameter set.
By selecting a parameter set from the test configuration file to form test configuration information for the corresponding parameter set, the generated automated test script may control the transmission of test control signals and/or control the processing of test results by the result processing device.
In one embodiment, the generating, by the test control end, an automated test script according to the device parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automated test script controls the signal source to send a test control signal to the device to be tested, includes:
the test control end selects a current task to be tested from the current project to be tested;
and the test control end selects the parameters of the equipment to be tested corresponding to the aimed equipment to be tested from the parameter set of the equipment to be tested according to the equipment to be tested and/or the signal source and/or the initial environment requirement aimed at by the current task to be tested, and/or selects the parameters of the aimed signal source from the parameter set of the signal source, and/or selects the aimed initialization environment parameters from the parameter set of the initialization environment, and generates an automatic test script according to the selected parameters of the equipment to be tested and/or the parameters of the signal source and/or the initialization environment parameters, so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested according to the selected parameters of the equipment to be tested and/or the parameters of the signal source and/or the initialization environment parameters.
Specifically, the test control end selects a current task to be tested from a current item to be tested, selects a parameter of the device to be tested corresponding to the device to be tested from a parameter set of the device to be tested according to the device to be tested corresponding to the current task to be tested, and/or selects a parameter of a corresponding signal source from a parameter set of the signal source according to a corresponding signal source to test the device to be tested, and/or selects a parameter of a corresponding initialization environment from an initialization environment according to an initialization environment required by the device to be tested to initialize the device to be tested, so that an automatic test script is generated according to the selected parameter, and the automatic test script can control the selected signal source to send a control signal to the device to be tested, and initialize the test environment of the device to be tested.
Corresponding parameters are selected from the corresponding parameter set through the equipment to be tested required to be tested by the current task to be tested and/or the signal source required to be controlled in the test and/or the initialization environment required to be set, so that an automatic test script is automatically generated to control the equipment to be tested, and the development time and the verification time of the test script are saved.
Specifically, if the parameter set selected by the test control end is a device parameter set to be tested, and the device parameter set to be tested has a plurality of device parameters to be tested corresponding to the devices to be tested, selecting corresponding device parameters to be tested in the device parameter set to be tested according to the devices to be tested to which the test is directed, and generating an automatic test script according to the selected device parameters to be tested; if the selected parameter set is a signal source parameter set which has signal source parameters corresponding to a plurality of signal sources, selecting corresponding signal source parameters in the signal source parameter set according to the signal source required to be controlled by the test, and generating an automatic test script according to the selected signal source parameters; if the selected parameter set is an initialization environment parameter set, and the initialization environment parameter set comprises a plurality of environment parameters, such as a radio frequency signal switch state, an uplink attenuation value, a downlink attenuation value, an uplink diversity attenuation value, a center channel number and the like, selecting the corresponding initialization environment parameter according to the initialization environment required by the test, and generating an automatic test script according to the selected initialization environment parameter.
In one embodiment, the step of generating, by the test control end, an automated test script according to the result processing device parameters to enable the automated test script to control the result processing device to process the test result includes:
the test control end selects a current task to be tested from the current project to be tested;
and the test control end processes the test result required by the current task to be tested, selects the corresponding result processing equipment parameter of the required test result processing from the result processing equipment parameter set, and generates an automatic test script according to the selected result processing equipment parameter, so that the automatic test script controls the result processing equipment to process the required test result according to the result processing equipment parameter.
Specifically, the test control end processes according to a test result required by a current task to be tested, selects corresponding result processing equipment parameters such as a PC parameter, a spectrometer parameter, a network analyzer parameter and the like from a result processing equipment parameter set loaded in a test configuration file, selects the PC parameter required by the PC to display from the result processing equipment parameter set if the test result required by the current task to be tested is processed into a PC (the PC can be the test control end or the other PC), and controls the test result to be displayed on the PC according to an automatic test script generated according to the selected PC parameter; if the test result required by the current task to be tested is processed into spectral analysis, selecting spectrometer parameters required by the spectral analysis from the result processing equipment parameter set, and controlling the test result to the spectrometer to perform the spectral analysis according to an automatic test script generated according to the selected spectrometer parameters; if the test result required by the current task to be tested is processed into network analysis, network analyzer parameters required by the network analysis are selected from the result processing equipment parameter set, and the test result can be controlled to the network analyzer for network analysis according to an automatic test script generated by the selected network analyzer parameters.
The corresponding result processing equipment parameters are selected from the result processing equipment parameter set by processing the test result required by the current task to be tested, so that the test result is accurately processed, the test result processing efficiency is improved, and the verification time of the automatic test script is saved.
In one embodiment, the test configuration file further records at least one test task;
the method for determining the current item to be tested by the test control terminal comprises the following steps:
and the test control end selects at least one test task in the test configuration file to form a current project to be tested.
The test control end selects the corresponding test task from the test configuration file according to the current actual test requirement to form the current item to be tested.
By recording a plurality of test tasks in the test configuration file, the test control end can select the required test tasks from the test configuration file to form the current to-be-tested item, so that the test tasks can be flexibly selected, and the to-be-tested item can be quickly formed according to the test requirements.
Specifically, the test tasks described in the test configuration file may include one or more of a maximum output power test, an ALC function test, a maximum gain test, a gain adjustment error test, an EVM/frequency error/transmission delay test, a spurious emission parameter test, a spectral emission parameter test, an in-band ripple test, and an out-of-band rejection test.
In one embodiment, after the test control end generates the automated test script according to the test configuration information, the method further includes:
and the test control end selects the next task to be tested from the current project to be tested as the current task to be tested until all tasks to be tested in the current project to be tested are selected.
Specifically, the test control end determines a current task to be tested from a current project to be tested, and selects a next task to be tested as the current task to be tested after an automatic test script is generated according to the current task to be tested, so that the automatic test script can be immediately generated according to the next task to be tested after the automatic test script of the current task to be tested is generated, the generation efficiency of the automatic test script is improved, and the time waste caused by the fact that the next task needs to be determined again after the automatic test script of the current task to be tested is generated is reduced.
As shown in fig. 2, a preferred embodiment of the method for rapidly generating an automated test script includes the following specific steps:
s1, acquiring a test configuration file from a server or a local place;
s2, determining a current item to be tested, and selecting one or more of a parameter set of equipment to be tested, a signal source parameter set, an initialization environment parameter set and a result processing equipment parameter set according to the requirement of the current item on test configuration information;
s3, selecting a current task to be tested from the current project to be tested, and selecting corresponding parameters from the selected parameter set according to the task to be tested:
if the selected parameter set is the parameter set of the equipment to be tested, selecting corresponding parameters of the equipment to be tested in the parameter set of the equipment to be tested according to the equipment to be tested for testing; if the selected parameter set is the signal source parameter set, selecting corresponding signal source parameters in the signal source parameter set according to a signal source required to be controlled by testing; if the selected parameter set is an initialization environment parameter set, selecting a corresponding initialization environment parameter according to an initialization environment required by the test; if the selected parameter set is a result processing equipment parameter set, selecting a corresponding result processing equipment parameter in the result processing equipment parameter set;
s4, generating an automatic test script according to the selected parameters so that the automatic test script controls a signal source to send a test control signal to the equipment to be tested according to the selected parameters and/or controls a result processing device to process the test result;
s5, judging whether the next task to be tested exists in the current project to be tested, if so, selecting the next task to be tested as the current task to be tested and returning to the step S3, and if not, ending the step.
As shown in fig. 3, based on the method for generating the automatic test script, in an embodiment, an automatic test script fast generation apparatus is further provided, which is applied to a test control end, and includes:
a configuration obtaining module 10, configured to form test configuration information according to the test configuration file;
and the script generating module 20 is configured to generate an automatic test script according to the test configuration information, so that the automatic test script controls the signal source to send a test control signal to the device to be tested and/or controls the result processing device to process the test result.
The test control end can download the test configuration file from the server or locally acquire the test configuration file, the configuration acquisition module 10 forms corresponding test configuration information according to the test configuration file, and the script generation module 20 generates an automatic test script according to the test configuration information; the automatic test script can control the signal source to send a test control signal to the device to be tested according to the content recorded in the test configuration file so as to control the test processes such as initializing a test environment, executing a test flow and the like, and can also control the result processing device to process the test result so as to control the device to process the test result.
Test configuration information is formed according to the test configuration file and an automatic test script is generated, the automatic test script can automatically realize the control of test processes such as test environment initialization, test flow execution, test result processing and the like, and the development time and the verification time of the test script are saved.
In one embodiment, the test configuration file records one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set, and a result processing device parameter set.
The test configuration file records various parameter sets, the configuration acquisition module 10 forms corresponding test configuration information according to the parameter sets recorded in the test configuration file, and the script generation module 20 generates an automatic test script according to the corresponding test configuration information, so that the process of sending the test control signal and the process of processing the test result can be controlled in various aspects.
By recording various parameter sets in the test configuration file, the generated automatic test script can realize the control of the process of sending the test control signal and the process of processing the test result in many aspects, thereby improving the test quality.
In one embodiment, the configuration acquisition module 10 includes:
an item determining unit 11, configured to determine a current item to be tested;
a parameter set selecting unit 12, configured to select, according to a requirement of the current item to be tested for the test configuration information, one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set, and a result processing device parameter set in the test configuration file to form the test configuration information.
According to the requirements of the selected current item to be tested on the test configuration information, one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set and a result processing device parameter set in the test configuration file are selected to form the test configuration information, so that several parameter sets can be selected and loaded from the test configuration file to generate an automatic test script according to the actual requirements of different items to be tested on test control signal transmission and/or test result processing, and the parameter sets loaded in the test configuration file can be flexibly selected.
In one embodiment, the configuration acquisition module 10 further includes:
the task determination unit 13 is configured to select a current task to be tested from current items to be tested;
a parameter selecting unit 14, configured to select, according to a device to be tested and/or a signal source and/or an initial environment requirement corresponding to the current task to be tested, a device parameter corresponding to the targeted device to be tested from the device to be tested parameter set, and/or select a parameter of the targeted signal source from the signal source parameter set, and/or select a parameter of the targeted initialization environment from the initialization environment parameter set, and/or select the required test result from the result processing device parameter set to process the corresponding result processing device parameter;
the script generating module 20 is specifically configured to generate an automated test script according to the selected parameters of the device to be tested and/or the signal source parameters and/or the initialization environment parameters and/or the result processing device parameters, so that the automated test script sends a test control signal to the device to be tested according to the selected parameters of the device to be tested and/or the signal source parameters and/or the initialization environment parameters and/or the control signal source, and/or so that the automated test script controls the result processing device to process a test result according to the selected parameters of the result processing device.
The parameters in the parameter set can be flexibly selected according to different test tasks, and the automatic test script generated according to the selected parameters can control the test equipment, the signal source required to be controlled by the test and the test result equipment required by the test result processing in a targeted manner.
In one embodiment, the test configuration file further records at least one test task;
the item determining unit 11 is specifically configured to select at least one of the test tasks in the test configuration file to form a current item to be tested.
The plurality of test tasks are recorded in the test configuration file, and the required test tasks can be selected from the test configuration file to form the current to-be-tested item, so that the test tasks can be flexibly selected, and the to-be-tested item can be quickly formed according to the test requirements.
In an embodiment, the task determining unit 13 is further configured to select a next task to be tested from the current project to be tested as the current task to be tested after an automated test script is generated according to the test configuration information, until all tasks to be tested in the current project to be tested are selected.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the above automatic test script fast generation method when executing the computer program.
In one embodiment, a computer-readable storage medium is further provided, on which a computer program is stored, which, when executed by a processor, implements the above-described automated test script rapid generation method.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.

Claims (11)

1. A method for quickly generating an automatic test script is applied to a test control end and is characterized by comprising the following steps:
forming test configuration information according to the test configuration file;
and generating an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result.
2. The method of claim 1, wherein the test configuration file records one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set, and a result processing device parameter set.
3. The method for rapidly generating an automated test script according to claim 2, wherein forming test configuration information according to the test configuration file comprises:
determining a current item to be detected;
and selecting one or more of a device parameter set to be tested, a signal source parameter set, an initialization environment parameter set and a result processing device parameter set in the test configuration file to form test configuration information according to the requirement of the current item to be tested on the test configuration information.
4. The method for rapid generation of an automated test script according to claim 3,
when the parameter set of the device to be tested and/or the parameter set of the signal source and/or the parameter set of the initialization environment are selected to form test configuration information, an automatic test script is generated according to the test configuration information, so that the automatic test script controls the signal source to send a test control signal to the device to be tested, and the method comprises the following steps:
generating an automatic test script according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automatic test script controls a signal source to send a test control signal to equipment to be tested according to the equipment parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set;
when the result processing device parameter set is selected to form test configuration information, generating an automated test script according to the test configuration information, so that the automated test script controls the result processing device to process a test result, including:
and generating an automatic test script according to the result processing equipment parameter set so that the automatic test script controls the result processing equipment to process the test result according to the result processing equipment parameter set.
5. The method for rapidly generating an automated test script according to claim 4, wherein generating an automated test script according to the device parameter set to be tested and/or the signal source parameter set and/or the initialization environment parameter set, so that the automated test script controls a signal source to send a test control signal to a device to be tested, comprises:
selecting a current task to be tested from a current project to be tested;
according to the equipment to be tested and/or the signal source and/or the initial environment requirement corresponding to the current task to be tested, selecting the equipment to be tested corresponding to the equipment to be tested from the equipment to be tested parameter set, and/or selecting the parameters of the signal source to be tested from the signal source parameter set, and/or selecting the initialization environment parameters to be tested from the initialization environment parameter set, and generating an automatic test script according to the selected equipment to be tested and/or the signal source parameters and/or the initialization environment parameters, so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested according to the selected equipment to be tested and/or the signal source parameters and/or the initialization environment parameters.
6. The method for rapidly generating the automated test script according to claim 4, wherein the step of generating the automated test script according to the result processing device parameters so that the automated test script controls the result processing device to process the test result comprises:
selecting a current task to be tested from a current project to be tested;
and according to the test result processing required by the current task to be tested, selecting the corresponding result processing equipment parameters of the required test result processing from the result processing equipment parameter set, and generating an automatic test script according to the selected result processing equipment parameters, so that the automatic test script controls the result processing equipment to perform the required test result processing on the test result according to the result processing equipment parameters.
7. The method for rapidly generating an automated test script according to any one of claims 3 to 6, wherein the test configuration file further records at least one test task;
determining the current item to be tested, including:
and selecting at least one test task in the test configuration file to form a current project to be tested.
8. The method for rapidly generating an automated test script according to claim 7, after generating the automated test script according to the test configuration information, further comprising:
and selecting the next task to be tested from the current project to be tested as the current task to be tested until all tasks to be tested in the current project to be tested are selected.
9. The utility model provides an automatic change test script and generate device fast, is applied to test control end, its characterized in that includes:
the configuration acquisition module is used for forming test configuration information according to the test configuration file;
and the script generation module is used for generating an automatic test script according to the test configuration information so that the automatic test script controls the signal source to send a test control signal to the equipment to be tested and/or controls the result processing equipment to process the test result.
10. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the automated test script fast generation method of any one of claims 1 to 8.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the automated test script rapid generation method according to any one of claims 1 to 8.
CN201911416920.0A 2019-12-31 2019-12-31 Method, device, equipment and storage medium for quickly generating automatic test script Active CN111181790B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911416920.0A CN111181790B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for quickly generating automatic test script

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911416920.0A CN111181790B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for quickly generating automatic test script

Publications (2)

Publication Number Publication Date
CN111181790A true CN111181790A (en) 2020-05-19
CN111181790B CN111181790B (en) 2022-11-01

Family

ID=70648987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911416920.0A Active CN111181790B (en) 2019-12-31 2019-12-31 Method, device, equipment and storage medium for quickly generating automatic test script

Country Status (1)

Country Link
CN (1) CN111181790B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114466394A (en) * 2021-12-24 2022-05-10 深圳市广和通无线股份有限公司 Carrier aggregation test method, module, equipment and storage medium
CN114828061A (en) * 2021-01-22 2022-07-29 成都鼎桥通信技术有限公司 Radio frequency test method, device, equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
CN103987078A (en) * 2014-04-04 2014-08-13 京信通信系统(中国)有限公司 Base station physical layer test method and system
KR20190113050A (en) * 2018-03-27 2019-10-08 한국과학기술원 Method and system for automatic configuration test case generation of mobile application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014061A (en) * 2007-01-26 2007-08-08 华为技术有限公司 Method and apparatus for generating testing script and testing method and apparatus and system
CN103987078A (en) * 2014-04-04 2014-08-13 京信通信系统(中国)有限公司 Base station physical layer test method and system
KR20190113050A (en) * 2018-03-27 2019-10-08 한국과학기술원 Method and system for automatic configuration test case generation of mobile application

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114828061A (en) * 2021-01-22 2022-07-29 成都鼎桥通信技术有限公司 Radio frequency test method, device, equipment and readable storage medium
CN114828061B (en) * 2021-01-22 2023-10-03 成都鼎桥通信技术有限公司 Radio frequency test method, device, equipment and readable storage medium
CN114466394A (en) * 2021-12-24 2022-05-10 深圳市广和通无线股份有限公司 Carrier aggregation test method, module, equipment and storage medium

Also Published As

Publication number Publication date
CN111181790B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US9532246B2 (en) Method and a test system for automatically configuring a tester
CN104349090B (en) Tune the system and method for audio processing feature
CN111181790B (en) Method, device, equipment and storage medium for quickly generating automatic test script
JP5213982B2 (en) Mobile communication terminal test system, analysis method, and analysis program
CN104978263A (en) Mobile terminal application program test method and mobile terminal application program test system
CN108598013B (en) Wafer testing method
CN106888060B (en) Anti-interference test method and system for wireless communication module
CN114238071A (en) DCS software automatic verification system and method based on digital simulation technology
CN106776350A (en) The accurate method of testing and device of a kind of program
CN111245962B (en) Method and system for interacting with Internet of things equipment and Internet of things cloud platform
CN111698709A (en) Method, system, medium, and electronic device for testing communication function of wireless module
CN111209188A (en) Testing method and device for distributed storage system
CN105786694A (en) Automatic test system and method, and mobile terminals
EP3503438B1 (en) Test arrangement and test method
CN111812445B (en) Intelligent capacitor error correction method and device, computer equipment and storage medium
CN115967660A (en) Method and device for testing CAN protocol conversion, terminal equipment and storage medium
CN114785432A (en) Electronic product testing method and system
CN113010742A (en) Data processing method, device, equipment and medium
JP5426638B2 (en) Mobile communication terminal test system and test method
US20150138990A1 (en) Assistance device, assistance method and program
CN106354626A (en) Application test and method, system and device realizing application test in multiple terminals
CN113938943B (en) Method, system, equipment and medium for testing coexistence performance of wireless communication
CN113645655B (en) Distribution network testing method, device and system for internet of things (IoT) module and terminal
CN110838951A (en) Network equipment testing method and system
CN107102938B (en) Test script updating 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
CB02 Change of applicant information

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: COMBA TELECOM SYSTEMS (CHINA) Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant