CN110147324A - A kind of the on-line testing equipment and on-line testing method of embedded software time response - Google Patents
A kind of the on-line testing equipment and on-line testing method of embedded software time response Download PDFInfo
- Publication number
- CN110147324A CN110147324A CN201910347971.6A CN201910347971A CN110147324A CN 110147324 A CN110147324 A CN 110147324A CN 201910347971 A CN201910347971 A CN 201910347971A CN 110147324 A CN110147324 A CN 110147324A
- Authority
- CN
- China
- Prior art keywords
- easytime
- time
- test
- software
- test 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.)
- Pending
Links
Classifications
-
- 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/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention proposes a kind of on-line testing equipment of embedded software time response and on-line testing method, the on-line testing method is resident tested software the following steps are included: step 1, by serial ports test equipment EasyTime is connected with measured piece in measured piece;Step 2 inserts time recording instruction into tested software, and is exported in real time by serial ports, acquires for test equipment EasyTime, programming program;Step 3, operation tested software, design test scene, passage capacity test equipment EasyTime directly reads time parameter, and the time parameter read is corresponding with software cycle of operation number;After step 4, test, each time measured can be exported by test equipment EasyTime, analyze and record for software developer and tester.The present invention has the characteristics that easy to operate, intuitive measurement results, measurement error are small.
Description
Technical field
The present invention relates to a kind of on-line testing equipment of embedded software time response and on-line testing methods, belong to insertion
Formula software testing technology field.
Background technique
Embedded software is widely used in every field, although having many advantages, such as, also there is that software ornamental is poor, failure
The drawbacks such as exposure are difficult to, needs a large amount of test equipment, test software and test method to be verified, just can guarantee embedded software
The quality of part.
Currently, the time response for embedded software measures, it usually needs hardware unpacks and by the red-black table of oscillograph
Access chip, and every time performance that output low and high level obtains embedded software to oscillograph is inserted by software.
Such method is time-consuming long, big to hardware operation demand and easy due to certain unpredictable situations (such as electrostatic breakdown chip)
Product is damaged.Therefore such method operation difficulty is larger, and risk is high, and the data measured are not comprehensive, obtained test
Conclusion often has biggish error, with a low credibility.
Summary of the invention
Against the above deficiency, the present invention provides one kind easy to operate, intuitive measurement results, measurement error small embedded software
The on-line testing equipment and on-line testing method of part time response.
The specific technical solution of the present invention:
A kind of on-line testing equipment of embedded software time response, test equipment EasyTime include power supply control mould
Block, display control module, I/O module, SCM system, energy supply control module are powered management to test equipment EasyTime;
Display control module controls display interface, and inputs instruction according to the button of user and show correct picture;I/O module
It can determine the processing modes of data according to the input type (RS422 or RS232 or other) that user selects, and can be
After receiving data export instruction, the data of record can be exported to computer by USB;SCM system is mainly responsible for meter
Evaluation time, and calculated result is exported to display control module and is shown.
A kind of on-line testing method of embedded software time response, comprising the following steps:
Test equipment EasyTime is connected by step 1 by serial ports with measured piece, and tested software is resident in measured piece;
Step 2 inserts time recording instruction into tested software, programming program.Obtain the embedded software natural period:
Pitching pile time recording instruction after the interrupt instruction of control embedded software natural period obtains the embedded software running period:
The principal function beginning and end pitching pile time recording instruction of embedded software.
Step 3, operation tested software, design test scene, passage capacity test equipment EasyTime directly reads the time
Parameter, the time parameter read are corresponding with software cycle of operation number;
After step 4, test, each time measured can be exported by test equipment EasyTime, for software
Developer and tester analyze and record.
In step 1, test equipment EasyTime design has a USB port, and test equipment EasyTime passes through the end USB
Mouth and conversion line are connected with measured piece, and after test, test equipment EasyTime passes through the USB port and conversion line and meter
Calculation machine is attached.
In step 2, the inserting position of time recording instruction can require to insert the appropriate position in loading program according to actual test
Set, test equipment EasyTime obtains the called allocating time of inserting function, and calculate automatically call between function when
Between be spaced, test result is exported to interface and is shown;It such as needs to test other times, is then adjusted and inserted according to testing requirement
The position of function.
In step 3, test equipment EasyTime can monitor the time parameter of each cycle of operation, to realize to embedding
The complete monitoring for entering formula software operating condition solves the problems, such as to be difficult to find accidental error.
In step 4, measurement result can be recorded and generate test report by test equipment EasyTime, when necessary may be used
Using as test evidence for supervisor, developer and tester carry out using.
In view of the deficienciess of the prior art, test equipment EasyTime provided by the invention perfectly solves this hardly possible
Topic, specifically has the beneficial effect that:
1, easy to operate, it, can be according to user as long as embedded software internal operation data can be obtained by conversion line
Demand Design production conversion line type, reach wide applicability;
2, without unpacking to measured piece in measurement process, measurement scene and the more adjunction of the true Run-time scenario of tested software
Closely, and in combination with the real-time characteristic of environment resistance test verifying software under different external environments;
3, time intuitive measurement results, complete, provide the authentic data of abundance for the time examination of embedded software;
4, test equipment is light small and exquisite, easy to carry, can carry out on-line testing in outfield;
5, it is with a low credibility to compensate for test result caused by the time test method disunity of embedded software;
6, time error caused by having evaded because of misoperation.
Detailed description of the invention
Fig. 1 is the connection schematic diagram of test equipment EasyTime and measured piece.
Fig. 2 is that time recording instruction inserts schematic illustration.
Fig. 3 is test equipment EasyTime product figure.
Specific embodiment
Now in conjunction with attached drawing 1-3, invention is further described in detail:
A kind of on-line testing method of embedded software time response uses test equipment EasyTime comprising electricity
Source control module, display control module, I/O module, SCM system, energy supply control module carry out test equipment EasyTime
Power supply management;Display control module controls display interface, and inputs instruction display according to the button of user and correctly draw
Face;I/O module can determine the processing mode of data according to the input type (RS422 or RS232 or other) that user selects, and
And the data of record can be exported to computer by USB after receiving data export instruction;SCM system master
It is responsible for calculating the time, and calculated result is exported to display control module and is shown.
A kind of on-line testing method of embedded software time response, comprising the following steps:
Step 1 passes through RS422 or RS232 serial ports or other communication serial ports for test equipment EasyTime and measured piece phase
Even, connection schematic diagram is shown in Fig. 1;
Step 2 inserts time recording instruction into tested software, programming program, and time recording instruction inserting principle is shown in figure
2;
Step 3, runs software design test scene, and passage capacity test equipment EasyTime directly reads time parameter,
The time parameter read is corresponding with software cycle of operation number, and product schematic diagram is shown in Fig. 3;
After step 4, test, each time measured can be exported by test equipment EasyTime, for software
Developer and tester analyze and record.
In step 1, test equipment EasyTime only has unique USB port, and RS422 serial data is transferred as USB number
According to being different from the unpacking measurement method of tradition, exported measurement data by serial ports, design is succinct, can pass through conversion line and quilt
Survey part to be connected, while after test, can be attached by conversion line and computer, by test result be derived automatically to
In computer.In order to solve the problems, such as that embedded software communication interface model is numerous, conversion line is designed as can be from test equipment
The design easily removed in EasyTime selects different switching line according to different measured pieces, completely may be used just as mobile phone charging
Unpacking operation difficulty is avoided to realize the broad applicability of test equipment EasyTime with the connecter type for covering resident
Accidental damage big and to measured piece.
In step 2, the inserting position of time recording instruction can require to insert the appropriate position in loading program according to actual test
Set, test equipment EasyTime obtains the called allocating time of inserting function, and calculate automatically call between function when
Between be spaced, test result is exported to interface and is shown;It such as needs to test other times, is then adjusted and inserted according to testing requirement
The position of function, it is easy-to-use.The method of tradition acquisition low and high level is revised as acquisition time recording instruction by the present invention
Output time, be more nearly the true operating status of software, confidence level is higher.And the position for inserting function is flexible, is suitable for
The time test of Embedded natural period test, runing time test and progress needed for other.
It is in step 3, software cycle of operation number is corresponding with the time measured, it realizes embedded software and is established by cable from above
Begin the whole measurement terminated to lower electricity, avoids and only measure 10 accidental errors using conventional test methodologies, to embedded software
The real-time of part can carry out whole process and clearly observe.
In step 4, the result measured can be preserved completely, provided for software developer and tester
Measurement data support, can preferably promote software quality, while it is real that a new software can be provided for supervisor
The report of when property test data, has greatly reinforced the quality of software.
Test equipment EasyTime as shown in Figure 3, " power supply " button are the switching on and shutting down button of test equipment EasyTime;
It is different according to the conversion line type used, corresponding interface, test equipment are selected by the button in interface selectionbar
EasyTime can carry out communication adaptation automatically, obtain test result;" rolling " button then can choose scrolling display or freeze
The test result that current interface is shown facilitates user's real-time perfoming data record and analysis, again taps on scroll button and then cancels
Interface locking continues to show most recent measurements;When display interface freezes, " turning over " button and " under turn over " button can be passed through
Selection display test result when scrolling display, is turned over to turn over under and is not responded to operation.
Claims (4)
1. a kind of on-line testing equipment of embedded software time response, it is characterised in that: including energy supply control module, display control
Molding block, I/O module, SCM system, energy supply control module are powered management to test equipment (EasyTime);Display control
Molding block controls display interface, and inputs instruction according to the button of user and show correct picture;I/O module can root
The processing mode of data is determined according to the input type that user selects, and can pass through USB after receiving data export instruction
The data of record are exported to computer;SCM system, which is mainly responsible for, calculates the time, and calculated result is exported to display and is controlled
Molding block is shown.
2. a kind of on-line testing method of embedded software time response uses embedded software as described in claim 1
The on-line testing equipment of time response, it is characterised in that the following steps are included:
Test equipment (EasyTime) is connected by step 1 by serial ports with measured piece, and tested software is resident in measured piece;
Step 2 inserts time recording instruction into tested software, and is exported in real time by serial ports, for test equipment
(EasyTime) it acquires, programming program;
Step 3, operation tested software, design test scene, and passage capacity test equipment (EasyTime) directly reads time ginseng
Number, the time parameter read are corresponding with software cycle of operation number;
After step 4, test, each time measured can be exported by test equipment (EasyTime), be opened for software
Hair personnel and tester analyze and record.
3. a kind of on-line testing method of embedded software time response as claimed in claim 2, it is characterised in that: step 1
In, test equipment (EasyTime) design has a USB port, and test equipment (EasyTime) passes through the USB port and conversion
Line is connected with measured piece, after test, test equipment (EasyTime) by the USB port and conversion line and computer into
Row connection.
4. a kind of on-line testing method of embedded software time response as claimed in claim 2, it is characterised in that: step 2
In, the inserting position of time recording instruction can require to insert the appropriate location in loading program, test equipment according to actual test
(EasyTime) the called allocating time of inserting function is obtained, and calculates the time interval called between function automatically, it will
Test result is exported to interface and is shown;It such as needs to test other times, then adjusts the position of inserting function according to testing requirement
It sets.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910347971.6A CN110147324A (en) | 2019-04-28 | 2019-04-28 | A kind of the on-line testing equipment and on-line testing method of embedded software time response |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910347971.6A CN110147324A (en) | 2019-04-28 | 2019-04-28 | A kind of the on-line testing equipment and on-line testing method of embedded software time response |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110147324A true CN110147324A (en) | 2019-08-20 |
Family
ID=67593914
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910347971.6A Pending CN110147324A (en) | 2019-04-28 | 2019-04-28 | A kind of the on-line testing equipment and on-line testing method of embedded software time response |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110147324A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328131A (en) * | 2022-03-09 | 2022-04-12 | 深圳市佳贤通信设备有限公司 | Function time consumption monitoring method based on clock period record |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004164554A (en) * | 2002-09-24 | 2004-06-10 | Hitachi Ltd | Device and method for executing and monitoring program |
CN101067798A (en) * | 2007-06-14 | 2007-11-07 | 华南理工大学 | Dynamic probe method and application in embedded system thereof |
CN101571829A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test method of real-time embedded software |
CN103853648A (en) * | 2014-02-21 | 2014-06-11 | 北京神舟航天软件技术有限公司 | Embedded software performance evaluating hardware auxiliary test device and method |
CN106598855A (en) * | 2016-12-09 | 2017-04-26 | 南京晨光集团有限责任公司 | Method for testing running time of embedded software |
-
2019
- 2019-04-28 CN CN201910347971.6A patent/CN110147324A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004164554A (en) * | 2002-09-24 | 2004-06-10 | Hitachi Ltd | Device and method for executing and monitoring program |
CN101067798A (en) * | 2007-06-14 | 2007-11-07 | 华南理工大学 | Dynamic probe method and application in embedded system thereof |
CN101571829A (en) * | 2009-06-19 | 2009-11-04 | 北京航空航天大学 | Automatic closed loop test method of real-time embedded software |
CN103853648A (en) * | 2014-02-21 | 2014-06-11 | 北京神舟航天软件技术有限公司 | Embedded software performance evaluating hardware auxiliary test device and method |
CN106598855A (en) * | 2016-12-09 | 2017-04-26 | 南京晨光集团有限责任公司 | Method for testing running time of embedded software |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114328131A (en) * | 2022-03-09 | 2022-04-12 | 深圳市佳贤通信设备有限公司 | Function time consumption monitoring method based on clock period record |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107786000B (en) | Intelligent generation method for configuration file of digital relay protection tester | |
CN201336157Y (en) | Novel test device for reactor protection systematic procedure instrument testing | |
CN104793075B (en) | A kind of routine test system of PWR nuclear power plant protection system | |
CN104898638B (en) | A kind of routine test device of PWR nuclear power plant protection system | |
CN106405286B (en) | The automatic test approach and system of quality monitoring device of electrical energy | |
TWI393894B (en) | Method and system for recognizing behavior of electric appliances in a circuit, and computer program product thereof | |
CN106405294B (en) | Portable power distribution product transmission calibrator and implementation test method thereof | |
CN104833942B (en) | Electric energy meter battery power consumption automonitor and application method | |
CN109946536A (en) | A kind of comprehensive reliability test system based on OPC technology | |
CN106569166B (en) | A kind of test method in twin-core electric energy meter legality measurement portion | |
CN109507625A (en) | The automatic calibrating method and terminal device of battery simulator | |
CN114047472A (en) | Metering error monitoring system of intelligent electric meter and monitoring method and device thereof | |
CN101222735A (en) | Method and device for testing standby time of mobile terminal | |
CN105207836B (en) | A kind of method of quick test PQDIF file consistences | |
CN109613448A (en) | Intelligent power dynamic environment test method and system | |
CN110147324A (en) | A kind of the on-line testing equipment and on-line testing method of embedded software time response | |
CN108802654A (en) | A kind of the automatic Calibration acquisition system and method for forming and capacity dividing test power supply | |
CN102236046B (en) | Method for detecting voltage monitoring function of electricity utilization management terminals in batches | |
CN108693498A (en) | A kind of electrical energy meter calibration method | |
CN208984125U (en) | A kind of quick detection device of Portable, multiple parameter grain feelings | |
CN107271757A (en) | Low-voltage cable testing current recorder | |
CN109855798A (en) | A kind of portable pressure in-line calibration device based on PXI bussing technique | |
CN103344937A (en) | Device and method for detecting power consumption of intelligent watt-hour meter | |
CN103292872A (en) | Performance detecting system of air quality flowmeter | |
CN106124853B (en) | The full decompression of power down ammeter low-power consumption detects power consumption control method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190820 |
|
RJ01 | Rejection of invention patent application after publication |