CN111506465A - Computer function testing method and device - Google Patents

Computer function testing method and device Download PDF

Info

Publication number
CN111506465A
CN111506465A CN202010311223.5A CN202010311223A CN111506465A CN 111506465 A CN111506465 A CN 111506465A CN 202010311223 A CN202010311223 A CN 202010311223A CN 111506465 A CN111506465 A CN 111506465A
Authority
CN
China
Prior art keywords
test
single test
programs
item
computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010311223.5A
Other languages
Chinese (zh)
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.)
Beijing Yidiantao Network Technology Co ltd
Original Assignee
Beijing Yidiantao Network 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 Beijing Yidiantao Network Technology Co ltd filed Critical Beijing Yidiantao Network Technology Co ltd
Priority to CN202010311223.5A priority Critical patent/CN111506465A/en
Publication of CN111506465A publication Critical patent/CN111506465A/en
Pending legal-status Critical Current

Links

Images

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/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • 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/26Functional testing

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)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention provides a computer function testing method and a device, wherein the method comprises the following steps: determining a test program of a plurality of single test items; and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads. According to the computer function testing method and device provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.

Description

Computer function testing method and device
Technical Field
The invention relates to the technical field of computers, in particular to a computer function testing method and device.
Background
At present, functional item test programs of all computers of a production line are single and independent, and are tested in a disordered mode, and if the test is carried out according to a certain sequence, the test is difficult to realize; the difficulty of adjustment is also great, and some programs still interfere with each other, do not have the integration platform of a system, and it is relatively dispersed and has no logicality.
Disclosure of Invention
The embodiment of the invention provides a computer function testing method and device, which are used for solving the technical problems in the prior art.
In order to solve the above technical problem, an embodiment of the present invention provides a computer function testing method, including:
determining a test program of a plurality of single test items;
and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
Further, the executing the test programs of the plurality of single test items simultaneously according to a preset sequence and/or by adopting multiple threads specifically includes:
simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads;
and acquiring the test state of each single test item.
Further, after obtaining the test status of each unit test item, the method further includes:
and displaying the test state of each unit test item on the user interface UI in a mode of at least one of characters, characters and colors.
Further, when the test program of the single test project is executed, different configurations are self-adapted according to the models.
Further, when the test program of the single test item is executed, if the single test item is not in the configuration list, the single test item does not exist in the UI prompting device.
Further, after obtaining the test status of each unit test item, the method further includes:
and uploading the test state of each single test item to an EMS (equipment management system).
Further, after the uploading the test status of each unit test item to the EMS, the method further includes:
and controlling the test flow according to the EMS information.
In another aspect, an embodiment of the present invention provides a computer function testing apparatus, including:
the determining module is used for determining the test programs of a plurality of single test items;
and the test module is used for simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
In another aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method provided by the first aspect when executing the computer program.
In yet another aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method provided in the first aspect.
According to the computer function testing method and device provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Drawings
FIG. 1 is a schematic diagram of a computer function testing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a system according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a test run control provided by an embodiment of the present invention;
FIG. 4 is a schematic diagram of a computer function testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic diagram of a computer function testing method according to an embodiment of the present invention, and as shown in fig. 1, the embodiment of the present invention provides a computer function testing method, an execution subject of which is a computer function testing apparatus. The method comprises the following steps:
s101, determining test programs of a plurality of single test items;
and step S102, executing the test programs of the single test items simultaneously according to a preset sequence and/or by adopting multiple threads.
Specifically, fig. 2 is a schematic structural diagram of a system according to an embodiment of the present invention, and as shown in fig. 2, the embodiment of the present invention develops a platform capable of integrating all test project programs, where the platform includes a User Interface (UI) and underlying functions, an L UA engine and a L UA script implementation configuration and extension functions, where the UI and the underlying functions are provided by C + +, and a function is derived by a L UA engine.
Each test program can be adjusted and optimized under the platform, and the individual requirements of the production line process are met, so that the test is more practical, simplified and efficient.
Fig. 3 is a schematic view of test operation control according to an embodiment of the present invention, and as shown in fig. 3, after determining the test programs of a plurality of single test items, the test programs of the plurality of single test items are executed simultaneously according to a preset order and/or by using multiple threads.
The test sub-items can be executed sequentially, the test sub-items can be executed simultaneously by utilizing the multithreading characteristic, and flexible collocation execution can be executed sequentially and simultaneously. The specific mode can be set according to actual test requirements.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any of the above embodiments, further, the executing the test program of the plurality of single test items simultaneously according to a preset order and/or by adopting multiple threads specifically includes:
simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads;
and acquiring the test state of each single test item.
Specifically, in the embodiment of the present invention, in the testing process, the testing status of each single testing item is obtained in real time.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any one of the above embodiments, further, after obtaining the test status of each unit test item, the method further includes:
and displaying the test state of each unit test item on the user interface UI in a mode of at least one of characters, characters and colors.
Specifically, in the embodiment of the present invention, after the test status of each unit test item is obtained, the test status of each unit test item is displayed on the user interface UI by at least one of characters, and colors.
For example, a single test item is displayed on the UI, which may be initiated by a double click, with text and color prompts for the test pass or fail.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any of the above embodiments, further, when executing a test program of a single test item, different configurations are adaptive according to models.
Specifically, in the embodiment of the invention, the single test item can adapt to different configurations according to the model, such as a keyboard, an interface and the like.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any of the above embodiments, further, when the test program of the single test item is executed, if the single test item is not in the configuration list, the UI prompting device does not exist.
Specifically, in the embodiment of the present invention, if the single test item is not in the configuration list, the UI will prompt that the device does not exist and will not enter the fool-proof sequence.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any one of the above embodiments, further, after obtaining the test status of each unit test item, the method further includes:
and uploading the test state of each single test item to an EMS (equipment management system).
Specifically, in the embodiment of the present invention, after the test state of each single test item is obtained, the test state of each single test item is uploaded to an Equipment Management System (EMS).
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Based on any of the above embodiments, further, after the uploading the test status of each unit test item to the device management system EMS, the method further includes:
and controlling the test flow according to the EMS information.
Specifically, in the embodiment of the present invention, after the test status of each single test item is uploaded to the device management system EMS, the test flow is controlled according to the EMS information.
Different stations test items are accurately distinguished, for example, one test and two tests use different test sequences.
Possess station selection function, prevent staying and upload according to the station discernment of selection.
The function of judging the current station before testing is provided, for example, one machine takes two tests without completing the test, the program can recognize that the machine should go to the test and prompt before testing, and cannot prompt again after the test is completed, so that the efficiency is avoided being wasted.
The method has the function of fool-proofing the test item, the next test item depends on the test result of the previous test item, and if fail exists, the test can prompt not to continue.
After all test items pass, a flag is passed to the EMS indicating that the next workstation is available.
According to the computer function testing method provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
The computer function testing method provided by the embodiment of the invention has the following specific technical effects:
1. the test item interface is visualized, and is convenient for an operator to check;
2. the color of each test state is automatically identified, and the test state is clear at a glance (red: Fail/yellow: in test/green: Pass/gray: the model of the project does not need to be tested);
3. automatic linkage is realized among all test items, and the missing test of manual single selection is avoided; if retesting is needed, the test can be carried out independently and flexibly without retesting, and the requirements of operators in various scenes are met;
4. the sequence and increase and decrease of the test items can be flexibly adjusted in a modularized manner, and the requirements of diversified scenes on the actual process test flow are met;
5. the intelligent control system can be connected with an EMS in series to realize function fool-proofing, avoid missing detection of an operator and prevent defective products from flowing to a client;
6. the system can automatically distinguish different types of machines, distinguish a notebook computer from a desktop computer, automatically call corresponding test programs and do not need to manually select the test programs.
Fig. 4 is a schematic view of a computer function testing device according to an embodiment of the present invention, and as shown in fig. 4, the embodiment of the present invention provides a computer function testing device, including: a determination module 401 and a test module 402, wherein:
the determining module 401 is configured to determine test programs of a plurality of single test items; the test module 402 is configured to execute the test programs of the plurality of individual test items simultaneously according to a preset order and/or by using multiple threads. .
Specifically, the embodiment of the present invention provides a computer function testing apparatus for performing the method in the corresponding embodiment, and the specific steps of performing the method in the corresponding embodiment by using the apparatus provided in this embodiment are the same as those in the corresponding embodiment, and are not described herein again.
According to the computer function testing device provided by the embodiment of the invention, through the platform integrating all the testing project programs, each testing program can be adjusted and optimized under the platform, and the individualized requirements of the production line process are met, so that the testing is more practical, simpler and more efficient.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 5, the electronic device includes: a processor (processor)501, a communication Interface (Communications Interface)502, a memory (memory)503, and a communication bus 504, wherein the processor 501, the communication Interface 502, and the memory 503 are configured to communicate with each other via the communication bus 504. The processor 501 may call a computer program stored on the memory 503 and executable on the processor 501 to perform the following steps:
determining a test program of a plurality of single test items;
and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Further, embodiments of the present invention provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the steps of the above-described method embodiments, for example, including:
determining a test program of a plurality of single test items;
and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
Further, an embodiment of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps in the above method embodiments, for example, including:
determining a test program of a plurality of single test items;
and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A computer function testing method is characterized by comprising the following steps:
determining a test program of a plurality of single test items;
and simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
2. The computer function testing method of claim 1, wherein the executing the test programs of the plurality of single test items simultaneously in a preset order and/or in multiple threads specifically comprises:
simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads;
and acquiring the test state of each single test item.
3. The method of claim 2, further comprising, after obtaining the test status of each individual test item:
and displaying the test state of each unit test item on the user interface UI in a mode of at least one of characters, characters and colors.
4. The method according to claim 1, wherein different configurations are adapted according to model when executing a test program of a single test item.
5. The method as claimed in claim 1, wherein when executing the test program of the single test item, if the single test item is not in the configuration list, the single test item does not exist in the UI prompting device.
6. The method of claim 2, further comprising, after obtaining the test status of each individual test item:
and uploading the test state of each single test item to an EMS (equipment management system).
7. The method as claimed in claim 6, wherein after the uploading the test status of each single test item to the device management system EMS, the method further comprises:
and controlling the test flow according to the EMS information.
8. A computer function testing device, comprising:
the determining module is used for determining the test programs of a plurality of single test items;
and the test module is used for simultaneously executing the test programs of the single test items according to a preset sequence and/or by adopting multiple threads.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the computer function testing method according to any one of claims 1 to 7 when executing the computer program.
10. A non-transitory computer readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the computer function testing method according to any one of claims 1 to 7.
CN202010311223.5A 2020-04-20 2020-04-20 Computer function testing method and device Pending CN111506465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010311223.5A CN111506465A (en) 2020-04-20 2020-04-20 Computer function testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010311223.5A CN111506465A (en) 2020-04-20 2020-04-20 Computer function testing method and device

Publications (1)

Publication Number Publication Date
CN111506465A true CN111506465A (en) 2020-08-07

Family

ID=71877635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010311223.5A Pending CN111506465A (en) 2020-04-20 2020-04-20 Computer function testing method and device

Country Status (1)

Country Link
CN (1) CN111506465A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020124205A1 (en) * 2001-03-02 2002-09-05 James Grey System and method for performing batch synchronization for a test sequence
CN1432916A (en) * 2002-11-01 2003-07-30 英业达股份有限公司 Multiple-thread automatic test method
CN103838651A (en) * 2012-11-21 2014-06-04 鸿富锦精密工业(深圳)有限公司 Mainboard function test management and control system and method
US9032266B2 (en) * 2011-06-28 2015-05-12 Terence Wai-kwok Chan Multithreaded, mixed-HDL/ESL concurrent fault simulator for large-scale integrated circuit designs
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
US20180232292A1 (en) * 2017-02-14 2018-08-16 International Business Machines Corporation Error checking of a multi-threaded computer processor design under test
CN109614342A (en) * 2019-01-23 2019-04-12 四川虹美智能科技有限公司 A kind of method and test case management platform of application program automatic test
CN110765026A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Automatic testing method and device, storage medium and equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020124205A1 (en) * 2001-03-02 2002-09-05 James Grey System and method for performing batch synchronization for a test sequence
CN1432916A (en) * 2002-11-01 2003-07-30 英业达股份有限公司 Multiple-thread automatic test method
US9032266B2 (en) * 2011-06-28 2015-05-12 Terence Wai-kwok Chan Multithreaded, mixed-HDL/ESL concurrent fault simulator for large-scale integrated circuit designs
CN103838651A (en) * 2012-11-21 2014-06-04 鸿富锦精密工业(深圳)有限公司 Mainboard function test management and control system and method
CN105701010A (en) * 2015-12-31 2016-06-22 北京元心科技有限公司 Method and device for accelerating software testing
US20180232292A1 (en) * 2017-02-14 2018-08-16 International Business Machines Corporation Error checking of a multi-threaded computer processor design under test
CN109614342A (en) * 2019-01-23 2019-04-12 四川虹美智能科技有限公司 A kind of method and test case management platform of application program automatic test
CN110765026A (en) * 2019-10-31 2020-02-07 北京东软望海科技有限公司 Automatic testing method and device, storage medium and equipment

Similar Documents

Publication Publication Date Title
US9898396B2 (en) Automated software testing and validation via graphical user interface
CN106484622A (en) Method of testing, apparatus and system
US20200341883A1 (en) Segmented Customization
CN111401722B (en) Intelligent decision method and intelligent decision system
CN108335093A (en) It transfers accounts control method, system, terminal, computer readable storage medium
CN110708214B (en) Service data display method, device, equipment and computer readable storage medium
CN108255707A (en) Development roles creation method, device, equipment and the storage medium of test case
CN111258913A (en) Automatic algorithm testing method and device, computer system and readable storage medium
CN109933651B (en) Information interaction method and device and server
CN113449877B (en) Method and system for demonstrating machine learning modeling process
CN111722842A (en) Pipeline arranging method and device, electronic equipment and storage medium
CN109902251A (en) Scheme Choice method, apparatus, terminal and readable storage medium storing program for executing based on decision tree
CN110134612A (en) UI test data generating method, device, equipment and readable storage medium storing program for executing
CN112559288A (en) Distributed inertial platform test system based on Ethernet
CN110968479B (en) Service level full-link monitoring method and server for application program
CN114238134A (en) Test result display method, device, equipment and storage medium
CN111143223A (en) Server pressure testing method and device
US20150172374A1 (en) Mobile content transfer (mct) solution
CN109388420A (en) Application upgrade test method, device, computer equipment and storage medium
CN111506465A (en) Computer function testing method and device
CN108108299A (en) A kind of ui testing method and device
CN116089277A (en) Neural network operator test and live broadcast application method and device, equipment and medium thereof
CN105405220A (en) Method and device for automated test
CN114510421A (en) Test method, test device, chip and module equipment
CN106776274A (en) A kind of graphical testing process collocation method and 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200807