CN106412576B - test method and device - Google Patents
test method and device Download PDFInfo
- Publication number
- CN106412576B CN106412576B CN201610834903.9A CN201610834903A CN106412576B CN 106412576 B CN106412576 B CN 106412576B CN 201610834903 A CN201610834903 A CN 201610834903A CN 106412576 B CN106412576 B CN 106412576B
- Authority
- CN
- China
- Prior art keywords
- test
- test program
- guiding
- hardware information
- file
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
- H04N17/04—Diagnosis, testing or measuring for television systems or their details for receivers
Abstract
The embodiment of the invention discloses a kind of test method and devices.The method includes:The kernel of opening operation system;Detect whether the guiding file there are test program;If detecting the presence of the guiding file, the test program is started to be tested based on the kernel.Technical scheme of the present invention, which overcomes, needs to enter in the prior art the technological deficiency that operating system could carry out system test, solves the technical issues of system test consumes a longer time, the time needed for system test is greatly shortened.
Description
Technical field
The present embodiments relate to microcomputer data processing more particularly to a kind of test method and devices.
Background technology
Digital video switching box (Set Top Box, abbreviation STB), commonly referred to as box on set-top box or machine are a connections
The equipment of television set and outside source, it is wide that external signal can come from wire cable, satellite antenna, broadband network and ground
It broadcasts.
Set-top box will carry out system test and string burning before manufacture, simultaneously because set-top box can be received from broadband
The signal of network, therefore also need to before producing to carry out the burning of the information such as MAC Address.Existing set-top box system test and
The method for burn-recording of string number and MAC Address is all after booting enters operating system, to start test program and carry out complete machine function automation
Then test scans the information such as serial port and MAC Address by scanner.
Above-mentioned set-top box system test and the burning process of string number and MAC Address are accounted in production link with very one big
The time divided, reduce the efficiency of the production of set-top box.
Invention content
In view of this, an embodiment of the present invention provides a kind of test method and device, it is longer to solve system test consuming
The technical issues of time.
In a first aspect, an embodiment of the present invention provides a kind of test methods, including:
The kernel of opening operation system;
Detect whether the guiding file there are test program;
If detecting the presence of the guiding file, the test program is started to be tested based on the kernel.
In the above-mentioned methods, it is preferred that if described detect the presence of the guiding file, started based on the kernel
After the test program is to be tested, further include:
IP address and access to LAN are automatically generated, the network hardware information of simultaneously burning pre-generatmg is read in.
In the above-mentioned methods, it is preferred that the guiding file detected whether there are test program, including:
With the presence or absence of the guiding text of the test program in the external storage device accessed of detection or built-in storage device
Part.
In the above-mentioned methods, it is preferred that further include:
If there are the guiding files of the test program in built-in storage device, the guiding text of the test program is deleted
Part.
In the above-mentioned methods, it is preferred that the network hardware information includes string number and physical address.
Second aspect, an embodiment of the present invention provides a kind of test devices, including:
System kernel starting module is used for the kernel of opening operation system;
File detection module is guided, for detecting whether there are the guiding files of test program;
If test module starts the test program for detecting the presence of the guiding file based on the kernel
To be tested.
In above-mentioned apparatus, it is preferred that after the test module, further include:
Hardware information burning module reads in the net of simultaneously burning pre-generatmg for automatically generating IP address and access to LAN
Network hardware information.
In above-mentioned apparatus, it is preferred that the guiding file detection module is specifically used for:
With the presence or absence of the guiding text of the test program in the external storage device accessed of detection or built-in storage device
Part.
In above-mentioned apparatus, it is preferred that further include:
If guiding file removing module is deleted for the guiding file there are the test program in built-in storage device
Except the guiding file of the test program.
In above-mentioned apparatus, it is preferred that the network hardware information includes string number and physical address.
Test method provided in an embodiment of the present invention and device by the kernel of start-up operation system first, rather than open
Dynamic operating system, then detects whether the guiding file there are test program, when detecting the guiding file of test program, base
Start test program to be tested in the kernel of operating system, overcomes that need to enter operating system in the prior art could be into
The technological deficiency of row system test solves system test and expends time longer technical problem, system test is greatly shortened
The required time.
Description of the drawings
Fig. 1 is a kind of flow chart for test method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of test method provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of structure chart for test device that the embodiment of the present invention three provides.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with the accompanying drawings to of the invention specific real
Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention,
Rather than limitation of the invention.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than
Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail
At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart,
It is that many of which operation can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again
It arranges.The processing can be terminated when its operations are completed, it is also possible to the additional step being not included in attached drawing.
The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram for test method that first embodiment of the invention provides, and this method is suitable for equipment
The scene that system test and hardware information burning are carried out before manufacture, can be executed, wherein the device can be by software by test device
And/or hardware realization, and can generally be integrated in the equipment for being equipped with operating system.
The method of the present embodiment specifically includes:
The kernel of step 110, opening operation system.
It will be appreciated by persons skilled in the art that equipment (such as:Set-top box, mobile phone, router and tablet computer
Deng) in the final tache of production process, it needs to carry out system test.
In the present embodiment and other embodiment, specifically it is described in detail by taking set-top box as an example, it was determined that
Test method in the present embodiment and other embodiment is not only applicable to set-top box, while being also applied for other and being mounted with to operate
The equipment of system.
Set-top box is when carrying out system test, it is necessary first to power on, the kernel of starting up's operating system, existing set-top box
Operating system be typically all Android operation system, since Android operation system is realized based on Linux, open
The kernel of dynamic Android operation system specifically refers to start the kernel kernel of Linux, after the kernel of start-up operation system,
Set-top box can run its it is internal install some application programs (such as:The test program etc. of set-top box itself).Further
Ground, if equipment installation is operating system other than Android, which equally can be achieved the operation of this step, because
All there is kernel for any operating system.
In general, set-top box is all to directly initiate operating system when carrying out system test, then testing results journey
Sequence, still, after set-top box installs operating system, first time starting up's operating system can be very time-consuming (likewise, other equipment
In first time start-up operation system, all more take), can be two to three times of usual available machine time, therefore, start-up operation system
Rerun test program after system, carries out system test and more takes, reduces the production efficiency of set-top box.But if only
The kernel of start-up operation system, rather than if whole operation system, the time of this link consumption, Jin Erti can be greatly reduced
The production efficiency of high set-top box.
Step 120 detects whether guiding file there are test program.
In the present embodiment, after the kernel of operating system starts, the guiding there are test program can be first detected whether
File, test program are stored in measurement equipment to be checked, such as in set-top box, but during user's use, test program is not
It can run, herein by guiding the existence of file to be confirmed whether to need to start test program.
Wherein, test program specifically refers to be stored in inside set-top box, each physical entity for detecting set-top box
Whether can be used, that is, functional test is carried out to set-top box.Wherein, physical entity specifically includes:Wifi module, bluetooth module
And camera etc..
Wherein, the guiding file of test program specifically refers to the file with special name, and expression is tested, and is used
To guide test program to start.The guiding file can be specifically stored in inside set-top box, can also be stored in external storage and be set
Standby (such as:USB flash disk and storage card etc.) in, the present embodiment is not limited this.If the guiding file is stored in outside and deposits
It stores up in equipment, then needing that the External memory equipment is connected with set-top box before booting.
Further, if not detecting that the guiding file of test program, set-top box can be opened according to conventional program
Dynamic operating system.
If step 130 detects the presence of guiding file, test program is started to be tested based on kernel.
In the present embodiment, when detecting guiding file, the kernel of operating system can guide test program to start, in turn
System test is carried out to set-top box.Specific system test object and test process existing realization in the prior art, herein not
Do in-depth explanation.
Test method provided in an embodiment of the present invention, by the kernel of start-up operation system first, rather than start-up operation
Then system detects whether the guiding file there are test program, when detecting the guiding file of test program, based on operation
The kernel of system starts test program to be tested, and overcomes and needs that into operating system complete machine could be carried out in the prior art
The technological deficiency of test solves system test and expends time longer technical problem, is greatly shortened needed for system test
Time.
Embodiment two
Fig. 2 is a kind of flow chart of test method provided by Embodiment 2 of the present invention.The present embodiment is with above-described embodiment
Basis optimizes, and in the present embodiment, if detecting the presence of guiding file, starts test program based on kernel to carry out
After test, can also include:IP address and access to LAN are automatically generated, reads in and the network hardware of burning pre-generatmg is believed
Breath.
Further, it will detect whether the guiding file there are test program, be optimized for:The external storage accessed of detection is set
It whether there is the guiding file of test program in standby or built-in storage device.
Correspondingly, can also include:If there are the guiding files of test program in built-in storage device, test journey is deleted
The guiding file of sequence.
Further, it is by network hardware Advance data quality:String number and physical address.
Correspondingly, the method for the present embodiment specifically includes:
The kernel of step 210, opening operation system.
Drawing with the presence or absence of test program in step 220, the external storage device accessed of detection or built-in storage device
Lead file.
In the present embodiment, after the kernel of operating system starts, the guiding file of test program, Ke Yixian can be found first
Find, can also first be found from External memory equipment from the storage device built in set-top box, the present embodiment to this without
Limitation.
If step 230 detects the presence of guiding file, test program is started to be tested based on kernel.
Step 240 automatically generates IP address and access to LAN, reads in the network hardware information of simultaneously burning pre-generatmg.
It in the present embodiment, can be certainly after test program completes the test to each physical entity of set-top box and test passes
It is dynamic to generate IP (Internet Protocol, the agreement interconnected between network) address, and access to LAN.
Wherein, the IP address automatically generated specifically refers to the IP address for belonging to the network segment of above-mentioned LAN, if automatic raw
At IP address it is incorrect, then can not access to LAN carry out after operation.
Wherein, LAN specifically refers to the internal network that the manufacturer of set-top box is laid out in production area, for realizing
The digitization management of the even entire manufacturer of production area, in the present embodiment, at least through the local when set top box testing
Net access and the relevant management system of production process --- MES system (manufacturing enterprise's production process executes system).MES system is
The production informationization of a set of Manufacture Enterprise workshop execution level manages system, which can believe the network hardware of set-top box
Breath is managed, and is specifically included:Pre-generatmg physical address and recycling physical address etc..Wherein, network hardware information specifically may be used
To be string number (i.e. the sequence number of set-top box) and physical address etc..
In general, the string number of set-top box and the acquisition modes of physical address are to be scanned using scanner by direct labor
The string number and physical address of set-top box, or by reading the string number stored in External memory equipment and physical address (in advance
By direct labor will go here and there number and physical address storage to External memory equipment in), both modes all can labor intensive, and more
It is time-consuming.
In the present embodiment, after set-top box access to LAN, can be connected with MES system by LAN, then,
MES system can be automatically to the pre-prepd string number of set-top box distribution MES system and physical address, after being assigned, set-top box meeting
Automatically string number and physical address are read from MES system and are stored.
Further, due to can all be used during the string number of set-top box and physical address production after a test and use
Arrive and without secrecy, while be also set-top box enter identity label essential to market, so, in general, manufacturer is all
The label for being printed with string number and physical address can be made respectively, and is affixed to the corresponding position of set-top box.In the present embodiment
In, being printed with string number and the label of physical address print by MES system, when MES system to set-top box distribute string number with
After physical address, will automatic printing go out print respectively distributed string number and physical address label, later, by direct labor
Or the label printed is pasted onto on the corresponding position of set-top box by industrial robot.String number is first printed in compared with the prior art
With the physical address then mode that is inputted by direct labor's manual scanning, typing is read automatically in this programme and directly printing is pasted
Mode can effectively reduce information burning cost time.
After the completion of step 250, test, the guiding file that whether there is test program in built-in storage device is judged, if
In the presence of thening follow the steps 260, if being not present, terminate this test.
In the present embodiment, after test program has executed all steps, test program can detect depositing built in set-top box
The guiding file that test program whether is stored in storage equipment terminates this test if do not detected.
An action of the guiding file as test program is deleted, in addition to that can carry out judging to delete after other tests
It removes, the operation for deleting guiding file can also be executed during the test, guiding file is deleted if it is being executed in test process
Operation, need delete guide file after continue to execute other test contents.
Step 260, the guiding file for deleting the test program stored in built-in storage device.
In the present embodiment, if test program, which detects in the storage device built in set-top box, is stored with test program
File is guided, then test program can delete the guiding file, in order to avoid being directly entered test program when booting next time, influences user
Experience.
Test method provided in an embodiment of the present invention, by the kernel of start-up operation system first, rather than start-up operation
Then system detects whether the guiding file there are test program, when detecting the guiding file of test program, based on operation
The kernel of system starts test program to be tested, and automatically generates IP address and access to LAN, reads in simultaneously burning pre-generatmg
Network hardware information overcome existing if being deleted there are the guiding file of test program in built-in storage device
It needs to enter the technological deficiency that operating system could carry out system test and hardware information burning in technology, solves system test
Time longer technical problem is expended with hardware information burning, realizes and substantially shortens needed for system test and hardware information burning
Time, while reducing the consuming of manpower.
Embodiment three
Fig. 3 is a kind of structure chart for test device that the embodiment of the present invention three provides.As shown in figure 3, described device includes:
System kernel starting module 101, guiding file detection module 102 and test module 103.Wherein:
System kernel starting module 101 is used for the kernel of opening operation system;
File detection module 102 is guided, for detecting whether there are the guiding files of test program;
If test module 103 starts test program to be surveyed for detecting the presence of guiding file based on kernel
Examination.
Test method provided in an embodiment of the present invention, by the kernel of start-up operation system first, rather than start-up operation
Then system detects whether the guiding file there are test program, when detecting the guiding file of test program, based on operation
The kernel of system starts test program to be tested, and overcomes and needs that into operating system complete machine could be carried out in the prior art
The technological deficiency of test solves system test and expends time longer technical problem, is greatly shortened needed for system test
Time.
On the basis of the various embodiments described above, after test module, can also include:
Hardware information burning module reads in the net of simultaneously burning pre-generatmg for automatically generating IP address and access to LAN
Network hardware information.
On the basis of the various embodiments described above, guiding file detection module specifically can be used for:
It whether there is the guiding file of test program in the external storage device accessed of detection or built-in storage device.
On the basis of the various embodiments described above, can also include:
File removing module is guided, if for the guiding file there are test program in built-in storage device, deletes and surveys
Try the guiding file of program.
On the basis of the various embodiments described above, network hardware information may include string number and physical address.
The test device that the embodiment of the present invention is provided can be used for executing the test method that any embodiment of the present invention provides,
Have corresponding function module, realizes identical advantageous effect.
Obviously, it will be understood by those skilled in the art that each module of the above invention or each step can be by as above
The server implementation.Optionally, the embodiment of the present invention can be realized with the program that computer installation can perform, so as to
It is executed by a processor with being stored in storage device, the program can be stored in a kind of computer-readable storage
In medium, storage medium mentioned above can be read-only memory, disk or CD etc.;Or they are fabricated to each
A integrated circuit modules, or by them multiple modules or step be fabricated to single integrated circuit module and realize.In this way,
The present invention is not limited to the combinations of any specific hardware and software.
The foregoing is merely the preferred embodiment of the present invention, are not intended to restrict the invention, for those skilled in the art
For, the present invention can have various modifications and changes.It is all within spirit and principles of the present invention made by any modification, equivalent
Replace, improve etc., it should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of test method, which is characterized in that including:
The kernel of opening operation system;
Detect whether the guiding file there are test program;
If detecting the presence of the guiding file, the test program is started to be tested based on the kernel;
IP address and access to LAN are automatically generated, the network hardware information of simultaneously burning pre-generatmg is read in;
Wherein, described to automatically generate IP address and access to LAN, the network hardware information of simultaneously burning pre-generatmg is read in, including:
Automatically generate IP address and access to LAN;
System is executed by LAN optimization manufacturing enterprise production process, wherein manufacturing enterprise's production process executes
System is used for pre-generatmg network hardware information;
Obtain the network hardware information that manufacturing enterprise's process described in simultaneously burning executes the pre-generatmg that system is distributed;
Wherein, the network hardware information includes sequence number and physical address;
Manufacturing enterprise's production process executes system and is additionally operable to recycle the physical address.
2. test method according to claim 1, which is characterized in that described to detect whether that there are the guiding of test program texts
Part, including:
It whether there is the guiding file of the test program in the external storage device accessed of detection or built-in storage device.
3. test method according to claim 2, which is characterized in that further include:
If there are the guiding files of the test program in built-in storage device, the guiding file of the test program is deleted.
4. test method according to claim 1, which is characterized in that the network hardware information is including string number and physically
Location.
5. a kind of test device, which is characterized in that including:
System kernel starting module is used for the kernel of opening operation system;
File detection module is guided, for detecting whether there are the guiding files of test program;
Test module, if for detecting the presence of the guiding file, based on the kernel start the test program with into
Row test;
Hardware information burning module reads in for automatically generating IP address and access to LAN and the network of burning pre-generatmg is hard
Part information;
Wherein, the hardware information burning module is specifically used for:
Automatically generate IP address and access to LAN;
System is executed by LAN optimization manufacturing enterprise production process, wherein manufacturing enterprise's production process executes
System is used for pre-generatmg network hardware information;
Obtain the network hardware information that manufacturing enterprise's process described in simultaneously burning executes the pre-generatmg that system is distributed;
Wherein, the network hardware information includes sequence number and physical address;
Manufacturing enterprise's production process executes system and is additionally operable to recycle the physical address.
6. test device according to claim 5, which is characterized in that the guiding file detection module is specifically used for:
It whether there is the guiding file of the test program in the external storage device accessed of detection or built-in storage device.
7. test device according to claim 6, which is characterized in that further include:
File removing module is guided, if for the guiding file there are the test program in built-in storage device, deletes institute
State the guiding file of test program.
8. test device according to claim 5, which is characterized in that the network hardware information is including string number and physically
Location.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834903.9A CN106412576B (en) | 2016-09-19 | 2016-09-19 | test method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610834903.9A CN106412576B (en) | 2016-09-19 | 2016-09-19 | test method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106412576A CN106412576A (en) | 2017-02-15 |
CN106412576B true CN106412576B (en) | 2018-09-07 |
Family
ID=57997140
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610834903.9A Active CN106412576B (en) | 2016-09-19 | 2016-09-19 | test method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106412576B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108650507B (en) * | 2018-04-26 | 2020-05-19 | 珠海全志科技股份有限公司 | Terminal device testing method and device, terminal device and storage medium |
CN110446028A (en) * | 2019-08-09 | 2019-11-12 | 深圳市云之尚网络科技有限公司 | Set-top box production test method and system |
CN110662096A (en) * | 2019-10-12 | 2020-01-07 | 深圳市友华软件科技有限公司 | Data burning method and device for converged terminal |
CN112100012B (en) * | 2020-09-08 | 2023-10-31 | 深圳创维数字技术有限公司 | Android device testing method, android device and storage medium |
CN113721562A (en) * | 2021-07-22 | 2021-11-30 | 南京轶诺科技有限公司 | Automatic configuration method for production line test resources |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7810127B2 (en) * | 2005-08-31 | 2010-10-05 | Time Warner Cable, Inc. | System and method for evaluating the operational status of a STB in a cable network |
CN102045591B (en) * | 2009-10-10 | 2012-08-29 | 上海广联电子有限公司 | Method for recording media access control (MAC) address and K code of set top box of disposable recorder |
CN103561125A (en) * | 2013-10-31 | 2014-02-05 | 乐视致新电子科技(天津)有限公司 | Burning method, device and system of MAC addresses |
CN104123224A (en) * | 2014-07-09 | 2014-10-29 | 浪潮电子信息产业股份有限公司 | Simple memory test method based on IA-64 framework |
CN104166610B (en) * | 2014-07-24 | 2017-02-15 | 深圳天珑无线科技有限公司 | Mobile terminal detection method and detection system |
CN105573792A (en) * | 2015-12-16 | 2016-05-11 | 深圳市创维软件有限公司 | Delivery parameter burning method, equipment to be burnt, burning tool equipment |
CN105652115A (en) * | 2015-12-25 | 2016-06-08 | 广州视源电子科技股份有限公司 | Mainboard testing method, mainboard testing system, mainboard program installing method and mainboard program installing system |
-
2016
- 2016-09-19 CN CN201610834903.9A patent/CN106412576B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN106412576A (en) | 2017-02-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412576B (en) | test method and device | |
US20220317997A1 (en) | Online Upgrade Method for Household Appliance Multi-MCU System, Electronic Device and Medium | |
US20190205116A1 (en) | Method of upgrading inverter soware, system and electronic device using the same | |
WO2018209958A1 (en) | Upgradable file upgrading method, set top box and storage medium | |
CN106533753A (en) | Role configuration method of distributed system and role configuration device | |
CN103164247B (en) | The method and device that system application is repaired automatically | |
CN103593281A (en) | Test system and test method | |
CN107368313A (en) | Code detection method, device and electronic equipment | |
CN104298523A (en) | Component loading method and device and terminal | |
US11386255B2 (en) | Parameter extraction from digitized image of a schematic or block diagram for electrical designs | |
CN112615758B (en) | Application identification method, device, equipment and storage medium | |
CN110753088A (en) | System deployment method and device | |
CN105809163A (en) | Method and device for connecting to WIFI | |
CN113268416A (en) | Application program testing method and device, storage medium and terminal | |
CN101562545A (en) | WOL test method | |
CN103336698B (en) | A kind of method of wifi equipment software upgrading and wifi equipment and system | |
CN101634965B (en) | Method for testing Linux kernel-grade unit | |
CN101976197A (en) | Method for automatically installing a plurality of mobile phone software | |
CN102541733B (en) | Software fast scanning method under a kind of Android | |
CN108986723A (en) | A kind of self-sensing method and equipment of visual screen display device | |
US20170199733A1 (en) | Method for terminal to update operating system, terminal and system | |
CN112235124A (en) | Method and device for configuring pico-cell, storage medium and electronic device | |
CN108600042B (en) | WiFi test method and device for electronic equipment, storage medium and test equipment | |
CN107222355B (en) | Server upgrading method and device | |
CN104090805A (en) | Method, device and system for updating terminal operating systems |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |