CN111934953A - Batch testing method based on domestic processor computer platform - Google Patents
Batch testing method based on domestic processor computer platform Download PDFInfo
- Publication number
- CN111934953A CN111934953A CN202010786548.9A CN202010786548A CN111934953A CN 111934953 A CN111934953 A CN 111934953A CN 202010786548 A CN202010786548 A CN 202010786548A CN 111934953 A CN111934953 A CN 111934953A
- Authority
- CN
- China
- Prior art keywords
- test
- server
- tested
- dhcp
- method based
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 93
- 238000013515 script Methods 0.000 claims abstract description 25
- 230000006837 decompression Effects 0.000 claims abstract description 4
- 230000000977 initiatory effect Effects 0.000 claims abstract description 4
- 238000013439 planning Methods 0.000 claims abstract description 3
- 238000010998 test method Methods 0.000 claims description 9
- 238000011056 performance test Methods 0.000 claims description 3
- 238000013112 stability test Methods 0.000 claims description 3
- 238000013024 troubleshooting Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000034 method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a batch testing method based on a domestic processor computer platform, which comprises the following steps: according to the MAC address list, modifying a dhcp configuration file under the MAC/etc/dhcp, appointing a corresponding relation between the MAC and the ip in the configuration file, deleting a lease under the MAC/lab/dhcp, and restarting the dhcp service; connecting a server and a plurality of computers to be tested to the same switch, and automatically distributing ip for the computers to be tested through dhcp; taking the server time as a reference, and synchronizing the system time of the computer to be tested; pushing the test program client to the/opt path of each machine to be tested through the scp protocol, decompressing, executing start.sh under a decompression catalogue through the ssh protocol after pushing is finished, and starting the test program client through the script planning task; and initiating global, single and multiple test requests on a web page of the server, and sequentially calling test scripts under tools paths by the client according to the requests to test.
Description
Technical Field
The invention relates to a test technology of a domestic processor computer platform, in particular to a batch test method based on the domestic processor computer platform.
Background
With the gradual promotion of the countries and the military to the construction of autonomous controllable key software and hardware, computers and safe and reliable information systems, the demand and the yield of the domestic equipment are continuously increased. In order to ensure the quality of the home-made computer, each device needs to be tested for function, performance and stability.
The existing testing technology can only be manually tested by a tester according to a testing outline, the labor and time costs are high, meanwhile, certain requirements are imposed on the professional quality of the tester, and although the testing effect is good, the problems of high testing cost and low efficiency are increasingly highlighted along with the continuous increase of the yield.
Disclosure of Invention
The invention aims to provide a batch testing method based on a domestic processor computer platform, which is used for solving the problems in the prior art.
The invention relates to a batch testing method based on a domestic processor computer platform, which comprises the following steps: according to the MAC address list, modifying a dhcp configuration file under the MAC/etc/dhcp, appointing a corresponding relation between the MAC and the ip in the configuration file, deleting a lease under the MAC/lab/dhcp, and restarting the dhcp service; connecting a server and a plurality of computers to be tested to the same switch, and automatically distributing ip for the computers to be tested through dhcp; taking the server time as a reference, and synchronizing the system time of the computer to be tested; pushing the test program client to the/opt path of each machine to be tested through the scp protocol, decompressing, executing start.sh under a decompression catalogue through the ssh protocol after pushing is finished, and starting the test program client through the script planning task; and initiating global, single and multiple test requests on a web page of the server, and sequentially calling test scripts under tools paths by the client according to the requests to test.
According to an embodiment of the batch testing method based on the domestic processor computer platform, if the item fails, the single item, the multiple items and the global testing request are reinitiated on the web page of the server after the problem is solved through troubleshooting.
According to an embodiment of the batch testing method based on the domestic processor computer platform, a machine passing the test is sent at a server side to delete a test program client on the machine.
According to an embodiment of the batch testing method based on the domestic processor computer platform, the client calls the test scripts under the tools path in sequence according to the request to perform testing, and the method comprises the following steps: for the basic information item, the test script checks whether the basic information item is wrong through a shell command; for the function item, the test script calls a corresponding application program, and whether the application function is normal is judged according to the return value; for the performance and stability items, the test script calls a performance and stability detection program, analyzes the test result and judges whether the performance and stability test is passed; for items needing manual intervention, the test script gives a prompt popup window, and whether the test items pass or not is judged according to the selection of a user; and reporting the test result to the server after each test item is finished.
According to an embodiment of the batch testing method based on the domestic processor computer platform, a tester can view a test report on a web page of a server.
According to an embodiment of the batch testing method based on the domestic processor computer platform, after all the request items are tested, the client generates a test report and uploads the test report to the server.
The invention provides a batch testing method based on a domestic processor computer platform, which can simultaneously test functions, performances and stability of a plurality of machines, uniformly manage through web pages, improve testing efficiency, quickly locate problems, ensure product quality and reduce labor and time costs.
Drawings
FIG. 1 is a flow chart of a batch test method based on a domestic processor computer platform.
Detailed Description
In order to make the objects, contents, and advantages of the present invention clearer, the following detailed description of the embodiments of the present invention will be made in conjunction with the accompanying drawings and examples.
Fig. 1 is a flowchart of a batch test method based on a domestic processor computer platform, as shown in fig. 1, the test method is developed for a batch test scenario based on a domestic processor computer platform, a test program is divided into a server and a client, covered test items include functions, performance, stability and other aspects, and a batch test flow is as follows:
a test program server is deployed on a server. According to an MAC address list provided by a manufacturer, modifying a dhcp configuration file under the MAC/etc/dhcp, designating the corresponding relation between the MAC and the ip in the configuration file, deleting a lease under the MAC/lib/dhcp, and restarting the dhcp service;
connecting a server and a plurality of computers to be tested to the same switch, and automatically distributing ip for the computers to be tested by the dhcp;
taking the server time as a reference, and synchronizing the system time of the computer to be tested;
and pushing the test program client to the/opt path of each machine to be tested through the scp protocol and decompressing. After pushing is finished, executing start.sh under a decompression catalogue through an ssh protocol, and starting a test program client by the script through a crontab plan task;
initiating a global/single/multiple test request on a web page of a server, and sequentially calling a test script under a tools path by a client according to the request for testing, wherein the test script comprises the following steps:
for the basic information item, the test script checks whether the basic information item is wrong through a shell command;
for the function item (such as a recording function), the test script calls a corresponding application program, and judges whether the application function is normal or not according to a return value;
for the performance/stability item, the test script calls a performance/stability detection program, analyzes the test result and judges whether the performance/stability test is passed;
for items needing manual intervention (such as checking whether black dots exist on a screen), the test script gives a prompt popup window, and whether the test items pass or not is judged according to the selection of a user;
and reporting the test result to the server after each test item is finished.
After all the request items are tested, the client generates a test report and uploads the test report to the server, and a tester can check the test report on a web page of the server;
if the item fails, the single item/multiple items/global test request can be reinitiated on the web page of the server after the problem is solved by troubleshooting;
the machine passing the test can send a command at the server to delete the test program client on the machine;
the invention designs an automatic flow aiming at the test based on the domestic processor computer platform, realizes the function of batch test in a server/client mode, and greatly reduces the test workload by the management and test result display of the server. And operation prompts are given to necessary manual test items, so that the professional quality requirements on testers are reduced. The test result covers three aspects of function, performance and stability, and comprehensively reflects the product quality of the domestic computer.
According to the invention, through researching a computer platform based on a domestic processor, a comprehensive test flow is summarized, a shell test script is compiled aiming at an automatic test item, and unified management is carried out by utilizing a server, so that batch automatic test is realized, the test problem can be quickly positioned, the test workload is reduced, and the test efficiency is improved. The invention adopts a mode of combining the configuration file with the shell test script, can be customized according to different test requirements and platforms, and is easy to transplant and iterate.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (6)
1. A batch test method based on a domestic processor computer platform is characterized by comprising the following steps:
according to the MAC address list, modifying a dhcp configuration file under the MAC/etc/dhcp, appointing a corresponding relation between the MAC and the ip in the configuration file, deleting a lease under the MAC/lab/dhcp, and restarting the dhcp service;
connecting a server and a plurality of computers to be tested to the same switch, and automatically distributing ip for the computers to be tested through dhcp;
taking the server time as a reference, and synchronizing the system time of the computer to be tested;
pushing the test program client to the/opt path of each machine to be tested through the scp protocol, decompressing, executing start.sh under a decompression catalogue through the ssh protocol after pushing is finished, and starting the test program client through the script planning task;
and initiating global, single and multiple test requests on a web page of the server, and sequentially calling test scripts under tools paths by the client according to the requests to test.
2. The batch test method based on the domestic processor computer platform as claimed in claim 1, wherein if the item fails, the single item, multiple items and global test request are reinitiated on the web page of the server after the problem is solved by troubleshooting.
3. The batch test method based on the domestic processor computer platform as claimed in claim 1, wherein the machine passing the test is tested, and the server sends a command to delete the test program client on the machine.
4. The batch testing method based on the domestic processor computer platform as claimed in claim 1, wherein the client calls the test scripts under the tools path in sequence according to the request for testing, comprising:
for the basic information item, the test script checks whether the basic information item is wrong through a shell command;
for the function item, the test script calls a corresponding application program, and whether the application function is normal is judged according to the return value;
for the performance and stability items, the test script calls a performance and stability detection program, analyzes the test result and judges whether the performance and stability test is passed;
for items needing manual intervention, the test script gives a prompt popup window, and whether the test items pass or not is judged according to the selection of a user;
and reporting the test result to the server after each test item is finished.
5. The batch test method based on the domestic processor computer platform as claimed in claim 1, wherein the tester can view the test report on the web page of the server.
6. The batch test method based on the domestic processor computer platform as claimed in claim 1, wherein after all the requested items are tested, the client generates a test report and uploads the test report to the server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010786548.9A CN111934953B (en) | 2020-08-07 | 2020-08-07 | Batch test method based on domestic processor computer platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010786548.9A CN111934953B (en) | 2020-08-07 | 2020-08-07 | Batch test method based on domestic processor computer platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111934953A true CN111934953A (en) | 2020-11-13 |
CN111934953B CN111934953B (en) | 2024-02-02 |
Family
ID=73308022
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010786548.9A Active CN111934953B (en) | 2020-08-07 | 2020-08-07 | Batch test method based on domestic processor computer platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111934953B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905403A (en) * | 2021-02-01 | 2021-06-04 | 山西百信信息技术有限公司 | Batch synchronous detection method and system for multiple computers |
CN112968800A (en) * | 2021-02-20 | 2021-06-15 | 山东英信计算机技术有限公司 | Switch batch test method, system and equipment based on Loongson platform |
CN117234827A (en) * | 2023-11-14 | 2023-12-15 | 武汉凌久微电子有限公司 | Multi-platform automatic test method and system based on domestic graphic processor |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050246589A1 (en) * | 2004-04-16 | 2005-11-03 | Hon Hai Precision Industry Co., Ltd | System and method for automatically testing motherboards |
CN102567164A (en) * | 2011-12-23 | 2012-07-11 | 中国科学院自动化研究所 | Instruction set batch testing device and method for processor |
CN102790751A (en) * | 2011-05-17 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Server sharing method and system |
JP2015011413A (en) * | 2013-06-27 | 2015-01-19 | 株式会社日立製作所 | Verification automation method |
CN104579853A (en) * | 2015-02-10 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for network testing of server cluster system |
CN104954189A (en) * | 2015-07-07 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Automatic server cluster detecting method and system |
CN105446839A (en) * | 2015-11-23 | 2016-03-30 | 浪潮电子信息产业股份有限公司 | Installation method for test operation system, PXE server and system |
CN105471675A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and system of testing nodes in batches |
CN108038013A (en) * | 2017-11-30 | 2018-05-15 | 海尔优家智能科技(北京)有限公司 | Distributed performance test method and device and computer-readable recording medium |
US20180262388A1 (en) * | 2006-09-25 | 2018-09-13 | Weaved, Inc. | Remote device deployment |
CN108900656A (en) * | 2018-08-23 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of method and device of batch deployment |
CN109062744A (en) * | 2018-07-24 | 2018-12-21 | 郑州云海信息技术有限公司 | A kind of method and system for realizing batch testing server memory |
-
2020
- 2020-08-07 CN CN202010786548.9A patent/CN111934953B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050246589A1 (en) * | 2004-04-16 | 2005-11-03 | Hon Hai Precision Industry Co., Ltd | System and method for automatically testing motherboards |
US20180262388A1 (en) * | 2006-09-25 | 2018-09-13 | Weaved, Inc. | Remote device deployment |
CN102790751A (en) * | 2011-05-17 | 2012-11-21 | 鸿富锦精密工业(深圳)有限公司 | Server sharing method and system |
CN102567164A (en) * | 2011-12-23 | 2012-07-11 | 中国科学院自动化研究所 | Instruction set batch testing device and method for processor |
JP2015011413A (en) * | 2013-06-27 | 2015-01-19 | 株式会社日立製作所 | Verification automation method |
CN104579853A (en) * | 2015-02-10 | 2015-04-29 | 浪潮电子信息产业股份有限公司 | Method for network testing of server cluster system |
CN104954189A (en) * | 2015-07-07 | 2015-09-30 | 上海斐讯数据通信技术有限公司 | Automatic server cluster detecting method and system |
CN105471675A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and system of testing nodes in batches |
CN105446839A (en) * | 2015-11-23 | 2016-03-30 | 浪潮电子信息产业股份有限公司 | Installation method for test operation system, PXE server and system |
CN108038013A (en) * | 2017-11-30 | 2018-05-15 | 海尔优家智能科技(北京)有限公司 | Distributed performance test method and device and computer-readable recording medium |
CN109062744A (en) * | 2018-07-24 | 2018-12-21 | 郑州云海信息技术有限公司 | A kind of method and system for realizing batch testing server memory |
CN108900656A (en) * | 2018-08-23 | 2018-11-27 | 郑州云海信息技术有限公司 | A kind of method and device of batch deployment |
Non-Patent Citations (6)
Title |
---|
ANDRÉ ZÚQUETE等: "Pre-Allocation of DHCP Leases: A Cross-Layer Approach", 2011 4TH IFIP INTERNATIONAL CONFERENCE ON NEW TECHNOLOGIES, MOBILITY AND SECURITY * |
刘量等: "通用服务器端软件测试框架的研究与实现", 《计算机工程与应用》 * |
刘量等: "通用服务器端软件测试框架的研究与实现", 《计算机工程与应用》, no. 28, 1 October 2006 (2006-10-01) * |
王晓彬;廖建新;王纯;刘争;朱晓民;: "移动智能网业务自动化测试系统的研究与实现", 计算机工程, no. 01, pages 272 - 275 * |
谭浩等: "性能测试的原理及其自动化工具的实现", 《计算机工程与设计》 * |
谭浩等: "性能测试的原理及其自动化工具的实现", 《计算机工程与设计》, no. 19, 16 October 2006 (2006-10-16) * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905403A (en) * | 2021-02-01 | 2021-06-04 | 山西百信信息技术有限公司 | Batch synchronous detection method and system for multiple computers |
CN112905403B (en) * | 2021-02-01 | 2022-05-03 | 百信信息技术有限公司 | Batch synchronous testing method and system for multiple computers |
CN112968800A (en) * | 2021-02-20 | 2021-06-15 | 山东英信计算机技术有限公司 | Switch batch test method, system and equipment based on Loongson platform |
CN117234827A (en) * | 2023-11-14 | 2023-12-15 | 武汉凌久微电子有限公司 | Multi-platform automatic test method and system based on domestic graphic processor |
CN117234827B (en) * | 2023-11-14 | 2024-02-13 | 武汉凌久微电子有限公司 | Multi-platform automatic test method and system based on domestic graphic processor |
Also Published As
Publication number | Publication date |
---|---|
CN111934953B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105611330B (en) | Smart television maintenance method and system, server and mobile terminal | |
CN109495306B (en) | Method and equipment for expanding capacity of service network | |
US20190097872A1 (en) | System and method for remote maintenance | |
CN111934953A (en) | Batch testing method based on domestic processor computer platform | |
US9436411B2 (en) | SAN IP validation tool | |
CN110119350B (en) | Software development kit testing method, device and equipment and computer storage medium | |
CN104765678A (en) | Method and device for testing applications on mobile terminal | |
CN113946358A (en) | Automatic driving vehicle software remote upgrading method based on vehicle management system | |
CN106919485B (en) | System based on hardware testing tool configured on server | |
JP2009519523A (en) | Method, system, and computer program for monitoring the performance of a target virtual operating system within a virtual data center complex | |
WO2019242162A1 (en) | Middleware installation method and apparatus, and computer device and storage medium | |
CN106656562B (en) | A kind of OLT batch issues the detection method and device of ONU configuration | |
CN115686540B (en) | RPA control method and system based on Hongmong system | |
CN109408310B (en) | Debugging method of server, server and readable storage medium | |
CN108108296B (en) | Cloud testing method, server and client | |
CN107506295B (en) | Virtual machine backup testing method and device and computer readable storage medium | |
CN113312064A (en) | Installation configuration method and device of physical machine and computer readable medium | |
CN109344075A (en) | Configuration method, test method, configuration server and service node device | |
CN106059860A (en) | Method and device for testing network cards | |
CN110166544B (en) | Load balancing application creation method and device, computer equipment and storage medium | |
CN105224441A (en) | Virtual machine information harvester, method and virtual machine information maintaining method and system | |
CN108833168B (en) | Server cluster environment network system and stability detection method | |
CN109802842B (en) | Application topology generation method and related equipment | |
CN112968929A (en) | Server management method and system | |
CN113946559A (en) | Data processing method, target database system and data processing system |
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 |