CN103713992A - GPS system alert judgment based automated testing method and system - Google Patents
GPS system alert judgment based automated testing method and system Download PDFInfo
- Publication number
- CN103713992A CN103713992A CN201210379635.8A CN201210379635A CN103713992A CN 103713992 A CN103713992 A CN 103713992A CN 201210379635 A CN201210379635 A CN 201210379635A CN 103713992 A CN103713992 A CN 103713992A
- Authority
- CN
- China
- Prior art keywords
- test
- gps
- testing
- gps system
- 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
Images
Landscapes
- Position Fixing By Use Of Radio Waves (AREA)
Abstract
The invention discloses a GPS system alert judgment based automated testing method and system. The GPS system alert judgment based automated testing method includes the steps of A, generating testing cases through a turn-table testing case generator; B, saving the testing cases through a testing scenario setter, grouping the testing cases so as to set testing scenarios, and editing a testing script according to the testing cases; C, setting number of simulation turn-tables, generating GPS alert data and total number of information sent to a GPS system to be tested from each simulation turn-table and sending frequency through a simulation control center according to testing requirements, and calling the testing scenarios and executing the testing script. The GPS system alert judgment based automated testing method and system is supportive of multiple protocols and can analyze the same, so that the automated testing is more flexible; besides, the system is formed and controlled through the testing scenarios which can be grouped freely, and the testing cases are easy to reuse and maintain; in addition, the system is supportive of simulation of multiple turn-tables logging in at the same time and adapts to GPS system performance testing.
Description
Technical field
The present invention relates to software testing technology, especially, relate to a kind of automated testing method and system based on the judgement of gps system alert.
Background technology
At present, along with the raising day by day of computer level, in GPS dispatching system, alert form becomes day by day complicated.Alert form is the important main one-tenth part in GPS dispatching system, when GPS test alert form, need to generate a large amount of test datas.In classic method, this test needs manual generating test use case, and workload is large, and easily omits test case.Therefore,, when test, robotization generates alert test data its necessity.
Summary of the invention
The object of the present invention is to provide a kind of automated testing method based on gps system alert judgement, large and easily cause the problem of omission to solve the existing workload of the manual generating test use case of available technology adopting.
The present invention also aims to provide a kind of automatization test system based on the judgement of gps system alert, to address the above problem better.
To achieve these goals, the present invention is mainly by the following technical solutions:
An automated testing method based on the judgement of gps system alert, described method following steps:
A. ride test case generator generating test use case;
B. test scene arranges device and preserves described test case, and described test case is combined to arrange test scene, and according to described test case editor's test script;
C. simulation control center need to arrange according to test the simulation ride that generates GPS alert data quantity, each simulation ride send to information sum and the transmission frequency of tested gps system, and call described test scene and carry out described test script; Wherein
Described ride test case generator, device is set test scene and simulation control center communicates to connect successively, and described tested gps system communicates to connect described test scene device is set.
In the above-mentioned automated testing method based on the judgement of gps system alert, described ride test case generator generating test use case comprises:
The protocol type of selected simulation ride, the various states that simulating vehicle is travelled are compiled the test case needing, then according to the described test case customization GPS information content.
Preferably, the described GPS information content comprises positioning time, car speed, direction of traffic, reference position and latitude and longitude information; Wherein
Utilize described latitude and longitude information can on map, import the driving trace of described simulating vehicle.
In the above-mentioned automated testing method based on gps system alert judgement, describedly according to described test case editor's test script, comprise:
According to described test case, obtain corresponding test data, and according to the testing requirement information of the attribute information of described test data and test subscriber's input, utilize described test data to obtain testing accordingly field; According to the intersegmental preset relation of described tested word, described test field is combined to the test script that obtains described test case.
Further, described tested gps system comprises GPS management system and gps data storehouse.
A kind of automatization test system based on the judgement of gps system alert provided by the invention, described system comprises:
Ride test case generator, for generating test use case;
Test scene arranges device, for preserving described test case, described test case is combined to arrange test scene, and according to described test case editor's test script;
Simulation control center, sends to information sum and the transmission frequency of tested gps system for quantity, each simulation ride of the simulation ride that generates GPS alert data need to be set according to test, and calls described test scene and carry out described test script; Wherein
Described ride test case generator, device is set test scene and simulation control center communicates to connect successively, and described tested gps system communicates to connect described test scene device is set.
In the above-mentioned automatization test system based on the judgement of gps system alert, described ride test case generator generating test use case comprises:
The protocol type of selected simulation ride, the various states that simulating vehicle is travelled are compiled the test case needing, then according to the described test case customization GPS information content.
Preferably, the described GPS information content comprises positioning time, car speed, direction of traffic, reference position and latitude and longitude information; Wherein
Utilize described latitude and longitude information can on map, import the driving trace of described simulating vehicle.
In the above-mentioned automatization test system based on gps system alert judgement, describedly according to described test case editor's test script, comprise:
According to described test case, obtain corresponding test data, and according to the testing requirement information of the attribute information of described test data and test subscriber's input, utilize described test data to obtain testing accordingly field; According to the intersegmental preset relation of described tested word, described test field is combined to the test script that obtains described test case.
Further, described tested gps system comprises GPS management system and gps data storehouse.
Implement automated testing method and the system based on the judgement of gps system alert provided by the invention, can support the parallel parsing of various protocols, automatic test is more flexible, more easily carries out, secondly, this system is by test scene composition control, can independent assortment, test case is easy to multiplexing and safeguards, in addition, this system support is simulated a plurality of rides and is logged in simultaneously, can be used for gps system performance test.
Accompanying drawing explanation
Fig. 1 is that the present invention is in the process flow diagram of the automated testing method of gps system alert judgement;
Fig. 2 is according to the process flow diagram of test case editor test script in the inventive method;
Fig. 3 is the block diagram of the automatization test system of gps system alert judgement of the present invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is described in further detail.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Fig. 1 shows the present invention in the process flow diagram of the automated testing method of gps system alert judgement.
In step S11, utilize ride test case generator generating test use case.In the process of generating test use case, the protocol type of self-defined simulation ride and instruction, and deposit test scene database in, for example, first choose protocol type, then customize the GPS information content, the various states that simulating vehicle is travelled are compiled the test case needing, various states comprise positioning time, car speed, direction of traffic, reference position and latitude and longitude information, utilize latitude and longitude information can import at map the driving trace of simulating vehicle.
In step S12, utilize test scene that device is set and preserve described test case, and described test case is combined to arrange test scene, and according to described test case editor's test script.
In step S13, quantity, each simulation ride that simulation control center need to arrange according to test the simulation ride that generates GPS alert data send to information sum and the transmission frequency of tested gps system, and call described test scene and carry out described test script.For example, three ride login gps systems are set, the number of three rides is 13500000000,1350000001 and 1350000002, and reporting frequency is to report once for 4 hours, altogether reports 3 times, and calling scene is fatigue driving and the violation of crossing the border.Can carry out described test script according to default script implementation strategy, particularly, script implementation strategy can comprise number of times, manner of execution (carrying out at random or order execution) and/or the data change pattern (comprising that circulation finishes rear variation, all changes at every turn, do not change) carried out, in actual applications, those skilled in the art can need to arrange script implementation strategy by test case according to reality test.Test macro also can compare the execution result of test script and the default expected results of test subscriber, and result configuration is relatively saved in to specified path or database.If there is web server, result can be outputed to web page, user directly remote access web page checks test result.
Fig. 2 shows in the inventive method according to the process flow diagram of test case editor test script.
In step S21, the test case generating according to ride test case generator is obtained corresponding test data.
In step S22, the testing requirement information according to the attribute information of test data and test subscriber's input, obtains testing accordingly field according to test data.The attribute information of test data comprises: processing priority information, inherent constraint information and unique appointed information, it is default that these attribute informations are that test subscriber passes through testing requirement.Here, specifically how according to test data, to obtain testing field, by those skilled in the art, grasped, as used Python or other programming language to obtain.
In step S23, according to the intersegmental preset relation of described tested word, described test field is combined to the test script that obtains described test case.The intersegmental preset relation of described tested word is arranged in testing requirement by test subscriber.
Fig. 3 is the block diagram of the automatization test system of gps system alert judgement of the present invention.System 1 of the present invention comprises ride test case generator 11, test scene database 12 and simulation control center 13.
Ride test case generator 11, for generating test use case
Test scene arranges device 12, and the test case generating for preserving ride test case generator 11 combines to arrange test scene to test case, and according to test case editor test script;
Described ride test case generator, device is set test scene and simulation control center communicates to connect successively, and described tested gps system communicates to connect described test scene device is set.Described tested gps system comprises GPS management system and gps data storehouse.
Suppose to have had fatigue driving and two scenes in violation of rules and regulations of crossing the border in test scene database 12, the test case in the scene library that may inquire about is as shown in table one (fatigue driving scene) and table two (scene in violation of rules and regulations of crossing the border):
Table one
Table two
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, the explanation of each embodiment terminal be the difference with other embodiment, between each embodiment identical similar part mutually referring to.For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
More than that a kind of automated testing method and system based on the judgement of gps system alert that invention is provided is described in detail, applied specific case herein structural principle of the present invention and embodiment are set forth, above embodiment indication is for helping to understand method of the present invention and core concept; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as uses novel restriction to this meanwhile.
Claims (10)
1. the automated testing method based on the judgement of gps system alert, is characterized in that, said method comprising the steps of:
A. ride test case generator generating test use case;
B. test scene arranges device and preserves described test case, and described test case is combined to arrange test scene, and according to described test case editor's test script;
C. simulation control center need to arrange according to test the simulation ride that generates GPS alert data quantity, each simulation ride send to information sum and the transmission frequency of tested gps system, and call described test scene and carry out described test script; Wherein
Described ride test case generator, device is set test scene and simulation control center communicates to connect successively, and described tested gps system communicates to connect described test scene device is set.
2. the automated testing method based on the judgement of gps system alert according to claim 1, is characterized in that, described ride test case generator generating test use case step comprises the following steps:
The protocol type of selected simulation ride, the various states that simulating vehicle is travelled are compiled the test case needing, then according to the described test case customization GPS information content.
3. the described automated testing method based on the judgement of gps system alert according to claim 2, is characterized in that, the described GPS information content comprises positioning time, car speed, direction of traffic, reference position and latitude and longitude information; Wherein, utilize described latitude and longitude information can on map, import the driving trace of described simulating vehicle.
4. the automated testing method based on gps system alert judgement according to claim 1, is characterized in that, describedly according to described test case editor's test script, comprises:
According to described test case, obtain corresponding test data, and according to the testing requirement information of the attribute information of described test data and test subscriber's input, utilize described test data to obtain testing accordingly field; According to the intersegmental preset relation of described tested word, described test field is combined to the test script that obtains described test case.
5. the automatization test system based on the judgement of gps system alert according to claim 1, is characterized in that, described tested gps system comprises GPS management system and gps data storehouse.
6. the automatization test system based on the judgement of gps system alert, is characterized in that, described system comprises:
Ride test case generator, for generating test use case;
Test scene arranges device, for preserving described test case, described test case is combined to arrange test scene, and according to described test case editor's test script;
Simulation control center, sends to information sum and the transmission frequency of tested gps system for quantity, each simulation ride of the simulation ride that generates GPS alert data need to be set according to test, and calls described test scene and carry out described test script; Wherein
Described ride test case generator, device is set test scene and simulation control center communicates to connect successively, and described tested gps system communicates to connect described test scene device is set.
7. the automatization test system based on the judgement of gps system alert according to claim 6, is characterized in that, described ride test case generator generating test use case comprises:
The protocol type of selected simulation ride, the various states that simulating vehicle is travelled are compiled the test case needing, then according to the described test case customization GPS information content.
8. the described automatization test system based on the judgement of gps system alert according to claim 7, is characterized in that, the described GPS information content comprises positioning time, car speed, direction of traffic, reference position and latitude and longitude information; Wherein
Utilize described latitude and longitude information can on map, import the driving trace of described simulating vehicle.
9. the automatization test system based on gps system alert judgement according to claim 6, is characterized in that, describedly according to described test case editor's test script, comprises:
According to described test case, obtain corresponding test data, and according to the testing requirement information of the attribute information of described test data and test subscriber's input, utilize described test data to obtain testing accordingly field; According to the intersegmental preset relation of described tested word, described test field is combined to the test script that obtains described test case.
10. the automatization test system based on the judgement of gps system alert according to claim 6, is characterized in that, described tested gps system comprises GPS management system and gps data storehouse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210379635.8A CN103713992B (en) | 2012-09-29 | 2012-09-29 | A kind of automated testing method judged based on gps system alert and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210379635.8A CN103713992B (en) | 2012-09-29 | 2012-09-29 | A kind of automated testing method judged based on gps system alert and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103713992A true CN103713992A (en) | 2014-04-09 |
CN103713992B CN103713992B (en) | 2017-03-15 |
Family
ID=50406992
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210379635.8A Active CN103713992B (en) | 2012-09-29 | 2012-09-29 | A kind of automated testing method judged based on gps system alert and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103713992B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106033388A (en) * | 2015-03-11 | 2016-10-19 | 阿里巴巴集团控股有限公司 | A test use case library management method and system |
CN107807844A (en) * | 2017-10-31 | 2018-03-16 | 北京新能源汽车股份有限公司 | Method and device for generating traffic test scene and computer readable storage medium |
CN107990909A (en) * | 2016-10-27 | 2018-05-04 | 千寻位置网络有限公司 | A kind of test method and its system of simulated roadway position data |
CN109460367A (en) * | 2018-11-16 | 2019-03-12 | 四川长虹电器股份有限公司 | Method based on the sustainable integrated automation performance test of Jmeter |
CN110704318A (en) * | 2019-09-27 | 2020-01-17 | 武汉中海庭数据技术有限公司 | Map data automatic testing method, terminal device and storage medium |
CN112181846A (en) * | 2020-10-20 | 2021-01-05 | 公安部交通管理科学研究所 | Automatic test platform and method for traffic signal control system messages |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030126517A1 (en) * | 2001-07-27 | 2003-07-03 | Accordsqa | Automated software testing and validation system |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
CN102610067A (en) * | 2012-02-29 | 2012-07-25 | 深圳市赛格导航科技股份有限公司 | Policing alert processing method and system based on GPS (global positioning system) |
CN102693183A (en) * | 2012-05-30 | 2012-09-26 | 瑞斯康达科技发展股份有限公司 | Method and system for realizing automatic software testing |
-
2012
- 2012-09-29 CN CN201210379635.8A patent/CN103713992B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030126517A1 (en) * | 2001-07-27 | 2003-07-03 | Accordsqa | Automated software testing and validation system |
CN102394797A (en) * | 2011-11-16 | 2012-03-28 | 深圳市赛格导航科技股份有限公司 | Embedded automatic network communication device test method and system |
CN102610067A (en) * | 2012-02-29 | 2012-07-25 | 深圳市赛格导航科技股份有限公司 | Policing alert processing method and system based on GPS (global positioning system) |
CN102693183A (en) * | 2012-05-30 | 2012-09-26 | 瑞斯康达科技发展股份有限公司 | Method and system for realizing automatic software testing |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106033388A (en) * | 2015-03-11 | 2016-10-19 | 阿里巴巴集团控股有限公司 | A test use case library management method and system |
CN107990909A (en) * | 2016-10-27 | 2018-05-04 | 千寻位置网络有限公司 | A kind of test method and its system of simulated roadway position data |
CN107990909B (en) * | 2016-10-27 | 2021-05-25 | 千寻位置网络有限公司 | Test method and system for simulating road position data |
CN107807844A (en) * | 2017-10-31 | 2018-03-16 | 北京新能源汽车股份有限公司 | Method and device for generating traffic test scene and computer readable storage medium |
CN107807844B (en) * | 2017-10-31 | 2020-09-25 | 北京新能源汽车股份有限公司 | Method and device for generating traffic test scene and computer readable storage medium |
CN109460367A (en) * | 2018-11-16 | 2019-03-12 | 四川长虹电器股份有限公司 | Method based on the sustainable integrated automation performance test of Jmeter |
CN110704318A (en) * | 2019-09-27 | 2020-01-17 | 武汉中海庭数据技术有限公司 | Map data automatic testing method, terminal device and storage medium |
CN112181846A (en) * | 2020-10-20 | 2021-01-05 | 公安部交通管理科学研究所 | Automatic test platform and method for traffic signal control system messages |
CN112181846B (en) * | 2020-10-20 | 2022-03-25 | 公安部交通管理科学研究所 | Automatic test platform and method for traffic signal control system messages |
Also Published As
Publication number | Publication date |
---|---|
CN103713992B (en) | 2017-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103713992A (en) | GPS system alert judgment based automated testing method and system | |
US9064001B2 (en) | Method and apparatus for a frequently-asked questions portal workflow | |
CN113378413B (en) | Simulation road network platform building system, method, equipment and storage medium based on Vissim | |
JP6045134B2 (en) | Parallel workload simulation for application performance testing | |
CN109726016A (en) | A kind of link tracing methods, devices and systems for distributed system | |
CN103577207A (en) | Loading method and loading device for interface components in custom interface system | |
CN109739762A (en) | A kind of performance test methods and device of application program | |
CN107294750B (en) | Cloud cluster energy self-identification distributed configuration management method and device | |
CN108664385A (en) | A kind of test method and device of application programming interface | |
CN107391622A (en) | A kind of data access method and equipment | |
CN110532175A (en) | Interface test method, interface test device, server and storage medium | |
CN108345629A (en) | Scenic region guide method and device | |
CN109447384A (en) | Verification method, device, equipment and the storage medium of air control system | |
CN110060424A (en) | A kind of shared automobile returning method | |
AU2017245437A1 (en) | Thin client for mapping system | |
CN102142989A (en) | Failure positioning method and device for content delivery network | |
CN103631988A (en) | Multi-user simulation data management platform for electric power system simulation | |
CN113609237B (en) | Construction land change data processing method, device, equipment and medium | |
CN101694707A (en) | Method and device for budget control | |
CN108228965B (en) | Simulation verification method, device and equipment for memory cell | |
CN101751332A (en) | Method, device and system for simulating process of workflow middleware | |
CN107506369A (en) | A kind of data access method and equipment | |
CN112328501A (en) | Test method, test device, electronic equipment and storage medium | |
CN115291872A (en) | Data processing method, electronic device and storage medium | |
CN115758782A (en) | Cloud simulation test system and method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |