CN109669831A - A kind of test method and electronic equipment - Google Patents

A kind of test method and electronic equipment Download PDF

Info

Publication number
CN109669831A
CN109669831A CN201811602035.7A CN201811602035A CN109669831A CN 109669831 A CN109669831 A CN 109669831A CN 201811602035 A CN201811602035 A CN 201811602035A CN 109669831 A CN109669831 A CN 109669831A
Authority
CN
China
Prior art keywords
test
electronic equipment
test result
function
configuration 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.)
Granted
Application number
CN201811602035.7A
Other languages
Chinese (zh)
Other versions
CN109669831B (en
Inventor
施杨炜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuxi Ruiqin Technology Co Ltd
Original Assignee
Wuxi Ruiqin Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuxi Ruiqin Technology Co Ltd filed Critical Wuxi Ruiqin Technology Co Ltd
Priority to CN201811602035.7A priority Critical patent/CN109669831B/en
Publication of CN109669831A publication Critical patent/CN109669831A/en
Application granted granted Critical
Publication of CN109669831B publication Critical patent/CN109669831B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2268Logging of test results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the invention discloses a kind of test method and electronic equipments.In the embodiment of the present invention, electronic equipment can determine that test instructs corresponding test object, and then test test object after receiving test instruction, and test result report is automatically generated, test result report may include that test result is normally reported and test result exception reporting;Further, test result report can be supplied to user by electronic equipment.Test result report is tested test object automatically by electronic equipment and generated to inventive embodiments, can be used manpower and material resources sparingly, and can improve the efficiency of test;And electronic equipment can test multiple test objects, and can generate the corresponding test result of multiple test objects and normally report and test result exception reporting, so that the result that test obtains is more comprehensive, the accuracy of test is preferable.

Description

A kind of test method and electronic equipment
Technical field
The present invention relates to electronic information technical field more particularly to a kind of test method and electronic equipments.
Background technique
With the development of electronic information technology, each class of electronic devices using more and more extensive, such as handheld mobile device, Desktop computer, laptop etc..By taking laptop as an example, after laptop assembles successfully, it usually needs to notebook Computer carries out initialization test, to determine whether the various functions of laptop are in normal condition, guarantees that user is using When laptop, the various functions of laptop can be smoothly called, the needs of user are met.
Initialization test to electronic equipment may include testing one or more configuration parameters of electronic equipment, It is checked such as in configuration parameters such as the software version of electronic equipment, operating system, memory sizes;Or it also can wrap It includes and is tested for executing one or more modules of preset function in electronic equipment, for example completed in advance by control module If whether function determining module is in normal condition.For example bright, the camera module being arranged in electronic equipment can be completed The function of picture, video is shot, therefore, on the one hand camera module can be determined whether to the initialization detection of camera module On the other hand whether abnormal the function that can complete shooting can also detect file that camera module is shot, for example, clapping Whether the clarity of the picture or video taken the photograph meets the requirements.It follows that by carrying out initialization survey to electronic equipment Examination, it is ensured that electronic equipment is in normal condition, so that the function that electronic equipment completes electronic equipment can be used in user Can, enhance the experience of user.
To sum up, a kind of test method is needed at present, to carry out initialization test to electronic equipment.
Summary of the invention
The embodiment of the present invention provides a kind of test method and electronic equipment, to carry out initialization test to electronic equipment.
A kind of test method provided in an embodiment of the present invention, this method comprises:
After electronic equipment receives test instruction, determine that the test instructs corresponding test object;The test object It comprises at least one of the following: for executing the function of preset function in the configuration parameter of the electronic equipment, the electronic equipment The user experience index of module, the equipment submodule of the electronic equipment, the electronic equipment;
The electronic equipment tests the test object, and automatically generates test result report;The test knot Fruit report includes that test result is normally reported and test result exception reporting;
The test result report is supplied to user by the electronic equipment.
Optionally, the electronic equipment tests the configuration parameter, comprising:
The electronic equipment obtains the value of the configuration parameter, and will be in the value of the configuration parameter and preset configuration table Value compares;If the value of the configuration parameter is different from the value in the preset configuration table, the configuration parameter pair is generated The first test result answered, the test result that first test result is used to identify the configuration parameter are abnormal;Alternatively, if institute The value for stating configuration parameter is identical as the value in the preset configuration table, then generates the corresponding second test knot of the configuration parameter Fruit, the test result that second test result is used to identify the configuration parameter are normal.
Optionally, the electronic equipment tests the functional module, comprising:
The electronic equipment calls the functional module to execute the preset function, however, it is determined that the functional module has failed At the preset function, then the corresponding third test result of the functional module is generated;The third test result is for identifying The test result of the functional module is abnormal;Or, however, it is determined that the functional module completes the preset function, then described in generation Corresponding 4th test result of functional module;4th test result is being used to identify the test result of the functional module just Often.
Optionally, the preset function includes input/output function, external interface function, display function, playing audio-video Any one of function, camera function, heat sinking function, function of supplying power.
A kind of electronic equipment provided in an embodiment of the present invention, the electronic equipment include:
Determining module determines that the test instructs corresponding test object after receiving test instruction;The test Object comprises at least one of the following: for executing preset function in the configuration parameter of the electronic equipment, the electronic equipment The user experience index of functional module, the equipment submodule of the electronic equipment, the electronic equipment;
Test module for testing the test object, and automatically generates test result report;The test knot Fruit report includes that test result is normally reported and test result exception reporting;
Transceiver module, for the test result report to be supplied to user.
Optionally, the test module is used for:
The value of the configuration parameter is obtained, and the value of the configuration parameter and the value in preset configuration table are compared; If the value of the configuration parameter is different from the value in the preset configuration table, corresponding first test of the configuration parameter is generated As a result, the test result that first test result is used to identify the configuration parameter is abnormal;Alternatively, if the configuration parameter Value is identical as the value in the preset configuration table, then generates corresponding second test result of the configuration parameter, and described second surveys The test result that test result is used to identify the configuration parameter is normal.
Optionally, the test module is used for:
The functional module is called to execute the preset function;If it is determined that the functional module fails to complete the default function Can, then the corresponding third test result of the functional module is generated, the third test result is for identifying the functional module Test result it is abnormal;Or, however, it is determined that the functional module completes the preset function, then it is corresponding to generate the functional module The 4th test result, the 4th test result be used for identify the functional module test result it is normal.
Optionally, the preset function includes input/output function, external interface function, display function, playing audio-video Any one of function, camera function, heat sinking function, function of supplying power.
A kind of computer readable storage medium provided in an embodiment of the present invention, including instruction, when it runs on computers When, so that computer executes the test method in the embodiment of the present invention.
A kind of computer program product provided in an embodiment of the present invention, when run on a computer, so that computer Execute the test method in the embodiment of the present invention.
In the above embodiment of the present invention, electronic equipment can determine that test instruction corresponds to after receiving test instruction Test object, test object may include the configuration parameter of electronic equipment, in electronic equipment for executing the function of preset function Can module, the equipment submodule of electronic equipment, electronic equipment user experience index at least one of;And electronic equipment can To test test object, and test result report is automatically generated, test result report may include that test result is normal Report and test result exception reporting;Further, test result report can be supplied to user by electronic equipment.The present invention is real It applies example and is tested test object and generated test result report automatically by electronic equipment, can use manpower and material resources sparingly, and The efficiency of test can be improved;And electronic equipment can test multiple test objects, and can generate multiple test objects pair The test result answered normally is reported and test result exception reporting, so that the result that test obtains is more comprehensively, test Accuracy it is preferable.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of corresponding flow diagram of test method provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of a kind of electronic equipment provided in the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
Initialization test is carried out to electronic equipment to realize, a kind of possible implementation is, using manually to each Electronic equipment carries out initialization test.For example, carrying out initialization survey to different electronic equipments respectively by several staff Examination, several staff can record each electronic equipment respectively, and the problem, summary and induction obtain during the test To the result of each electronic equipment initialization test.
Specifically, being directed to an electronic equipment, each single item of the electronic equipment can be examined successively by staff The function executive condition of configuration parameter and each module, the configuration parameter of electronic equipment and each module of electronic equipment It all can be a test object.By taking laptop as an example, initialized to the camera module to laptop Test, staff can open the corresponding pre-set button of camera module, and shoot photograph after control laptop booting Piece or video, and then observe and whether enough clearly shoot obtained picture or video, determine whether camera module is in normal State.However, the above method there is a problem of in actual operation it is more, on the one hand, since the quantity of electronic equipment is more, lead to The mode for crossing manual testing tests electronic equipment, waste of manpower and time, and the efficiency tested is lower;On the other hand, The initialization test of electronic equipment is corresponding with more test object, and the test process of each test object is all different, adopts Tested with manpower, may be such that complicated operation, fault is easy to appear during test so that test accuracy compared with It is low.
Based on this, the application provides a kind of test method, initial to carry out to electronic equipment (such as laptop) Change test.
Fig. 1 is a kind of corresponding flow diagram of test method provided in an embodiment of the present invention, as shown in Figure 1, this method Include:
Step 101, after electronic equipment receives test instruction, determine that test instructs corresponding test object.
In the embodiment of the present invention, test instruction be can be by user's triggering of test electronic equipment, specific triggering side Formula can there are many.In one example, at least one key can be set on electronic equipment, test instruction can be to pass through What the programmable button at least one key triggered.Wherein, programmable button can be a key, or may be that combination is pressed Key is specifically not construed as limiting.In another example, speech detection device can be set in equipment, test instruction can be language Sound detection device detects the voice messaging of user's input and triggers.In other possible examples, the first instruction can also lead to Other way triggering is crossed, the embodiment of the present invention is not construed as limiting this.
Further, electronic equipment can determine that test instructs corresponding test object, test after receiving test instruction Object may include following at least one: for executing the function of preset function in the configuration parameter of electronic equipment, electronic equipment The user experience index of module, the equipment submodule of electronic equipment, electronic equipment.Specifically, electronic equipment is if it is determined that test Instruct corresponding test object include it is a variety of, then electronic equipment can simultaneously to each test object in a variety of test objects It is tested, or a variety of test objects can also be tested according to preset order, is specifically not construed as limiting.
In one possible implementation, survey can be write by the user of test electronic equipment in the electronic device in advance Program is tried, test program may include the test subroutine for being directed at least one test object, receive survey in electronic equipment After examination instruction, it can determine that the test instructs corresponding test object by inquiring test program, and call test object corresponding Test subroutine test object is tested.For example bright, test program includes test subroutine 1 and test subroutine 2, for test subroutine 1 for testing the configuration parameter of electronic equipment, test subroutine 2 is used for the equipment to electronic equipment Submodule a is tested.In one example, it is matching for electronic equipment that electronic equipment, which determines that test instructs corresponding test object, Parameter is set, then electronic equipment can call test subroutine 1 to test the configuration parameter of electronic equipment;In another example In, it is the equipment submodule a of electronic equipment that electronic equipment, which determines that test instructs corresponding test object, then electronic equipment can be adjusted It is tested with equipment submodule a of the test subroutine 2 to electronic equipment;In yet another example, electronic equipment determines test Instructing corresponding test object is the configuration parameter and equipment submodule a of electronic equipment, then electronic equipment can call test Program 1 tests the configuration parameter of electronic equipment, and call test subroutine 2 to the equipment submodule a of electronic equipment into Row test.
In the embodiment of the present invention, test object is tested automatically by electronic equipment, is used compared with the existing technology For the mode of manual testing, human cost and time can be saved, and working efficiency can be improved;And if test object is more Kind, electronic equipment can test a variety of test objects simultaneously, so as to improve the efficiency of test.
Step 102, electronic equipment tests test object, and automatically generates test result report.
Herein, test result report may include that test result is normally reported and test result exception reporting, test result Normal report can be used for identifying that test object is normal, and test result exception reporting can identify test object exception.
In specific implementation, if test object is the configuration parameter of electronic equipment, the available configuration parameter of electronic equipment Value, and the value of configuration parameter and the value in preset configuration table are compared.If in the value of configuration parameter and preset configuration table Value it is different, then corresponding first test result of configuration parameter can be generated, the first test result is for identifying configuration parameter Test result is abnormal;If the value of configuration parameter is identical as the value in preset configuration table, configuration parameter corresponding can be generated Two test results, the test result that the second test result is used to identify configuration parameter are normal.If test object is in electronic equipment For executing the module of preset function, then electronic equipment can execute preset function with calling functional modules, however, it is determined that functional module Fail to complete preset function, then the corresponding third test result of functional module can be generated, third test result is for identifying function The test result of energy module is abnormal;If it is determined that functional module completes preset function, then functional module the corresponding 4th can be generated Test result, test result of the 4th test result for identification function module are normal.
In one example, before carrying out initialization detection to electronic equipment, can be arranged in the electronic device original Exception reporting (original anomaly report can be understood as exception reporting template) includes that configuration information is corresponding in original anomaly report Son reports sub- report corresponding with modules.It during the test, can if electronic equipment determines configuration information exception The first test result report to be added in the corresponding sub- report of configuration information;If electronic equipment determines that some module is different Often, then third test result report can be added in the corresponding sub- report of the module.It correspondingly, can also be in electronic equipment Original normal report is set, the set-up mode that the original set-up mode normally reported and original anomaly are reported can be identical, or It can also be different, be specifically not construed as limiting.
The electronic equipment mentioned in the embodiment of the present invention can be in mobile terminal, home electronics or industrial equipment Any one.In one example, electronic equipment can be mobile terminal, such as mobile phone, desktop computer, laptop etc.; In another example, electronic equipment can be home electronics, such as air-conditioning, LCD TV, clarifier etc.;At another In example, electronic equipment can be industrial equipment, such as lathe, industrial robot etc..It is described by taking laptop as an example below The process of initialization test is carried out to laptop.
The process tested below the configuration parameter of laptop is described.
The configuration parameter of laptop may include first kind configuration parameter and Second Type configuration parameter, the first kind Type configuration parameter be parameter relevant to the Windows configuration information of laptop, such as with central processing unit (Central Processing Unit, CPU) relevant parameter, with hard disk drive (Hard Disk Drive, HDD) relevant parameter, with The relevant parameter of random access memory (random access memory, RAM), the Trackpad with laptop Touchpad and the relevant parameter of touch panel Touchpanel, parameter relevant to camera Camera etc..Second Type configuration Parameter be parameter relevant to the facilities control console Devcon information of laptop, such as with hardware product identification code (Product ID, PID) relevant parameter and hardware supplier (Vendor ID, VID) relevant parameter etc..Wherein, Devcon can be used as a command-line tool, for show in relation to run Windows laptop on equipment it is detailed Information.
In one possible implementation, if test object is first kind configuration parameter, electronic equipment can be adjusted It can be with Win-dows management regulation (Windows Management Instrumentation, WMI) module, in WMI module It is provided with the function library that store a variety of api functions, every kind of api function in function library can execute predetermined registration operation, And obtain the configuration information of electronic equipment relevant to the api function.In specific implementation, if test object is a variety of first kind Configuration parameter (for example, first kind configuration parameter 1, first kind configuration parameter 2), then electronic equipment can traverse WMI module Function library in each api function, and determine respectively with first kind configuration parameter 1 and first kind configuration parameter 2 After matched api function (API_1 function, API_2 function), API_1 function and API_2 function is called to execute preset function, point It Huo Qu not the first kind that executes of value b and the API_2 function of first kind configuration parameter 1 that executes of API_1 function The value c of type configuration parameter 2.Further, electronic equipment can obtain the value of first kind configuration parameter 1 from preset configuration table The value e of d and first kind configuration parameter 2.By taking first kind configuration parameter 1 as an example, if value b is different from value d, it is determined that the first kind Type configuration parameter 1 is abnormal, so as to generate the report of corresponding first result of first kind configuration parameter 1;If value b and value d phase Together, it is determined that first kind configuration parameter 1 is normal, so as to generate the corresponding second result report of first kind configuration parameter 1 It accuses.
If test object is Second Type configuration parameter, electronic equipment can be by command-line tool Devcon to test Object is tested.In one example, electronic equipment can be with call instruction row tool Devcon, and can be in the finger of Devcon It enables and inputs acquisition instruction in input page, the acquisition instruction is currently running all for driving Devcon to obtain electronic equipment Second Type configuration parameter, and generate configuration text;Wherein, configuration text can be word format, or may be txt lattice Formula, or can also be excel format, specifically it is not construed as limiting.Further, electronic equipment can get configuration text Afterwards, keyword match is carried out to configuration text using regular expression, to filter out in configuration text and test object phase The value of the configuration parameter of pass.In the embodiment of the present invention, mistake that the value of Second Type configuration parameter and preset configuration table compare Journey is referred to the process that first kind configuration parameter is compared with preset configuration table and is realized that details are not described herein again.
In the embodiment of the present invention, by calling the multiple module (such as WMI or Devcon etc.) built in electronic equipment to obtain The automatic test to configuration parameter may be implemented in the value of one or more configuration parameters, without obtaining configuration ginseng by artificial Several values, so as to save manpower, improves the efficiency of test without manually successively being proofreaded to the value of configuration parameter.
It is described below in laptop for executing the process that the module of preset function is tested.
With the development of science and technology, the preset function that laptop provides is more and more, such as external interface function, input Output function, heat sinking function and function of supplying power, playing audio-video function, display function, camera function etc..Correspondingly, notebook The module that above-mentioned preset function is executed in computer can be respectively external interface generic module, input/output module, heat dissipation and battery Module, audio and video module, display module, camera model etc..In other possible embodiments, it can also be wrapped in laptop Include other modules, such as monitoring running state module, user experience module etc., and can execute respectively monitoring operating status, really Determine the preset functions such as user experience, is specifically not construed as limiting.Each module is directed to separately below to describe in the embodiment of the present invention The process that each module is tested provided.
External interface generic module may include a plurality of types of external interfaces, such as universal serial bus (Universal Serial Bus, USB) interface, Type-C interface, earphone interface, high-definition media interface (High Definition Multimedia Interface, HDMI), speaker interface, analog signal/digital signal interface D-Sub interface, wiring system Middle telecommunications outlet connector (Registered Jack, RJ45) interface etc..Under normal circumstances, laptop can be by outer It sets interface to connect with external device, and data read-write operation may be implemented.By taking USB interface as an example, USB interface is detected When content may include: external device access laptop, whether laptop can successfully identify external device;Notes Whether this computer can realize data read-write operation with external device;When external device extracts laptop, laptop Whether can successfully show that external device is extracted.
When testing external interface, need to control external device insertion external interface, and control external device It is extracted from external interface, that is, it is mobile to need to control external device.In the embodiment of the present invention, the mobile mode of control external device Can there are many, in one possible implementation, it is mobile that mechanical arm control external device can be used.Specifically, machine The gripper for clamping external device can be set in tool arm end, controls mechanical arm by the first motor program write in advance Movement drives gripper that external device is moved to target position from initial position;When external device is located at initial position, install outside It is standby to may be at discrete state with laptop;When external device is located at target position, external device and laptop can To be in connection status.Correspondingly, after the completion of test, mechanical arm fortune can be controlled by the second motor program write in advance It is dynamic, drive gripper that external device is moved to initial position from target position, so that external device and laptop point From.
In specific implementation, laptop can be after detecting external device access laptop, and scanning is outer to be installed It is standby, if scanning successfully, illustrate that laptop can successfully identify external device, at this point, knowledge can be generated in laptop Abnormal report information;If scanning failure, illustrates that laptop can not identify external device, at this point, laptop can Exception reporting information is identified to generate, and may include mark, the external interface of laptop in identification exception reporting information Mark and exception information.Further, it is corresponding can be added to external interface by laptop for identification exception reporting information In abnormal sub- report.
Laptop can execute the read-write operation of data after successfully identifying external device.Specifically, notebook Computer can copy to the test file in external device in the pre-set space of laptop, if replicating successfully, illustrate Laptop is able to carry out read operation, at this point, laptop, which can be generated, reads normal report information;If duplication is lost It loses, then illustrates that laptop can not execute read operation, at this point, laptop, which can be generated, reads exception reporting information. Correspondingly, laptop can to the test file in external device execute modification operation (such as modification test file name, repair Change the information etc. in test file), if successfully modified, illustrate that laptop is able to carry out write operation, at this point, notebook The normal report information of write-in can be generated in computer;If duplication failure, illustrates that laptop can not execute write operation, this When, write-in exception reporting information can be generated in laptop.Further, laptop can be different by read-write (or write-in) Normal report information is added in the sub- report of the corresponding exception of external interface.
Further, after the completion of test, it can control mechanical arm and extract external device from external interface, at this point, Laptop can scan external device again, if scanning successfully, scan abnormalities report letter is can be generated in laptop Breath;If scanning failure, the normal report information of scanning is can be generated in laptop.Further, laptop can incite somebody to action Scan abnormalities report information is added in the sub- report of the corresponding exception of external interface.So far, laptop determination connects to external The detection of mouth is completed, and generates the corresponding complete sub- report of exception of external interface, and can start to test next module.
Input/output module can be used for executing the interactive function of user and laptop, such as the key on keyboard, The Trigger Function of input/output module and the preset function of input/output module are predominantly determined to the test of input/output module Whether match.In one possible implementation, the test array including multiple test items can be preset, control is passed through Manipulator motion so that the end gripper of mechanical arm according to test array in sequence successively press it is each in multiple test items A test item, and determine whether the function of each test item triggering and preset function are consistent.Wherein, multiple test items can wrap Single key, such as alphabet key, digital keys, function button, character keys etc. are included, or also may include combination button, Specifically without limitation.
In one example, it is set in advance in the test item that pressing is shown on the screen of laptop, if control gripper The test item of pressing is letter key q, and letter w is shown on the screen of laptop, then illustrates that the test of letter key q is abnormal, At this point, the information of letter key q exception can be added in the sub- report of the corresponding exception of input/output module by laptop.Phase Ying Di illustrates that the test of letter key q is normal if showing letter q on the screen of laptop, at this point, laptop is also The normal information of letter key q can be added in the corresponding normal-sub report of input/output module.
It can be to determine the current operating temperature of laptop and when the revolving speed of forefan is to the test of radiating module It is no to be in zone of reasonableness.In one example, the embedded Control being arranged in the accessible laptop of laptop Device (Embed Controller, EC) chip, determines the current operating temperature of laptop and the revolving speed when forefan, and count Calculate obtain current heat dissipation value (such as can for the current operating temperature of laptop and when forefan revolving speed ratio). And laptop can compare current heat dissipation value and default heat dissipation range.If current heat dissipation value is in default In the range that radiates, it is determined that radiating module is normal;If current heat dissipation value is in other than default heat dissipation range, it is determined that radiating mould Block is abnormal.Further, it is corresponding can be added to radiating module by laptop for the information of radiating module exception (or normal) The sub- report (or normal-sub report) of exception in.
Can whether reasonable for the battery design capacity of determining laptop and full capacitance to the test of battery module. In one example, laptop can obtain battery design by calling preset function to access the battery interface of WMI module Capacity and full capacitance, and battery capacity difference (can be the difference of battery design capacity and full capacitance) be calculated.And Laptop can by battery design capacity and full capacitance respectively in configuration information table default battery design capacity and Default full capacitance compares, and battery capacity difference and preset battery capacity difference range can be compared, and determines Whether battery module there is exception.
Monitoring operating status module can be used for detecting whether the modules being arranged in laptop are in normal fortune Row state, for example, whether equipment is in delay machine state, equipment when operating normally warn whether module works normally when something goes wrong Deng.In one example, laptop can call Devcon command-line tool, and can be in the instruction input page of Devcon Input obtains the instruction of operating status in face, which is used to that Devcon to be driven to obtain the current operating status ginseng of laptop Number, and generate operating status text.Further, laptop can be after getting operating status text, by default Data processing method exception information is screened, be added in the corresponding sub- report of exception of monitoring operating status module.
Test to audio and video module may include video playback capability test, audio playing function test, sound-recording function Test, L channel and right channel functional test play splashette test, noise test, test etc. of resonating.In a kind of possible realization In mode, laptop can start audio and video module and play video text to be played after getting video file to be played Part, while starting default test camera and video and audio in preset sound sensor recording preset time period, and will record The video file and audio files storage being made are in test catalogue.Further, built-in figure can be used in laptop As parser analyzes video file, and built-in audio analysis algorithm can be used, audio file is analyzed, If it is determined that there is exception, then exception information can be written in the corresponding sub- report of exception of audio and video module.
The display module of better performances may provide the user with preferable experience, and display module may include built-in display mould Block and external display module, to the test of display module can include determining that screen whether there is or not water ripples, determine screen whether there is or not light leakage, Determine the normal switching etc. of external display module and built-in display module.It, in one example, can by taking external display module as an example To pass through control manipulator motion, so that the end gripper for carrying the data line interface of external display module is connected to notebook electricity On the external interface (than USB interface) of brain, and then programmable button is pressed by mechanical arm and determines that external display module is shown with built-in Show whether module can normally switch.For example bright, programmable button is the combination button that win and p is formed, and laptop can To pull the file in external display equipment automatically after detecting the combination button that mechanical arm triggering win and p is formed.If outer The file set in display equipment can be drawn in the built-in display device of laptop, then illustrate external display equipment and interior Display equipment is set to switch successfully;If the file in external display equipment can not be drawn in laptop, illustrate external aobvious Show that equipment and built-in display device switching are unsuccessful, it is corresponding can be added to display module by laptop for exception information at this time The sub- report of exception in.Further, laptop can call the photo of built-in camera filmed display screen, Huo Zhetong Cross screenshot mode obtain display screen photo, and by preset display algorithm to display screen photo carry out image analysis and Processing, determining screen, whether there is or not water ripples and light leakage phenomena;If it is determined that screen is there are water ripples or light leakage phenomena, then laptop Exception information can be added in the sub- report of the corresponding exception of display module.
Camera model is to apply a kind of more module, can include determining that camera function is to the test of camera model It is no it is normal, determine whether camera function normal, whether extremely determine the file taken pictures or image and obtain.In one example, pen Remember that this computer can call camera model automatically, shoots the photo of preset quantity, records the video of preset time period, and will shooting It stores with obtained photos and videos is recorded into predetermined directory.Further, laptop can call pre-set image to calculate Method parses photos and videos, determines photos and videos with the presence or absence of abnormal.If laptop determine camera model without Method shoots photo, and perhaps camera model can not the recorded video photo that perhaps camera model is shot be unintelligible or camera The video that module is recorded is discontinuous, then it is sub can be added to the corresponding exception of camera model by laptop for exception information In report.
In the embodiment of the present invention, user experience module can also be tested, user experience module can be used for analyzing To improve the experience of user, the test to user experience module may include the test of touch screen induction duration, answers user experience index With the processing speed test etc. of program.In one possible implementation, laptop can recorde user and trigger screen When screen on the motion profile of user's finger tip that senses, and then the motion profile is analyzed, however, it is determined that the motion profile It is continuous, it is determined that test result is normal;If it is determined that there is breakpoint in the motion profile kind, it is determined that test result is abnormal, this When, the exception information including breakpoint mark can be added to the sub- report of the corresponding exception of user experience module by laptop In.Further, it is directed to some application program to be measured, laptop can star the application program, and record starting The termination time that the initial time of the application program and the application program successfully start up is calculated initial time and terminates The time difference of time, however, it is determined that the time difference is located in preset time range, then can determine that the application program is normal;If it is determined that The time difference is located at other than preset time range, then can determine the application exception, at this point, laptop can will wrap The exception information for including the application program identification is added in the sub- report of the corresponding exception of user experience module.
In the embodiment of the present invention, after the completion of electronic equipment tests multiple test objects, test result can be automatically generated Exception reporting and test result normally report, may include in test result exception reporting in multiple test objects test result it is different The exception information of normal test object, test result normally report in may include in multiple test objects test result it is normal The exception information of test object.Test result is automatically generated by electronic equipment normally to report and test result exception reporting, phase Than the time can be saved for manual record test result, guarantee the efficiency of test.
Step 103, test result report is supplied to user by electronic equipment.
In the embodiment of the present invention, electronic equipment by test result report be supplied to user mode can there are many, one In the possible implementation of kind, test result report can be supplied to user by form web page by electronic equipment.Specifically, Electronic equipment can automatically open preset web, can show test result report in preset web after the completion of test.Into One step, electronic equipment can store test result report or the report of printing test result, Huo Zheshou according to the user's choice Test result report is hidden, is specifically not construed as limiting.
In the above embodiment of the present invention, electronic equipment can determine that test instruction corresponds to after receiving test instruction Test object, test object may include the configuration parameter of electronic equipment, in electronic equipment for executing the function of preset function Can module, the equipment submodule of electronic equipment, electronic equipment user experience index at least one of;And electronic equipment can To test test object, and test result report is automatically generated, test result report may include that test result is normal Report and test result exception reporting;Further, test result report can be supplied to user by electronic equipment.Invention is implemented Test result report is tested test object automatically by electronic equipment and generated to example, can be used manpower and material resources sparingly, and energy Improve the efficiency of test;And electronic equipment can test multiple test objects, and it is corresponding to generate multiple test objects Test result normally report and test result exception reporting so that the result that test obtains is more comprehensively, test Accuracy is preferable.
For above method process, the embodiment of the present invention also provides a kind of electronic equipment, the particular content of the electronic equipment It is referred to above method implementation.
Fig. 2 is a kind of electronic equipment provided in an embodiment of the present invention, which includes:
Determining module 201 determines that the test instructs corresponding test object after receiving test instruction;It is described Test object comprises at least one of the following: for executing default function in the configuration parameter of the electronic equipment, the electronic equipment The user experience index of the functional module of energy, the equipment submodule of the electronic equipment, the electronic equipment;
Test module 202 for testing the test object, and automatically generates test result report;The survey Test result report includes that test result is normally reported and test result exception reporting;
Transceiver module 203, for the test result report to be supplied to user.
Optionally, the test module 202 is used for:
The value of the configuration parameter is obtained, and the value of the configuration parameter and the value in preset configuration table are compared; If the value of the configuration parameter is different from the value in the preset configuration table, corresponding first test of the configuration parameter is generated As a result, the test result that first test result is used to identify the configuration parameter is abnormal;Alternatively, if the configuration parameter Value is identical as the value in the preset configuration table, then generates corresponding second test result of the configuration parameter, and described second surveys The test result that test result is used to identify the configuration parameter is normal.
Optionally, the test module 202 is used for:
The functional module is called to execute the preset function;If it is determined that the functional module fails to complete the default function Can, then the corresponding third test result of the functional module is generated, the third test result is for identifying the functional module Test result it is abnormal;Or, however, it is determined that the functional module completes the preset function, then it is corresponding to generate the functional module The 4th test result, the 4th test result be used for identify the functional module test result it is normal.
Optionally, the preset function includes input/output function, external interface function, display function, playing audio-video Any one of function, camera function, heat sinking function, function of supplying power.
It can be seen from the above: in the above embodiment of the present invention, electronic equipment can receive test instruction Afterwards, determine that test instructs corresponding test object, test object may include the configuration parameter of electronic equipment, use in electronic equipment In execute the functional module of preset function, the equipment submodule of electronic equipment, electronic equipment user experience index at least One;And electronic equipment can test test object, and automatically generate test result report, test result report can To include that test result is normally reported and test result exception reporting;Further, electronic equipment can be by test result report It is supplied to user.Test result report is tested test object automatically by electronic equipment and generated to inventive embodiments, can To use manpower and material resources sparingly, and the efficiency of test can be improved;And electronic equipment can test multiple test objects, and energy It generates the corresponding test result of multiple test objects normally to report and test result exception reporting, so that the knot that test obtains More comprehensively, the accuracy of test is preferable for fruit.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the present invention Form.It is deposited moreover, the present invention can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of test method, which is characterized in that the described method includes:
After electronic equipment receives test instruction, determine that the test instructs corresponding test object;The test object includes Following at least one: in the configuration parameter of the electronic equipment, the electronic equipment for execute preset function functional module, The user experience index of the equipment submodule of the electronic equipment, the electronic equipment;
The electronic equipment tests the test object, and automatically generates test result report;The test result report Accuse includes that test result is normally reported and test result exception reporting;
The test result report is supplied to user by the electronic equipment.
2. the method according to claim 1, wherein the electronic equipment tests the configuration parameter, Include:
The electronic equipment obtains the value of the configuration parameter, and by the value in the value of the configuration parameter and preset configuration table into Row comparison;If the value of the configuration parameter is different from the value in the preset configuration table, it is corresponding to generate the configuration parameter First test result, the test result that first test result is used to identify the configuration parameter are abnormal;Alternatively, if described match The value for setting parameter is identical as the value in the preset configuration table, then generates corresponding second test result of the configuration parameter, institute It is normal to state test result of second test result for identifying the configuration parameter.
3. the method according to claim 1, wherein the electronic equipment tests the functional module, Include:
The electronic equipment calls the functional module to execute the preset function, however, it is determined that the functional module fails to complete institute Preset function is stated, then generates the corresponding third test result of the functional module;The third test result is described for identifying The test result of functional module is abnormal;Or, however, it is determined that the functional module completes the preset function, then generates the function Corresponding 4th test result of module;The test result that 4th test result is used to identify the functional module is normal.
4. according to the method in any one of claims 1 to 3, which is characterized in that the preset function includes input and output Function, external interface function, display function, playing audio-video function, camera function, heat sinking function, any in function of supplying power ?.
5. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Determining module determines that the test instructs corresponding test object after receiving test instruction;The test object It comprises at least one of the following: for executing the function of preset function in the configuration parameter of the electronic equipment, the electronic equipment The user experience index of module, the equipment submodule of the electronic equipment, the electronic equipment;
Test module for testing the test object, and automatically generates test result report;The test result report Accuse includes that test result is normally reported and test result exception reporting;
Transceiver module, for the test result report to be supplied to user.
6. electronic equipment according to claim 5, which is characterized in that the test module is used for:
The value of the configuration parameter is obtained, and the value of the configuration parameter and the value in preset configuration table are compared;If institute The value for stating configuration parameter is different from the value in the preset configuration table, then generates the corresponding first test knot of the configuration parameter Fruit, the test result that first test result is used to identify the configuration parameter are abnormal;Alternatively, if the value of the configuration parameter It is identical as the value in the preset configuration table, then generate corresponding second test result of the configuration parameter, second test As a result normal for identifying the test result of the configuration parameter.
7. electronic equipment according to claim 5, which is characterized in that the test module is used for:
The functional module is called to execute the preset function;If it is determined that the functional module fails to complete the preset function, The corresponding third test result of the functional module is then generated, the third test result is used to identify the survey of the functional module Test result is abnormal;Or, however, it is determined that the functional module completes the preset function, then generates the functional module corresponding the Four test results, the test result that the 4th test result is used to identify the functional module are normal.
8. electronic equipment according to any one of claims 5 to 7, which is characterized in that the preset function includes input Output function, external interface function, display function, playing audio-video function, camera function, heat sinking function, in function of supplying power Any one.
9. a kind of computer readable storage medium, which is characterized in that including instruction, when run on a computer, make to succeed in one's scheme Calculation machine executes such as the described in any item methods of Claims 1-4.
10. a kind of computer program product, which is characterized in that when run on a computer, so that computer is executed as weighed Benefit requires 1 to 4 described in any item methods.
CN201811602035.7A 2018-12-26 2018-12-26 Test method and electronic equipment Active CN109669831B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811602035.7A CN109669831B (en) 2018-12-26 2018-12-26 Test method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811602035.7A CN109669831B (en) 2018-12-26 2018-12-26 Test method and electronic equipment

Publications (2)

Publication Number Publication Date
CN109669831A true CN109669831A (en) 2019-04-23
CN109669831B CN109669831B (en) 2022-05-17

Family

ID=66146243

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811602035.7A Active CN109669831B (en) 2018-12-26 2018-12-26 Test method and electronic equipment

Country Status (1)

Country Link
CN (1) CN109669831B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110712222A (en) * 2019-10-21 2020-01-21 上海庆科信息技术有限公司 Product testing method and device of intelligent robot and intelligent robot
CN113448814A (en) * 2020-03-26 2021-09-28 伊姆西Ip控股有限责任公司 Method, apparatus and program product for evaluating application program interfaces
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium
CN114978360A (en) * 2022-05-10 2022-08-30 紫光计算机科技有限公司 Automatic testing method and device for communication equipment, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375907A (en) * 2013-08-13 2015-02-25 神讯电脑(昆山)有限公司 Laptop configuration auto-testing method
CN105138456A (en) * 2015-08-28 2015-12-09 上海斐讯数据通信技术有限公司 Testing method and system
CN105893199A (en) * 2016-05-24 2016-08-24 昆山精科电子测试仪器厂 Overall laptop testing equipment and method
CN108681506A (en) * 2018-04-27 2018-10-19 无锡睿勤科技有限公司 A kind of method for testing pressure and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104375907A (en) * 2013-08-13 2015-02-25 神讯电脑(昆山)有限公司 Laptop configuration auto-testing method
CN105138456A (en) * 2015-08-28 2015-12-09 上海斐讯数据通信技术有限公司 Testing method and system
CN105893199A (en) * 2016-05-24 2016-08-24 昆山精科电子测试仪器厂 Overall laptop testing equipment and method
CN108681506A (en) * 2018-04-27 2018-10-19 无锡睿勤科技有限公司 A kind of method for testing pressure and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110712222A (en) * 2019-10-21 2020-01-21 上海庆科信息技术有限公司 Product testing method and device of intelligent robot and intelligent robot
CN113448814A (en) * 2020-03-26 2021-09-28 伊姆西Ip控股有限责任公司 Method, apparatus and program product for evaluating application program interfaces
CN113448814B (en) * 2020-03-26 2024-04-26 伊姆西Ip控股有限责任公司 Method, device and program product for evaluating an application program interface
CN113468048A (en) * 2021-06-21 2021-10-01 上汽通用五菱汽车股份有限公司 System testing method, device, equipment and computer readable storage medium
CN114978360A (en) * 2022-05-10 2022-08-30 紫光计算机科技有限公司 Automatic testing method and device for communication equipment, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109669831B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN109669831A (en) A kind of test method and electronic equipment
TWI509409B (en) Methods and systems for viewing log data recorded during execution of a program
US20200242953A1 (en) Internet teaching platform-based following teaching system
CN101493790B (en) Record playback system and record back method
TWI510913B (en) Testing device and testing method thereof
US9881215B2 (en) Apparatus and method for identifying a still image contained in moving image contents
CN109857674A (en) A kind of recording and playback test method and relevant apparatus
CN109842795A (en) Audio-visual synchronization performance test methods, device, electronic equipment, storage medium
CN111524206A (en) Method and device for generating thinking guide graph
JP2008040537A (en) Gui test support system and application program for test support
CN112115038A (en) Application testing method and device and storage medium
CN110837474A (en) Script recording method, device, terminal and storage medium
CN104285452A (en) Spatial audio signal filtering
CN110198480A (en) A kind of code stream test method and device
CN107124645A (en) User input behavior recording and playback method and device
CN113093981B (en) Method and equipment for generating long graphs of operation steps by screen recording of Android terminal
US8463754B2 (en) Electronic equipment and log output method
CN110569184B (en) Test method and terminal equipment
TWI741488B (en) Debugging system and early warning system
CN113094265B (en) Analysis method and analysis device for test script and electronic equipment
US20020054070A1 (en) Method and device for supporting production of moving-picture cd-rom software
CN117116333B (en) Method and device for testing VPD information of enterprise-level solid state disk
CN117950983A (en) User interface testing method, device, electronic equipment and storage medium
US20240211360A1 (en) Method and system for test script generation and execution
CN105812699A (en) Method for generating dynamic pictures and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant