CN101246444A - Module testing method and system - Google Patents
Module testing method and system Download PDFInfo
- Publication number
- CN101246444A CN101246444A CNA2008100816495A CN200810081649A CN101246444A CN 101246444 A CN101246444 A CN 101246444A CN A2008100816495 A CNA2008100816495 A CN A2008100816495A CN 200810081649 A CN200810081649 A CN 200810081649A CN 101246444 A CN101246444 A CN 101246444A
- Authority
- CN
- China
- Prior art keywords
- test
- script
- module
- time
- testing
- 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
Links
Images
Abstract
The invention discloses a module test process comprising obtaining testing module information and beginning to test module script, if the test for module script being completed within test time thresholding, modifying the standard test time of the script and testing the next script, otherwise, inquiring and executing corresponding handling policy, when all scripts in the module are tested, modifying the standard test time of the module and testing the next module. The invention also discloses a module test system. In the method and system, the test condition can be monitored in test process according to the standard test time of the script in the module, and test order of the module can be adjusted according to actual need. The module test method and system improves the test efficiency and saves test cost.
Description
Technical field
The present invention relates to the module testing technology, be specifically related to a kind of module test method and system.
Background technology
In recent years, the electronic product function is more and more, and the module of forming electronic product is also varied gradually, for quality and the user experience that improves electronic product, then needs the disparate modules of forming electronic product is tested.
Disparate modules needed test duration from a few minutes were not quite similar by tens of hours, owing to can't learn the time that module testing is required, in test process, module testing is to determine arbitrarily in proper order.But, under the situation of test duration,, then be easy to because of deficiency of time causes testing efficiency low if preceding several module of test that needs is all consuming time longer than weak point, even test crash.For example, the test duration is 2 hours, just is 3 hours but need the test duration of first module of test.And, adopt the module testing of prior art not carry out effective monitoring to test process, if because test reason such as unusual is when can't normally carry out module testing, can only wait for that the tester finds and carry out respective handling, and this needs the staff on duty and check the test run situation at any time, so, existing module test method very flexible, low, the waste testing cost of testing efficiency.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of module test method and system, can control testing sequence flexibly, improves testing efficiency, save testing cost.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of module test method, this method comprises:
A, obtain the module information that needs test, begin to test the script of described module;
B, obtain test duration threshold value when the script of Pretesting;
If the described script of c step b is finished test in its test duration threshold value, then revise the standard testing time of described script, return step b, continue the next script of test; Otherwise inquiry is also carried out the alignment processing strategy;
If all the script tests in the described module of d step a finish, then revise the standard testing time of described module, return step a, continue the next module of test; Otherwise return step b, continue the next script of test.
The described test duration threshold value of obtaining script of step b is: if the time statistic unit has recorded the standard testing time of described script, then will be worth the test duration threshold value as script; Otherwise, the test duration threshold value of giving tacit consent to described script be store in the time statistic unit, the maximal value in all script standard testing times in the module under the script.
The described processing policy of step c is: return step b, continue the next script of test.
The described processing policy of step c is: stop test.
The described processing policy of step c is: the test duration threshold value of described script is prolonged a period of time, continue the current script of test,, then revise the standard testing time of described script if in described test duration threshold value, finish test, return step b, continue the next script of test; Otherwise, stop test.
Described module information comprises module numbering, module script information at least.
The execution module test of test execution unit, described test execution unit begins further to comprise behind the test script: the test execution unit sends test script information and test start time to testing monitoring unit; Described test execution unit further comprises after finishing the script test: the test execution unit sends test script information and end of test (EOT) time to testing monitoring unit.
Described the finishing in the test duration of script threshold value of step c further comprises after script is tested: according to the test start time and the used test duration of this test of the described script of end of test (EOT) Time Calculation of script.
The standard testing time of the described modification script of step c is: the standard testing time of revising script is the weighted value that script was tested used test time and this test used test time in the past.
The standard testing time of described modified module is: the standard testing time of modified module is the weighted value that module was tested used test time and this test used test time in the past, and wherein, the test duration of module is all script test duration sums in the module.
A kind of module test system, this system comprises: test execution unit, time statistic unit, testing monitoring unit and policy management element, wherein,
The test execution unit is mainly used in the relevant information that reads the module that needs test from the time statistic unit, and operation module script, the execution module test, and when each script begins test and finishes test, send test start time and end of test (EOT) time to testing monitoring unit, the processing policy that the implementation strategy administrative unit sends appears when unusual at module testing;
The time statistic unit is mainly used in the standard testing time of memory module and script thereof, the standard testing time of script is provided to testing monitoring unit, and according to the test run Time Calculation of testing monitoring unit transmission and the standard testing time of revising script, and after the test of all scripts in module finishes, the standard testing time of modified module;
Testing monitoring unit is mainly used in from the time statistic unit and obtains the test duration threshold value of the standard testing time of script as described script, test duration threshold value according to script is monitored the module testing situation, and occur when unusual at module testing, carry out policy lookup to the policy control unit, and after script is tested normal termination in module, computing module test duration and the time of sending to statistic unit;
Policy management element is mainly used in the stores processor strategy, and after the inquiry that receives testing monitoring unit, the respective handling strategy when the test execution unit provides module testing unusual.
Module test method provided by the invention and system, the test duration of script in the logging modle in the module testing process, and the test run situation of module is monitored according to the standard testing time of script in the module, if it is unusual that monitoring finds that the test of module occurs, just automatically perform the respective handling strategy that pre-sets, in the present invention, can also rationally arrange the module testing order according to the test duration of module according to actual conditions, so, module test method provided by the invention and system, improve testing efficiency, saved testing cost.
Description of drawings
Fig. 1 is a module test method process flow diagram of the present invention;
Fig. 2 is a module test system structural drawing of the present invention.
Embodiment
Basic thought of the present invention is: the test duration of script in the logging modle in the module testing process, and the test run situation of module is monitored according to the standard testing time of script in the module, if it is unusual that monitoring finds that the test run situation of module occurs, just automatically perform the respective handling strategy that pre-sets.Below in conjunction with specific embodiment is that accompanying drawing is described in further detail the present invention.
Fig. 1 is a module test method process flow diagram of the present invention, and as shown in Figure 1, module test method of the present invention may further comprise the steps:
Step 101: the test execution unit obtains the module information that needs test.
Here, the tester can be provided with the module testing order at the time statistic unit according to actual needs, has as the test duration and prescribes a time limit, and can carry out module testing according to the standard testing time order from less to more of module.When the test execution unit is tested, at first obtain the module information that this need be tested from the time statistic unit, described module information comprises module numbering and module script information at least.
Step 102: the test execution unit begins the test module script, and sends test script information and test start time to testing monitoring unit.
Here, the module numbering that the test module script promptly obtains according to step 101, script in the operation numbering institute respective modules, when bringing into operation the module script, the test execution unit need send information such as current test script information and test start time to testing monitoring unit, promptly notifies testing monitoring unit to begin the control and measuring situation.
Here, if do not write down the standard testing time of described script in the time statistic unit, promptly first described script is tested, then giving tacit consent to its test duration threshold value is the maximal value in the script standard testing time in this module of storing in the time statistic unit.
Here, after the script test is finished in the test execution unit, can send test script information and end of test (EOT) time to testing monitoring unit.
Testing monitoring unit is received in the test duration of script threshold value under the situation of the end of test (EOT) time that the test execution unit sends, only need end of test (EOT) time and test start time are subtracted each other, just can obtain the test duration of described script, after testing monitoring unit sends to the time statistic unit with test duration of script, obtain the test duration of this test of script and weighted value that script was tested the used test time in the past the new standard test duration by the time statistic unit as test script, like this, when testing described script, just can monitor the module testing process according to the amended standard testing time next time.
Testing monitoring unit is not received in the test duration of script threshold value under the situation of the end of test (EOT) time that the test execution unit sends, need inquire about corresponding processing policy to policy management element, as continuing test, termination test, the next script of test etc.Here, policy management element can be provided with different processing policies at different situations.If in the policy management element, testing monitoring unit does not receive that in the test duration of test script threshold value the end of test (EOT) of test execution unit transmission is during the time, processing policy is: the test duration threshold value of described script is prolonged a period of time, continue test, if finish test in the test duration threshold value after described prolongation, then revise the standard testing time of described script, continue the next script of test; Otherwise, stop test.Like this, can avoid the module script to cause time delays, thereby cause the situation of test crash to take place because of some correctable unusual condition.
Here, the standard testing time of modified module is: the standard testing time of modified module is the weighted value that module was tested used test time and this test used test time in the past, wherein, the test duration of module is the test duration sum of all scripts in the module.Like this, during the determination module testing sequence, can be foundation just with the amended standard testing time next time.
Fig. 2 is a module test system structural drawing of the present invention, and as shown in Figure 2, test macro of the present invention comprises test execution unit, time statistic unit, testing monitoring unit and policy management element.Wherein,
The test execution unit is mainly used in the relevant information that reads the module that needs test from the time statistic unit, and operation module testing script, the execution module test, and when beginning test and finishing test, send test start time and end of test (EOT) time to testing monitoring unit, script occurs when unusual in module testing, the processing policy that the implementation strategy administrative unit sends.
The time statistic unit is mainly used in the standard testing time of memory module and script thereof, the standard testing time of module and script thereof is provided to testing monitoring unit, and according to the test run Time Calculation of testing monitoring unit transmission and the standard testing time of modified module and script thereof, and after the test of all scripts in module finishes, the standard testing time of modified module.
Testing monitoring unit is mainly used in from the time statistic unit and obtains the test duration threshold value of the standard testing time of script as described script, test duration threshold value according to script is monitored the module testing situation, and script occurs when unusual in module testing, carry out policy lookup to the policy control unit, and in module after the script test normal termination, computing module with and script test duration and the time of sending to statistic unit.
Policy management element is mainly used in the stores processor strategy, and after the inquiry that receives testing monitoring unit, the alignment processing strategy when the test execution unit provides that script is unusual in the module testing.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.
Claims (11)
1, a kind of module test method is characterized in that, this method comprises:
A, obtain the module information that needs test, begin to test the script of described module;
B, obtain test duration threshold value when the script of Pretesting;
If the described script of c step b is finished test in its test duration threshold value, then revise the standard testing time of described script, return step b, continue the next script of test; Otherwise inquiry is also carried out the alignment processing strategy;
If all the script tests in the described module of d step a finish, then revise the standard testing time of described module, return step a, continue the next module of test; Otherwise return step b, continue the next script of test.
2, method according to claim 1 is characterized in that, the described test duration threshold value of obtaining script of step b is: if the time statistic unit has recorded the standard testing time of described script, then will be worth the test duration threshold value as script; Otherwise, the test duration threshold value of giving tacit consent to described script be store in the time statistic unit, the maximal value in all script standard testing times in the module under the script.
3, method according to claim 1 is characterized in that, the described processing policy of step c is: return step b, continue the next script of test.
4, method according to claim 1 is characterized in that, the described processing policy of step c is: stop test.
5, method according to claim 1, it is characterized in that, the described processing policy of step c is: the test duration threshold value of described script is prolonged a period of time, continue the current script of test, if in described test duration threshold value, finish test, then revise the standard testing time of described script, return step b, continue the next script of test; Otherwise, stop test.
6, method according to claim 1 is characterized in that, described module information comprises module numbering, module script information at least.
7, method according to claim 1, it is characterized in that, the execution module test of test execution unit, described test execution unit begins further to comprise behind the test script: the test execution unit sends test script information and test start time to testing monitoring unit; Described test execution unit further comprises after finishing the script test: the test execution unit sends test script information and end of test (EOT) time to testing monitoring unit.
8, method according to claim 7, it is characterized in that described the finishing of step c further comprises after script is tested: according to the test start time and the used test duration of this test of the described script of end of test (EOT) Time Calculation of script in the test duration of script threshold value.
According to claim 1 or 8 described methods, it is characterized in that 9, the standard testing time of the described modification script of step c is: the standard testing time of revising script is the weighted value that script was tested used test time and this test used test time in the past.
10, method according to claim 1, it is characterized in that, the standard testing time of described modified module is: the standard testing time of modified module is the weighted value that module was tested used test time and this test used test time in the past, wherein, the test duration of module is all script test duration sums in the module.
11, a kind of module test system is characterized in that, this system comprises: test execution unit, time statistic unit, testing monitoring unit and policy management element, wherein,
The test execution unit is mainly used in the relevant information that reads the module that needs test from the time statistic unit, and operation module script, the execution module test, and when each script begins test and finishes test, send test start time and end of test (EOT) time to testing monitoring unit, the processing policy that the implementation strategy administrative unit sends appears when unusual at module testing;
The time statistic unit is mainly used in the standard testing time of memory module and script thereof, the standard testing time of script is provided to testing monitoring unit, and according to the test run Time Calculation of testing monitoring unit transmission and the standard testing time of revising script, and after the test of all scripts in module finishes, the standard testing time of modified module;
Testing monitoring unit is mainly used in from the time statistic unit and obtains the test duration threshold value of the standard testing time of script as described script, test duration threshold value according to script is monitored the module testing situation, and occur when unusual at module testing, carry out policy lookup to the policy control unit, and after script is tested normal termination in module, computing module test duration and the time of sending to statistic unit;
Policy management element is mainly used in the stores processor strategy, and after the inquiry that receives testing monitoring unit, the respective handling strategy when the test execution unit provides module testing unusual.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100816495A CN101246444B (en) | 2008-03-03 | 2008-03-03 | Module testing method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008100816495A CN101246444B (en) | 2008-03-03 | 2008-03-03 | Module testing method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101246444A true CN101246444A (en) | 2008-08-20 |
CN101246444B CN101246444B (en) | 2010-06-02 |
Family
ID=39946909
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2008100816495A Active CN101246444B (en) | 2008-03-03 | 2008-03-03 | Module testing method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101246444B (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101989228A (en) * | 2009-08-07 | 2011-03-23 | 中兴通讯股份有限公司 | Estimation method and device of execution time of test plan |
CN101923124B (en) * | 2009-06-17 | 2012-06-20 | 上海华虹Nec电子有限公司 | Method for determining acceleration factors in EM testing structure |
CN104950251A (en) * | 2015-07-02 | 2015-09-30 | 大唐微电子技术有限公司 | Clock network system for SOC (system on chip) chip |
CN105068899A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Automatic reboot stability test method for Vmware system |
CN105320600A (en) * | 2015-11-26 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Test case execution monitoring method and system based on automatic testing platform |
CN107005444A (en) * | 2014-09-11 | 2017-08-01 | 森特理克联网家居有限公司 | Equipment is synchronous and tests |
CN107197241A (en) * | 2017-05-08 | 2017-09-22 | 聚好看科技股份有限公司 | Time-out time dynamic setting method and device in TV applications test |
WO2019214109A1 (en) * | 2018-05-08 | 2019-11-14 | 平安科技(深圳)有限公司 | Monitoring device and method for testing process, and computer readable storage medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1332210C (en) * | 2003-05-22 | 2007-08-15 | 上海广电飞跃照明电子器材厂 | Automatic correcting method for electronic ballast automatic testing system |
CN1278233C (en) * | 2004-02-11 | 2006-10-04 | 绿创科技股份有限公司 | Adjusting method for hardware emulator execution time and recording medium for the emulator |
-
2008
- 2008-03-03 CN CN2008100816495A patent/CN101246444B/en active Active
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101923124B (en) * | 2009-06-17 | 2012-06-20 | 上海华虹Nec电子有限公司 | Method for determining acceleration factors in EM testing structure |
CN101989228A (en) * | 2009-08-07 | 2011-03-23 | 中兴通讯股份有限公司 | Estimation method and device of execution time of test plan |
CN107005444A (en) * | 2014-09-11 | 2017-08-01 | 森特理克联网家居有限公司 | Equipment is synchronous and tests |
US10474116B2 (en) | 2014-09-11 | 2019-11-12 | Centrica Hive Limited | Device synchronization and testing |
CN107005444B (en) * | 2014-09-11 | 2020-06-12 | 森特理克联网家居有限公司 | Device synchronization and testing |
CN104950251A (en) * | 2015-07-02 | 2015-09-30 | 大唐微电子技术有限公司 | Clock network system for SOC (system on chip) chip |
CN105068899A (en) * | 2015-07-17 | 2015-11-18 | 浪潮电子信息产业股份有限公司 | Automatic reboot stability test method for Vmware system |
CN105320600A (en) * | 2015-11-26 | 2016-02-10 | 上海斐讯数据通信技术有限公司 | Test case execution monitoring method and system based on automatic testing platform |
CN107197241A (en) * | 2017-05-08 | 2017-09-22 | 聚好看科技股份有限公司 | Time-out time dynamic setting method and device in TV applications test |
WO2019214109A1 (en) * | 2018-05-08 | 2019-11-14 | 平安科技(深圳)有限公司 | Monitoring device and method for testing process, and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101246444B (en) | 2010-06-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101246444B (en) | Module testing method and system | |
CN103909325B (en) | A kind of welding quality monitoring system | |
CN101593146B (en) | Method and device for automatically testing page | |
CN104375912B (en) | The measuring method and device of mobile terminal interim card | |
US8832839B2 (en) | Assessing system performance impact of security attacks | |
EP3665462B1 (en) | Identification of air leaks in a compressed air system using a plurality of current measurement sensors | |
CN103559115A (en) | SSD intelligent monitoring system based on SMART | |
CN111563014A (en) | Interface service performance test method, device, equipment and storage medium | |
CN106656368A (en) | Communication system monitoring method and apparatus | |
CN114691521A (en) | Software testing platform based on artificial intelligence | |
CN112749013B (en) | Thread load detection method and device, electronic equipment and storage medium | |
CN109597389B (en) | Test system of embedded control system | |
CN102360485B (en) | Software method and system for incremental risk evaluation | |
CN106200866A (en) | A kind of application freezing method and mobile terminal | |
CN110020451A (en) | A kind of residual Life Calculation method and device of driving assembly transmission belt | |
CN107238754B (en) | Method and device for detecting electric quantity | |
CN113839825B (en) | Equipment fault detection method, system, device, computer equipment and storage medium | |
CN105183656A (en) | Method, system and device for detecting package stop failure of application program | |
CN113238911A (en) | Alarm processing method and device | |
CN108805778A (en) | Electronic device, the method and storage medium for acquiring collage-credit data | |
CN105450818B (en) | mobile terminal power consumption current measuring method and device | |
CN117651003B (en) | ERP information transmission safety monitoring system | |
CN114077449B (en) | Database server testing method and device, electronic equipment and storage medium | |
CN112800068B (en) | Method and device for automatically processing energy metering data | |
CN112714460B (en) | Service acceleration method and system based on service flow |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |