CN106155881A - Applied program testing method and system for VxWorks platform - Google Patents
Applied program testing method and system for VxWorks platform Download PDFInfo
- Publication number
- CN106155881A CN106155881A CN201510138374.4A CN201510138374A CN106155881A CN 106155881 A CN106155881 A CN 106155881A CN 201510138374 A CN201510138374 A CN 201510138374A CN 106155881 A CN106155881 A CN 106155881A
- Authority
- CN
- China
- Prior art keywords
- test
- application program
- tested
- module
- target terminal
- 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
Abstract
The invention provides a kind of applied program testing method for VxWorks platform and system, wherein, described method includes: set the keyword message of test case on the test application program of described test terminal according to test protocol;The logical judgment condition corresponding with described keyword message is generated with described keyword message according to described test protocol;The test packet sent according to described logical judgment condition and the tested application program on the described target terminal received generates test feedback information, and sends to described target terminal;Receive what the tested application program on described target terminal was sent, the test result generated according to described test feedback information;And described test result is analyzed, complete the Application testing of VxWorks platform.In the case of the present invention is few without application interface or application interface at tested application program, and tested application program exists more logic, it is achieved that the test automation of application program.
Description
Technical field
The present invention relates to communication technical field, and field of computer technology, particularly relate to a kind of for
The application program method and system of VxWorks platform.
Background technology
Vxworks operating system is a kind of embedded real-time operating system designed and developed in nineteen eighty-three,
It is the key components of embedded-development environment.Good sustainable development capacity, high performance kernel with
And the User Exploitation environment of close friend, occupy one seat in embedded real-time operating system field.It is with it
Good reliability be widely used in remarkable real-time communicate, military affairs, Aeronautics and Astronautics contour
In essence point technology and the high field of requirement of real-time, as satellite communication, military exercises, trajectory guidance,
Aircraft navigation etc..
Existing software automated testing technology mainly has: recording/replaying, script technology, data-driven,
Keyword drives, business-driven.Data-driven reads input data from data file, by the ginseng of variable
Numberization will test the incoming test script of data, the corresponding different test case of different data files.At this
Under the pattern of kind, data separate with script, and the utilization rate of script, maintainability are greatly improved, but are become by interface
The impact changed is the biggest.Keyword drives test to be that a kind of of data-driven test improves type, and it will test
Logic is decomposed according to keyword, forms data file, the service logic of keyword correspondence encapsulation, master
Keyword is wanted to include three classes: by operation object, operate and be worth.The main thought that keyword drives is: foot
Basis and data separating, interface element separates with test internal object, and test description divides with implementing details
From.It is reply service logic equally that keyword before drives, but classifies according to operation object,
Currently the majority automatic test software makes tested software be played back by recording technology, it is achieved from
Dynamicization testing requirement, although the workload of tester can be alleviated.But, owing to automatic test is soft
Part itself does not possess ability of thinking, if tested software does not has more interface or does not has interface, but
There is more logical judgment, automatic test software cannot utilize recording/replaying technology to realize automatization and survey
Examination.
Summary of the invention
The present invention provides a kind of application program method and system for VxWorks platform, existing to solve
Some automatic test software cannot utilize the problem that recording/replaying technology realizes automatic test.
In order to solve the problems referred to above, the invention discloses a kind of application program for VxWorks platform
Method of testing, described method is applied to utilize the test application program on test terminal on target terminal
Tested application program carries out the environment tested, and described target terminal uses VxWorks platform, described survey
Examination terminal uses windows platform, described test terminal and described target terminal to use wired mode even
Connecing, described method includes:
On the test application program of described test terminal, the key of test case is set according to test protocol
Word information;
Patrol corresponding with described keyword message is generated with described keyword message according to described test protocol
Collect Rule of judgment;
Send out with the tested application program on the described target terminal received according to described logical judgment condition
The test packet come generates test feedback information, and sends to described target terminal;
Receive what the tested application program on described target terminal was sent, raw according to described test feedback information
The test result become;And described test result is analyzed, complete the application journey of VxWorks platform
Sequence is tested.
Preferably, described described test result is analyzed, including:
The message field (MFLD) of described test result is resolved, obtains analysis result, and by the side of chart
Formula represents the information of each functional module of the tested application program of described analysis result mark.
Preferably, the described message field (MFLD) to described test result resolves, and obtains analysis result, and
Each functional module of the tested application program of described analysis result mark is represented by the way of chart
After information, described method also includes:
The information of each functional module according to described tested application program determines and is unsatisfactory for test request
Functional module;
The described functional module being unsatisfactory for test request is carried out regression test.
Preferably, described on the test application program of described test terminal, test is set according to test protocol
Before the keyword message of use-case, described method also includes:
Select the test application program on described test terminal and the tested application journey on described target terminal
Communication mode between sequence.
Preferably, described keyword message includes: keyword name, key position, keyword numerical value
With feedback packet labeling.
Correspondingly, the invention also discloses a kind of Application testing system for VxWorks platform,
Described system is applied to utilize the test application program on test terminal to the tested application on target terminal
Program carries out the environment tested, and described target terminal uses VxWorks platform, and described test terminal is adopted
With windows platform, described test terminal uses wired mode to be connected with described target terminal, described system
System includes:
Keyword message setting module, for according to the test protocol test application journey in described test terminal
The keyword message of test case is set in sequence;
Rule of judgment generation module, for generating and institute according to described test protocol and described keyword message
State the logical judgment condition that keyword message is corresponding;
Feedback information generation module, for whole according to described logical judgment condition and the described target received
The test packet that tested application program on end is sent generates test feedback information, and sends to described target
Terminal;
Test result analysis module, for receiving what the tested application program on described target terminal was sent,
The test result generated according to described test feedback information;And described test result is analyzed, complete
The Application testing of VxWorks platform.
Preferably, the message field (MFLD) of described test result is resolved by described test result analysis module,
Obtain analysis result, and by the way of chart, represent the tested application program of described analysis result mark
The information of each functional module.
Preferably, described system also includes:
Functional module determines module, at the described test result analysis module report to described test result
Word section resolves, and obtains analysis result, and represents described analysis result mark by the way of chart
Tested application program each functional module information after, according to each of described tested application program
The information of functional module determines the functional module being unsatisfactory for test request;
Regression test module, for carrying out regression test to the described functional module being unsatisfactory for test request.
Preferably, described system also includes:
Communication mode select module, at described keyword message setting module according to test protocol in institute
Before stating the keyword message setting test case on the test application program of test terminal, select described survey
Communication party between test application program in examination terminal and the tested application program on described target terminal
Formula.
Preferably, described keyword message includes: keyword name, key position, keyword numerical value
With feedback packet labeling.
Compared with background technology, the present invention includes advantages below:
Technical solution of the present invention is applied to utilize the test application program on test terminal on target terminal
Tested application program carry out the environment tested, wherein, target terminal uses VxWorks platform, surveys
Examination terminal uses windows platform, test terminal to use wired mode to be connected with target terminal.The present invention
Technical scheme sets the key of test case on the test application program of test terminal according to test protocol
Word information;The logical judgment bar corresponding with keyword message is generated with keyword message according to test protocol
Part;The test report sent with the tested application program on the target terminal received according to logical judgment condition
Literary composition generates test feedback information, and sends to target terminal;Receive the tested application program on target terminal
Send, the test result generated according to test feedback information;And test result is analyzed, complete
The Application testing of VxWorks platform.Technical solution of the present invention is according to test protocol and the key of setting
Information generates the logical judgment condition corresponding with keyword message, utilizes logical judgment condition to tested application
The test packet of program carries out automatic test, generates test feedback information, further to tested application journey
Sequence generates test result according to test feedback information and is analyzed, tested application program without application interface or
In the case of application interface is few, and tested application program exists more logic, it is achieved that the survey of application program
Examination automatization.
Accompanying drawing explanation
Fig. 1 is a kind of Application testing scheme for VxWorks platform in the embodiment of the present invention
Be embodied as structure chart;
Fig. 2 is the structural representation of a kind of automatic test software in the embodiment of the present invention;
Fig. 3 is a kind of Application testing side for VxWorks platform in the embodiment of the present invention one
The flow chart of steps of method;
Fig. 4 is a kind of Application testing side for VxWorks platform in the embodiment of the present invention two
The flow chart of steps of method;
Fig. 5 is a kind of Application testing system for VxWorks platform in the embodiment of the present invention three
The structural representation of system;
Fig. 6 is a kind of Application testing system for VxWorks platform in the embodiment of the present invention four
The structural representation of system.
Detailed description of the invention
Understandable, below in conjunction with the accompanying drawings for enabling the above-mentioned purpose of the present invention, feature and advantage to become apparent from
The present invention is further detailed explanation with detailed description of the invention.
Technical solution of the present invention be embodied as structure chart as it is shown in figure 1, wherein, target machine runs quilt
The application program (tested software) of test, testing results application program (automatic test on test machine
Software), utilize test application program that tested application program is carried out automatic test, test machine is to mesh
Marking machine sends test case, implementation of test cases on the tested application program of target machine, and target machine will
Test result sends back test machine, and meanwhile, test machine can store and extract test data in data base,
Data base can use SQL Server (a kind of database application of Microsoft) etc..
Technical solution of the present invention can be summarized as following three steps and perform, and is respectively as follows:
One, test environment is built
Target machine is connected by cable network with test machine, target machine application VxWorks platform, and pacifies
Dress test result logging software, the effect of this software is the information obtaining tested software, and test is tied
Fruit sends back automatic test software.
Automatic test software runs under Windows system, the structure of automatic test software such as Fig. 2
Shown in, the functional module that this automatic test software has has: typing test case module, load testing
Module, regression test module, data analysis module, data memory module and log module.Wherein,
Typing test case module carries out the definition of keyword for the agreement of tested software, and to pass
Key word carries out assignment function.
Load testing module carries out stress test for the modules of tested software.
Regression test module carries out regression test for the module of the more tested software of test problem.
Data analysis module utilizes data mining algorithm to be analyzed test result, obtains tested software
Weak link, and form the module vigorousness chart of tested software.
Data memory module is used for storing test case, and test result.
Log module record tested software log information during whole receiving and sending messages.
Two, automatic test realizes
1) first tester selects to test the communication mode of software and tested software, confirm two soft
Part can carry out network service.
2) tester add keyword name, keyword position in messages, the value of keyword and
Feedback packet labeling, as shown in table 1.
Keyword name | Key position | Key value | Feedback packet labeling |
Packet labeling 1 | 1 byte | 0XAA | Feedback packet labeling X |
Packet labeling 2 | 2 bytes | 0XBB | Feedback packet labeling Y |
……. | …… | …… | …. |
Packet labeling N | N byte | 0XNN | …… |
Table 1
3), after arranging the form submission of feedback message, test software can generate the judgement of corresponding keyword and patrol
Volume, the form of feedback message is as shown in table 2.
Keyword name | Key position | Key value |
Feedback packet labeling 1 | 1 byte | 0XAA1 |
Feedback packet labeling 2 | 2 bytes | 0XBB11 |
……. | …… | …… |
Feedback packet labeling N | N byte | 0XNN1 |
Table 2
Feedback message form according to communication protocol set, be not fixing length, according to above-mentioned instead
The form of feedback message generates feedback message.
Feedback packet labeling in table 2 is equivalent to the tag field of agreement, e.g., feeds back packet labeling 1 generation
Table heading word, feedback packet labeling 2 represents device status word in message.
By the corresponding keyword of input in test software, it is crucial that first test software obtain feedback message
The number of word, tests the software a piece of memory space of pre-first to file, then according to the feedback critical field of input
Forming the respective relief area of respective number, those relief areas are conducted interviews by software, run into the pass of coupling
Key word just carries out logical judgment to message, eventually forms and feeds back message accordingly.
Such as feedback message has four fields, respectively field 1, field 2, field 3 and field 4, phase
Should ground formed four relief areas, the relief area of field 1, the relief area of field 2, the relief area of field 3,
The relief area of field 4, is stored in the content of the respective field of user's input in these four relief areas respectively,
AA puts into the relief area of field 1, and BB puts into the relief area of field 2, and CC puts into the buffering of field 3
District, DD puts into the relief area of field 4, forms feedback data, then to tested according to the coupling of form
The feedback message of examination software carries out a point parsing for four fields, mates with the content of relief area, if
Do not mate, then by unmatched field record to daily record, and the transmission data of this test case,
Correctly feed back message, actual feedback message and test result and recorded in data base, terminate this use-case
Test.Input next time may BB be the relief area putting into field 1, and CC puts into the relief area of field 2,
AA puts into the relief area of field 3, and DD puts into the relief area of field 4, then test software can basis
New input is put in corresponding relief area, if there being corresponding numerical value in relief area, then relief area
Repetition data will not be added.During logical judgment, effective just for current input value, the transmission before formed
Data and feedback data are placed in data base, for follow-up regression test.
4) in test software, logical judgment code is automatically generated, when the message of target machine arrives test machine
Time, test machine can judge according to the content that tester submits to, and feeds back to target machine accordingly.
5) utilize test result logging software, obtain the object information of tested software single communication, warp
Cross test result logging software to analyze, this test result is sent to automatic test software, complete this
Secondary test, and test case and test result are stored in data base.
Three, test result analysis
The test result obtained for second step, data analysis module is according to data message labelling and test
Result carries out data classification and statistics, covers test result in feedback message, to the feedback corresponding word of message
Duan Jinhang resolves, and will obtain test result, test result is matched with expected result, add up successfully
With failed use-case number and data, then calculate unsuccessfully use-case at the one-tenth of the functional module of tested software
Function number of cases is multiplied by this functional module value in the weight of tested software, it is judged that tested software is the most also
Need to strengthen test.By the way of chart, react the robustness of the modules of tested software, return
Test module is returned can automatically to utilize failed result that the partial function of tested software is carried out regression test,
If the value of keyword is a scope, during regression test, automatic test software can adjust automatically
Tested software is tested by numerical value.Meanwhile, designer can be arranged in automatic test software
Test interval, carries out stress test to tested software.
Such as, software A for test software, software B for being test for embedded software, software A and
UDP (User Datagram Protocol, User Datagram Protocol) communication mode is selected between software B,
Test software A fills in the network information such as IP address at corresponding software B place, enables UDP communication
Mode.
Protocol fields 0X0A that will require in communication protocol, 0X0B, 0X0C, 0X0C composition sends report
Literary composition.
1) inputting 0X0A in test software A, corresponding key field is 1, corresponding feedback message
For 0XAA.
Inputting 0X0B in test software A, corresponding key field is 2, corresponding feedback message mark
It is designated as 0XBB.
Inputting 0X0C in test software A, corresponding key field is 3, corresponding feedback message mark
It is designated as 0XCC.
Inputting 0X0D in test software A, corresponding key field is 4, corresponding feedback message mark
It is designated as 0XDD.
Feedback message correspondence 0XAA, corresponding feedback message field (MFLD) position is 1, and field value is 0XAA1.
Feedback message correspondence 0XBB, corresponding feedback message field (MFLD) position is 2, and field value is 0XBB1.
Feedback message correspondence 0XCC, corresponding feedback message field (MFLD) position is 3, and field value is 0XCC1.
Feedback message correspondence 0XDD, corresponding feedback message field (MFLD) position is 4, and field value is 0XDD1.
2) test software A end of input, test software A send message be 0X0A, 0X0B, 0X0C,
0X0D}.Test software A accepts the message of tested software B feedback, solves the message of feedback
Analysis, forms 4 relief areas to the keyword of input in test software A, enters four relief areas respectively
Row coupling, the correct message result of expectation is { 0XAA1,0XBB1,0XCC1,0XDD1}.
If feedback packet parsing first character section is 0XAA1, second field is 0XBB1, the 3rd
Field is 0XCC1, and the 4th field is 0XDD1, then this feedback message is correct.If wherein having
One fields match failure, then this feedback message is mistake, and it is failed that test case performs
3) in test software A, failed test case number is added up, such as the function mould of tested software B
Block B1, is always 100 by number of cases, is unsuccessfully 20 by number of cases, functional module B2, is always 100 by number of cases,
Failure number of cases is 5, and the weight of functional module B1 is 20%, and the weight of functional module B2 is 80%.
Test case successful instance: 80*0.2+95*0.8=92, illustrates this test case running and comparing success,
If regulation arrives 100 and is just counted as merit, then need to revise tested software, until result of calculation is
100, then this tested software is just calculated by this test.
Below by enumerate several specific embodiment be discussed in detail the present invention provide one for
The applied program testing method of VxWorks platform and system.
Embodiment one
A kind of Application testing for VxWorks platform that the embodiment of the present invention provide is discussed in detail
Method.Tested on target terminal of the test application program that described method is applied to utilize on test terminal
Application program carries out the environment tested, and described target terminal uses VxWorks platform, and described test is eventually
End uses windows platform, described test terminal to use wired mode to be connected with described target terminal.
With reference to Fig. 3, it is shown that in the embodiment of the present invention, a kind of application program for VxWorks platform is surveyed
The flow chart of steps of method for testing.
Step 100, sets test on the test application program of described test terminal according to test protocol and uses
The keyword message of example.
Described test protocol can be the agreement that existing Application testing uses, concrete test protocol
In can comprise at least one test case, each test case can include relevant to test case
Keyword message.
Described keyword message can include that the key parameter that test case uses, the most tested application program exist
Need input during implementation of test cases or need the key parameter etc. of output.
Step 102, generates and described keyword message according to described test protocol and described keyword message
Corresponding logical judgment condition.
The logical judgment condition corresponding with keyword message can be for input keyword message and
The test packet of tested application program feedback, it is judged that tested application program implementation of test cases is the most successful.
Step 104, should according to tested in described logical judgment condition and the described target terminal that receives
The test packet sent by program generates test feedback information, and sends to described target terminal.
Described test feedback information is for representing the test after implementation of test cases of the tested application program
Result.
Step 106, receives what the tested application program on described target terminal was sent, according to described test
The test result that feedback information generates;And described test result is analyzed, complete VxWorks and put down
The Application testing of platform.
In sum, the technical scheme in the embodiment of the present invention is according to test protocol and the key message of setting
Generate the logical judgment condition corresponding with keyword message, utilize logical judgment condition to tested application program
Test packet carry out automatic test, generate test feedback information, further to tested application program root
Generate test result according to test feedback information to be analyzed, at tested application program without application interface or application
In the case of interface is few, and tested application program exists more logic, it is achieved that the test of application program is certainly
Dynamicization.
Embodiment two
A kind of Application testing for VxWorks platform that the embodiment of the present invention provide is discussed in detail
Method.Tested on target terminal of the test application program that described method is applied to utilize on test terminal
Application program carries out the environment tested, and described target terminal uses VxWorks platform, and described test is eventually
End uses windows platform, described test terminal to use wired mode to be connected with described target terminal.
With reference to Fig. 4, it is shown that in the embodiment of the present invention, a kind of application program for VxWorks platform is surveyed
The flow chart of steps of method for testing.
Step 200, selects the test application program on described test terminal and the quilt on described target terminal
Survey the communication mode between application program.
Communication mode between described test application program and tested application program can include TCP
(Transmission Control Protocol, transmission control protocol) and UDP etc., the present invention implements
Communication mode between test application program and tested application program is selected not to be restricted by example.
Step 202, sets test on the test application program of described test terminal according to test protocol and uses
The keyword message of example.
Described test protocol can be the agreement that existing Application testing uses, concrete test protocol
In can comprise at least one test case, each test case can include relevant to test case
Keyword message.
Described keyword message can include that the key parameter that test case uses, the most tested application program exist
Need input during implementation of test cases or need the key parameter etc. of output.
Preferably, described keyword message may include that keyword name, key position, keyword
Numerical value and feedback packet labeling etc..
Step 204, generates and described keyword message according to described test protocol and described keyword message
Corresponding logical judgment condition.
The logical judgment condition corresponding with keyword message can be for input keyword message and
The test packet of tested application program feedback, it is judged that tested application program implementation of test cases is the most successful.
Step 206, should according to tested in described logical judgment condition and the described target terminal that receives
The test packet sent by program generates test feedback information, and sends to described target terminal.
Described test feedback information is for representing the test after implementation of test cases of the tested application program
Result.
Step 208, receives what the tested application program on described target terminal was sent, according to described test
The test result that feedback information generates, and described test result is analyzed.
Preferably, described test result is analyzed by described step 208 can be:
The message field (MFLD) of described test result is resolved, obtains analysis result, and by the side of chart
Formula represents the information of each functional module of the tested application program of described analysis result mark.
Step 210, determines according to the information of each functional module of described tested application program and is unsatisfactory for surveying
The functional module that examination requires.
Described tested application program can include multiple functional module, is testing tested application program
Time, can on purpose test for functional module therein.The information of the most each functional module
The situations such as each respective state of functional module can be represented.
Step 212, carries out regression test to the described functional module being unsatisfactory for test request.
In sum, the technical scheme in the embodiment of the present invention is according to test protocol and the key message of setting
Generate the logical judgment condition corresponding with keyword message, utilize logical judgment condition to tested application program
Test packet carry out automatic test, generate test feedback information, further to tested application program root
Generate test result according to test feedback information to be analyzed, at tested application program without application interface or application
In the case of interface is few, and tested application program exists more logic, it is achieved that the test of application program is certainly
Dynamicization.
Embodiment three
A kind of Application testing for VxWorks platform that the embodiment of the present invention provide is discussed in detail
System.Tested on target terminal of the test application program that described system is applied to utilize on test terminal
Application program carries out the environment tested, and described target terminal uses VxWorks platform, and described test is eventually
End uses windows platform, described test terminal to use wired mode to be connected with described target terminal.
With reference to Fig. 5, it is shown that in the embodiment of the present invention, a kind of application program for VxWorks platform is surveyed
The structural representation of test system.
Described system may include that keyword message setting module 300, it is judged that condition generation module 302,
Feedback information generation module 304, test result analysis module 306.
Relation function and each module of each module between is discussed in detail separately below.
Keyword message setting module 300, for should according to the test protocol test in described test terminal
With the keyword message setting test case in program.
Rule of judgment generation module 302, for generating according to described test protocol and described keyword message
The logical judgment condition corresponding with described keyword message.
Feedback information generation module 304, for according to described logical judgment condition and the described mesh received
The test packet that tested application program in mark terminal is sent generates test feedback information, and sends to described
Target terminal.
Test result analysis module 306, sends for the tested application program received on described target terminal
, according to the test result of described test feedback information generation;And described test result is analyzed,
Complete the Application testing of VxWorks platform.
In sum, the technical scheme in the embodiment of the present invention is according to test protocol and the key message of setting
Generate the logical judgment condition corresponding with keyword message, utilize logical judgment condition to tested application program
Test packet carry out automatic test, generate test feedback information, further to tested application program root
Generate test result according to test feedback information to be analyzed, at tested application program without application interface or application
In the case of interface is few, and tested application program exists more logic, it is achieved that the test of application program is certainly
Dynamicization.
Embodiment four
A kind of Application testing for VxWorks platform that the embodiment of the present invention provide is discussed in detail
System.Tested on target terminal of the test application program that described system is applied to utilize on test terminal
Application program carries out the environment tested, and described target terminal uses VxWorks platform, and described test is eventually
End uses windows platform, described test terminal to use wired mode to be connected with described target terminal.
With reference to Fig. 6, it is shown that in the embodiment of the present invention, a kind of application program for VxWorks platform is surveyed
The structural representation of test system.
Described system may include that keyword message setting module 400, it is judged that condition generation module 402,
Feedback information generation module 404, test result analysis module 406, functional module determines module 408, returns
Returning test module 410, communication mode selects module 412.
Relation function and each module of each module between is discussed in detail separately below.
Keyword message setting module 400, for should according to the test protocol test in described test terminal
With the keyword message setting test case in program.
Preferably, described keyword message may include that keyword name, key position, keyword
Numerical value and feedback packet labeling.
Rule of judgment generation module 402, for generating according to described test protocol and described keyword message
The logical judgment condition corresponding with described keyword message.
Feedback information generation module 404, for according to described logical judgment condition and the described mesh received
The test packet that tested application program in mark terminal is sent generates test feedback information, and sends to described
Target terminal.
Test result analysis module 406, sends for the tested application program received on described target terminal
, according to the test result of described test feedback information generation;And described test result is analyzed,
Complete the Application testing of VxWorks platform.
Preferably, the message field (MFLD) of described test result is solved by described test result analysis module 406
Analysis, obtains analysis result, and represents the tested application journey of described analysis result mark by the way of chart
The information of each functional module of sequence.
Functional module determines module 408, is used in described test result analysis module 406 described test
The message field (MFLD) of result resolves, and obtains analysis result, and represents described parsing by the way of chart
After the information of each functional module of the tested application program of result mark, according to described tested application journey
The information of each functional module of sequence determines the functional module being unsatisfactory for test request.
Regression test module 410, surveys for carrying out the described functional module being unsatisfactory for test request returning
Examination.
Communication mode selects module 412, at described keyword message setting module 400 according to test
Before agreement sets the keyword message of test case on the test application program of described test terminal, choosing
Select between the test application program on described test terminal and the tested application program on described target terminal
Communication mode.
In sum, the technical scheme in the embodiment of the present invention is according to test protocol and the key message of setting
Generate the logical judgment condition corresponding with keyword message, utilize logical judgment condition to tested application program
Test packet carry out automatic test, generate test feedback information, further to tested application program root
Generate test result according to test feedback information to be analyzed, at tested application program without application interface or application
In the case of interface is few, and tested application program exists more logic, it is achieved that the test of application program is certainly
Dynamicization.
For system embodiment, due to itself and embodiment of the method basic simlarity, so the comparison described
Simply, relevant part sees the part of embodiment of the method and illustrates.
Each embodiment in this specification all uses the mode gone forward one by one to describe, and each embodiment stresses
Be all the difference with other embodiments, between each embodiment, identical similar part sees mutually
?.
A kind of Application testing for VxWorks the platform above embodiment of the present invention provided
Method and system, is described in detail, and specific case used herein is to the principle of the present invention and reality
The mode of executing is set forth, the explanation of above example be only intended to help to understand the method for the present invention and
Core concept;Simultaneously for one of ordinary skill in the art, according to the thought of the present invention, specifically
All will change on embodiment and range of application, in sum, this specification content should not be understood
For limitation of the present invention.
Claims (10)
1. the applied program testing method for VxWorks platform, it is characterised in that described side
Method is applied to utilize the test application program on test terminal to enter the tested application program on target terminal
The environment of row test, described target terminal uses VxWorks platform, and described test terminal uses
Windows platform, described test terminal uses wired mode to be connected with described target terminal, described method
Including:
On the test application program of described test terminal, the key of test case is set according to test protocol
Word information;
Patrol corresponding with described keyword message is generated with described keyword message according to described test protocol
Collect Rule of judgment;
Send out with the tested application program on the described target terminal received according to described logical judgment condition
The test packet come generates test feedback information, and sends to described target terminal;
Receive what the tested application program on described target terminal was sent, raw according to described test feedback information
The test result become;And described test result is analyzed, complete the application journey of VxWorks platform
Sequence is tested.
Method the most according to claim 1, it is characterised in that described described test result is entered
Row is analyzed, including:
The message field (MFLD) of described test result is resolved, obtains analysis result, and by the side of chart
Formula represents the information of each functional module of the tested application program of described analysis result mark.
Method the most according to claim 2, it is characterised in that described to described test result
Message field (MFLD) resolves, and obtains analysis result, and represents described analysis result mark by the way of chart
After the information of each functional module of the tested application program known, described method also includes:
The information of each functional module according to described tested application program determines and is unsatisfactory for test request
Functional module;
The described functional module being unsatisfactory for test request is carried out regression test.
Method the most according to claim 1, it is characterised in that described according to test protocol in institute
Before stating the keyword message setting test case on the test application program of test terminal, described method is also
Including:
Select the test application program on described test terminal and the tested application journey on described target terminal
Communication mode between sequence.
Method the most according to claim 1, it is characterised in that described keyword message includes:
Keyword name, key position, keyword numerical value and feedback packet labeling.
6. the Application testing system for VxWorks platform, it is characterised in that described system
System is applied to utilize the test application program on test terminal to enter the tested application program on target terminal
The environment of row test, described target terminal uses VxWorks platform, and described test terminal uses
Windows platform, described test terminal uses wired mode to be connected with described target terminal, described system
Including:
Keyword message setting module, for according to the test protocol test application journey in described test terminal
The keyword message of test case is set in sequence;
Rule of judgment generation module, for generating and institute according to described test protocol and described keyword message
State the logical judgment condition that keyword message is corresponding;
Feedback information generation module, for whole according to described logical judgment condition and the described target received
The test packet that tested application program on end is sent generates test feedback information, and sends to described target
Terminal;
Test result analysis module, for receiving what the tested application program on described target terminal was sent,
The test result generated according to described test feedback information;And described test result is analyzed, complete
The Application testing of VxWorks platform.
System the most according to claim 6, it is characterised in that described test result analysis module
The message field (MFLD) of described test result is resolved, obtains analysis result, and exhibition by the way of chart
The information of each functional module of the tested application program of existing described analysis result mark.
System the most according to claim 7, it is characterised in that described system also includes:
Functional module determines module, at the described test result analysis module report to described test result
Word section resolves, and obtains analysis result, and represents described analysis result mark by the way of chart
Tested application program each functional module information after, according to each of described tested application program
The information of functional module determines the functional module being unsatisfactory for test request;
Regression test module, for carrying out regression test to the described functional module being unsatisfactory for test request.
System the most according to claim 6, it is characterised in that described system also includes:
Communication mode select module, at described keyword message setting module according to test protocol in institute
Before stating the keyword message setting test case on the test application program of test terminal, select described survey
Communication party between test application program in examination terminal and the tested application program on described target terminal
Formula.
System the most according to claim 6, it is characterised in that described keyword message includes:
Keyword name, key position, keyword numerical value and feedback packet labeling.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510138374.4A CN106155881B (en) | 2015-03-26 | 2015-03-26 | For the applied program testing method and system of VxWorks platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510138374.4A CN106155881B (en) | 2015-03-26 | 2015-03-26 | For the applied program testing method and system of VxWorks platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106155881A true CN106155881A (en) | 2016-11-23 |
CN106155881B CN106155881B (en) | 2018-09-11 |
Family
ID=57339683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510138374.4A Active CN106155881B (en) | 2015-03-26 | 2015-03-26 | For the applied program testing method and system of VxWorks platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106155881B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562637A (en) * | 2017-09-28 | 2018-01-09 | 网易有道信息技术(北京)有限公司 | It is a kind of for the method for software test, equipment, system and storage medium |
CN112231176A (en) * | 2020-10-14 | 2021-01-15 | 天津津航计算技术研究所 | Simple and convenient log recording method for VxWorks operating system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101013391A (en) * | 2007-02-02 | 2007-08-08 | 北京中星微电子有限公司 | Test platform and method for testing embedded file system and protocol |
CN101145130A (en) * | 2007-08-02 | 2008-03-19 | 中兴通讯股份有限公司 | Simple network management protocol software test device and test method |
US20080133964A1 (en) * | 2006-09-11 | 2008-06-05 | Rogers Timothy A | Remote test station configuration |
-
2015
- 2015-03-26 CN CN201510138374.4A patent/CN106155881B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080133964A1 (en) * | 2006-09-11 | 2008-06-05 | Rogers Timothy A | Remote test station configuration |
CN101013391A (en) * | 2007-02-02 | 2007-08-08 | 北京中星微电子有限公司 | Test platform and method for testing embedded file system and protocol |
CN101145130A (en) * | 2007-08-02 | 2008-03-19 | 中兴通讯股份有限公司 | Simple network management protocol software test device and test method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107562637A (en) * | 2017-09-28 | 2018-01-09 | 网易有道信息技术(北京)有限公司 | It is a kind of for the method for software test, equipment, system and storage medium |
CN107562637B (en) * | 2017-09-28 | 2021-12-21 | 网易有道信息技术(北京)有限公司 | Method, device, system and storage medium for software testing |
CN112231176A (en) * | 2020-10-14 | 2021-01-15 | 天津津航计算技术研究所 | Simple and convenient log recording method for VxWorks operating system |
CN112231176B (en) * | 2020-10-14 | 2023-03-03 | 天津津航计算技术研究所 | Simple and convenient log recording method for VxWorks operating system |
Also Published As
Publication number | Publication date |
---|---|
CN106155881B (en) | 2018-09-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106095673B (en) | Automated testing method and system based on WEB interface | |
US20190050428A1 (en) | System and method for image annotation | |
CN109522218A (en) | Interface test method, device, computer equipment and storage medium | |
US7512954B2 (en) | Method and mechanism for debugging a series of related events within a computer system | |
CN104156313B (en) | Method for automatically generating Web service testing case | |
CN105450476B (en) | A kind of regression test system and test method | |
CN109542412A (en) | Interface message generation method, device, computer equipment and storage medium | |
CN108446221A (en) | System detection method, device, computer equipment and storage medium | |
CN103678531A (en) | Friend recommendation method and friend recommendation device | |
CN110795697B (en) | Method and device for acquiring logic expression, storage medium and electronic device | |
CN109670081A (en) | The method and device of service request processing | |
CN107784068A (en) | Acquisition methods, device, storage medium, processor and the service end of data variation | |
US9367432B2 (en) | Testing system | |
CN113238929B (en) | Code testing method and device based on Mock data, electronic equipment and storage medium | |
CN108074033A (en) | Processing method, system, electronic equipment and the storage medium of achievement data | |
CN108984208A (en) | A kind of function document generating method, apparatus and system | |
CN109885744A (en) | Web data crawling method, device, system, computer equipment and storage medium | |
CN113722020A (en) | Interface calling method, device and computer readable storage medium | |
CN111831542A (en) | API application debugging method and device and storage medium | |
CN106294825A (en) | A kind of excel data managing method and system, client, service end | |
CN106155881A (en) | Applied program testing method and system for VxWorks platform | |
CN110427277A (en) | Data verification method, device, equipment and storage medium | |
CN115599359A (en) | Code generation method, device, equipment and medium | |
JP2022101455A (en) | Method and device for analyzing failure-inducing interaction within pattern base sos | |
CN109359707A (en) | Processing method, device, computer equipment and the storage medium of ground sample information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190930 Address after: 102308 No. 1, Yongan Road, Shilong Economic Development Zone, Mentougou, Beijing Patentee after: Beijing spaceflight morning letter Technology Co., Ltd. Address before: 102308 No. 1, Yongan Road, Shilong Economic Development Zone, Mentougou, Beijing Patentee before: China Aerospace Ke Gong group the 4th research institute's command automation technical research and application center |
|
TR01 | Transfer of patent right |