CN107870863B - XML-based distributed automatic test method - Google Patents

XML-based distributed automatic test method Download PDF

Info

Publication number
CN107870863B
CN107870863B CN201711217099.0A CN201711217099A CN107870863B CN 107870863 B CN107870863 B CN 107870863B CN 201711217099 A CN201711217099 A CN 201711217099A CN 107870863 B CN107870863 B CN 107870863B
Authority
CN
China
Prior art keywords
tested
test
model
testing
xml
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.)
Active
Application number
CN201711217099.0A
Other languages
Chinese (zh)
Other versions
CN107870863A (en
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.)
CETC 54 Research Institute
Original Assignee
CETC 54 Research Institute
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 CETC 54 Research Institute filed Critical CETC 54 Research Institute
Priority to CN201711217099.0A priority Critical patent/CN107870863B/en
Publication of CN107870863A publication Critical patent/CN107870863A/en
Application granted granted Critical
Publication of CN107870863B publication Critical patent/CN107870863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The invention provides a distributed automatic test method based on XML, which describes a model to be tested established in XML format, a distributed test platform automatically monitors a TotosiseSVN file library located in a central server, obtains test task information by analyzing the model to be tested, and calls an instrument in a corresponding test platform to complete the test according to the description of test contents in the test task information. The invention supports the standardized editing of the test items and the test flow, is convenient for the testers to comprehensively master the test steps, and improves the controllability and the safety of the test system.

Description

XML-based distributed automatic test method
Technical Field
The invention relates to a distributed automatic test method based on XML, in particular to a method for realizing test automation through structural description of a test flow, which is particularly suitable for automatic test of an unmanned aerial vehicle communication link.
Background
The traditional test technology often meets more problems in the automatic test application of the unmanned aerial vehicle communication link, and especially when facing the existing data link communication system, the traditional test technology can only test the functions of data link signal generation, transmission, reception and the like independently, so the comprehensiveness and universality of test indexes can not meet the test requirements.
Disclosure of Invention
The invention aims to overcome the defects of the traditional testing technology in the field of unmanned aerial vehicle communication link testing, and provides an automatic testing method with strong practicability and better expansibility. The invention provides and designs a distributed automatic test process analysis method based on XML on the basis of integrating the characteristics of various unmanned aerial vehicle communication links at home and abroad. The invention decomposes the test product by using a structured language, constructs N test trees containing complete test flow and key characteristic information in an XML text, and shares the test trees to each distributed test platform through a TotosiseSVN file library positioned in a central server to form test control flow to drive the test platform to test related contents.
The technical scheme adopted by the invention is as follows:
a distributed automatic test method based on XML comprises the following steps:
(1) creating a model to be tested described by XML; the model to be tested describes and organizes products to be tested in a test tree form, and each test tree comprises key characteristic information of all tests of one product to be tested;
(2) establishing a TotosiseSVN file library in a testing central server, and storing a model to be tested into the TotosiseSVN file library;
(3) the testing central server periodically scans a TotosiseSVN file library, analyzes the key characteristic information of each testing tree after detecting a model to be tested, and constructs a structural body to be tested according to the analyzed key characteristic information of each testing tree;
(4) the testing central server puts the structural bodies to be tested of all the testing trees into a queue to be tested as tasks to be tested;
(5) the distributed test platform acquires a current task to be tested from the queue to be tested, and searches a method database according to key characteristic information in the current task to be tested to form a test control flow;
(6) and (5) controlling and asking for the instrument report as test result data according to the test control flow by the distributed test platform, writing the test result data as a test result into the model to be tested, modifying the number of the test trees to reduce by one, taking the next task to be tested as the current task to be tested, and returning to the step (5) until the last task to be tested.
Wherein, the key characteristic information in the step (1) comprises: the method comprises the following steps of testing a product to be tested, a model to be tested, an ID (identity) of the product to be tested, a test case name, a test case ID, a model creation date, a product version to be tested, test cycle times and test external parameters.
And (2) reserving a reserved position in each test tree in the step (1), and adding descriptive characters in the reserved positions.
And (4) putting the structures to be tested of all the test trees into a queue to be tested according to the priority as tasks to be tested.
Compared with the prior art, the invention has the following beneficial effects:
(1) the standardized editing of the test items and the test flow is supported, and the test steps can be conveniently and comprehensively mastered by a tester;
(2) by building a TotosiseSVN file library in a central server, the management of XML is restrained while supporting a distributed test platform, and the controllability and the safety of a test system are improved;
description of the drawings:
FIG. 1 is a flow chart of an XML-based distributed automated test procedure analysis method of the present invention.
Detailed Description
The invention is further described below with reference to the accompanying drawings and the practice. The XML distributed automatic test process mainly comprises the following steps:
(1) creating a model to be tested described by XML; the model to be tested describes and organizes products to be tested in a test tree form, and each test tree comprises key characteristic information of all tests of one product to be tested; the key feature information includes: the method comprises the following steps of testing a product, a model to be tested ID, a product to be tested ID, a test case name, a test case ID, a model creation date, a product version to be tested, test cycle times and test external parameters; and each test tree can be reserved with a reserved position, and descriptive characters are added to the reserved positions.
(2) Establishing a TotosiseSVN file library in a testing central server, and storing a model to be tested into the TotosiseSVN file library;
(3) the testing central server periodically scans a TotosiseSVN file library, analyzes the key characteristic information of each testing tree after detecting a model to be tested, and constructs a structural body to be tested according to the analyzed key characteristic information of each testing tree;
(4) the test central server puts the structures to be tested of all the test trees into a queue to be tested according to the priority as tasks to be tested;
(5) the distributed test platform acquires a current task to be tested from the queue to be tested, and searches a method database according to key characteristic information in the current task to be tested to form a test control flow;
(6) and (5) controlling and asking for the instrument report as test result data according to the test control flow by the distributed test platform, writing the test result data as a test result into the model to be tested, modifying the number of the test trees to reduce by one, taking the next task to be tested as the current task to be tested, and returning to the step (5) until the last task to be tested.
Finally, it should be noted that: although the present invention has been described in detail with reference to the above embodiments, it will be apparent to those skilled in the art that modifications may be made to the above embodiments, or equivalent substitutions and modifications may be made to other features of the embodiments, and any modifications, equivalents, improvements, etc. within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (4)

1. A distributed automatic test method based on XML is characterized in that the method is used for automatic test of an unmanned aerial vehicle communication link and comprises the following steps:
(1) creating a model to be tested described by XML; the model to be tested describes and organizes products to be tested in a test tree form, and each test tree comprises key characteristic information of all tests of one product to be tested;
(2) establishing a TotosiseSVN file library in a testing central server, and storing a model to be tested into the TotosiseSVN file library;
(3) the testing central server periodically scans a TotosiseSVN file library, analyzes the key characteristic information of each testing tree after detecting a model to be tested, and constructs a structural body to be tested according to the analyzed key characteristic information of each testing tree;
(4) the testing central server puts the structural bodies to be tested of all the testing trees into a queue to be tested as tasks to be tested;
(5) the distributed test platform acquires a current task to be tested from the queue to be tested, and searches a method database according to key characteristic information in the current task to be tested to form a test control flow;
(6) and (5) controlling and asking for the instrument report as test result data according to the test control flow by the distributed test platform, writing the test result data as a test result into the model to be tested, modifying the number of the test trees to reduce by one, taking the next task to be tested as the current task to be tested, and returning to the step (5) until the last task to be tested.
2. An XML-based distributed automation test method according to claim 1, wherein the key feature information in step (1) includes: the method comprises the following steps of testing a product, a model to be tested, an ID (identity) of the product to be tested, a name of the product to be tested, an ID of the product to be tested, a name of a test case, the ID of the test case, a model creation date, a version of the product to be tested, test cycle times and test external parameters.
3. An XML-based distributed automated testing method according to claim 1, wherein a reserved position is reserved in each test tree in step (1), and descriptive words are added to the reserved position.
4. The distributed automated test method based on XML of claim 1, wherein in step (4), the structures to be tested of all the test trees are put into the queue to be tested according to priority as the tasks to be tested.
CN201711217099.0A 2017-11-28 2017-11-28 XML-based distributed automatic test method Active CN107870863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711217099.0A CN107870863B (en) 2017-11-28 2017-11-28 XML-based distributed automatic test method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711217099.0A CN107870863B (en) 2017-11-28 2017-11-28 XML-based distributed automatic test method

Publications (2)

Publication Number Publication Date
CN107870863A CN107870863A (en) 2018-04-03
CN107870863B true CN107870863B (en) 2020-10-16

Family

ID=61754798

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711217099.0A Active CN107870863B (en) 2017-11-28 2017-11-28 XML-based distributed automatic test method

Country Status (1)

Country Link
CN (1) CN107870863B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108959079B (en) * 2018-06-27 2021-08-20 郑州云海信息技术有限公司 Software agile development method and system taking automatic test as leading factor
CN109614329B (en) * 2018-12-06 2021-11-02 中国航空工业集团公司洛阳电光设备研究所 Software test case aided design method based on interface control file
CN110389868B (en) * 2019-06-24 2022-08-12 苏州浪潮智能科技有限公司 Method and system for optimizing complete machine diagnosis process of server manufacturing factory
CN111381142A (en) * 2020-02-21 2020-07-07 上海御渡半导体科技有限公司 Semiconductor automatic test equipment and test method for improving test flow efficiency

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655939B2 (en) * 2007-01-05 2014-02-18 Digital Doors, Inc. Electromagnetic pulse (EMP) hardened information infrastructure with extractor, cloud dispersal, secure storage, content analysis and classification and method therefor
CN104391796A (en) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 Method for parsing test cases
CN105068929A (en) * 2015-08-06 2015-11-18 网易(杭州)网络有限公司 Test script generation method, test script generation device, testing method, testing device and testing system
US9800517B1 (en) * 2013-10-31 2017-10-24 Neil Anderson Secure distributed computing using containers

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102331967B (en) * 2011-06-15 2014-08-27 烽火通信科技股份有限公司 Method for managing chip verification test cases
CN102497227A (en) * 2011-11-02 2012-06-13 深圳航天东方红海特卫星有限公司 Satellite automatic test method and system
US9414776B2 (en) * 2013-03-06 2016-08-16 Navigated Technologies, LLC Patient permission-based mobile health-linked information collection and exchange systems and methods
CN104182347B (en) * 2014-09-05 2017-09-19 上海斐讯数据通信技术有限公司 A kind of testing requirement automatic analysis method based on automatic test platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8655939B2 (en) * 2007-01-05 2014-02-18 Digital Doors, Inc. Electromagnetic pulse (EMP) hardened information infrastructure with extractor, cloud dispersal, secure storage, content analysis and classification and method therefor
US9800517B1 (en) * 2013-10-31 2017-10-24 Neil Anderson Secure distributed computing using containers
CN104391796A (en) * 2014-12-05 2015-03-04 上海斐讯数据通信技术有限公司 Method for parsing test cases
CN105068929A (en) * 2015-08-06 2015-11-18 网易(杭州)网络有限公司 Test script generation method, test script generation device, testing method, testing device and testing system

Also Published As

Publication number Publication date
CN107870863A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
CN107870863B (en) XML-based distributed automatic test method
US9064001B2 (en) Method and apparatus for a frequently-asked questions portal workflow
CN109885488A (en) The satellite orbit software for calculation automated testing method and system of use-case table- driven
US10789049B2 (en) Recipe program code generation method and recipe compiling cloud platform system
CN111324379B (en) Model deployment system based on general SOA service
US20200174917A1 (en) Rapid Automation First-pass Testing Framework
CN103218290B (en) A kind of aerospace satellite-borne software can perform the automatic method for transformation of script
CN106682036A (en) Data exchange system and exchange method thereof
CN105760296A (en) Automation testing control method, device and terminal
CN101196844A (en) System and method of testing hardware module
CN107193730A (en) A kind of interface test method of automation
CN111708706A (en) Industrial internet APP automatic test system and test method
CN110059000A (en) Chat drama test control method, device, computer equipment and storage medium
CN111245671B (en) Automatic integrated test system for ground test of satellite laser communication terminal
CN103077109B (en) A kind of test plan dispatching method and system
GB2357170B (en) Method and device for computer testing
CN110032517A (en) Realize the method and system of interface coverage rate automation statistics
Braun et al. A methodology for the detection of functional relations of mechatronic components and assemblies in brownfield systems
CN103559296A (en) XML-based parsing method for SCPI (The Standard Commands for Programmable Instruments)
CN109492036A (en) A kind of electronization test report system
CN116383061A (en) Method and related device for testing basic platform interface of substation control system
CN106909483B (en) A kind of test method of navigation module
CN111176995A (en) Test method and test system based on big data test case
CN113934446B (en) Micro-service configuration system and method based on container cloud platform
CN115562989A (en) Automatic test sequence conversion method, system, equipment and medium

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