CN103235758A - Test platform method and device for achieving concurrent test scripts - Google Patents

Test platform method and device for achieving concurrent test scripts Download PDF

Info

Publication number
CN103235758A
CN103235758A CN2013101766916A CN201310176691A CN103235758A CN 103235758 A CN103235758 A CN 103235758A CN 2013101766916 A CN2013101766916 A CN 2013101766916A CN 201310176691 A CN201310176691 A CN 201310176691A CN 103235758 A CN103235758 A CN 103235758A
Authority
CN
China
Prior art keywords
test
devices
configuration
testing tool
script
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
CN2013101766916A
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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN2013101766916A priority Critical patent/CN103235758A/en
Publication of CN103235758A publication Critical patent/CN103235758A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a test platform method and device for achieving concurrent test scripts and belongs to the field of execution modes of automated test scripts. The problem that existing production line type device status configuration costs much time and script execution efficiency is low and the like are solved through the test platform method and device. The method comprises the steps of enabling a test platform to receive the test scripts line by line and analyze test script information; configuring to-be-tested devices and test instruments; performing status synchronization between the to-be-tested devices, between the test instruments and between the to-be-tested devices and the test instruments; and carrying out test steps and finishing the test scripts. Test platform design for the concurrent test scripts is achieved, configuration time of the to-be-tested devices and the test instruments can be compressed, execution efficiency of the test scripts is improved, and when massive test cases exist, regression test efficiency is also greatly improved in a test script execution mode.

Description

Realize the method and apparatus of the test platform of concurrency test script
Technical field
The present invention relates to the executive mode field of automatic test script, especially relate to a kind of method and apparatus of realizing the test platform of concurrency test script.
Background technology
At present, when carrying out network equipment detection, often adopt the method for automatic test, automatic test is that the behavioral test with artificial driving is converted into a kind of process that machine is carried out.Along with the development of software testing technology, in order to save manpower, time, hardware resource, improve testing efficiency, automated testing method has been proposed.Automatic test is consistent with software development process in essence, utilize automated test tool, through the analysis to testing requirement, design automatic test cases, thereby build the framework of automatic test, design with write automatic test script, by testing the correctness of this script, thereby finish this cover test script.
At present, the automatic test of traditional network equipment mainly adopts the executive mode of pipeline system to carry out test script, as shown in Figure 1, in the automatic test of the network equipment, mainly be divided into the configuration of Devices to test and the configuration of testing tool, when having many Devices to tests, configuration between the multiple devices also is to carry out state configuration in the mode of streamline, therefore a large amount of script execution time can occur all spend problem in the process of configuration, and really the execution time of testing procedure often very short.
Summary of the invention
The objective of the invention is to overcome the defective of prior art, a kind of method and apparatus of realizing the test platform of concurrency test script is provided, test script adopts the executive mode of concurrency, and according to the difference of user-defined key word, the configuration of different testing tools and different Devices to test is placed on different execution branches, compress the setup time of Devices to test and testing tool, improved the execution efficient of test script.
For achieving the above object, the present invention proposes following technical scheme: a kind of method that realizes the test platform of concurrency test script may further comprise the steps:
The first step, test script begins, and test platform is acceptance test script and resolve test script information line by line, and Devices to test and testing tool equipment are configured;
Second step is with between the Devices to test that configures, carry out state synchronized between the testing tool equipment;
The 3rd step is to carrying out state synchronized between Devices to test and the testing tool equipment;
In the 4th step, carry out testing procedure, and will export after the test result inspection;
The 5th step, the configuration that judges whether to remove Devices to test, testing tool;
The 6th step, judge whether test script finishes, if not, then get back to the configuration phase of testing tool and Devices to test, if then finish current test script.
Preferably, described test script comprises trunk portion and carries out branch.
Described test script information comprises trunk portion information and carries out branch information that described trunk portion information comprises: the configuration interface that Devices to test name and test platform provide, described execution branch information comprises: the configuration order of Devices to test.
The described first step specifically comprises:
When described test platform was resolved to test script trunk portion information, described test platform was sign with the Devices to test name, pulled out described execution branch;
In the described configuration order of carrying out branch's execution Devices to test, the configuration order with Devices to test is configured on Devices to test or the testing tool line by line, and the information with configuration in the time of configuration is recorded in removing Devices to test or testing tool equipment configuration module.
Described second step specifically comprises: the protocol status between the configuration status between the synchronous Devices to test, the synchronous Devices to test, the configuration status between the synchronism detection instrument.
Described the 5th step specifically comprises:
Whether remove the judgement of Devices to test configuration, if, then carry out the Devices to test configuration according to the configuration information of collecting and remove, if not, then enter the judgement of whether removing the testing tool configuration;
Whether remove the judgement of testing tool configuration, if, then carry out the testing tool configuration according to the configuration information of collecting and remove, if not, then enter the judgement whether script finishes.
A kind of device of realizing the test platform of concurrency test script comprises:
Configuration module is used for line by line the acceptance test script and resolves test script information, and Devices to test and testing tool equipment are configured;
The state synchronized module is used between the Devices to test, between the testing tool equipment, carry out state synchronized between Devices to test and the testing tool equipment;
Execution module is used for carrying out testing procedure, and will exports after the test result inspection;
Remove configuration module, comprise and remove the Devices to test configuration module and remove the testing tool configuration module, be used for the configuration on Devices to test and the testing tool is removed;
Described test script comprises trunk portion and carries out branch.
Described test script information comprises trunk portion information and carries out branch information that described trunk portion information comprises: the configuration interface that Devices to test name and test platform provide, described execution branch information comprises: the configuration order of Devices to test.
The invention has the beneficial effects as follows:
(1) test platform acceptance test script line by line, and be sign with the Devices to test name, different Devices to tests and different testing apparatuss be placed in the different branches carry out synchronously, compressed the time of the configuration of Devices to test and testing tool, improve the execution efficient of script;
(2) when having a large amount of test cases, such script execution pattern has also significantly improved the efficient of regression test;
Description of drawings
Fig. 1 is traditional automatic test script executive mode schematic flow sheet;
Fig. 2 is the executive mode schematic flow sheet of automatic test script of the present invention;
Fig. 3 is the schematic flow sheet of automatic test platform of the present invention;
Fig. 4 is the module diagram of the device of a kind of test platform of realizing the concurrency test script of the present invention;
Embodiment
Below in conjunction with accompanying drawing of the present invention, the technical scheme of the embodiment of the invention is carried out clear, complete description.
As shown in Figure 2, the executive mode of disclosed automatic test script, test platform is the acceptance test script line by line, be sign with the Devices to test name, configuration order with Devices to test is configured on Devices to test or the testing tool line by line, different Devices to tests and different testing apparatuss are placed in the different branches, carry out testing procedure synchronously, as long as test script the finish command is not carried out, testing procedure is then carried out successively, compress the time of the configuration of Devices to test and testing tool, improved the execution efficient of script.
As shown in Figure 3, a kind of method that realizes the test platform of concurrency test script may further comprise the steps:
The first step, test script begins, and test platform is acceptance test script and resolve test script information line by line, enters by passage S1 Devices to test and testing tool equipment are configured;
Second step, after Devices to test finishes configuration, carry out state synchronized between the Devices to test by passage S2, be used for configuration status and protocol status between the synchronous Devices to test, when between all Devices to tests all synchronously behind the configuration status, carry out between the Devices to test protocol status synchronously, when confirming the same EOS of protocol status, entered for the 3rd step by passage S3;
After testing tool finishes configuration, carry out state synchronized between the testing tool equipment, be used for the configuration status between the synchronism detection instrument group, after all Devices to tests all finish configuration, entered for the 3rd step;
The 3rd step, whether, be according to from the second step parameter that hand down judge the configuration status of current Devices to test, protocol status synchronous, whether the configuration status of testing tool is synchronous if carrying out state synchronized between Devices to test and the testing tool equipment, if all synchronously, then entered for the 4th step;
In the 4th step, carry out testing procedure, and will export after the test result inspection;
Carry out testing procedure and be according to sending to and be configured the message finished or other content measurement on the testing tool, output test result, and according to the expected behavior of setting in the test script, compare with current actual test result, determine whether current test result is correct;
The 5th step, the configuration that judges whether to remove Devices to test, testing tool;
The 6th step, judge whether test script finishes, if not, then jump to the described first step by passage S9, get back to the configuration phase of testing tool and Devices to test, and down carry out successively set by step, if then finish current test script.
The first step specifically comprises:
When test platform is resolved to test script trunk portion information, described trunk portion information comprises: the configuration interface that Devices to test name and test platform provide, test platform is sign with the Devices to test name, pull out and carry out branch, test platform is skipped the configuration order of carrying out Devices to test in the branch, continues to resolve the test script trunk portion, if run into different Devices to test names, then continue to pull out another execution branch, and the like;
In the configuration order of carrying out test platform scanning Devices to test line by line in the branch, configuration order with Devices to test is configured on Devices to test or the testing tool line by line, and the information with configuration in the time of configuration is recorded in removing Devices to test or testing tool equipment configuration module.
The 5th step specifically comprised:
Whether remove the judgement of Devices to test configuration, if, then carry out Devices to test configuration removing according to be recorded in the configuration information of removing in the Devices to test configuration module through passage S6, removing also enters the judgement of whether removing the testing tool configuration by passage S7, if not, then directly enter the judgement of whether removing the testing tool configuration;
Whether remove the judgement of testing tool configuration, if, then carry out testing tool configuration removing according to be recorded in the configuration information of removing in the testing tool configuration module through passage S5, remove and enter described the 6th step by passage S8, if not, then directly enter described the 6th step.
As shown in Figure 4, a kind of device of realizing the test platform of concurrency test script comprises:
Configuration module is used for line by line the acceptance test script and resolves test script information, and Devices to test and testing tool equipment are configured;
The state synchronized module, be used for the configuration status between the Devices to test and protocol status synchronously, configuration status between the testing tool equipment is synchronous, when between the Devices to test and after the state between the testing tool equipment all finishes synchronously, carry out the state synchronized between Devices to test and the testing tool equipment;
Execution module is used for carrying out testing procedure, and will exports after the test result inspection;
Remove configuration module, be used for removing configuration phase and be recorded in Devices to test and the interior configuration of testing tool;
The present invention has realized the Testing Platform of concurrency test script, be mainly used in compressing the setup time of Devices to test and testing tool, improve the execution efficient of test script, when having a large amount of test cases, such test script execution pattern has also significantly improved the efficient of regression test.
Technology contents of the present invention and technical characterictic have disclosed as above; yet those of ordinary skill in the art still may be based on teaching of the present invention and announcements and are done all replacement and modifications that does not deviate from spirit of the present invention; therefore; protection domain of the present invention should be not limited to the content that embodiment discloses; and should comprise various do not deviate from replacement of the present invention and modifications, and contained by the present patent application claim.

Claims (9)

1. realize the method for the test platform of concurrency test script, it is characterized in that: may further comprise the steps:
The first step, test script begins, and test platform is acceptance test script and resolve test script information line by line, and Devices to test and testing tool equipment are configured;
Second step is with between the Devices to test that configures, carry out state synchronized between the testing tool equipment;
The 3rd step is to carrying out state synchronized between Devices to test and the testing tool equipment;
In the 4th step, carry out testing procedure, and will export after the test result inspection;
The 5th step, the configuration that judges whether to remove Devices to test, testing tool;
The 6th step, judge whether test script finishes, if not, then get back to the configuration phase of testing tool and Devices to test, if then finish current test script.
2. a kind of method that realizes the test platform of concurrency test script according to claim 1 is characterized in that, described test script comprises trunk portion and carries out branch.
3. a kind of method that realizes the test platform of concurrency test script according to claim 1, it is characterized in that, described test script information comprises trunk portion information and carries out branch information, described trunk portion information comprises: the configuration interface that Devices to test name and test platform provide, described execution branch information comprises: the configuration order of Devices to test.
4. a kind of implementation method that realizes the test platform of concurrency test script according to claim 1 is characterized in that the described first step specifically comprises:
When described test platform was resolved to test script trunk portion information, described test platform was sign with the Devices to test name, pulled out described execution branch;
In the described configuration order of carrying out branch's execution Devices to test, configuration order with Devices to test is configured on Devices to test or the testing tool line by line, in the time of configuration the information of configuration is noted, be used for removing later on the configuration on Devices to test and the testing tool.
5. a kind of method that realizes the test platform of concurrency test script according to claim 1, it is characterized in that described second step specifically comprises: the protocol status between the configuration status between the synchronous Devices to test, the synchronous Devices to test, the configuration status between the synchronism detection instrument.
6. a kind of method that realizes the test platform of concurrency test script according to claim 1 is characterized in that, described the 5th step specifically comprises:
Whether remove the judgement of Devices to test configuration, if, then carry out the Devices to test configuration according to the configuration information of collecting and remove, if not, then enter the judgement of whether removing the testing tool configuration;
Whether remove the judgement of testing tool configuration, if, then carry out the testing tool configuration according to the configuration information of collecting and remove, if not, then enter the judgement whether script finishes.
7. a kind of device of realizing the test platform of concurrency test script according to claim 1 is characterized in that, comprising:
Configuration module is used for line by line the acceptance test script and resolves test script information, and Devices to test and testing tool equipment are configured;
The state synchronized module is used between the Devices to test, between the testing tool equipment, carry out state synchronized between Devices to test and the testing tool equipment;
Execution module is used for carrying out testing procedure, and will exports after the test result inspection;
Remove configuration module, comprise and remove the Devices to test configuration module and remove the testing tool configuration module, be used for the configuration on Devices to test and the testing tool is removed.
8. a kind of device of realizing the test platform of concurrency test script according to claim 7 is characterized in that, described test script comprises trunk portion and carries out branch.
9. a kind of device of realizing the test platform of concurrency test script according to claim 7, it is characterized in that, described test script information comprises trunk portion information and carries out branch information, described trunk portion information comprises: the configuration interface that Devices to test name and test platform provide, described execution branch information comprises: the configuration order of Devices to test.
CN2013101766916A 2013-05-14 2013-05-14 Test platform method and device for achieving concurrent test scripts Pending CN103235758A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101766916A CN103235758A (en) 2013-05-14 2013-05-14 Test platform method and device for achieving concurrent test scripts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101766916A CN103235758A (en) 2013-05-14 2013-05-14 Test platform method and device for achieving concurrent test scripts

Publications (1)

Publication Number Publication Date
CN103235758A true CN103235758A (en) 2013-08-07

Family

ID=48883803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101766916A Pending CN103235758A (en) 2013-05-14 2013-05-14 Test platform method and device for achieving concurrent test scripts

Country Status (1)

Country Link
CN (1) CN103235758A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109428918A (en) * 2017-08-25 2019-03-05 北京国双科技有限公司 The synchronous method and device of mapping relations between domain account and domain group
US10860458B2 (en) 2014-07-31 2020-12-08 Micro Focus Llc Determining application change success ratings

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501603A (en) * 2002-11-17 2004-06-02 华为技术有限公司 Method for implementing parallel script execution
CN101013977A (en) * 2007-02-08 2007-08-08 华为技术有限公司 Network testing method and system
US20080091775A1 (en) * 2006-10-12 2008-04-17 International Business Machines Corporation Method and apparatus for parallel operations on a plurality of network servers

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501603A (en) * 2002-11-17 2004-06-02 华为技术有限公司 Method for implementing parallel script execution
US20080091775A1 (en) * 2006-10-12 2008-04-17 International Business Machines Corporation Method and apparatus for parallel operations on a plurality of network servers
CN101013977A (en) * 2007-02-08 2007-08-08 华为技术有限公司 Network testing method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10860458B2 (en) 2014-07-31 2020-12-08 Micro Focus Llc Determining application change success ratings
CN109428918A (en) * 2017-08-25 2019-03-05 北京国双科技有限公司 The synchronous method and device of mapping relations between domain account and domain group

Similar Documents

Publication Publication Date Title
CN104717337B (en) A kind of method of batch testing mobile phone application and its equipment used
KR101012464B1 (en) Testing method and its apparatus of digital substation Merging Unit
CN109800156A (en) A kind of subway signal system automation test method based on profile command
CN108170124B (en) Test script automatic generation system and method based on train control engineering data
CN109062584A (en) Device, method, system and the storage medium of a kind of multiple chips of while burning
CN102053235A (en) On-site steady-state accuracy verification system for electronic current transformer and verification method thereof
CN109379251A (en) Protective relaying device process layer GOOSE and SV communicate automatic test approach and system
CN102164196A (en) Automatic mobile phone current testing method
CN106951556B (en) Consistency checking method and system for power distribution network graph model in offline environment
CN104133771B (en) A kind of test method and device
CN106407108B (en) A kind of test method and system of train network logout software
CN106771760A (en) A kind of distributed FA functional diagnosis method based on main website simulation
CN111999579B (en) Automatic detection system and method for charging pile
CN108958225B (en) Nuclear power plant safety level DCS platform integration testing device
CN105426623B (en) The method that schematic diagram based on substation automatically generates terminal figure
CN103049379A (en) System testing method
CN106708736A (en) Production automation testing method and system for communication equipment
CN103235758A (en) Test platform method and device for achieving concurrent test scripts
CN105574178B (en) Satellite test basic database and batch satellite test device and method
CN106598793B (en) Test system and test method based on BIOS serial port log data
CN112101801A (en) Construction quality unified supervision method and system based on Internet of things technology
CN111103495A (en) Automatic test system and method for field debugging of cross-interval relay protection equipment
CN104915291B (en) Terminal restarts verification method and system
CN105589781A (en) Automated testing method of simulating inserting and pulling of USB of car audio
CN107576926B (en) A method of generating simulation ammeter returned data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20130807