Multifunction automatic test method and system
Technical field
This application involves equipment measuring technologies, more particularly, to a kind of multifunction automatic test method and system.
Background technique
There are many current test software and test equipment, have self-developed, there is open source, also there is profession, but can
Primary business function, functions of the equipments, robustness, performance and abnormal scrnario testing etc. of carrying out can satisfy equipment such as base station
The automatization test system of comprehensive test is considerably less.
The software or platform that a set of multifunctional test system is related to are relatively more, and the requirement to tester is also relatively high,
Different test platform development languages is different, is a kind of challenge for user, needs to take considerable time to learn,
Especially new person.
Therefore, it is urgent to provide a kind of easy to operate, multi-functional test method and systems at present, can be large-scale more
Complicated project brings great convenience, while lowering testing cost with practical significance.
Summary of the invention
The application technical problems to be solved are to propose that one kind realizes interface and test case format by station controller
Convert and identify by test lot mark the multifunction automatic test method and system with a batch of test.
In order to solve the above technical problems, the application adopts the following technical scheme that
On the one hand, a kind of multifunction automatic test method is proposed.The multifunction automatic test method includes following step
It is rapid:
It controls information desk and receives the beta version information and test case that user is this test configurations;
Control information desk the beta version information and test case test according to this, generate test lot identify and including
The test content of test lot mark generated, sends test content to test station controller;
Test station controller receives the test content that control information desk is sent, and extracts test case and is converted to corresponding
The executable test case that test station is able to carry out starts corresponding test station and is tested;
Control information desk persistently receives the test result of test station controller return and analysis tests whether to terminate, until
Analyzing test terminates then to generate test report, wherein test result includes the test lot mark of this test.
For above-mentioned multifunction automatic test method, receiving user in the control information desk is this test configurations
After beta version information and test case, further includes:
Judge whether the beta version information of user configuration is correct;
If mistake, continue to monitor whether to receive the beta version information that user configures again;
If correct, subsequent step is executed.
For above-mentioned multifunction automatic test method, the beta version information for judging user configuration whether correctly into
One step includes:
In the beta version of the existing test case of test case management system, the beta version letter of user configuration is searched
Beta version in breath;
If the beta version in the beta version information of user configuration exists, the beta version information of user configuration is just
Really;
If the beta version in the beta version information of user configuration is not present, the beta version information of user configuration
Mistake.
For above-mentioned multifunction automatic test method, the control information desk receives the survey that user is this test configurations
Examination version information and test case further comprise:
Beta version information and test case of this test of control information desk reception user configuration and test period
The test period of timer.
For above-mentioned multifunction automatic test method, the generation test lot identifies and including test batch generated
The test content of secondary mark further include: starting test period timer.
For above-mentioned multifunction automatic test method, the control information desk persistently receives the return of test station controller
Test result and analysis test whether to terminate, until analyze test terminate then generate test report, further comprise:
Control information desk persistently receives the test result of test station controller return, and detects whether to receive this test
Whether the test result and monitoring and test cycle timer of specified all test stations are overtime, until receiving all tests
As a result or test period timer expiry then tests end and generates test report, wherein test result includes this test
Test lot mark.
On the other hand, a kind of multifunction automatic test macro is proposed.The multifunction automatic test macro includes:
Parameter configuration module, for for parameter needed for this test configurations, the parameter include beta version information and
Test case;
Test case management system, the maintenance and management for test case;
Information desk is controlled, is monitored for beta version, according to beta version information and Test cases technology test lot mark
Know and including the test content that test lot generated identifies, the generation of test result analysis and test report, with test work
Level controller communication;
Test station controller, for realizing the interface between control information desk and test station, according to control information desk
The test content sent extracts test case from test case management system and is converted into the executable survey that test station is able to carry out
Example on probation;
Test station tests equipment under test for executing executable test case.
Above-mentioned multifunction automatic test macro further includes test period timer, for monitoring the test knot of this test
Whether fruit is given in setting period internal feedback controls information desk;Parameter configuration module is that the parameter of this test configurations further includes test
Period.
Above-mentioned multifunction automatic test macro further includes edition management system, the management and maintenance for beta version.
For above-mentioned multifunction automatic test macro, test station include stability test station, functional test station,
And at least two test stations in performance test station.
Compared with prior art, the main advantage of technical scheme is as follows:
1) the proximal end test station of the application is made up of a part of test macro, proximal controller proximal controller
Test case is converted, the standard management of test case can be improved, the application makes full use of test equipment or software support
The characteristics of correspondence with foreign country, is supported in secondary development, designs test station controller, and control test station by control information desk
Device is managed and safeguards, supports the secondary development equipment of correspondence with foreign country or software that can use the present processes in principle
A part of system is accessed and forms, to realize multi-functional test macro;And the extended pattern of system is good, and compatibility is more
It is good, high degree of automation, and can effectively be merged with test and management system, edition management system, system availability
Height, the degree of automation are also higher.
2) input of system is simple, which it is additional not to need operator after having configured parameter and test case
Operation, after version generates, system can automatically complete test, and generate report, and the application is easy to operate, to operation
The platform knowledge and development language of personnel's grasp proximal end test station are of less demanding, can effectively solve new person and carry out automation survey
The knowledge short slab problem of examination is low to the requested knowledge degree of dependence of operator.
3) test station of proximal end, after epicycle, not needing to wait all proximal end stations to test, terminate can be into
The test station utilization rate of row test, proximal end is high, and system automation effect is good.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the application
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Figure 1A~Fig. 1 C respectively illustrates the three test structure cases for the characteristics of embodying the application multifunctional testing;
Fig. 2 is the flow chart for the multifunction automatic test method that the embodiment of the present application 1 provides;
The survey of control information desk monitoring configuration in the multifunction automatic test method shown in FIG. 1 that Fig. 3 provides for example
Try the whether correct flow chart of version information;
The flow chart of step S11 in the multifunction automatic test method shown in FIG. 1 that Fig. 4 provides for example;
Fig. 5 is the flow chart for the multifunction automatic test method that the embodiment of the present application 2 provides;
The flow chart of step S24 in the multifunction automatic test method shown in fig. 5 that Fig. 6 provides for example;
Fig. 7 is the application one structural schematic diagram for implementing the multifunction automatic test macro provided.
Specific embodiment
The exemplary embodiment of the application is more fully described below with reference to accompanying drawings.Although showing the application in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the application without should be by embodiments set forth here
It is limited.It is to be able to thoroughly understand the application on the contrary, providing these embodiments, and can be by scope of the present application
Completely it is communicated to those skilled in the art.
Firstly, in order to be easier to understand the description of the subsequent technical solution to the application, in order to more clearly illustrate, Figure 1A
~Fig. 1 C shows several test structure cases for the characteristics of embodying the application multifunctional testing.
Figure 1A is the schematic diagram of test station case 1, in the case, the equipment under test of test station 35 directly with test work
Level controller 34 is connected, and is generally used for the relevant tests such as communication and the functions of the equipments to equipment.
Figure 1B is the schematic diagram of test station case 2, in the case, test station controller 34 can with test terminal+
Application program (App) is communicated, and be can control test terminal+App and is carried out operational trials, is generally used for the survey of business function class
Examination.
Fig. 1 C is the schematic diagram of test station case 3, in the case, test station controller 34 can with test equipment or
Software is communicated, and test equipment can be third-party open source equipment or software, is also possible to the test equipment or soft of profession
Part.
Test equipment or software are passed through the communication mode to match and access this system by test station controller 34, become this
The component part of system, control information desk 33 can be managed different test station controllers 34, to realize multi-functional
Test.
Fig. 2 is the flow chart for the multifunction automatic test method that the embodiment of the present application 1 provides.As shown in Fig. 2, embodiment
The 1 multifunction automatic test method provided includes the following steps:
Step S11, control information desk 33 receive the beta version information and test case that user is this test configurations.Tool
Body process can be with are as follows: the beta version information and test use cases of this pre-configured test of tester, the test case
Collection may include the test case subset of different test stations.
Step S11 can also include control information desk 33 receive user configuration this test beta version information and
After test case, whether the beta version information of the control monitoring configuration of information desk 33 is correct, the return step S11 if mistake
Continue to monitor whether to receive the beta version information that user configures again, if correctly thening follow the steps S12.As shown in figure 3, control
The beta version information of information desk processed monitoring configuration whether correctly may include:
Step S111 controls information desk 33 for the beta version and test case pipe in the beta version information of user configuration
The beta version of the existing test case of reason system 32 compares;
Step S112, control information desk 33 are analyzed and judge whether beta version, the beta version for monitoring user configuration are deposited
If the beta version of user configuration exists in the beta version of existing test case, showing the survey of user configuration
It is correct to try version information;If the beta version of user configuration is not present in the beta version of existing test case, table
The beta version information errors of bright user configuration.
Wherein, the beta version of existing test case can be obtained by edition management system (SVN:Subversion)
It takes, can also directly be obtained from test case exploitation side by being locally configured.For former mode, existing version management system
It unites varied, existing edition management system is docked with the system of the application, provides version for the present processes
Information can borrow original edition management mode, and compatibility is preferably.
Step S12, the beta version information and test case that control information desk 33 is tested according to this, generates test lot
Mark and the test content identified including test lot generated send test content to test station controller 34.Wherein,
Test content includes at least test lot mark, test case and beta version.Test lot mark can be test lot
ID number.
Step S13, test station controller 34 receive the test content that control information desk 33 is sent, extract test case simultaneously
It is converted to the executable test case that corresponding test station 35 is able to carry out, starts corresponding test station 35 and is tested.
After the completion of test, test result is fed back to control information desk by test station controller 34, wherein test result includes this survey
The test lot of examination identifies.
Step S14, control information desk 33 persistently receive the test result of the return of test station controller 34 and analyze test
Whether terminate, until determining that test terminates then to generate test report, wherein test result includes the test lot mark of this test
Know.As shown in figure 4, detailed process may include:
Step S141, control information desk 33 persistently receive the test result of the return of test station controller 34, test result
Test lot mark including this test;
Step S142, control information desk 33 to received test result carry out data processing, analyse whether it is all specify into
Test station 35 of this test of row returns to test result, if it is S143 is thened follow the steps, otherwise return step S141;
Step S143, test terminate and generate test report.
Test station controller 34 carries test lot mark, the survey to the test result that control information desk 33 returns
Examination batch identification is distributed by control information desk 33, controls information desk 33 according to the mark, can synthesize correctly report batch, i.e.,
According to test lot mark same report will be synthesized with a batch of test result.Because with a batch of test all with survey
Batch identification is tried, so each test will not be obscured with test before.Therefore, after each test station 35 is tested,
The test completion for withouting waiting for all test stations 35 can reuse, and can effectively improve each test station 35
Utilization rate.
Test station controller 34 can be applied to from the open source equipment or software for developing, supporting secondary development, support two
The test equipment or software of the profession of secondary exploitation.So, the different equipment of different platforms or software can pass through test
Station controller becomes the test component part of the application, to realize multi-functional power of test.
Fig. 5 is the flow chart for the multifunction automatic test method that the embodiment of the present application 2 provides.As shown in figure 5, embodiment
The 2 multifunction automatic test methods provided and the multifunction automatic test method main distinction of embodiment 1 are: embodiment
Test period timer is increased in 2.The multifunction automatic test method that embodiment 2 provides includes the following steps:
Step S21, control information desk 33 receive user configuration this test beta version information and test case, with
And the test period of test period timer.Detailed process can be with are as follows: the beta version of this pre-configured test of tester
This information, this test use cases and test period timer for testing.
Step S22, the beta version information and test case that control information desk 33 is tested according to this, generates test lot
Mark and the test content identified including test lot generated, and start test period timer, it is controlled to test station
Device sends test content.
Step S23, test station controller 34 receive the test content that control information desk 33 is sent, extract test case simultaneously
It is converted to the executable test case that corresponding test station 35 is able to carry out, starts corresponding test station 35 and is tested.
Step S24, control information desk 33 persistently receives the test result of test station controller return, and detects whether to receive
Whether the test result and detection test period timer of all test stations 35 specified to this test are overtime, Zhi Daoshou
End is then tested to all test results or test period timer expiry and generates test report, wherein test result
Test lot mark including this test.As shown in fig. 6, detailed process may include:
Step S241 controls 33 monitoring and test cycle timer of information desk, receives and analyzes test station controller feedback
Test result back analyzes this and tests whether to terminate;
Step S242, if test period timer expiry or receiving the specified all test stations feedback of this test
Test result back, then return step S241 is continued waiting for;If test period timer has not timed out and does not receive this
The test result that the specified all test stations of secondary test are fed back, thens follow the steps S242;
Step S242, control information desk 33 carries out data processing, and generates test report.
The multifunction automatic test method of embodiment 2 can control the week entirely tested by test period timer
Phase prevents abnormal caused the problem of being constantly in waiting.Similarly, each test station controller 34 also can be set
The test period of this test station.
Fig. 7 is the structural schematic diagram for the multifunction automatic test macro that the application one embodiment provides.Such as Fig. 7 institute
Show, the multifunction automatic test macro which provides includes parameter configuration module 31, test case management system 32, control
Information desk 33, test station controller 34 and test station 35 processed.
Wherein, parameter configuration module 31 is used to be parameter needed for this test configurations, and parameter includes at least beta version
Information and test case.
Test case management system 32 is used for the maintenance and management of test case.In this embodiment, information desk 33 is controlled
What is accessed with test station controller 34 is the same test case management system 32, and test station controller 34 is by test case
Test case in management system 32 is converted to the executable test case that can be tested station execution, and test station 35 is according to connecing
The executable test case received carries out test.
Control information desk 33 for version monitor, according to beta version information and Test cases technology test lot mark with
Test content including test lot generated mark, the generation of test result analysis and test report, with test station control
Device 34 processed communicates.Control information desk 33 can be also used for managing and maintaining test assignment, to test station controller 34
On-line checking and tidal data recovering, management and maintenance to control information desk are mainly used for the condition managing to control information desk, with
And link maintenance etc..
Control information desk 33 may include data processing unit 331 and management and maintenance unit 332.Wherein, data processing
Unit 331 is analyzed and processed parameter configuration and the data of acquisition for controlling information desk 33, according to beta version information and
Test cases technology test lot mark and the test content including test lot generated mark, and generate test report
It accuses.Management is used for management and maintenance to control information desk 33 with maintenance unit 332, is mainly used for the shape to control information desk 33
State management and link maintenance.
Test station controller 34 takes for realizing the interface between control information desk 33 and test station 35 according to control
The test content that business platform 33 is sent is converted into test station 35 from the extraction of test case management system 32 test case and is able to carry out
Executable test case.It specifically includes: carrying out sending and receiving for data with control information desk 33, realize test station 35
External interface management carries out data to test station 35 and sends and receives, to the test case of test case management system 32
It is identified, generates the executable test case that test station 35 is able to carry out.Test station controller 35 can be also used for pair
The state of test station controller and with control 33 link of information desk management and maintenance etc..For save the cost or convenience
Deng consideration, each test station controller 35 may be integrally incorporated to together, is designed using virtual mode, as an alternative solution,
Can be by the way of separate standards part, for example, test station controller is made into standard component, test station 35 is according to test work
The interface that level controller 34 provides can be communicated with control information desk 33.
Test station controller 34 may include that interface unit 341 and test case extract converting unit 342.Wherein, it connects
Mouth unit 341 is for realizing the interface between control information desk 33 and test station 35.Test case is extracted converting unit 342 and is used
In receiving the test content for controlling information desk 33 and sending, test case is identified and extracted from test case management system 32 and is turned
It changes, generates the executable test case or script that corresponding test station is able to carry out.
Test station 35 provides test wrapper for executing executable test case to test equipment under test for equipment under test
Border.Test station 35 accesses this system by test station controller 34.Test station, either from open, or using the
The test that three method, apparatus or software are carried out, can access this system by test station controller, to realize multi-functional survey
Method for testing.For example, test station case 1 is responsible for stability test as shown in Figure 1A~Fig. 1 C, environment is built certainly;Test station
Case 2 is responsible for functional test, using third party's open source software;Test station case 3 is responsible for performance test, has purchased the survey of profession
Try equipment.Corresponding interface function is developed to this 3 test stations, each test station passes through respective test station controller
Access control information desk, control information desk can be managed each test station.
The multifunction automatic test macro of the embodiment can also include test period timer, for monitoring this survey
Whether the test result of examination gives in setting period internal feedback controls information desk 33.Correspondingly, parameter configuration module 31 is this survey
The parameter that trial is set further includes test period.33 monitoring and test cycle timer of information desk is controlled, receive and is analyzed from test work
The test result that level controller 34 is fed back;Timeout case and all test stations according to test period timer
The test result situation that controller 34 is fed back analyzes this and tests whether to terminate, and end then carries out data processing, and generates
Test report.
The multifunction automatic test macro of the embodiment can also include edition management system 36, for beta version
Management and maintenance.Alternatively, the beta version of existing test case can be from edition management system (SVN) 36
It obtains.As another optional way, the beta version for having test case can be by parameter configuration module 31 directly from survey
Example exploitation side on probation obtains.For former mode, existing edition management system is varied, by existing version management system
System is docked with the system of the embodiment, is provided version information condition for the system of the embodiment, can be borrowed original version
This management mode, compatibility is preferably.
The multifunction automatic test method and system of the application can be used for base station testing, can be used for other equipment
Test.The multifunction automatic test method and system of the application may be implemented to business function, functions of the equipments, equipment performance
Deng test.This method mainly passes through control information desk and sends test mark, the test that this is tested to test station controller
The contents such as information, test use cases, test station controller are listened to and are received the content that control information desk is sent, analyze and handle
Test use cases, and start test, test station controller returns to test result, control clothes to control information desk after the completion of test
Business platform analyzes the test result that each test station controller returns, and generates test report.
Above is only an example of the present application, it is not intended to limit the scope of the patents of the application, it is all to utilize this Shen
Please equivalent structure or equivalent flow shift made by specification and accompanying drawing content, be applied directly or indirectly in other relevant skills
Art field similarly includes in the scope of patent protection of the application.