CN105760296B - Automatic test control method, device and terminal - Google Patents
Automatic test control method, device and terminal Download PDFInfo
- Publication number
- CN105760296B CN105760296B CN201610040703.6A CN201610040703A CN105760296B CN 105760296 B CN105760296 B CN 105760296B CN 201610040703 A CN201610040703 A CN 201610040703A CN 105760296 B CN105760296 B CN 105760296B
- Authority
- CN
- China
- Prior art keywords
- test
- automatic test
- case
- testing
- automatic
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Abstract
The invention discloses a kind of automatic test control method, device and terminals, and the automatic test case library for including various automatic test cases of testing tool is first arranged;The testing requirement of the current testing engineering of testing tool is obtained in automatic testing process;The measurand in current testing engineering is determined according to testing requirement, and selected from automatic test case library currently need to be to target automatic test case that measurand is tested, and then the corresponding each target drives of each target detection use-case are obtained, each target automatic test case is then imported testing engineering by each target drives carries out automatic test to measurand.The present invention is in automatic test course, calling etc. for test case and driving is all by being completed independently of the automatic test control device (namely top layer independently of testing tool) except testing tool, it is not rely on the top layer of testing tool itself, the dependence to testing tool is reduced, and testing cost can be reduced and promote testing efficiency.
Description
Technical field
The present invention relates to automatic test fields, and in particular to a kind of automatic test control method, device and terminal.
Background technology
Software test is the important means for ensureing software quality and an important link in software development process.Figure
It is to apply journey as the interface that user interface GUI (Graphical User Interface) is interacted as user and application program
The bridge that sequence and user information are transmitted, it all brings by feat of its flexibility and ease for operation etc. for software development and application
It greatly facilitating, but also just because of the increasingly increase of its scale so that GUI test jobs become abnormal heavy, while therefore
Barrier cost rises steadily so that doing comprehensive, quick GUI tests to each version becomes very necessary.
Since the GUI behaviors for testing imitation user operate application program, for other opposite tests, there is it solely
Characteristic, carrying out GUI test automations can effectively carry by tester from taking and being freed in uninteresting manual operations
High working efficiency.Automatic test is a kind of process for the behavioral test artificially driven being converted into machine execution.In general, setting
Counted test case and by evaluation after, test is executed by regulation of the tester described in test case step by step,
The comparison of timely result and expected result is obtained, in the process, in order to save manpower, time or hardware resource, improves test
Efficiency just introduces the concept of automatic test.
In mid-term the 1980s, with the appearance of automatic capture/playback tool, test automation starts.First
For automatic test, i.e., when automatic test thought just starts to be born, dependence is traditional " recording-playback " technology.It is this
Plan is different with " recording-playback " thought of present automated test tool, it is actually to PC operation keyboards and mouse
The record of mark process and simulation, but the limitation of this mechanism is a lot of, if the dependence to environment is strong, to variability too much in sensitivity
Deng, therefore one mode can not possibly be developed into.Second generation automatic test, the i.e. automatic test of scripting, using script into
The automatic test of row structuring, this can be applied to the automatic test of CLI and API, main application moduleization and library thought.
Third generation automatic test starts to produce various automatic test thoughts, along with the generation of objectification thought, and therewith
There is a series of automatic test software, such as testing tool based on data-driven thought and crucial word drive thought.From
At this time start, automation begins to realize certain scale, starts to be used in industry-by-industry, and development trend is increasingly
Soon.
Currently, conventional automatic test, high to automated test tool dependence, in automatic test course, all
It is calling, the calling etc. of test case driving using the top layer realization test case of each testing tool itself, and different surveys
Trial work tool top layer call control is often different, therefore the high-efficiency operation of current automation framework have to rely on automatically
Change the related Top-layer Design Method of frame then to need according to the testing tool after replacement completely again if necessary to replace testing tool
Carry out the Top-layer Design Method for meeting the testing tool demand.As it can be seen that current automatic test exists to automated test tool
Dependence is high, problem of high cost, efficiency is low.
Invention content
The main technical problem to be solved in the present invention is to provide a kind of automatic test control method, device and terminal, solution
The existing dependence to automated test tool of certainly existing automatic test is high, problem of high cost, efficiency is low.
In order to solve the above technical problems, the present invention provides a kind of automatic test control method, including:
The automatic test case library of testing tool is set, includes various automatic test cases in the automatic test case library;
Obtain the testing requirement of the current testing engineering of the testing tool;
The measurand in current testing engineering is determined according to the testing requirement, and from the automatic test case library
Selecting currently need to be to target automatic test case that the measurand is tested;
Obtain the corresponding each target drives of each target detection use-case;
Each target automatic test case is imported into the testing engineering to the measurand by each target drives
Carry out automatic test.
In an embodiment of the present invention, the automatic test cases library that testing tool is arranged includes:
Each manual test use-case in the manual test use-case library of the corresponding testing tool is respectively set automatic test and uses
, language used in each automatic test case is the script that the testing tool is supported.
In an embodiment of the present invention, obtaining the corresponding each target drives of each target detection use-case includes:
Obtain the corresponding driving parameter of each target detection use-case;
The general driving template in the testing tool is set respectively according to the driving parameter of each target detection use-case
It sets to obtain the target drives of each target detection use-case.
In an embodiment of the present invention, the testing tool is function of unity testing tool UFT.
In an embodiment of the present invention, the automatic test cases library that testing tool is arranged includes:
The title of each automatic test cases in the automatic test cases library is set as identical, and each automation
Entrance function name in test case is identical, and different automatic test cases are stored under different test catalogues.
In an embodiment of the present invention, the testing requirement for obtaining the current testing engineering of the testing tool includes:
The test event of tester's setting is obtained, includes at least one test group in the test event;
Each test group is obtained from the test event, comprising at least one measurand and each tested in each test group
The test case of object combines;
The corresponding target of each measurand is obtained from the automatic test case library certainly according to test case combination
Dynamicization test case.
To solve the above-mentioned problems, the present invention also provides a kind of automatic test control devices, including:
Test case setup module, the automatic test case library for testing tool to be arranged, in the automatic test case library
Including various automatic test cases;
Demand acquisition module, the testing requirement for obtaining the current testing engineering of the testing tool;
Processing module, for determining the measurand in current testing engineering according to the testing requirement, and from it is described from
Being selected in dynamic test case library currently need to be to target automatic test case that the measurand is tested;
Acquisition module is driven, for obtaining the corresponding each target drives of each target detection use-case;
Import modul, for each target automatic test case to be imported the testing engineering pair by each target drives
The measurand carries out automatic test.
In an embodiment of the present invention, the test case setup module includes creating submodule, for corresponding to
It states each manual test use-case in the manual test use-case library of testing tool and automatic test case is respectively created, each automatic test is used
Language used in example is the script that the testing tool is supported.
In an embodiment of the present invention, the driving acquisition module includes:
Parameter acquiring submodule is driven, for obtaining the corresponding driving parameter of each target detection use-case;
Setup module is driven, is used for the driving parameter according to each target detection use-case respectively to logical in the testing tool
It is configured to obtain the target drives of each target detection use-case with driving template.
In an embodiment of the present invention, the test case setup module includes setting submodule and storage submodule
Block;
The setting submodule is for setting the title of each automatic test cases in the automatic test cases library
It is set to identical and the entrance function name in each automatic test cases is identical;
Different automatic test cases for being stored under different test catalogues by the sub-module stored.
In an embodiment of the present invention, the demand acquisition module includes:
Test event acquisition submodule, the test event for obtaining tester's setting include in the test event
At least one test group;
Test group acquisition submodule includes at least in each test group for obtaining each test group from the test event
The test case of one measurand and each measurand combines;
Test case acquisition submodule, for being obtained from the automatic test case library according to test case combination
The corresponding target automatic test cases of each measurand.
To solve the above-mentioned problems, the present invention also provides a kind of automatic test control terminal, including it is as described above
Automatic test control device.
The beneficial effects of the invention are as follows:
Automatic test control method, device and terminal provided by the invention, first be arranged testing tool comprising it is various from
The automatic test case library of dynamic test case;Then the test of the current testing engineering of testing tool is obtained in automatic testing process
Demand;The measurand in current testing engineering is determined according to testing requirement, and is selected currently from automatic test case library
Need to be to the target automatic test case that measurand is tested, and then obtain the corresponding each target of each target detection use-case and drive
It is dynamic, each target automatic test case importing testing engineering is then subjected to automation survey to measurand by each target drives
Examination.As it can be seen that the present invention is by independently of test work for calling of test case and driving etc. in automatic test course
Automatic test control device (namely top layer independently of testing tool) except tool is completed, and is not rely on testing tool certainly
The top layer of body, therefore when replacing testing tool, the matched design for additionally re-starting top layer is not needed to, it reduces to test
The dependence of tool, and testing cost can be reduced, promote testing efficiency.
Description of the drawings
Fig. 1 is the automatic test control method flow diagram that the embodiment of the present invention one provides;
Fig. 2 is the flow diagram for the acquisition testing requirement that the embodiment of the present invention one provides;
Fig. 3 is the flow diagram for the acquisition target drives that the embodiment of the present invention one provides;
Fig. 4 is the testing process schematic diagram based on UFT tools that the embodiment of the present invention one provides;
Fig. 5 is automatic test control device structural schematic diagram provided by Embodiment 2 of the present invention.
Specific implementation mode
The present invention is by designing independently of the top level structure (namely automatic test control device) except each testing tool
The calling for carrying out the acquisition of testing requirement, automatic test case and driving is not relying on each testing tool top layer of itself, therefore
The dependence to testing tool can be reduced, testing efficiency is promoted, reduces testing cost.And the top layer in the present invention can pass through
Python script codes are completed, and the realization such as java of other language can be also passed through.It is combined below by specific implementation mode attached
Invention is further described in detail for figure.
Embodiment one:
The present embodiment carries out automatic test control independently of the top layer namely automatic test control device of testing tool
Process it is shown in Figure 1, including:
Step 101:The automatic test case library of testing tool is set, includes various automatic surveys in the automatic test case library
Example on probation;
Step 102:Obtain the testing requirement of the current testing engineering of testing tool (namely test assignment);
Step 103:The measurand in current testing engineering is determined according to the testing requirement of acquisition, and is used from automatic test
Being selected in example library currently need to be to target automatic test case that measurand is tested;
Step 104:Obtain the corresponding each target drives of each target detection use-case;
Step 105:Each target automatic test case testing engineering is imported by each target drives to carry out measurand
Automatic test.
The calling process of the acquisition of the above test procedure test demand, test case and driving all do not depend on testing tool from
The top layer of body controls, and all by the automatic test control device realization independently of testing tool, automatic test control
Device can all realize top layer control by the above process for different testing tools, therefore can reduce automatic test to testing work
The dependence of tool promotes testing efficiency and reduces testing cost.
In above-mentioned steps 101, when the automatic test cases library of testing tool is arranged, for the ease of the follow-up of tester
Automatic test case is respectively set in verification, each manual test use-case corresponded in the manual test use-case library of testing tool, respectively
Language used in dynamic test case is that (such as testing tool is when being UFT, use for the script supported of the testing tool
Script is vbs).Automatic test case is correspondingly arranged with each manual test use-case, and a set of system can be used in such tester
One proof rule carries out subsequent authentication.Specifically, each automatic test can be required to utilize and each manual test in the present embodiment
The number of use-case corresponds.
In addition, in existing automatic test course, a test case of each testing tool corresponds to a testing engineering,
A test case can only be called in a testing engineering, cause the interface that need to be called when test and various data numerous
It is more, expense is big, efficiency is low and error-prone.For this purpose, the present embodiment when the automatic test cases library of testing tool is arranged, incite somebody to action oneself
The title of each automatic test cases in dynamicization test case library is set as identical, such as is both configured to tcf.vbs (certain roots
According to the demand of different testing tools, the title can be flexibly arranged) and by the entrance function famous prime minister in each automatic test cases
Together, such as testcase, the entrance function are sole inlet function, and different automatic test cases are then stored in difference
Test catalogue under, can thus be distinguished by different test catalogues and call different test cases.And for different
The title and entrance function of test case are identical, therefore a testing engineering can pass through a filename and an entrance function
Realize the calling to different test cases.Therefore a testing engineering is corresponded to without each corresponding test case, can subtracted significantly
The interface generated less and other data reduce expense, promote testing efficiency and accuracy rate.
In the present embodiment, testing requirement is flexibly set for the ease of tester, it is possible to provide three-decker, from top to bottom
It is followed successively by test event layer (TPF), test group layer (TGF) and test case layer (TCF):
Test event layer designs test event for tester, may include one or more tests in a test event
Group, the relationship between the number for the test group for including specifically and each test group can be flexible according to current actual test demand
Setting.Such as could be provided as only including a test group, it includes two or more test groups that may also set up more, and each
It can onrelevant relationship independently of each other between test group, it is possible to have certain incidence relation.Tester is in test event
In list and need the test group that carries out;
Test group layer is used to analyze each test group in test event, may include one or more groups in a test group
Part, then these components are divided into polarity test in a test group at this time, and a component may include then one or more moulds
Block;May also directly include one or more modules in one test group.The component or module for including in test group are also quilt
Survey object.It should be understood that the selection of component and module is also and to be directed to depending on currently practical demand in test group
Then basis flexibly selects to combine to the test purpose of each measurand for the selection of the automatic test case of each measurand.For one
A measurand may be into one test case of selection, it is also possible to select multiple test cases.Tester needs in each test
MUT module under test to be measured or module and corresponding test case are listed in group.
Test case layer according to each test case of each measurand in each test group i.e. for combining, from testing tool
Automatic test cases library in, required corresponding target detection use-case is selected according to different test catalogues.And it is selected
The each target detection use-case selected calls for a testing engineering.
Based on above-mentioned setting, the testing requirement that the current testing engineering of testing tool is obtained in above-mentioned steps 102 refers to Fig. 2
It is shown, including:
Step 201:The test event of tester's setting is obtained, includes at least one test group in test event;
Step 202:Obtain each test group from institute's test event, in each test group comprising at least one measurand and
The test case of each measurand combines;The combination may only include 1 test case, it is also possible to include multiple test cases;
Step 203:Each measurand is obtained from the automatic test case library according to test case combination to correspond to
Target automatic test cases.
In above-mentioned steps 104, the process for obtaining the corresponding each target drives of each target detection use-case is shown in Figure 3,
Including:
Step 301:Obtain the corresponding driving parameter of each target detection use-case;
The driving parameter of different target test case may have some common driving parameters, and in each test case
It is also likely to be present oneself independent driving parameter, and be also likely to be present one or more driving parameters in this part driving parameter to need
It is obtained by various algorithms according to current test parameter;
Step 302:According to the driving parameter of each target detection use-case respectively to the general driving template in testing tool into
Row setting obtains the target drives of each target detection use-case.
It is to be carried out respectively with the driving parameter for corresponding to each test case on the basis of universal drive module in the present embodiment
It is arranged and obtains the target drives of each test case.But it is to be understood that different tests can also be corresponded in the present embodiment respectively
Use-case is independently arranged corresponding special driving.
Testing tool in the present embodiment can be various testing tools, such as can be function of unity testing tool UFT
(united function testing), or WinRunnerMercury, Rational, AdventNet,
The testing tools such as SilkTest.In order to better understand the present invention, it is illustrated by taking testing tool UFT as an example below.
There are two features by automated test tool UFT:First, only supporting windows systems;Second is that the script that UFT is supported
Language is vbs, therefore the script of its automatic Ah's test script use-case is vbs, and vbs is also only to support windows systems
's.If the vbs scripts of UFT oneself is used to realize the top layer script of Auto-Test System test in test system completely, there is two
A deficiency:First, UFT top layers script is very high to UFT dependences;Second is that top layer script cannot continue to make completely in linux
With.It is to select other automatic test first so if when in addition need to also realize GUI automatic tests in Linux system
In addition tool completely newly develops automatic test top layer script then further in accordance with testing tool feature.And it is arranged in the present embodiment only
The script that compatible multisystem as far as possible can be selected when standing on the top layer of testing tool, can further decrease to testing tool
Degree of dependence.It is still illustrated for using python to realize automatic test top layer script at this time.Test at this time
Journey is as follows:
Frame core based tree is as follows:
|----GUI
|----auto_driver
Automate core shell script
| ----TPF (such as readTpf.py, autoGui.tpf)
Test event is tested system by the project implementation, is inputted for tester
| ----TGF (such as readTgf.py, FAB.tgf, CFG.tgf ...)
Test system is executed by component, analyzes and obtains from TPF, and the component may directly be module
|----driver.vbs
General driving script template, unified management and control execute configuration and script of UFT etc.
|----auto_uftpro
The sources UFT project file (uses default setting)
|----com_bench
Automation and manual test use-case
| ----soft (such as FAB, CFG ...)
The test module of component-level
| --- the module testing under-module (such as A1_MAI, A2_BIT ...) component
|----auto_object
Automation object library, only includes object library file, which shares
|----object.tsr
Object library file
|----auto_project
Store the project file that Institute of Automation needs
| ----impl.prj, back_impl.prj ...
The content of automatic test project file, wherein impl.prj and back_impl.prj is just the same,
For initial project file
|----auto_testcase
Store test case
|----a_5、…
Test case numbers (the test catalogue of file namely use case storage)
| ----tcf.vbs ...
The files such as target detection case script, test case script are fixed as filename tcf.vbs, while the letter in file
It is several to be fixed as testcase, and be sole inlet function.
|----auto_testdata
Test data is stored, test data tester can be inputted by top level structure, can also be by testing work
The interface input that tool provides;
|----…
Test data file (such as testdtat.xlsx)
|----auto_uftpro
UFT project files press from both sides, and are mainly used for, by modular debugging test case script, especially deleting or repairing in library of object
Change object (note:Affiliated partner library has read only attribute)
|----sourcefiles
Test resource file (including resource file when manual test and automatic test needed for measurand operation)
|----common
Common resource file (nearly all test case is both needed to use under the module)
|----file1、file2、…
Single resource file (individual test cases need to use under the module)
| ----[A1] master control interface test cases .xlsx
Manual test use-case (manual test use-case number should be corresponding with automatic test cases number)
|----auto_result
Automatic test destination file folder (note:Without this file when being not carried out script)
| ----soft (such as FAB, CFG ...)
The test module of component-level
|----uftpro
UFT project files, serially implementation of test cases (only retains the last one test case under unified UFT engineerings
As a result)
| ----module_driver.vbs (such as A1_MAI_driver.vbs)
Each test module driver (module level) under software
| ----module_report.txt (such as A1_MAI_report.txt)
Each test module test result (module level) under software
For in the above test process:
1. the components such as CFG, INS, DBG and SVR of pair s.m.p test module (namely with regard to a module under the component), above-mentioned
Only there are soft files in module=soft in structure;
2. pair having the FAB components of sub- test module, module in above structure!=soft, soft and module file
Exist.
3. when writing test case, it is only necessary to edit TCF can (tcf.vbs), but it should be noted that function in file
Name is fixed as testcase, and is sole inlet function.It is specific as follows:
Public Function testcase
'TODO:add function body here
End Function
The above frame execution is divided into following three step in brief:
1. correctly configuration TPF or TGF files;
2. running corresponding TPF or TGF files using python scripts (namely top layer);
3. checking result in the report file under the component structure file of generation.If it was found that mistake, need to tie mistake
Fruit carries out manual test confirmation or carries out other processing.Carrying out practically process is shown in Figure 4, including:
Step 401:TPF, TGF, TCF are run successively;
Step 402:Run corresponding driving;
Step 403:Run obtained target detection use-case;
Step 404:It obtains and preserves result;
Step 405:Statistic of classification is carried out to obtained result and is analyzed.
Embodiment two:
Automatic test control terminal in the present embodiment can be various PC, include automatic test system in the terminal
System, the automatization test system include then testing tool and the automatic test control device independently of the testing tool.This reality
Apply automatic test control device in example can the voluntarily top layer control of existing each testing tool various functions, and this is automatic
Changing test control device can select the preferable script of versatility to realize, such as python scripts.Specifically, please join
As shown in Figure 5, the automatic test control device in the present embodiment includes:
Test case setup module, the automatic test case library for testing tool to be arranged, in the automatic test case library
Including various automatic test cases;
Demand acquisition module, the testing requirement for obtaining the current testing engineering of testing tool;
Processing module is used for determining the measurand in current testing engineering according to testing requirement, and from automatic test
Being selected in example library currently need to be to target automatic test case that the measurand is tested;
Acquisition module is driven, for obtaining the corresponding each target drives of each target detection use-case;
Import modul, for each target automatic test case to be imported the testing engineering to tested by each target drives
Object carries out automatic test.
The above test process is all acquisition, test case and the drive that testing requirement is completed by automatic test control device
Dynamic calling does not all depend on the top layer control of testing tool itself, and the automatic test control device is for different test works
Tool can all realize top layer control by the above process, therefore can reduce automatic test to the dependence of testing tool, promote test
Efficiency simultaneously reduces testing cost.
Test case setup module in the present embodiment includes creating submodule, setting submodule and sub-module stored
Each manual test use-case created in manual test use-case library of the submodule for corresponding to testing tool is respectively created
Automatic test case, language used in each automatic test case are that the script that the testing tool is supported (such as is tested
When tool is UFT, the script used is vbs).Automatic test case is correspondingly arranged with each manual test use-case, is surveyed in this way
Examination personnel are that available a set of unified proof rule carries out subsequent authentication.Specifically, each automatic survey can be required in the present embodiment
Examination is corresponded using with the number of each manual test use-case.
In addition, in existing automatic test course, a test case of each testing tool corresponds to a testing engineering,
A test case can only be called in a testing engineering, cause the interface that need to be called when test and various data numerous
It is more, expense is big, efficiency is low and error-prone.For this purpose, setting submodule in the present embodiment is for will be in automatic test cases library
The titles of each automatic test cases be set as identical, and it is the entrance function name in each automatic test cases is identical;It deposits
Different automatic test cases for being stored under different test catalogues by storage submodule.It will be in automatic test cases library
The titles of each automatic test cases be set as identical, such as be both configured to tcf.vbs (certainly according to different testing tools
The demand title can be flexibly arranged) and the entrance function name in each automatic test cases is identical, such as testcase, it should
Entrance function is sole inlet function, is then stored in different automatic test cases under different test catalogues, in this way
It can be distinguished by different test catalogues and call different test cases.And it is directed to the title of different test cases and enters
Mouth function is identical, therefore a testing engineering can be realized by a filename and an entrance function to different test cases
Calling.Therefore correspond to a testing engineering without each corresponding test case, can greatly reduce generation interface and other
Data reduce expense, promote testing efficiency and accuracy rate.
Testing requirement is flexibly set for the ease of tester, it is possible to provide three-decker is followed successively by test from top to bottom
Item layer (TPF), test group layer (TGF) and test case layer (TCF):
Test event layer designs test event for tester, may include one or more tests in a test event
Group, the relationship between the number for the test group for including specifically and each test group can be flexible according to current actual test demand
Setting.
Test group layer is used to analyze each test group in test event, may include one or more groups in a test group
Part, then these components are divided into polarity test in a test group at this time, and a component may include then one or more moulds
Block;May also directly include one or more modules in one test group.The component or module for including in test group are also quilt
Survey object.
Test case layer according to each test case of each measurand in each test group i.e. for combining, from testing tool
Automatic test cases library in, required corresponding target detection use-case is selected according to different test catalogues.And it is selected
The each target detection use-case selected calls for a testing engineering.
Above-mentioned three-decker is corresponded to, the demand acquisition module in the present embodiment includes:
Test event acquisition submodule, the test event for obtaining tester's setting include in the test event
At least one test group;
Test group acquisition submodule includes at least one in each test group for obtaining each test group from test event
The test case of measurand and each measurand combines;The combination may only include 1 test case, it is also possible to include more
A test case;
Test case acquisition submodule, for obtaining each quilt from the automatic test case library according to test case combination
Survey the corresponding automatic test cases of object.
Driving acquisition module in the present embodiment includes:
Parameter acquiring submodule is driven, for obtaining the corresponding driving parameter of each target detection use-case;
The driving parameter of different target test case may have some common driving parameters, and in each test case
It is also likely to be present oneself independent driving parameter, and be also likely to be present one or more driving parameters in this part driving parameter to need
It is obtained by various algorithms according to current test parameter;
Setup module is driven, is used for the driving parameter according to each target detection use-case respectively to the general drive in testing tool
Moving platen is configured to obtain the target drives of each target detection use-case.It is on the basis of universal drive module in the present embodiment
The driving parameter of upper each test case of correspondence is configured to obtain the target drives of each test case respectively.But it is to be understood that
Different test cases can also be corresponded in the present embodiment respectively and is independently arranged corresponding special driving.
Testing tool in the present embodiment can be various testing tools, such as can be function of unity testing tool UFT
(united function testing), or WinRunnerMercury, Rational, AdventNet,
The testing tools such as SilkTest.
Obviously, those skilled in the art should be understood that each module of aforementioned present invention or each step can be with general
Computing device realizes that they can be concentrated on a single computing device, or be distributed in constituted by multiple computing devices
On network, optionally, they can be realized with the program code that computing device can perform, it is thus possible to be stored in
It is performed by computing device in storage medium (ROM/RAM, magnetic disc, CD), and in some cases, it can be to be different from this
The sequence at place executes shown or described step, either they are fabricated to each integrated circuit modules or by it
In multiple modules or step be fabricated to single integrated circuit module to realize.So the present invention is not limited to any specific
Hardware and software combine.
The above content is combining, specific embodiment is made for the present invention to be further described, and it cannot be said that this hair
Bright specific implementation is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, it is not taking off
Under the premise of from present inventive concept, a number of simple deductions or replacements can also be made, all shall be regarded as belonging to the protection of the present invention
Range.
Claims (10)
1. a kind of automatic test control method, which is characterized in that including:
Each manual test being respectively set in automatic test case library in the manual test use-case library corresponding to testing tool is used
The automatic test case of example, language used in each automatic test case are the script that the testing tool is supported;
Obtain the testing requirement of the current testing engineering of the testing tool;
The measurand in current testing engineering is determined according to the testing requirement, and is selected from the automatic test case library
Going out currently need to be to target automatic test case that the measurand is tested;
Obtain the corresponding each target drives of each target detection use-case;
Each target automatic test case the testing engineering is imported by each target drives to carry out the measurand
Automatic test.
2. automatic test control method as described in claim 1, which is characterized in that it is corresponding to obtain each target detection use-case
Each target drives include:
Obtain the corresponding driving parameter of each target detection use-case;
The general driving template in the testing tool is configured respectively according to the driving parameter of each target detection use-case
To the target drives of each target detection use-case.
3. automatic test control method as described in claim 1, which is characterized in that the testing tool is surveyed for function of unity
Trial work has UFT.
4. automatic test control method as described in any one of claims 1-3, which is characterized in that oneself of testing tool is arranged
Dynamicization test case library includes:
The title of each automatic test cases in the automatic test cases library is set as identical, and each automatic test
Entrance function name in use-case is identical, and different automatic test cases are stored under different test catalogues.
5. automatic test control method as claimed in claim 4, which is characterized in that obtain the testing tool and currently test
The testing requirement of engineering includes:
The test event of tester's setting is obtained, includes at least one test group in the test event;
Each test group is obtained from the test event, includes at least one measurand and each measurand in each test group
Test case combination;
The corresponding target automation of each measurand is obtained from the automatic test case library according to test case combination
Test case.
6. a kind of automatic test control device, which is characterized in that including:
Test case setup module, for the manual test use corresponding to testing tool to be respectively created in automatic test case library
The automatic test case of each manual test use-case in example library, language used in each automatic test case are the testing tool
The script of support;
Demand acquisition module, the testing requirement for obtaining the current testing engineering of the testing tool;
Processing module, for determining the measurand in current testing engineering according to the testing requirement, and from the automatic survey
Being selected in example library on probation currently need to be to target automatic test case that the measurand is tested;
Acquisition module is driven, for obtaining the corresponding each target drives of each target detection use-case;
Import modul, for each target automatic test case to be imported the testing engineering to described by each target drives
Measurand carries out automatic test.
7. automatic test control device as claimed in claim 6, which is characterized in that the driving acquisition module includes:
Parameter acquiring submodule is driven, for obtaining the corresponding driving parameter of each target detection use-case;
Setup module is driven, is used for the driving parameter according to each target detection use-case respectively to the general drive in the testing tool
Moving platen is configured to obtain the target drives of each target detection use-case.
8. such as claim 6-7 any one of them automatic test control devices, which is characterized in that the test case setting
Module includes setting submodule and sub-module stored;
The setting submodule is for setting the title of each automatic test cases in the automatic test cases library to
It is identical and the entrance function name in each automatic test cases is identical;
Different automatic test cases for being stored under different test catalogues by the sub-module stored.
9. automatic test control device as claimed in claim 8, which is characterized in that the demand acquisition module includes:
Test event acquisition submodule, the test event for obtaining tester's setting, comprising at least in the test event
One test group;
Test group acquisition submodule includes at least one in each test group for obtaining each test group from the test event
The test case of measurand and each measurand combines;
Test case acquisition submodule, for obtaining each quilt from the automatic test case library according to test case combination
Survey the corresponding target automatic test cases of object.
10. a kind of automatic test control terminal, which is characterized in that automatic including such as claim 6-9 any one of them
Change test control device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040703.6A CN105760296B (en) | 2016-01-21 | 2016-01-21 | Automatic test control method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610040703.6A CN105760296B (en) | 2016-01-21 | 2016-01-21 | Automatic test control method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105760296A CN105760296A (en) | 2016-07-13 |
CN105760296B true CN105760296B (en) | 2018-10-12 |
Family
ID=56342507
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610040703.6A Active CN105760296B (en) | 2016-01-21 | 2016-01-21 | Automatic test control method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105760296B (en) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106526506A (en) * | 2016-11-03 | 2017-03-22 | 武汉通畅汽车电子照明有限公司 | LED automobile headlamp test case automatic generation method |
CN106647700B (en) * | 2016-12-09 | 2019-09-13 | 深圳市紫光同创电子有限公司 | A kind of FPGA configuration control system test method, control platform and verification platform |
CN106598857A (en) * | 2016-12-14 | 2017-04-26 | 英业达(重庆)有限公司 | Method and device for testing electronic equipment based on automatic testing tool |
CN106649116B (en) * | 2016-12-27 | 2019-09-20 | 广州周立功单片机科技有限公司 | Method, device and system for testing embedded Linux product |
CN110505649B (en) * | 2018-05-17 | 2021-04-23 | 大唐移动通信设备有限公司 | Automatic testing method and system |
CN109271316A (en) * | 2018-08-28 | 2019-01-25 | 惠州Tcl移动通信有限公司 | Android device and its automated testing method, memory |
CN110286887B (en) * | 2019-06-28 | 2022-11-29 | 新奥数能科技有限公司 | Development method and device of energy detection software |
CN110795297B (en) * | 2019-10-31 | 2023-04-28 | 杭州迪普科技股份有限公司 | Electronic equipment testing method and device |
CN111563050A (en) * | 2020-07-14 | 2020-08-21 | 智者四海(北京)技术有限公司 | Automated testing method for mobile equipment |
CN114526925A (en) * | 2022-02-21 | 2022-05-24 | 中国第一汽车股份有限公司 | Vehicle offline detection method and device, electronic equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5664173A (en) * | 1995-11-27 | 1997-09-02 | Microsoft Corporation | Method and apparatus for generating database queries from a meta-query pattern |
CN102012857A (en) * | 2009-09-08 | 2011-04-13 | 中国工商银行股份有限公司 | Device and method for automatically testing web page |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
-
2016
- 2016-01-21 CN CN201610040703.6A patent/CN105760296B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5664173A (en) * | 1995-11-27 | 1997-09-02 | Microsoft Corporation | Method and apparatus for generating database queries from a meta-query pattern |
CN102012857A (en) * | 2009-09-08 | 2011-04-13 | 中国工商银行股份有限公司 | Device and method for automatically testing web page |
CN104298224A (en) * | 2014-09-12 | 2015-01-21 | 中国第一汽车股份有限公司 | Automatic vehicle-mounted electronic control unit CAN bus communication testing device and system |
Also Published As
Publication number | Publication date |
---|---|
CN105760296A (en) | 2016-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105760296B (en) | Automatic test control method, device and terminal | |
CN103164328B (en) | The regression testing method of a kind of business function, Apparatus and system | |
CN104407971B (en) | Method for automatically testing embedded software | |
CN106446412B (en) | Model-based test method for avionics system | |
CN101025686A (en) | Automation test system and test script generating and operating method | |
CN106227654B (en) | A kind of test platform | |
CN101241467A (en) | Automatized white box test system and method facing to WEB application | |
CN108459967A (en) | Web application method for generating test case based on user interface state flow-chart | |
CN104750606B (en) | A kind of automated testing method based on reflection | |
CN111209185B (en) | Keyword-based automated testing method and computer-readable storage medium | |
CN105912460A (en) | Software test method and system based on QTP | |
CN102707712B (en) | Electronic equipment fault diagnosis method and system | |
CN112732579B (en) | Automatic test method and system for WebUI | |
CN109491922A (en) | One kind being based on model-driven test method and apparatus | |
CN112181854A (en) | Method, device, equipment and storage medium for generating flow automation script | |
CN111258881B (en) | Intelligent test system for workflow test | |
CN109558328A (en) | A kind of test method of code coverage, system, device and readable storage medium storing program for executing | |
CN106528429A (en) | UI testing method and device | |
CN114996127A (en) | Intelligent test method and system for solid state disk firmware module | |
CN110069414A (en) | Regression testing method and system | |
CN108132881A (en) | A kind of automated testing method and system | |
CN116090380B (en) | Automatic method and device for verifying digital integrated circuit, storage medium and terminal | |
CN105652182A (en) | Circuit board fault positioning system and circuit board fault positioning method based on circuit network and graph search | |
CN109165155B (en) | Software defect repairing template extraction method based on cluster analysis | |
CN112052181A (en) | Embedded software automatic test system based on software engineering |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 518057 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park Road eight South South technology Howare Technology Building 16 Applicant after: Shenzhen Pango Microsystems Co., Ltd. Address before: 518057 Guangdong city of Shenzhen province Nanshan District high tech Industrial Park Road eight South South technology Howare Technology Building 16 Applicant before: SHENZHEN PANGO MICROSYSTEMS CO., LTD. |
|
COR | Change of bibliographic data | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |