CN107544899A - A kind of method and device of implementation of test cases - Google Patents
A kind of method and device of implementation of test cases Download PDFInfo
- Publication number
- CN107544899A CN107544899A CN201610474807.8A CN201610474807A CN107544899A CN 107544899 A CN107544899 A CN 107544899A CN 201610474807 A CN201610474807 A CN 201610474807A CN 107544899 A CN107544899 A CN 107544899A
- Authority
- CN
- China
- Prior art keywords
- mark
- test
- conflict
- case
- test case
- 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.)
- Granted
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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of method of implementation of test cases, methods described includes:Detect that the conflict mark in test case is not space-time, detect in the conflict mark test platform mark identified whether with current test platform it is identical;When detecting that the mark of the test platform in the conflict mark differs with the current test platform mark, detect the mark of the global parameter in the conflict mark and identify whether to conflict with the global parameter set by current test platform;When detecting that the mark of the global parameter in the conflict mark conflicts with the global parameter mark set by the current test platform, whether detection current time and the difference of the mark time in the conflict mark are more than preset time;When detecting that the difference is more than preset time, the conflict mark is removed, the conflict mark of the current test platform is set, and performs the test case.The present invention further simultaneously discloses a kind of device of implementation of test cases.
Description
Technical field
The present invention relates to data test technology, and in particular to a kind of method and device of implementation of test cases.
Background technology
In modem (Momem, Modulator Demodula-tor) or terminal test, the nothing under system environments
The parameter of line network controller (RNC, Radio Network Controller), directly affect all third generation movements under RNC
The parameter of the communication technology (3G, The 3rd Generation Mobile Communications) cell, evolved Node B
The parameter of base station (eNodeB, Evolved Node B), directly affect all fourth generation mobile communication technologies under eNodeB (4G,
The 4rd Generation Mobile Communications) cell parameter, just have one under so multiple test platforms
A little parameter configurations are global, and the change of global parameter can influence the test environment of all test platforms.
Fig. 1 is the test environment structure composition schematic diagram of the 4G/3G multimodes interoperability of global parameter in the prior art;Such as figure
Shown in 1, including:OMCR servers 101, ATPi automatic test platforms 102, ATPi automatic test platforms 103, eNodeB
104th, RNC 105, LTE Cell 106, W (TD) Cell 107, HOC adjustable attenuators 108, test platform 109 and test platform
110, wherein,
The OMCR servers 101, for configuring and changing the Long Term Evolution under the eNodeB 104 and RNC 105
(LTE, Long Term Evolution) cell, i.e. 4G cells/W (TD) cell, the i.e. parameter of 3G cells;
The eNodeB 104, in 4G networks, for causing the friendship in Radio Access Network between different agreement layers
Mutually closer and reduction delay and raising efficiency, 4G networks use compressed structure, and the UMTS land of 4G e-learning qualities is wireless
Access network (E-UTRAN, Evolved UMTS Terrestrial Radio Access Network) is only by eNodeB group of networks
It is responsible for all being responsible for multiple cells to wireless related function, each function into, eNodeB;
The RNC 105, in 3G network, being responsible for controlling the network element of Radio Resource, it can be hung under RNC 105 multiple
3G cells, multiple test platforms can also carry out use-case test to multiple 3G cells under same RNC 105;
The ATPi automatic test platforms 102 connect the test platform 109, the ATPi automatic test platforms
The 103 connection test platforms 110;The ATPi automatic test platforms 102 and the ATPi automatic test platforms 103 are also
It is connected respectively by the OMCR servers 101 with eNodeB 104 and RNC 105;And declined respectively using the HOC is adjustable
It is strong to the signal come out from the different LTE cells 106 of two under eNodeB 104 and RNC105 and 3G cells 107 to subtract device 108
Degree carries out automatic test control.
Ginseng usually using manual operation interface and Telnet telnets to eNodeB and/or RNC in the prior art
Number is modified, and when carrying out implementation of test cases using automatic test platform, uses Telnet telnet modes pair
ENodeB and/or RNC parameter is modified.
Because eNodeB 104 and RNC105 parameter can influence TPi automatic test platforms 102 and TPi automatic tests
The test environment of platform 103, if TPi automatic test platforms 102 have modified global parameter by OMCR servers 101
(eNodeB and/or RNC parameter), and at this moment, TPi automatic test platforms 103 are can not to learn TPi automatic test platforms
102 have been modified by global parameter, will perform test according to 102 amended global parameter of TPi automatic test platforms and use
Example, has thus deviated from the scene of original Test Sample Design.
In the prior art, in order to avoid above mentioned problem, using the artificial test linked up or test identical global parameter simultaneously
Use-case carries out test execution, can not realize complete automatic test, and testing efficiency is low, and wastes test equipment resource.
The content of the invention
To solve existing technical problem, the embodiment of the present invention it is expected to provide a kind of method of implementation of test cases and
Device, complete automatic test can be realized, improve testing efficiency.
What the technical scheme of the embodiment of the present invention was realized in:
One side according to embodiments of the present invention, there is provided a kind of method of implementation of test cases, methods described include:
Detect that the conflict mark in test case is not space-time, detect in the conflict mark test platform mark with
Current test platform identifies whether identical;
When detecting that the mark of the test platform in the conflict mark differs with the current test platform mark, detection
Global parameter mark in the conflict mark identifies whether to conflict with the global parameter set by current test platform;
Detect global parameter of the global parameter mark set by with the current test platform in the conflict mark
During mark conflict, whether detection current time and the difference of the mark time in the conflict mark are more than preset time;
When detecting that the difference is more than preset time, the conflict mark is removed, the current test platform is set
Conflict mark, and perform the test case.
In such scheme, methods described also includes:
Detect global parameter of the global parameter mark set by with the current test platform in the conflict mark
When mark does not conflict, global parameter is multiplexed, current test platform mark is set up in the conflict mark, and change the conflict
The mark time in mark, perform the test case.
In such scheme, methods described also includes:
When detecting that test platform mark in the conflict mark is identical with the current test platform mark, renewal institute
Global parameter mark and the mark time in conflict mark are stated, and performs the test case.
In such scheme, methods described also includes:
It is space-time to detect the conflict mark in the test case, sets the conflict mark of the current test platform,
And perform the test case.
In such scheme, after the test case that is finished, methods described also includes:
The conflict mark of the current test platform is removed, and sets the use-case of the test case to perform the value identified and is
Preset value.
In such scheme, in the conflict mark detected in the test case not for before empty, methods described is also
Including:
The use-case for detecting the test case performs whether the value identified is preset value;
When the value for detecting the use-case execution mark of the test case is preset value, stop performing current test use
Example, checks and performs next test case;
When the value for detecting the use-case execution mark of the test case is non-default value, test case described in detection trigger
In conflict mark whether be empty.
In such scheme, the test case is arranged in test case pond, is held in the use-case for detecting the test case
Before whether the value of line identifier is preset value, methods described also includes:
Whether the value for detecting the loop test mark in the test case pond is preset value;
When the value for detecting the loop test mark is preset value, stop to the test case in the test case pond
Test;
When the value for detecting the loop test mark is non-default value, the loop test in the test case pond is detected
Whether the value of mark is preset value, and the use-case for detecting the test case being not carried out in the test case pond performs the value of mark
Whether it is preset value.
In such scheme, methods described also includes:
When detecting that the difference is less than preset time, exit and perform the test case, and detect next test and use
Example.
Another aspect according to embodiments of the present invention, there is provided a kind of device of implementation of test cases, described device include:
First detection unit, the second detection unit, the 3rd detection unit, the 4th detection unit and execution unit, wherein,
First detection unit, for detecting whether the conflict mark in the test case is empty;
Second detection unit, detect conflict mark in the test case not for first detection unit
For space-time, detect the mark of the test platform in the conflict mark identified whether with the currently test platform it is identical;
3rd detection unit, the test platform mark in the conflict mark is detected for second detection unit
Know and the current test platform is identified when differing, the global parameter mark detected in the conflict mark is put down with currently test
Global parameter set by platform identifies whether to conflict;
4th detection unit, the global parameter mark in the conflict mark is detected for the 3rd detection unit
When knowledge conflicts with the global parameter mark set by the current test platform, in detection current time and the conflict mark
Whether the difference of mark time is more than preset time;
The execution unit, when detecting that the difference is more than preset time for the 4th detection unit, remove institute
Conflict mark is stated, the conflict mark of the current test platform is set, and performs the test case.
In such scheme, the execution unit, it is additionally operable to the 3rd detection unit and detects in the conflict mark
When global parameter mark does not conflict with the global parameter mark set by the current test platform, multiplexing global parameter, and
Current test platform mark is set up in the conflict mark, and after changing the mark time, performs the test case.
In such scheme, the execution unit, it is additionally operable to second detection unit and detects in the conflict mark
When test platform mark is identical with current test platform mark, global parameter mark and the mark in the conflict mark are updated
Between clocking, and perform the test case.
In such scheme, the execution unit, it is additionally operable to first detection unit and detects in the test case
Conflict mark is space-time, sets the conflict mark of the current test platform, and performs the test case.
In such scheme, described device also includes:
Clearing cell, after being finished the test case in the execution unit, remove the current test
The conflict mark of platform, and the value for setting the use-case execution of the test case to identify is preset value.
In such scheme, described device also includes:
5th detection unit and trigger element;Wherein
5th detection unit, whether the value that the use-case for detecting the test case performs mark is preset value;
The execution unit, it is additionally operable to the 5th detection unit and detects that the use-case of the test case performs mark
When value is preset value, stops performing current test case, check and perform next test case;
The trigger element, detect that the use-case of the test case performs mark specifically for the 5th detection unit
Value when not being preset value, trigger whether the conflict mark that first detection unit is detected in the test case is empty.
In such scheme, the test case is located in test case pond, and described device also includes:6th detection unit and
Loop test unit;Wherein,
6th detection unit, whether the value for detecting the mark of the loop test in the test case pond is default
Value;
The loop test unit, the value that the loop test mark is detected for the 6th detection unit is default
During value, stop the test to the test case in the test case pond;
When 6th detection unit detects the value of loop test mark non-default value, the test case is detected
Whether the value of the loop test mark in pond is preset value, and is detected by the 5th detection unit in the test case pond not
Whether the value that the use-case of the test case of execution performs mark is preset value.
In such scheme, described device also includes:
Unit is exited, when the difference detected for the 4th detection unit is less than preset time, exits execution
The test case, and detect next test case.
The embodiment of the present invention provides a kind of method of implementation of test cases, by detecting the conflict mark in test case
Be not space-time, detect in the conflict mark test platform mark identified whether with current test platform it is identical;Detect institute
State the mark of the test platform in conflict mark and the current test platform is identified when differing, detect in the conflict mark
Global parameter mark identifies whether to conflict with the global parameter set by current test platform;Detect in the conflict mark
When global parameter mark conflicts with the global parameter mark set by the current test platform, detection current time and the punching
Whether the difference of the mark time in prominent mark is more than preset time;When detecting that the difference is more than preset time, institute is removed
Conflict mark is stated, the conflict mark of the current test platform is set, and performs the test case.In this way, by first carrying out
The use-case that global parameter mark does not conflict, or first carry out the conflict of global parameter mark but the use-case of global parameter can be multiplexed,
Identified again by loop test afterwards and loop test is carried out to the use-case in use-case pond, and the use-case to being not carried out performs test,
Test automation is realized, test is performed without manual intervention, improves testing efficiency.
Brief description of the drawings
Fig. 1 is the test environment structure composition schematic diagram of the 4G/3G multimodes interoperability of global parameter in the prior art;
Fig. 2 is the method flow schematic diagram of implementation of test cases in the embodiment of the present invention;
Fig. 3 is the device composition schematic diagram of implementation of test cases in the embodiment of the present invention.
Embodiment
The embodiment of the present invention is described in detail below in conjunction with the accompanying drawings.It should be appreciated that this place is retouched
The embodiment stated is merely to illustrate and explain the present invention, and is not intended to limit the invention.
Fig. 2 is the method flow schematic diagram of implementation of test cases in the embodiment of the present invention;As shown in Fig. 2 this method includes:
Step 201, it is not space-time to detect the conflict mark in test case, and the test detected in the conflict mark is put down
Station identification identifies whether identical with current test platform;
Here, the conflict mark P1:EVN1@TIME expressions, including:Global parameter mark, test platform mark and
Mark the time;Wherein, the global parameter mark, refers to which specific parameter in global parameter used, for example, can set
For P1 or P2;The platform sign, refer to that the numbering of each test platform, such as test platform 1 are set to ENV1, test platform
2 are set to ENV2;The mark time, refer to that test platform sets the time of global parameter, be set to TIME;In detection test case
Conflict mark whether be sky before, first to detect in test case pond loop test mark value whether be preset value;This
In loop test be identified as ALL flag, preset value 1, when detecting the mark ALL of the loop test in test case pond flag
Value when being 1, illustrate that the use-case in test case pond is all completed, then stop to the test in the test case pond
The test of use-case, and export test report;When the value for detecting the mark ALL of the loop test in test case pond flag is not
1, but during ALL flag=0, then explanation has the use-case for being not carried out test, it is necessary to test case pond in test case pond
Carry out loop test.Then detect the test case being not carried out in test case pond and perform whether the value identified is preset value, this
In test case perform be identified as case flag, preset value 1;When the use-case for detecting test case performs mark case
When flag value is preset value 1, illustrate that the test case executed finishes, then stop performing the test case, detect and hold
The next test case of row;When the value that the use-case for detecting the test case performs mark case flag is not preset value 1,
But during case flag=0, illustrate that the test case is not carried out testing, then test is performed to the test case.Here
Loop test identifies ALL flag and use-case performs the new operation list that mark case flag can be automatically generated by ATPI
Latest Run List are generated, and ALL flag and the case flag of generation are saved in into fixed place for surveying by set form
Change and inquire about during example on probation, specifically, before implementation of test cases, whether detection ALL flag are preset value 1, and detection
Whether case flag are preset value 1, can be detected by TCL with case script.The controlling stream of specific TCL use-case scripts
Journey is as follows:
It should be noted that the control flow is only the simplify control flow of the TCL use-case scripting languages, it is only real as one
Existing example.
The test case is performed test when, first, the conflict mark of test case described in detection trigger whether be
Sky, if detecting, the conflict mark in the test case is space-time, illustrates no test platform using global parameter, when
Preceding test platform can use the global parameter, and set the conflict mark of current test platform, perform the test case,
After the test case that is finished, the conflict mark is removed, and sets the use-case of the test case to perform mark
It is worth for preset value:Case flag=1;
If detecting, the conflict mark in the test case is not space-time, illustrates have test platform using the overall situation
Parameter, current test platform can not directly use the global parameter, here, it is necessary to which the test detected in the conflict mark is put down
Station identification identifies whether identical with the current test platform.
Step 202, detect that the test platform mark in the conflict mark identifies not phase with the current test platform
Meanwhile detect the mark of the global parameter in the conflict mark and identify whether to rush with the global parameter set by current test platform
It is prominent;
Here, detect test platform mark in the conflict mark with it is described currently test platform mark is identical when,
Illustrate the test platform after last time has performed test case, do not remove the conflict mark set by it normally, here, only need
Global parameter mark and the mark time in the conflict mark are updated, after renewal finishes, performs the test
Use-case, and after the test case that is finished, the conflict mark set by it is removed, the use-case of the test case is set
The value for performing mark is case flag=1;
When detecting that the mark of the test platform in the conflict mark differs with the current test platform mark, explanation
There is test platform global parameter after having changed, and make the environment under the global parameter, current test platform is not
The global parameter can be directly used, at this moment needs to detect the global parameter mark in the conflict mark and current test platform
Set global parameter identifies whether to conflict.
Step 203, detect set by global parameter mark and the current test platform in the conflict mark
During global parameter mark conflict, when whether detection current time and the difference of the mark time in the conflict mark are more than default
Between;
Here, the overall situation of the global parameter mark set by with the current test platform in the conflict mark is detected
When parameter identification does not conflict, illustrate that the global parameter that current test platform uses makes with the test platform of global parameter is used
Global parameter is identical, then current test platform can be multiplexed the global parameter, the current test platform multiplexing global ginseng
After number, after setting current test platform to identify and change the mark time, the test case is performed, and being finished
After stating test case, the conflict mark set by current platform is removed, sets the use-case of the test case to perform mark
It is worth for case flag=1;
Detect global parameter of the global parameter mark set by with the current test platform in the conflict mark
During mark conflict, illustrate global parameter that current test platform uses be used the test platform of global parameter use it is complete
Office's parameter is different, it is necessary to when whether the mark time that further detection current time is subtracted in the conflict mark is more than default
Between, here preset at the time is represented with maxtimer, during for preventing that other test platforms from exiting extremely, is not removed set by it
Conflict mark, when causing to have again the test platform use the global parameter test case, the global parameter cannot be used.
Step 204, when detecting that the difference is more than preset time, the conflict mark is removed, the current survey is set
The conflict mark of platform is tried, and performs the test case.
Here, detect that the current time subtracts the mark time when being more than preset time, illustrate there is test platform
It is finished after test, does not remove the conflict mark set by it normally, therefore, it is desirable to remove the conflict mark, and set
After the conflict mark of the current test platform, the test case is performed, and after the test case that is finished, is removed
Conflict mark set by it, the value for setting the use-case execution mark of the test case is case flag=1;Detect institute
State current time and subtract the mark time when being less than preset time, illustrate to have test platform in the use global parameter, then
Global parameter conflict, do not allow current test platform to change the global parameter, used here, it is necessary to exit and perform the test
Example, performs next test case.
Such as:Test platform A and test platform B are performing test, wherein, test platform A is carrying out a test
Use-case, the scene P1 in global parameter P is used, then the conflict mark for setting test platform A is:P1:ENV1@TIME;Test
Platform B also goes to a use-case using global parameter P, if test platform B uses the scene in global parameter P
P2, then illustrate that the P1 in global parameter P conflicts with P2, it is necessary to method and step 203 in the above method is performed, when detecting current
Between mark time for subtracting in the conflict mark whether be more than preset time, if being more than preset time, illustrate have test flat
Platform after use, does not remove the conflict mark set by it, here, it is necessary to after removing the conflict mark, sets test platform B
Conflict mark, such as:P2:ENV2@TIME, and the test case is performed, and after the test case that is finished, clearly
Except the conflict mark set by it, and the value for setting the use-case execution of the test case to identify is case flag=1;It is if small
In preset time, then current test platform B, which is exited, performs the test case, performs next test case.
The scene P1, test platform B and test platform A in if test platform B is used and global parameter P are used
Global parameter it is identical, test platform B can be multiplexed the global parameter, and after setting test platform B conflict mark, be:
P1:ENV12@TIME, TIME now is the time of test platform B setting conflict marks, performs the test case.
In embodiments of the present invention, it is that the parameter control of OMCR servers is write in TCL scripts to solve global parameter conflict
System order, the realization of query modification global parameter, specifically, the manually-operated graphic user interface of OMCR servers offer (GUI,
Graphical User Interface), and the method that Telnet telnets change parameter is provided, simple flow is as follows
(only as signal):
In embodiments of the present invention, test loop mark ALL flag and use-case perform mark case flag and can held
Row uses when having the use-case of global parameter, can also use in the use-case of no global parameter, be not intended to limit herein.By using
Solution method when example circulation performs and global parameter conflicts, can when global parameter clashes, without manual intervention,
Automatic detection is fully achieved, dramatically improves testing efficiency.
Fig. 3 is the device composition schematic diagram of implementation of test cases in the embodiment of the present invention;As shown in figure 3, described device bag
Include:First detection unit 301, the second detection unit 302, the 3rd detection unit 303, the 4th detection unit 304 and execution unit
305, wherein,
First detection unit 301, for detecting whether the conflict mark in the test case is empty;
Second detection unit 302, the conflict in the test case is detected for first detection unit 301
Mark be not space-time, detect in the conflict mark test platform mark with it is described currently test platform identify whether it is identical;
3rd detection unit 303, the test in the conflict mark is detected for second detection unit 302
When platform identification differs with the current test platform mark, detect global parameter mark in the conflict mark with it is current
Global parameter set by test platform identifies whether to conflict;
4th detection unit 304, the overall situation in the conflict mark is detected for the 3rd detection unit 303
When parameter identification conflicts with the global parameter mark set by the current test platform, detection current time subtracts the conflict
Whether the mark time in mark is more than preset time;
The execution unit 305, detect that the current time subtracts the mark for the 4th detection unit 304
When time is more than preset time, the conflict mark is removed, and after the conflict mark of the current test platform is set, performs institute
State test case.
Here, on the device basic shown in Fig. 3, described device also includes the 5th detection unit, the 6th detection unit, touched
Bill member, loop test unit, unit and clearing cell are exited, wherein, the 5th detection unit, the 6th detection unit, touch
Bill member, loop test unit, exit unit and clearing cell is not shown in figure;First detection unit 301 detects described
Before whether the conflict sign in test case is sky, the loop test in test case pond is first detected by the 5th detection unit
Whether the value of mark is preset value;Here loop test is identified as ALL flag, preset value 1, when the 5th detection unit detects
When value to the loop test mark ALL flag in test case pond is preset value 1, illustrate use-case in test case pond
All it is completed, then the test to the test case in the test case pond is stopped by loop test unit, and export survey
Examination report;When the 5th detection unit detects that the value of the loop test mark ALL flag in test case pond is not preset value 1,
But during ALL flag=0, then explanation has the use-case for being not carried out test in test case pond, and loop test unit can circulate
Whether the value for the loop test mark tested in the test case pond is preset value, and detects test by the 6th detection unit and use
Whether the value that the test case being not carried out in example pond performs mark is preset value, and use-case performs and is identified as case flag here, in advance
If value is 1;When it is preset value 1 that the 6th detection unit, which detects the value that the use-case of test case performs mark case flag, say
The bright test case executed finishes, then is stopped performing the test case by execution use-case unit, performs next test and uses
Example;When the 6th detection unit detects that the value that the use-case of the test case performs mark case flag is not preset value 1, and
When being case flag=0, illustrate that the test case is not carried out testing, then the test case is performed by execution unit 305
Test.
Here loop test mark ALL flag and use-case performs what mark case flag can be automatically generated by ATPI
New operation list latest Run List generations, and ALL flag and the case flag of generation are saved in by set form
Fixed place supplies to change during test case and inquiry.Specifically, before implementation of test cases, detected and circulated by the 5th detection unit
Whether test mark ALL flag value is preset value 1, and performs mark case flag by the 6th detection unit detection use-case
Value whether be preset value 1, can be detected by TCL with case script.The control flow of specific TCL use-case scripts is such as
Under:
It should be noted that the control flow is only the simplify control flow of the TCL use-case scripting languages, it is only real as one
Existing example.
Execution unit 305 to the test case when performing test, first, the first detection unit is triggered by trigger element
Whether the conflict mark in the 301 detection test cases is empty, if the first detection unit 301 is detected in the test case
Conflict mark be space-time, then illustrate no test platform using global parameter, current test platform can use described complete
Office's parameter, the conflict mark of current test platform is set by execution use-case unit, performs the test case.Perform use-case unit
It is finished after the test case, reports to clearing cell, the conflict mark is removed by clearing cell, and the test is set
The value that the use-case of use-case performs mark is preset value:Case flag=1;
If the first detection unit 301 detects that the conflict mark in the test case is not space-time, illustrate have test flat
Platform is using the global parameter, and current test platform can not directly use the global parameter, therefore, it is desirable to which the second detection is single
Test platform mark in the detection of member 302 conflict mark identifies whether identical with the current test platform.Second detection
Unit 302 detect test platform mark in the conflict mark with it is described currently test platform mark is identical when, illustrate institute
Test platform is stated after last time has performed test case, does not remove the conflict mark set by it normally, it is at this moment, described to perform list
The global parameter mark and the mark time that 305, member need to be updated in the conflict mark, after renewal finishes, perform institute
Test case is stated, and after the test case that is finished, reports to clearing cell, as rushing set by clearing cell removes it
Prominent mark, and the value for setting the use-case execution of the test case to identify is case flag=1;
If the second detection unit 302 detects test platform mark and the current test platform in the conflict mark
Mark is when differing, and illustrates to have test platform global parameter after having changed, and make the ring under the global parameter
Border, current test platform can not directly use the global parameter, at this moment need the 3rd detection unit 303 to detect the conflict mark
Global parameter mark in knowledge identifies whether to conflict with the global parameter set by current test platform.3rd detection unit 303
Detect that the mark of the global parameter in the conflict mark is not rushed with the global parameter mark set by the current test platform
When prominent, illustrate global parameter and the global parameter that the test platform of global parameter uses is used that current test platform uses
Identical, then current test platform can be multiplexed the global parameter, after current test platform is multiplexed the global parameter, by performing list
After member 305 sets current test platform mark and changes the mark time, the test case is performed, and being finished
After stating test case, the clearing cell is reported to, after clearing cell removes the conflict mark set by current test platform, if
The value for putting the use-case execution mark of the test case is case flag=1;
3rd detection unit 303 detects global parameter mark and the current test platform institute in the conflict mark
During the global parameter mark conflict of setting, illustrate global parameter that current test platform uses and the survey that global parameter is used
The global parameter difference that examination platform uses is subtracted in the conflict mark, it is necessary to detect current time by the 4th detection unit 304
The mark time whether be more than preset time, here preset at the time with maxtimer, represent, for preventing other test platforms different
Often when exiting, the conflict mark set by it is not removed, when causing to have again the test platform use the global parameter test case,
The global parameter cannot be used.
4th detection unit 304 detects that the current time subtracts the mark time when being more than preset time,
Illustrate there is test platform to be finished after test, do not remove the conflict mark set by it normally, therefore, it is desirable to which clearing cell is clear
Except the conflict mark, and after the clearing cell removes the conflict mark, the current survey is set by execution unit 305
The conflict mark of platform is tried, and performs the test case, after execution unit 305 is finished the test case, is reported to
Clearing cell, after the conflict mark set by clearing cell removes it, the use-case of the test case is set to perform mark
It is worth for case flag=1;
4th detection unit 304 detects that the current time subtracts the mark time when being less than preset time, explanation
There is test platform using the global parameter, then global parameter conflict, do not allow the current test platform modification global ginseng
Number, therefore, it is desirable to exit the execution test case by exiting unit, and next test case is performed by execution unit 305.
In embodiments of the present invention, the conflict mark is used for example, P1:EVN1@TIME expressions, including:Global parameter mark
Knowledge, platform identification and mark time;Wherein, the global parameter mark, refers to which specific parameter in global parameter used,
For example, it could be arranged to P1 or P2;The platform sign, refer to that the numbering of each test platform, such as test platform 1 are set to
ENV1, test platform 2 are set to ENV2;The mark time, refer to that test platform sets the time of global parameter, be set to TIME;
It is that the state modulator order of OMCR servers is write in TCL scripts to solve global parameter conflict, and query modification is complete
Office's parameter realizes that specifically, OMCR servers provide manually-operated graphic user interface (GUI, Graphical User
Interface), and the method that Telnet telnets change parameter is provided, simple flow is following (only as signal):
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program
Product.Therefore, the shape of the embodiment in terms of the present invention can use hardware embodiment, software implementation or combination software and hardware
Formula.Moreover, the present invention can use the computer for wherein including computer usable program code in one or more to use storage
The form for the computer program product that medium is implemented on (including but is not limited to magnetic disk storage and optical memory etc.).
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram
Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided
The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce
A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real
The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to
The set manufacture of order dress, the command device are realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted
Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or
The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one
The step of function of being specified in individual square frame or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (16)
- A kind of 1. method of implementation of test cases, it is characterised in that methods described includes:Detect that the conflict mark in test case is not space-time, detect test platform mark in the conflict mark with it is current Test platform identifies whether identical;When detecting that the mark of the test platform in the conflict mark differs with the current test platform mark, described in detection Global parameter mark in conflict mark identifies whether to conflict with the global parameter set by current test platform;Detect that the global parameter mark in the conflict mark identifies with the global parameter set by the current test platform During conflict, whether detection current time and the difference of the mark time in the conflict mark are more than preset time;When detecting that the difference is more than preset time, the conflict mark is removed, the conflict of the current test platform is set Mark, and perform the test case.
- 2. according to the method for claim 1, it is characterised in that methods described also includes:Detect that the global parameter mark in the conflict mark identifies with the global parameter set by the current test platform When not conflicting, global parameter is multiplexed, current test platform mark is set up in the conflict mark, and change the conflict mark In the mark time, perform the test case.
- 3. according to the method for claim 1, it is characterised in that methods described also includes:Detect test platform mark in the conflict mark with it is described currently test platform mark is identical when, update the punching Global parameter mark and the mark time in prominent mark, and perform the test case.
- 4. according to the method for claim 1, it is characterised in that methods described also includes:It is space-time to detect the conflict mark in the test case, sets the conflict mark of the current test platform, and is held The row test case.
- 5. according to the method for claim 1, it is characterised in that after the test case that is finished, methods described Also include:The conflict mark of the current test platform is removed, and the value for setting the use-case execution of the test case to identify is default Value.
- 6. according to the method for claim 1, it is characterised in that it is described detect the test case in conflict mark Before not for sky, methods described also includes:The use-case for detecting the test case performs whether the value identified is preset value;When the value for detecting the use-case execution mark of the test case is preset value, stop performing current test case, inspection Look into and perform next test case;When the value for detecting the use-case execution mark of the test case is non-default value, in test case described in detection trigger Whether conflict mark is empty.
- 7. according to the method for claim 6, it is characterised in that the test case is arranged in test case pond, is being examined Before whether the value for surveying the use-case execution mark of the test case is preset value, methods described also includes:Whether the value for detecting the loop test mark in the test case pond is preset value;When the value for detecting the loop test mark is preset value, stop the survey to the test case in the test case pond Examination;When the value for detecting the loop test mark is non-default value, the loop test mark in the test case pond is detected Value whether be preset value, and detect the test case being not carried out in the test case pond use-case perform mark value whether It is preset value.
- 8. according to the method for claim 1, it is characterised in that methods described also includes:When detecting that the difference is less than preset time, exit and perform the test case, and detect next test case.
- 9. a kind of device of implementation of test cases, it is characterised in that described device includes:First detection unit, the second detection unit, the 3rd detection unit, the 4th detection unit and execution unit, wherein,First detection unit, for detecting whether the conflict mark in the test case is empty;Second detection unit, detect that the conflict mark in the test case is not sky for first detection unit When, detect in the conflict mark test platform mark with it is described currently test platform identify whether it is identical;3rd detection unit, for second detection unit detect in the conflict mark test platform mark with When the current test platform mark differs, the global parameter mark in the conflict mark and current test platform institute are detected The global parameter of setting identifies whether to conflict;4th detection unit, for the 3rd detection unit detect in the conflict mark global parameter mark with When global parameter mark set by the current test platform conflicts, detection current time and the mark in the conflict mark Whether the difference of time is more than preset time;The execution unit, when detecting that the difference is more than preset time for the 4th detection unit, remove the punching Prominent mark, sets the conflict mark of the current test platform, and performs the test case.
- 10. device according to claim 9, it is characterised in that the execution unit, be additionally operable to the 3rd detection unit Detect that the mark of the global parameter in the conflict mark is not rushed with the global parameter mark set by the current test platform When prominent, global parameter is multiplexed, and current test platform mark is set up in the conflict mark, and changes the mark time Afterwards, the test case is performed.
- 11. device according to claim 9, it is characterised in that the execution unit, be additionally operable to second detection unit When detecting that the test platform in the conflict mark identifies identical with current test platform mark, update in the conflict mark Global parameter mark and the mark time, and perform the test case.
- 12. device according to claim 9, it is characterised in that the execution unit, be additionally operable to first detection unit It is space-time to detect the conflict mark in the test case, sets the conflict mark of the current test platform, and performs institute State test case.
- 13. device according to claim 9, it is characterised in that described device also includes:Clearing cell, after being finished the test case in the execution unit, remove the current test platform Conflict mark, and set the test case use-case perform mark value be preset value.
- 14. device according to claim 9, it is characterised in that described device also includes:5th detection unit and trigger element;Wherein5th detection unit, whether the value that the use-case for detecting the test case performs mark is preset value;The execution unit, being additionally operable to the value that the 5th detection unit detects that the use-case of the test case performs mark is During preset value, stop performing current test case, check and perform next test case;The trigger element, the use-case for detecting the test case specifically for the 5th detection unit perform the value of mark When not being preset value, trigger whether the conflict mark that first detection unit is detected in the test case is empty.
- 15. device according to claim 14, it is characterised in that the test case is located in test case pond, described Device also includes:6th detection unit and loop test unit;Wherein,6th detection unit, whether the value for detecting the mark of the loop test in the test case pond is preset value;The loop test unit, the value that the loop test mark is detected for the 6th detection unit is preset value When, stop the test to the test case in the test case pond;When 6th detection unit detects the value of loop test mark non-default value, detect in the test case pond The value of loop test mark whether be preset value, and detected in the test case pond and be not carried out by the 5th detection unit Test case use-case perform mark value whether be preset value.
- 16. device according to claim 9, it is characterised in that described device also includes:Unit is exited, when the difference detected for the 4th detection unit is less than preset time, is exited described in execution Test case, and detect next test case.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474807.8A CN107544899B (en) | 2016-06-24 | 2016-06-24 | Method and device for executing test case |
PCT/CN2017/087245 WO2017219851A1 (en) | 2016-06-24 | 2017-06-06 | Method and apparatus for executing test case, and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610474807.8A CN107544899B (en) | 2016-06-24 | 2016-06-24 | Method and device for executing test case |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107544899A true CN107544899A (en) | 2018-01-05 |
CN107544899B CN107544899B (en) | 2020-04-24 |
Family
ID=60783875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610474807.8A Active CN107544899B (en) | 2016-06-24 | 2016-06-24 | Method and device for executing test case |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107544899B (en) |
WO (1) | WO2017219851A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309627A (en) * | 2020-03-08 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Method and system for preventing test conflict in software test |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908543A (en) * | 2017-07-26 | 2018-04-13 | 平安壹钱包电子商务有限公司 | Applied program testing method, device, computer equipment and storage medium |
CN108255718A (en) * | 2018-01-11 | 2018-07-06 | 郑州云海信息技术有限公司 | A kind of method for being multiplexed software use-case |
TWI650710B (en) * | 2018-04-12 | 2019-02-11 | 和碩聯合科技股份有限公司 | Test process detection method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003099285A (en) * | 2001-09-25 | 2003-04-04 | Toshiba Corp | Method and device for preparing test case related to function competition and program therefor |
US20040078699A1 (en) * | 2002-09-18 | 2004-04-22 | Thompson Ryan C. | System for preventing translation lookaside buffer conflicts when generating and merging computer architecture test cases |
US7865793B2 (en) * | 2008-04-30 | 2011-01-04 | International Business Machines Corporation | Test case generation with backward propagation of predefined results and operand dependencies |
CN103049334A (en) * | 2012-12-14 | 2013-04-17 | 华为技术有限公司 | Task processing method and virtual machine |
CN103365776A (en) * | 2013-06-28 | 2013-10-23 | 中国科学院计算技术研究所 | Parallel system weak consistency verifying method and system based on deterministic replay |
CN103365720A (en) * | 2012-03-28 | 2013-10-23 | 国际商业机器公司 | Method and system for dynamically adjusting global heap allocation in multithreading environment |
CN105138310A (en) * | 2015-07-17 | 2015-12-09 | 北京京东尚科信息技术有限公司 | Concurrent access control method and system |
CN105373469A (en) * | 2014-08-25 | 2016-03-02 | 广东金赋信息科技有限公司 | Interface based software automation test method |
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
-
2016
- 2016-06-24 CN CN201610474807.8A patent/CN107544899B/en active Active
-
2017
- 2017-06-06 WO PCT/CN2017/087245 patent/WO2017219851A1/en active Application Filing
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003099285A (en) * | 2001-09-25 | 2003-04-04 | Toshiba Corp | Method and device for preparing test case related to function competition and program therefor |
US20040078699A1 (en) * | 2002-09-18 | 2004-04-22 | Thompson Ryan C. | System for preventing translation lookaside buffer conflicts when generating and merging computer architecture test cases |
US7865793B2 (en) * | 2008-04-30 | 2011-01-04 | International Business Machines Corporation | Test case generation with backward propagation of predefined results and operand dependencies |
CN103365720A (en) * | 2012-03-28 | 2013-10-23 | 国际商业机器公司 | Method and system for dynamically adjusting global heap allocation in multithreading environment |
CN103049334A (en) * | 2012-12-14 | 2013-04-17 | 华为技术有限公司 | Task processing method and virtual machine |
CN103365776A (en) * | 2013-06-28 | 2013-10-23 | 中国科学院计算技术研究所 | Parallel system weak consistency verifying method and system based on deterministic replay |
CN105373469A (en) * | 2014-08-25 | 2016-03-02 | 广东金赋信息科技有限公司 | Interface based software automation test method |
CN105138310A (en) * | 2015-07-17 | 2015-12-09 | 北京京东尚科信息技术有限公司 | Concurrent access control method and system |
CN105511951A (en) * | 2016-01-06 | 2016-04-20 | 上海斐讯数据通信技术有限公司 | Task scheduling method and task scheduling system for automatic WIFI performance test platform |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309627A (en) * | 2020-03-08 | 2020-06-19 | 苏州浪潮智能科技有限公司 | Method and system for preventing test conflict in software test |
CN111309627B (en) * | 2020-03-08 | 2022-11-29 | 苏州浪潮智能科技有限公司 | Method and system for preventing test conflict in software test |
Also Published As
Publication number | Publication date |
---|---|
CN107544899B (en) | 2020-04-24 |
WO2017219851A1 (en) | 2017-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107544899A (en) | A kind of method and device of implementation of test cases | |
US20200242013A1 (en) | Champion test case generation | |
CN103136094A (en) | Page testing method and device | |
US20170147476A1 (en) | Method and apparatus for integration of software development | |
CN109660419A (en) | Predict method, apparatus, equipment and the storage medium of network equipment exception | |
CN104461751B (en) | The automatic assessment of test log in the field of telecommunications | |
CN103916932B (en) | Handle the method and its communicator of cell selection | |
CN105279196B (en) | The generation method and device of test script | |
CN108282831A (en) | Determine method, user equipment and the base station of candidate cell | |
CN107070626A (en) | A kind of method and apparatus for carrying out carrier aggregation processing | |
CN109933515A (en) | A kind of optimization method and automatic optimizing equipment of regression test case collection | |
JP7106597B2 (en) | Mobile terminal test equipment and mobile terminal test method | |
US11663113B2 (en) | Real time fault localization using combinatorial test design techniques and test case priority selection | |
CN108875759A (en) | A kind of image processing method, device and server | |
CN106909197B (en) | Virtualization host time management method and virtualization host system | |
CN107343292A (en) | A kind of TD-LTE system interference determination methods and device | |
CN105760300A (en) | Automatic STK/UTK service testing method and system | |
US10050836B2 (en) | Methods and apparatuses for function coordination control | |
WO2017071390A1 (en) | Interference reporting method and apparatus | |
CN104333486B (en) | A kind of network element device test system and method | |
CN203433663U (en) | Parallel test device | |
CN102932856B (en) | Across the access control processing method of PLMN, equipment and system | |
US11570046B2 (en) | Method and apparatus for anomaly detection in a network | |
WO2023103995A1 (en) | Cell measurement method and apparatus, terminal, storage medium, and program product | |
EP3788744B1 (en) | Method for testing network services |
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 |