CN109218072A - A kind of single board testing system and method - Google Patents

A kind of single board testing system and method Download PDF

Info

Publication number
CN109218072A
CN109218072A CN201810794990.9A CN201810794990A CN109218072A CN 109218072 A CN109218072 A CN 109218072A CN 201810794990 A CN201810794990 A CN 201810794990A CN 109218072 A CN109218072 A CN 109218072A
Authority
CN
China
Prior art keywords
test
management system
veneer
assignment
board testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810794990.9A
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.)
Shenzhen Hongdian Technologies Corp
Original Assignee
Shenzhen Hongdian Technologies Corp
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 Shenzhen Hongdian Technologies Corp filed Critical Shenzhen Hongdian Technologies Corp
Priority to CN201810794990.9A priority Critical patent/CN109218072A/en
Publication of CN109218072A publication Critical patent/CN109218072A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • H04L43/045Processing captured monitoring data, e.g. for logfile generation for graphical visualisation of monitoring data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of single board testing system and methods.System includes: the Test Networking environmental management system for managing and disposing single-board testing environment, for providing the web program module of web program execution environments, for managing the case management system of test suite and test case, wherein, for the web program for creating and exporting test assignment, the Test Networking environmental management system is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests the veneer.Method includes: to be established by web program and export test assignment;The Test Networking environmental management system is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests the veneer.The present invention provides web program to realize that high-freedom degree establishes test assignment, and automatic test is realized by protos test suite PROTOS, can be improved the efficiency tested automatically.

Description

A kind of single board testing system and method
Technical field
The present invention relates to a kind of single board testing system of industrial test technical field more particularly to field and methods.
Background technique
Current router (veneer inside test) automatic test degree is not high, can not substitute a large amount of duplicate surveys by hand Examination, and the unsuitable router product such as the existing automated test frame of industry, such as QTP, RFT, RobotFramework Test, adaptation cannot be transformed in current existing automation framework substantially.
Summary of the invention
To solve the above-mentioned problems, the present invention provides a kind of single board testing system and method.
On the one hand the technical solution adopted by the present invention is a kind of single board testing system, comprising: for managing and disposing veneer The Test Networking environmental management system for testing environment, for providing the web program module of web program execution environments, for managing The case management system of test suite and test case, wherein the web program is for creating and exporting test assignment, the survey Examination network environment management system is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests institute State veneer.
Preferably, further include mirror image management system for management single board image file, the mirror image management system according to The single board information and software version information for including in the test assignment select corresponding image file and are deployed to described Veneer.
Preferably, the mirror image management system is based on the corresponding image file of SVN or Git selection and is deployed to described Veneer.
Preferably, the case management system is also used to create test baseline list;Test Networking environmental management system System is according to the acquisition of test baseline and the matched protos test suite PROTOS of the test assignment in list and tests the veneer.
Preferably, further include storing data library for storing test data.
Preferably, the web program module is also used to obtain test data from the storing data library.
Preferably, the web program is also used to the test data carrying out pictorialization processing.
On the one hand the technical solution adopted by the present invention is a kind of single-board testing method, be suitable for above system, comprising steps of It is established by web program and exports test assignment;The Test Networking environmental management system is obtained from the case management system With the matched protos test suite PROTOS of the test assignment and test the veneer.
Preferably, method includes: to be established by web program and export test assignment;The case management system creation is surveyed Try baseline list;The Test Networking environmental management system is obtained according to the test baseline in list and is matched with the test assignment Protos test suite PROTOS and test the veneer.
Preferably, method further comprises the steps of: the Test Networking environmental management system and is obtained according to the test baseline in list It takes and the matched protos test suite PROTOS of the test assignment and tests the veneer;The veneer test number obtained is tested in storage According to.
Preferably, method further comprises the steps of: storage and tests the veneer test data obtained;It obtains and by the survey It tries data and carries out pictorialization processing.
Preferably, method, which is further comprised the steps of:, is established by web program and exports test assignment;It is wrapped according in test assignment The single board information and software version information contained selects corresponding image file and is deployed to the veneer;The Test Networking Environmental management system is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests the veneer.
Beneficial effects of the present invention are to provide web program to realize that high-freedom degree establishes test assignment, pass through protos test suite PROTOS To realize automatic test, the efficiency tested automatically can be improved.
Detailed description of the invention
Fig. 1 show a kind of schematic diagram of single board testing system based on the embodiment of the present invention;
Fig. 2 show the test system framework schematic diagram based on the embodiment of the present invention.
Specific embodiment
The present invention will be described with reference to embodiments.
Embodiment based on invention, a kind of single board testing system, comprising: for managing and disposing the survey of single-board testing environment Network environment management system is tried, for providing the web program module of web program execution environments, for managing test suite and test The case management system of use-case, wherein the web program is for creating and exporting test assignment, the Test Networking environment pipe Reason system is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests the veneer.
System further includes the mirror image management system for management single board image file, and the mirror image management system is according to The single board information and software version information for including in test assignment select corresponding image file and are deployed to the veneer.
The mirror image management system is based on SVN or Git and selects corresponding image file and be deployed to the veneer.
The case management system is also used to create test baseline list;The Test Networking environmental management system is according to column Test baseline in table obtains and the matched protos test suite PROTOS of the test assignment and tests the veneer.
It further include the storing data library for storing test data.
The web program module is also used to obtain test data from the storing data library.
The web program is also used to the test data carrying out pictorialization processing.
As the further improvement of embodiment, a kind of router test frame uses B/S framework, and multi-user can pass through Web (i.e. web program, the program controlled by webpage) creation test assignment;
Since the function that each product (i.e. router comprising veneer) is supported is different, and each product iteration is soft Part version is there is also difference, according to the baseline version of software, creates the higher test case baseline of a set of test coverage, and needle Corresponding test is added or deleted from test baseline according to function point that is newly-increased and cutting to the software version of iteration later Use-case;And in order to adapt to automated test frame, the execution repeatedly of similar use-case is reduced, the pure of use-case performing environment is kept Cleanliness, introduces the concept of protos test suite PROTOS, and protos test suite PROTOS is the set of similar test case, such as router modem dialing A kind of use-case, execution movement is exactly to dial, and only the test point of each use-case is different, can be by this kind of use-case (test Case it) is put into a test suite (test suite), each test suite is a small-sized automated test frame, all Energy independent building test environment, restores to arrange (i.e. the functions of case management system) such as test environment at implementation of test cases;
The server of entity uses Docker or other virtualization technologies, can be according to the service condition of Current resource, spirit Living uses idle virtual machine as testing service device (i.e. Test Networking environmental management system);
SVN or Git is existing more handy version control system, be can be good at by these version control systems Different software versions is managed for using.
Test baseline is that the benchmark tested selects different bases according to different test assignments for judging test result Line.
Embodiment based on invention, a kind of single-board testing method are suitable for above system, comprising steps of passing through web program It establishes and exports test assignment;The Test Networking environmental management system is obtained from the case management system appoints with the test It is engaged in matched protos test suite PROTOS and testing the veneer.
Method includes: to be established by web program and export test assignment;The case management system creation test baseline column Table;The Test Networking environmental management system obtains and the matched test suite of the test assignment according to the test baseline in list Part simultaneously tests the veneer.
Method further comprise the steps of: the Test Networking environmental management system according in list test baseline obtain with it is described The matched protos test suite PROTOS of test assignment simultaneously tests the veneer;The veneer test data obtained is tested in storage.
Method further comprises the steps of: storage and tests the veneer test data obtained;It obtains and by the test data Carry out pictorialization processing.
Method, which is further comprised the steps of:, to be established by web program and exports test assignment;According to the veneer for including in test assignment Information and software version information select corresponding image file and are deployed to the veneer;The Test Networking environmental management System is from case management system acquisition and the matched protos test suite PROTOS of the test assignment and tests the veneer.
Embodiment based on invention, a kind of veneer (router) test method, comprising:
Step S010 tester logs in automatic test administration page Rweb, creates test assignment, including explanation is tested Product, software version, the use-case grade for choosing test case baseline, test execution;(passing through web program creation task)
Step S100Test Agent receives test assignment request, and creation executes the independent process of the test assignment;(test Network environment management system establishes process with setup test veneer)
Step S110Image Server receives the product and software version information that test assignment reports, from SVN cutting pair Answer the system image file of version;(mirror image management system provides image file to configure veneer)
Step S200TestSuite Management Server creates base of test case alignment table, as execution epicycle The standard of version test;
Step S210 (can additionally be arranged one) veneer management system (being used for) finds the product single board of current idle, portion Affix one's name to the image file cut;
Step S300Test Agent takes out the test suite of automation according to test baseline from git/svn, and memory is arrived in storage;
The entire test environment of step S310 (can additionally be arranged one) Test Networking environmental management system (being used for) verifying The states such as veneer, test equipment, network environment in (i.e. the function of Test Networking environmental management system), progress open-ended, Preparatory function is tested in network mapping etc.;
Step S400Test Agent calls test master control ranging sequence (RATF) to carry out test execution and scheduling, and tested Veneer on open finger daemon (RATC), monitor the state of tested single board, if occurring abnormal, inform Test Networking environment in time Management system carries out recovery operation and (the continuous race of breakpoint and failure use-case is supported to run again.Test case adds operating status label: surveying Try it is completed " SUCCEED " and " FAILED " are respectively labeled as according to test result, the label tested be " RUNNING ", the label for testing obstruction is BLOCKED ", and the label for not carrying out test execution is NOTRUN ".When test is abnormal When termination, frame continues the test case for running " NOTRUN " automatically.When entire test is completed, if it is desired to running the use of test crash again Example, it is only necessary to which frame identifies that test case result is the use-case of " FAILED " and " BLOCKED ", is then run again);
Step S410 carries out Test Networking according to the networking requirement of current test suite to be measured, verifies network environment (test group Net environmental management system is responsible for detecting the network connectivty of the working condition of test equipment, port mapping, veneer to be measured, But test suite inter-process is given in the test environment networking of not responsible specific test case, test environment networking.It both saves in this way The cumbersome and risk for carrying out networking by entire frame has been gone, many single test cases has been in turn avoided and carries out same class networking Repetitive operation saves the test execution time), if being verified, jump to step S500;If not passing through, step is jumped back to S310;
Step S500RATF calls the test suite for reading memory, the use-case sequence being arranged according to control in test suite Execute test;
Step S510 records test case number, test execution time, tester, use-case execution state, test execution The information such as a result, are written to database;
After the judgement of step S600RATF process has executed test case all in test baseline, it is judged whether or not The test case of " NOTRUN " state, if so, then jumping back to step S400;If nothing, continue step S700;
Step S520Rweb launching process is shown from DataBase Server read test data, pictorialization;
Step S700, which has been executed, to be surveyed after all test cases of baseline, and router test is terminated.
In addition, increasing a diary print module, the form of background printing log is used for entire testing process, is carried out The record of above-mentioned testing procedure executes return in key point print prompt information and operation, convenient when analyzing failure cause Fault location is carried out (in analysis failure use-case, to need to be arranged there are many prerequisite, such as setting, the test of environmental variance Detection, test context initialization of networking etc., in the preset middle progress of the environment of test suite.In this way, when needing to debug some failure Test case when, as long as executing this small-sized automatic test set, debug the use-case manually and carry out accident analysis and positioning, Eliminate the tedious steps of manual setting environment).
Such as Fig. 2, above-mentioned test system framework, component part include:
Test Targets: target detection veneer set (includes veneer and Test Networking environmental management system);
Test Agent: test agent machine (is responsible for the scheduling and execution of automatic test task, i.e., the described Test Networking Environmental management system);
Image Server: mirror image server (deployment for being responsible for veneer image file);
TestSuites Management Server: test suite and test case management server (use svn or git Version, i.e., the described case management system);
DataBase Server: database server (is responsible for the storage of test data, reads, providing automatic test use The index number of example, i.e. storing data library);
Rweb: the customization web program built on the server (is responsible for the creation of test assignment, measuring executing process Monitoring, the statistics of test result and management of use-case etc., i.e., the described web program module).
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.In protection model of the invention Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.

Claims (12)

1. a kind of single board testing system characterized by comprising
For managing and disposing the Test Networking environmental management system of single-board testing environment, for providing web program execution environments Web program module, for managing the case management system of test suite and test case, wherein
The web program is for creating and exporting test assignment, and the Test Networking environmental management system is from the case management System acquisition and the matched protos test suite PROTOS of the test assignment simultaneously test the veneer.
2. a kind of single board testing system according to claim 1, which is characterized in that further include for management single board mirror image text The mirror image management system of part, the mirror image management system are believed according to the single board information and software version for including in the test assignment Breath selects corresponding image file and is deployed to the veneer.
3. a kind of single board testing system according to claim 2, which is characterized in that the mirror image management system is based on SVN Or Git selects corresponding image file and is deployed to the veneer.
4. a kind of single board testing system according to claim 1, which is characterized in that the case management system is also used to create Build test baseline list;
The Test Networking environmental management system obtains and the matched test of the test assignment according to the test baseline in list External member simultaneously tests the veneer.
5. a kind of single board testing system according to any one of claims 1 to 4, which is characterized in that further include for storing The storing data library of test data.
6. a kind of single board testing system according to claim 5, which is characterized in that the web program module be also used to from The storing data library obtains test data.
7. a kind of single board testing system according to claim 6, which is characterized in that the web program is also used to will be described Test data carries out pictorialization processing.
8. a kind of single-board testing method is suitable for system described in claim 1, which is characterized in that comprising steps of
It is established by web program and exports test assignment;
The Test Networking environmental management system obtains and the matched test suite of the test assignment from the case management system Part simultaneously tests the veneer.
9. a kind of single-board testing method according to claim 8 is suitable for system described in claim 4, which is characterized in that Method includes:
It is established by web program and exports test assignment;
The case management system creation tests baseline list;
The Test Networking environmental management system obtains and the matched test of the test assignment according to the test baseline in list External member simultaneously tests the veneer.
10. a kind of single-board testing method according to claim 8 or claim 9, which is characterized in that further comprise the steps of:
The Test Networking environmental management system obtains and the matched test of the test assignment according to the test baseline in list External member simultaneously tests the veneer;
The veneer test data obtained is tested in storage.
11. a kind of single-board testing method according to claim 10, which is characterized in that further comprise the steps of:
The veneer test data obtained is tested in storage;
It obtains and the test data is subjected to pictorialization processing.
12. a kind of single-board testing method according to claim 8, which is characterized in that further comprise the steps of:
It is established by web program and exports test assignment;
Corresponding image file is selected according to the single board information and software version information for including in test assignment and is deployed to The veneer;
The Test Networking environmental management system obtains and the matched test suite of the test assignment from the case management system Part simultaneously tests the veneer.
CN201810794990.9A 2018-07-19 2018-07-19 A kind of single board testing system and method Pending CN109218072A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810794990.9A CN109218072A (en) 2018-07-19 2018-07-19 A kind of single board testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810794990.9A CN109218072A (en) 2018-07-19 2018-07-19 A kind of single board testing system and method

Publications (1)

Publication Number Publication Date
CN109218072A true CN109218072A (en) 2019-01-15

Family

ID=64990087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810794990.9A Pending CN109218072A (en) 2018-07-19 2018-07-19 A kind of single board testing system and method

Country Status (1)

Country Link
CN (1) CN109218072A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851655A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for realizing product automatic test by test environment composed of test set
CN101854648A (en) * 2010-04-14 2010-10-06 华为技术有限公司 Testing method, device and testing system for single board of communication apparatus
CN105337796A (en) * 2015-09-29 2016-02-17 上海斐讯数据通信技术有限公司 WIFI router performance test method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851655A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for realizing product automatic test by test environment composed of test set
CN101854648A (en) * 2010-04-14 2010-10-06 华为技术有限公司 Testing method, device and testing system for single board of communication apparatus
CN105337796A (en) * 2015-09-29 2016-02-17 上海斐讯数据通信技术有限公司 WIFI router performance test method and system

Similar Documents

Publication Publication Date Title
US7512933B1 (en) Method and system for associating logs and traces to test cases
US8276126B2 (en) Determining causes of software regressions based on regression and delta information
Muccini et al. Using software architecture for code testing
US20110107307A1 (en) Collecting Program Runtime Information
CN105468529B (en) A kind of accurate traversal method of Android application UI controls and device
US9465718B2 (en) Filter generation for load testing managed environments
CN110362480A (en) Client buries a test method, device, equipment and storage medium
CN110471831B (en) Automatic method and device for compatibility test
CN105095059B (en) A kind of method and apparatus of automatic test
CN108334437A (en) It is a kind of that acceptance method is delivered based on the software continuous of continuous integrating and automatic test
CN105787364B (en) Automatic testing method, device and system for tasks
US10942837B2 (en) Analyzing time-series data in an automated application testing system
CN102693183A (en) Method and system for realizing automatic software testing
CN113778898A (en) User interface automatic testing method and device, electronic equipment and storage medium
CN112115051A (en) Page traversal detection method, device and equipment for application and readable storage medium
CN110990289A (en) Method and device for automatically submitting bug, electronic equipment and storage medium
CN110633199A (en) Testing apparatus, method, and medium for block chain supporting intelligent contract
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
US7464102B2 (en) System and method for providing computer support tools
CN109218072A (en) A kind of single board testing system and method
CN114328185A (en) Continuously integrated information aggregation system
us Saqib et al. Functionality, performance, and compatibility testing: A model based approach
CN111538606A (en) Method, device and equipment for testing and simulating Dubbo interface
Ganesan et al. Experience report: Model-based test automation of a concurrent flight software bus
CN112527312A (en) Test method and test device for embedded 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190115