CN111736815B - Modularized development tool, system and method for test file script - Google Patents
Modularized development tool, system and method for test file script Download PDFInfo
- Publication number
- CN111736815B CN111736815B CN202010597332.8A CN202010597332A CN111736815B CN 111736815 B CN111736815 B CN 111736815B CN 202010597332 A CN202010597332 A CN 202010597332A CN 111736815 B CN111736815 B CN 111736815B
- Authority
- CN
- China
- Prior art keywords
- script
- test
- test file
- file
- parameter
- 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.)
- Active
Links
- 238000013515 script Methods 0.000 title claims abstract description 117
- 238000012360 testing method Methods 0.000 title claims abstract description 100
- 238000011161 development Methods 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000004458 analytical method Methods 0.000 claims abstract description 6
- 238000007405 data analysis Methods 0.000 claims abstract description 4
- 230000006870 function Effects 0.000 claims description 17
- 230000008569 process Effects 0.000 claims description 8
- 230000000007 visual effect Effects 0.000 abstract description 7
- 238000010586 diagram Methods 0.000 description 9
- 230000001360 synchronised effect Effects 0.000 description 6
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a test file script modularized development tool, a system and a method, comprising the following steps: the data acquisition module is used for acquiring script files comprising key item information; the data analysis module is used for analyzing the script file and acquiring key item information; the parameter configuration interface generation module is used for generating a parameter configuration interface according to the key item information obtained through analysis and obtaining specific configuration parameters; the test file script generation module is used for generating a complete script test file by utilizing the specific configuration parameters and sending the complete script test file to the test equipment for script test. According to the modularized development tool for the test file script, an automatic visual point screen test script development scheme is realized to replace the traditional manual script writing.
Description
Technical Field
The invention belongs to the field of script testing, and particularly relates to a test file script modularized development tool, a test file script modularized development system and a test file script modularized development method.
Background
In the existing script test, taking a dot screen test flow as an example, different scripts are required to be written for a signal generator to use according to parameters such as the model, the size and the line interface of a screen, the signal type, the signal bit number, the power supply voltage and the like of the screen. The traditional solution is to write different point screen scripts directly by script developers to adapt to different point screen flows. The traditional method requires script developers to directly read and modify the scripts, and a large number of parameters are not intuitively modified in the script file, which may cause modification errors and affect production efficiency.
As shown in fig. 1, the existing solution is to obtain all relevant parameters of the dot screen in advance, and the script developer re-writes the script to cope with different requirements. The whole flow is realized through text editing of the script, the configuration of the required parameters is not visual enough, and the method is not flexible when the requirements change. After script editing is completed, the script still needs to be manually copied to equipment, the automation degree is not high, and the production efficiency is affected.
Disclosure of Invention
Aiming at the defects or improvement demands of the prior art, the invention provides a modularized development tool, a modularized development system and a modularized development method for a test file script, which aim to realize an automatic and visual dot screen test script development scheme to replace the traditional manual script writing.
To achieve the above object, according to one aspect of the present invention, there is provided a test file script modular development tool comprising:
The data acquisition module is used for acquiring script files comprising key item information;
The data analysis module is used for analyzing the script file and acquiring key item information;
The parameter configuration interface generation module is used for generating a parameter configuration interface according to the key item information obtained through analysis and obtaining specific configuration parameters;
The test file script generation module is used for generating a complete script test file by utilizing the specific configuration parameters and sending the complete script test file to the test equipment for script test.
Optionally, the script file is a test file script template or a generated test file script.
Optionally, the key entry information includes one or more of a parameter name, a name of a control flag to be generated, an inter-control association rule, and a parameter configuration threshold.
Optionally, the generating process of the parameter configuration interface specifically includes:
And generating a corresponding control according to the value of the control mark name to be generated, and generating the parameter configuration interface by utilizing the corresponding control and the association rule between the controls.
Optionally, the development tool further comprises a script public library, and the generation process of the complete script test file comprises the following steps:
and calling the basic function of the script public library by using the function name in the specific configuration parameters.
Optionally, the parameter configuration interface includes one or more of a text box, a drop down box, a selection box, and a chart.
The invention also provides a test system which comprises the test file script modularized development tool and a test control module, wherein the test control module is used for controlling test equipment to execute script test files.
Optionally, the system further comprises a one-key issuing module for implementing one-key issuing of the script test file.
The invention also comprises a test file script modularization development method, which comprises the following steps:
Acquiring a script file comprising key item information;
analyzing the script file and acquiring key item information;
Generating a parameter configuration interface according to the analyzed key item information, and acquiring specific configuration parameters;
and generating a complete script test file by using the specific configuration parameters, and sending the complete script test file to test equipment for script test.
Optionally, acquiring the specific configuration parameter includes:
timing sequence and signal related parameter configuration, and judging whether the input program name and the parameter input are legal;
configuring pictures and related functions, and judging whether the resolution of the pictures is matched with the Timing configuration and whether the parameter input is legal or not;
Power time sequence configuration and judging whether parameter input is legal or not.
In general, the above technical solutions conceived by the present invention have the following beneficial effects compared with the prior art:
According to the modularized development tool, system and method for the test file script, disclosed by the invention, a user configures relevant parameters of a point screen through a visual interface, and a recope script is automatically generated for the point screen of equipment.
Drawings
FIG. 1 is a schematic diagram of a prior art script execution method;
FIG. 2 is a schematic diagram of one specific implementation of a test file script modular development tool in accordance with an embodiment of the present invention;
FIG. 3 is a schematic diagram of a second specific implementation of a test file script modular development tool in accordance with an embodiment of the present invention;
FIG. 4 is a schematic diagram of a third specific implementation of a test file script modular development tool in accordance with an embodiment of the present invention;
FIG. 5 is a flow chart of a one-touch down execution script test according to an embodiment of the present invention;
Fig. 6 is a schematic diagram of a parameter configuration process according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
In addition, the technical features of the embodiments of the present invention described below may be combined with each other as long as they do not collide with each other. The present invention will be described in further detail with reference to the following embodiments.
FIG. 2 is a schematic diagram of one implementation of a test file script modular development tool in accordance with an embodiment of the present invention. As shown in FIG. 2, the present invention provides a test file script modular development tool comprising:
The data acquisition module is used for acquiring script files comprising key item information;
The data analysis module is used for analyzing the script file and acquiring key item information;
The parameter configuration interface generation module is used for generating a parameter configuration interface according to the key item information obtained through analysis and obtaining specific configuration parameters;
The test file script generation module is used for generating a complete script test file by utilizing the specific configuration parameters and sending the complete script test file to the test equipment for script test.
The script file is a test file script template or a generated test file script. Preferably, a standardized script can be used as a template, a visual parameter configuration wizard interface can be dynamically generated through code analysis script text, and a user can automatically generate a complete test script file through configuration and modification of required parameters.
FIG. 3 is a schematic diagram of a second specific implementation of a test file script modular development tool in accordance with an embodiment of the present invention. As another preferred approach, as shown in FIG. 3, the generation script may be modified again, and clicking on the preview button may dynamically generate the same visual configuration interface as the previous parameter configuration. The user configuration information of the test file of the record (test program) is stored in the cache file, when the user needs to modify the previous configuration parameters, the parameter configuration interface consistent with the previous configuration can be opened again, and the test file is regenerated after the parameters are modified.
Preferably, the key entry information includes one or more of a parameter name, a name of a control flag to be generated, an inter-control association rule, and a parameter configuration threshold. Preferably, the generating process of the parameter configuration interface specifically includes:
And generating a corresponding control according to the value of the control mark name to be generated, and generating the parameter configuration interface by utilizing the corresponding control and the association rule between the controls. And by writing script analysis codes, parameter configuration interfaces such as text boxes, drop-down boxes, selection boxes, charts and the like are generated by taking parameter names, control mark names to be generated, association rules among controls, parameter configuration ranges and the like in template files as keywords. The control to be generated comprises a text editing box, a drop-down box, a single selection box and the like, and different controls can be generated according to the value of the mark name and laid out in the interface; meanwhile, the controls are associated with each other, for example, link (link) parameters have four values (1, 2,4 and 8) which respectively correspond to linkorder (linkorder and associated instructions such as 1, 12, 21, 1234, 4321, 1243 and 12345678), and a linkorder drop-down frame value is required to be correspondingly generated in an interface according to the link values; the parameter configuration range is generally a positive integer, and user input can be detected and controlled through a custom control and a regular expression, so that parameter correctness and system safety are ensured. The control of the parameter configuration interface is realized by calling corresponding control of qt (c++ encapsulation cross-platform interface library) through code logic according to the content of the script file.
FIG. 4 is a schematic diagram of a third implementation of a test file script modular development tool in accordance with an embodiment of the present invention. As shown in fig. 4, as a preferred manner, the development tool further includes a script public library, and the generation process of the complete script test file includes:
and calling the basic function of the script public library by using the function name in the specific configuration parameters. The public library mainly comprises basic functions such as a string-to-table function (one type of database control) and the like; the dot screen basic flow control function, such as an initialization function, a picture display function and the like, is packaged by script functions to realize code multiplexing. The interface configuration parameters can be used as local variables and global variables of the function.
The invention also provides a test system which comprises the test file script modularized development tool and a test control module, wherein the test control module is used for controlling test equipment to execute script test files.
FIG. 5 is a flow chart of a one-touch down execution script test according to an embodiment of the present invention. As shown in FIG. 5, as a preferred embodiment, the system further comprises a one-key delivery module for implementing one-key delivery of the script test file. The upper computer software edits the test file through an IDE (INTEGRATED DEVELOPMENT ENVIRONMENT ) embedded in the application program, forms a complete record test file through a parameter configuration interface, and enables a user to select to send the test file to the configured and connected test equipment through a right key folder, and the upper software operates and controls script execution to complete a screen pointing test flow.
The invention also comprises a test file script modularization development method, which comprises the following steps:
Acquiring a script file comprising key item information;
analyzing the script file and acquiring key item information;
Generating a parameter configuration interface according to the analyzed key item information, and acquiring specific configuration parameters;
and generating a complete script test file by using the specific configuration parameters, and sending the complete script test file to test equipment for script test.
Fig. 6 is a schematic diagram of a parameter configuration process according to an embodiment of the present invention. As shown in fig. 6, taking the test device as an example of a point screen device, a user may be guided to perform a parameter configuration flow through a guide-type visual interface, where obtaining specific configuration parameters includes:
timing sequence and signal related parameter configuration, and judging whether the input program name and the parameter input are legal;
configuring pictures and related functions, and judging whether the resolution of the pictures is matched with the Timing configuration and whether the parameter input is legal or not;
Power time sequence configuration and judging whether parameter input is legal or not.
The Timing sequence mainly sets related configuration of the screen display picture, and mainly comprises the following steps: horizontal effective time sequence (setting horizontal resolution), vertical effective time sequence (setting vertical resolution), horizontal synchronous signal pulse width, horizontal synchronous signal front shoulder, horizontal synchronous signal back shoulder, vertical synchronous signal pulse width, vertical synchronous signal front shoulder and vertical synchronous signal back shoulder. Wherein the screen controller transmits a high level pulse (pulse width is the pulse width of the horizontal synchronization signal) indicating that the information behind the driver is one line of information. The line of information is then started, which includes three parts: horizontal synchronization signal front shoulder + active line information + horizontal synchronization signal back shoulder. Wherein, the front shoulder and the back shoulder belong to time sequence information (related to a specific screen), and the effective row information is transverse resolution. One row comprises four parts: horizontal synchronization signal pulse width + horizontal synchronization signal front shoulder + effective line information + horizontal synchronization signal back shoulder. The signal related parameters are related parameters such as bit (how many bits are stored), lane (number of signal channels), LINK (signal communication mode) and the like, and the different screen interface types such as MIPI (Mobile Industry Processor Interface ), LVDS (Low-Voltage DIFFERENTIAL SIGNALING, low Voltage differential Signal), EDP (Embedded DisplayPort, a digital interface for notebook and tablet computer) and the like are set for different screen interface types. The picture and picture cutting function configuration is to select pictures with different resolution formats for display when the screen is lighted. The Power time sequence configuration mainly sets the switching Power voltage time sequence of the screen module, and mainly comprises voltage value configuration and switching Power sequence (time sequence).
A computer readable medium storing a computer program executable by a terminal device, which when run on the terminal device causes the terminal device to perform the steps of the above method.
A terminal device comprising at least one processing unit and at least one memory unit, wherein the memory unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the steps of the above method.
It will be readily appreciated by those skilled in the art that the foregoing description is merely a preferred embodiment of the invention and is not intended to limit the invention, but any modifications, equivalents, improvements or alternatives falling within the spirit and principles of the invention are intended to be included within the scope of the invention.
Claims (9)
1. The utility model provides a test file script modularization development tool, is applied to some screen test flows, which is characterized in that includes:
The data acquisition module is used for acquiring script files comprising key item information;
The data analysis module is used for analyzing the script file and acquiring key item information;
The parameter configuration interface generation module is used for generating a parameter configuration interface according to the key item information obtained through analysis and obtaining specific configuration parameters;
The test file script generation module is used for generating a complete script test file by utilizing specific configuration parameters;
the generation process of the parameter configuration interface specifically comprises the following steps:
And generating a corresponding control according to the value of the control mark name to be generated, and generating the parameter configuration interface by utilizing the corresponding control and the association rule between the controls.
2. The modular development tool of test file scripts of claim 1, wherein the script files are test file script templates or generated test file scripts.
3. The test file script modular development tool of claim 1 wherein the key entry information comprises one or more of a parameter name, a to-be-generated control flag name, an inter-control association rule, and a parameter configuration threshold.
4. A test file script modular development tool as in any of claims 1-3 wherein the development tool further comprises a script public library, the generation of the complete script test file comprising:
and calling a basic function of the script public library by using the function name in the specific configuration parameter.
5. A test file script modular development tool as in any of claims 1-3 wherein the parameter configuration interface comprises one or more of a text box, a drop down box, a selection box, and a chart.
6. A test system comprising the test file script modular development tool of any of claims 1-5 and a test control module for controlling a test device to execute a script test file.
7. The test system of claim 6, wherein the system further comprises a push-to-dispatch module for implementing push-to-dispatch of the script test file.
8. A modular development method of test file scripts is applied to a point screen test flow and is characterized by comprising the following steps:
Acquiring a script file comprising key item information;
analyzing the script file and acquiring key item information;
Generating a parameter configuration interface according to the analyzed key item information, and acquiring specific configuration parameters;
Generating a complete script test file by using specific configuration parameters;
the generation process of the parameter configuration interface specifically comprises the following steps:
And generating a corresponding control according to the value of the control mark name to be generated, and generating the parameter configuration interface by utilizing the corresponding control and the association rule between the controls.
9. The method for modular development of test file scripts of claim 8, wherein obtaining specific configuration parameters comprises:
timing sequence and signal related parameter configuration, and judging whether the input program name and the parameter input are legal;
configuring pictures and related functions, and judging whether the resolution of the pictures is matched with the Timing configuration and whether the parameter input is legal or not;
Power time sequence configuration and judging whether parameter input is legal or not.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010597332.8A CN111736815B (en) | 2020-06-28 | 2020-06-28 | Modularized development tool, system and method for test file script |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010597332.8A CN111736815B (en) | 2020-06-28 | 2020-06-28 | Modularized development tool, system and method for test file script |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111736815A CN111736815A (en) | 2020-10-02 |
CN111736815B true CN111736815B (en) | 2024-07-09 |
Family
ID=72651367
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010597332.8A Active CN111736815B (en) | 2020-06-28 | 2020-06-28 | Modularized development tool, system and method for test file script |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111736815B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113658532A (en) * | 2021-07-08 | 2021-11-16 | 惠州高盛达智显科技有限公司 | Screen touch method and system of MIPI (Mobile industry processor interface) screen |
CN116648689A (en) * | 2021-12-22 | 2023-08-25 | 华为技术有限公司 | Method and device for generating automation script |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888641A (en) * | 2019-11-15 | 2020-03-17 | 深圳市宏电技术股份有限公司 | Automatic script generation method and device, server and storage medium |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100514296C (en) * | 2003-07-01 | 2009-07-15 | 华为技术有限公司 | Automation emulation method and system |
CN100525302C (en) * | 2005-02-06 | 2009-08-05 | 华为技术有限公司 | Script generating device based on assembly multiplexing, and method therefor |
CN101025686A (en) * | 2007-03-22 | 2007-08-29 | 中兴通讯股份有限公司 | Automation test system and test script generating and operating method |
US20100218168A1 (en) * | 2009-02-23 | 2010-08-26 | Gonzales Ii Jesus Orlando | System and Method for Generating a Test Environment Script File |
CN103268226B (en) * | 2013-05-17 | 2016-07-06 | 瑞斯康达科技发展股份有限公司 | A kind of test script file generates method and device |
CN105491038B (en) * | 2015-12-07 | 2019-01-08 | 高新兴科技集团股份有限公司 | A kind of intelligent equipment protocol analytic method |
CN106326121A (en) * | 2016-08-22 | 2017-01-11 | 上海亿账通互联网科技有限公司 | Method for automatically generating test script and terminal |
US11436128B2 (en) * | 2018-10-09 | 2022-09-06 | Charter Communications Operating, Llc | System and computer implemented method for generating test scripts |
CN110175117A (en) * | 2019-05-06 | 2019-08-27 | 珠海全志科技股份有限公司 | Test method, system, device, terminal and readable storage medium storing program for executing |
CN110377510B (en) * | 2019-07-02 | 2022-11-01 | 武汉精立电子技术有限公司 | Control device and system of module detection equipment based on embedded system |
CN110543300B (en) * | 2019-08-20 | 2023-08-22 | 延锋伟世通电子科技(南京)有限公司 | Automatic generation method and tool for automatic test script of automobile instrument |
-
2020
- 2020-06-28 CN CN202010597332.8A patent/CN111736815B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110888641A (en) * | 2019-11-15 | 2020-03-17 | 深圳市宏电技术股份有限公司 | Automatic script generation method and device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111736815A (en) | 2020-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109086199B (en) | Method, terminal and storage medium for automatically generating test script | |
CN104461855B (en) | A kind of Web automated testing method, system and device | |
US6871331B1 (en) | Combined waveform and data entry apparatus and method for facilitating fast behavioral verification of digital hardware designs | |
CN111736815B (en) | Modularized development tool, system and method for test file script | |
CN110968294B (en) | Business domain model establishing system and method | |
CN111881662A (en) | Form generation method, device, processing equipment and storage medium | |
CN103778201A (en) | Large-screen visualization display system and method based on procedural model configuration | |
CN112364496B (en) | Avionics simulation panel generation system based on HTML5 and VUE technologies | |
CN111581082B (en) | Vehicle-mounted controller test script generation device and method | |
CN109857670A (en) | A kind of test report automatic generation method based on common template | |
CN103617496A (en) | Informatization report automatic generating method and system | |
CN109933770A (en) | A kind of test report generation method, system and electronic equipment and storage medium | |
CN108388753B (en) | Method, device and system for designing SIS cabinet wiring and storage medium | |
CN115688675A (en) | Method for flexibly checking and correcting circuit schematic diagram parameters on line | |
CN104375814A (en) | Generation method and device of an interface document | |
CN104298705A (en) | Converting method of relational data and unstructured data | |
CN110659197A (en) | Application test case generation method and device and software test system | |
WO2013112388A1 (en) | Graphical representation of an order of operations | |
CN111124380A (en) | Front-end code generation method | |
CN111611176B (en) | Automatic generation method, system and medium for universal interface coverage rate model verification environment | |
CN109634215B (en) | Nuclear power plant operation procedure design method based on planar graph coding technology | |
CN109614143B (en) | Development method for automatically generating fault flow chart in IETM browser | |
CN111401028A (en) | Automatic comparison method and device for RPS software version of nuclear power station | |
CN113614659A (en) | Development support device, development support device control method, information processing program, and recording medium | |
CN112597011B (en) | Operator test case generation and optimization method based on multiple languages |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |