CN105824757B - Test method and system based on robot operating system - Google Patents
Test method and system based on robot operating system Download PDFInfo
- Publication number
- CN105824757B CN105824757B CN201610158156.1A CN201610158156A CN105824757B CN 105824757 B CN105824757 B CN 105824757B CN 201610158156 A CN201610158156 A CN 201610158156A CN 105824757 B CN105824757 B CN 105824757B
- Authority
- CN
- China
- Prior art keywords
- test
- test case
- brake
- case
- operating system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000010998 test method Methods 0.000 title claims abstract description 19
- 238000012360 testing method Methods 0.000 claims abstract description 277
- 239000000284 extract Substances 0.000 claims abstract description 4
- 238000003780 insertion Methods 0.000 claims abstract description 4
- 230000037431 insertion Effects 0.000 claims abstract description 4
- 238000000605 extraction Methods 0.000 claims description 24
- 238000000034 method Methods 0.000 claims description 21
- 238000004321 preservation Methods 0.000 claims description 5
- 230000006870 function Effects 0.000 abstract description 76
- 230000006641 stabilisation Effects 0.000 abstract description 3
- 238000011105 stabilization Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 230000008569 process Effects 0.000 description 7
- 238000004458 analytical method Methods 0.000 description 5
- 238000011990 functional testing Methods 0.000 description 5
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 5
- 235000013399 edible fruits Nutrition 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000012423 maintenance Methods 0.000 description 3
- 239000000203 mixture Substances 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000002996 emotional effect Effects 0.000 description 1
- 239000013067 intermediate product Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
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)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of functionality test method and system based on for robot operating system, robot operating system insertion multiple functions, test method includes:Brake is treated in crawl robot operating system;Extract and treat the corresponding test case of brake from test case knowledge base, wherein, preserved in test case knowledge base respectively with the corresponding test case of each function in robot operating system;Circulation following steps are to traversal with treating the corresponding all test cases of brake:Call testing service interface and test case is uploaded to cloud server and parsed, obtained and the corresponding output result of the test case;Output result is compared with expected results, is obtained and the corresponding comparison result of test case;According to the corresponding comparison result of all test cases through traversal, determine to treat the test result of brake.This invention ensures that in robot operating system function stabilization.
Description
Technical field
The present invention relates to intelligent robot technology field, more particularly to a kind of test side based on robot operating system
Method, further relates to a kind of test system based on robot operating system.
Background technology
For robot operating system towards developer, developer can allow the robot mankind using robot operating system
Thinking ability, emotional ability and learning ability etc..Robot operating system provides the setting of object manipulator function for developer
And the instrument of research and development.
However, also functional test is carried out without for robot operating system in current intelligent robot technology field
Test method, so that the function of being unfavorable for intelligent operating system is safeguarded.
The content of the invention
The technical problems to be solved by the invention are:Also grasped in current intelligent robot technology field without for robot
Make system and carry out the test method of functional test, so that the function of being unfavorable for intelligent operating system is safeguarded.
In order to solve the above technical problem, the present invention provides a kind of test method based on robot operating system and it is
System.
According to an aspect of the invention, there is provided a kind of test method based on robot operating system, the machine
People's operating system is embedded in multiple functions, and the test method includes:
Capture in the robot operating system and treat brake;
Extraction treats the corresponding test case of brake with described from test case knowledge base, wherein, the test is used
Example knowledge base in preserve respectively with the corresponding test case of each function in the robot operating system;
Circulation following steps treat the corresponding all test cases of brake to traversal with described:
Call testing service interface and the test case is uploaded to cloud server and parsed, obtained and the survey
The corresponding output result of example on probation;
The output result is compared with expected results, is obtained and the corresponding comparison result of the test case;
According to the corresponding comparison result of all test cases through traversal, the test result for treating brake is determined.
Preferably, the mark of each function in the robot operating system is preserved in the test case knowledge base
Know symbol and with the corresponding test case of the identifier;Extraction treats brake phase with described in the knowledge base from test case
The step of corresponding test case, including:
Determine the identifier for treating brake;
Extraction and the corresponding test case of the identifier in the test case knowledge base.
Preferably, each treat a brake individually corresponding thread, completed to treat brake for this by the thread
Test.
Preferably, the test case includes representing to require to provide the positive test use-case serviced, represents that refusal provides
The negative testing use-case of service and expression depart from one or more in the marginal testing use-case of service.
Preferably, it is one or more in the test case knowledge base, the output result and the test result
Preserve in the database.
According to another aspect of the present invention, there is provided a kind of test system based on robot operating system, its feature
It is, the robot operating system is embedded in multiple functions, and the test system includes:
Treat brake handling module, be arranged to capture in the robot operating system and treat brake;
Test case extraction module, is arranged to the extraction from test case knowledge base and treats the corresponding survey of brake with described
Example on probation, wherein, preserved in the test case knowledge base respectively with each function phase in the robot operating system
Corresponding test case;
Test case parsing module, is arranged to call testing service interface and the test case is uploaded to cloud service
Device is parsed, and is obtained and the corresponding output result of the test case;
Comparing module, is arranged to the output result being compared with expected results, obtains and the test case phase
Corresponding comparison result;
The test case parsing module and the comparing module searching loop treat that brake is corresponding all with described
Test case;
Test result determining module, is arranged to, according to the corresponding comparison result of all test cases through traversal, determine institute
State the test result for treating brake.
Preferably, the mark of each function in the robot operating system is preserved in the test case knowledge base
Know symbol and with the corresponding test case of the identifier;The test case extraction module includes:
Identifier determination unit, is arranged to determine the identifier for treating brake;
Test case extraction unit, is arranged to extract in the test case knowledge base corresponding with the identifier
Test case.
Preferably, each treat a brake individually corresponding thread, completed to treat brake for this by the thread
Test.
Preferably, the test case includes representing to require to provide the positive test use-case serviced, represents that refusal provides
The negative testing use-case of service and expression depart from one or more in the marginal testing use-case of service.
Preferably, the above-mentioned test system based on robot operating system further includes database, and the test case is known
Know storehouse, it is described output result and the test result in one or more preservations be in the database.
Compared with prior art, one or more of such scheme embodiment can have the following advantages that or beneficial to effect
Fruit:
The present invention, to treating that brake is tested in robot operating system, ensure that robot is grasped using test case
Make the stabilization of function in system.In addition, the present invention realizes the automatic test of robot operating system, manpower is greatlyd save
Cost, and the flexibility of Chinese language and the APP of robot operating system are rich so that the scope and scale of the test
With certain magnitude.Further more, the test structure of the present invention is simple, testing efficiency is high.
Other features and advantages of the present invention will be illustrated in the following description, and partly becomes from specification
It is clear that or understood by implementing the present invention.The purpose of the present invention and other advantages can be by wanting in specification, right
Specifically noted structure is sought in book and attached drawing to realize and obtain.
Brief description of the drawings
Attached drawing is used for providing a further understanding of the present invention, and a part for constitution instruction, the reality with the present invention
Apply example to be provided commonly for explaining the present invention, be not construed as limiting the invention.In the accompanying drawings:
Fig. 1 shows the flow diagram of test method of the embodiment of the present invention based on robot operating system;
Fig. 2 is shown in the embodiment of the present invention extracts and treats that the corresponding test of brake is used from test case knowledge base
The flow diagram of the method for example;
Fig. 3 shows the test process schematic diagram tested the singing function of robot operating system;
Fig. 4 shows the structure diagram of test system of the embodiment of the present invention based on robot operating system;And
Fig. 5 shows the structure diagram of test case extraction module in the embodiment of the present invention.
Embodiment
Carry out the embodiment that the present invention will be described in detail below with reference to accompanying drawings and embodiments, how the present invention is applied whereby
Technological means solves technical problem, and that reaches technique effect realizes that process can fully understand and implement according to this.Need to illustrate
As long as not forming conflict, each embodiment in the present invention and each feature in each embodiment can be combined with each other,
The technical solution formed is within protection scope of the present invention.
The technical problems to be solved by the invention are:Also grasped in current intelligent robot technology field without for robot
Make system and carry out the test method of functional test, so that the function of being unfavorable for robot operating system is safeguarded.If robot
Function in operating system lacks effective functional test, then the operation of the function is probably because the border issue of itself
Impacted with other functions.
Below by taking the singing function (singing APP) in robot operating system as an example, illustrate to robot operating system
The importance of functional maintenance.
The first situation:Function (application program, APP) border issue of itself, the i.e. border of function in itself transport function
Influence caused by row.Assuming that represent that the password of request singing function service can similar following saying:First song is sung to me, due to language
The border of speech is very difficult to define, therefore example below can produce singing function certain interference:<1>Do not sing to me;<2>I
Want to go to singing;<3>You like singing.In above saying,<1>Clause saying with " singing first song to me " is much like, but in
Between containing negative implication vocabulary;<2>Oneself wish is expressed, but does not pray making meaning;<3>Inquire attribute.This similar saying
All offer service should be refused by singing function.
The second situation, other functions (application program) influence caused by original function.After the completion of singing function hair,
The function of reading aloud poem is provided again.But in Chinese, grammatically both expression may have similar structure.Said below such as
Method:<1>I wants to listen lustily water;<2>I wants to listen quiet night to think.In above saying,<1>With<2>The form of the composition be that " I wants to listen
Xxx ", but according to the thinking of common people,<1>It is that program request is carried out to the song " lustily water " of Liu Dehua, belonging to song function should
The service of the offer;And<2>It is then that program request is carried out to the poem " quiet night thinks " of li po, belongs to and read aloud the clothes that poem function should provide
Business.
As can be seen that the operation that the border issue of function in itself and other functions are easy to function impacts, therefore
It is necessary to develop a kind of test method based on robot operating system, tieed up with the function to robot operating system
Shield, so as to promote developer to repair or improve the function of robot operating system, and then can be to avoid such as
The factor of function oneself boundary and other functions treats the influence of brake.
In order to solve the above technical problems, an embodiment of the present invention provides a kind of test side based on robot operating system
Method.
Embodiment one
Fig. 1 shows the flow diagram of test method of the embodiment of the present invention based on robot operating system, robot
It is embedded with multiple functions in operating system, such as singing function, function of telling a story, weather lookup function P, reads aloud poem function
Deng.As shown in Figure 1, the test method of the present embodiment mainly includes step 101 to step 106.
In a step 101, capture in robot operating system and treat brake.
Specifically, at the beginning of testing robot operating system, it is necessary first to determine in robot operating system
Treat brake.Treat any one function that brake can have with selected as robot operating system.
In a step 102, the corresponding test case of brake is extracted and treated from test case knowledge base, wherein, survey
Preserved in example knowledge base on probation respectively with the corresponding test case of each function in robot operating system.For being carried
The each test case taken, performs step 103 and step 104.That is, each test case extracted for this step,
The processing of following steps 103 and step 104 is carried out, to obtain the comparison result of each test case of this step extraction.
In step 103, call testing service interface and by currently processed test case be uploaded to cloud server into
Row parsing, obtains and the corresponding output result of the test case.
Specifically, for currently processed test case, system calls testing service interface and by the test case
The cloud server of robot operating system is uploaded to, cloud server is using the test case as input data, to the test
Use-case is parsed.In detail, cloud server first parses the particular content entrained by test case, determines and is somebody's turn to do
The corresponding user view of test case.Then corresponding function (application program) is notified to provide clothes according to definite user view
Business, records and returns to information caused by offer service.Here, the service obtained according to user view and follow-up service process
The information of middle generation belongs to and the corresponding output result of the test case.
At step 104, output result is compared with expected results, obtained and test case is corresponding compares knot
Fruit.
In step 105, judge whether traversal and treat the corresponding all test cases of brake.
In the case where judging not travel through and treat the corresponding all test cases of brake, i.e., with treating brake phase
In corresponding all test cases, in the case of still suffering from the test case without step 103 and step 104 processing, return is held
Row step 103 and step 104.In this way, circulation performs step 103 to step 105, it can obtain and treat that successively brake is corresponding
The comparison result of each test case.
In step 106, in the case where judging to have traveled through completion all test cases corresponding with treating brake, root
According to the corresponding comparison result of all test cases through traversal, determine to treat the test result of brake.
Using the test method based on robot operating system described in the present embodiment, robot is grasped using test case
Make to treat that brake is tested in system, ensure that the stabilization of function in robot operating system.In addition, the present embodiment is realized
The automatic test of robot operating system, greatlys save human cost, and flexibility and the machine of Chinese language
The APP of people's operating system is rich so that the scope and scale of the test have certain magnitude.Further more, the testing jig of the present embodiment
Structure is simple, and testing efficiency is high.
Embodiment two
The present embodiment further optimizes the extracting method of test case on the basis of embodiment one.In this reality
Apply in example, each function in robot operating system is uniquely identified, each function is marked with corresponding one
It is corresponding to know symbol.That is, identifier is to be used to mark each different function (application program) in robot operating system
Used unique identifying number, preserve in test case knowledge base the identifier of each function in robot operating system with
And with the corresponding test case of the identifier.
Fig. 2 is shown in the embodiment of the present invention extracts and treats that the corresponding test of brake is used from test case knowledge base
The flow diagram of the method for example.As shown in Fig. 2, extracted in the slave test case knowledge base of the present embodiment with treating that brake is opposite
The method for the test case answered, mainly includes step 201 and step 202.
In step 201, determine to treat the identifier of brake.
In step 202, extraction and the corresponding test case of identifier in test case knowledge base.
In the present embodiment, each function of supporting robot operating system (Turing OS) is respectively with identifier
The form of Appid is marked, by the Appid values for judging to return come efficiently distinguish password whether into correlation function into
Row parsing.
Embodiment three
The present embodiment has done further restriction on the basis of above-mentioned any embodiment, to the main body for completing test.At this
In embodiment, a brake individually corresponding thread is each treated, completed to treat the test of brake for this by the thread.
The present embodiment is run at the same time using multiple threads, multiple concurrent testings for treating brake is realized, for each work(
Can test process be completely independent, do not have and affect one another for the test result of each function, and surveyed greatly reducing
While trying the cycle, the validity and reliability of test ensure that.
Example IV
The present embodiment has done further restriction on the basis of above-mentioned any embodiment, to the attribute of test case.At this
In embodiment, test case includes one or several in positive test use-case, negative testing use-case and marginal testing use-case.Tool
Body, positive test case representation requires to provide the test case of service.That is, positive test use-case is to require to carry
For the saying of service, for example the relevant saying list of service sung is required, such as test case " I wants to go to singing ".Reversely survey
Try the test case that case representation refusal provides service.That is, negative testing use-case is to require not provide service
Saying, such as the relevant saying list of service that do not sing, such as test case " not singing to me ".Marginal testing represents de-
From the test case of service.That is, marginal testing use-case be it is all need not start the test case of service, such as test
Use-case " you like singing ".
The test case of test is divided into positive, reverse and border three classes by the present embodiment, can be treated more fully hereinafter
Brake carries out Validity Test, so as to effectively avoid the border issue of function that this specification mentions in itself.As can be seen that
Each function that the present embodiment supports robot operating system is respectively provided with positive, reverse, side based on Chinese language is accustomed to
Three kinds of test cases are carried out interpretation of result with different standards, ensure the process in new function exploitation by three kinds of boundary test case
Neutralize and test support is given in the maintenance in later stage.Embodiment improves the functional test effect for robot operating system
Fruit, effectively improves user experience.
Embodiment five
The present embodiment has done further restriction on the basis of any of the above embodiment to the storage mode of data.In this reality
Apply in example, one or more preservations in test case knowledge base, output result and test result are in the database.
Since the automatic test described in the present embodiment is managed based on database, this is explained first
Table result in test method.Table is broadly divided into four classes, test access (A), test case (Bn, D), test result (Cn, E) and
Analysis result (F).
First, Table A, it summarizes function all in robot operating system, this is the present embodiment automatic test side
The entrance of method.
Following parameter is mainly preserved in Table A:Id, it represents the test unique reference number of application;Code, its correspondence are each
The analysis result unique reference number of function;Explain, it represents the title of each function and parsing;State, it represents some work(
Whether can be run in this test, some function whether be this test treat brake;Tablename, it is corresponded to should
Table name where the test case of function.
Second, table B1, it is stored and the corresponding all positive test use-cases of function and criterion (expected results).
3rd, table B2, it is stored and the corresponding all negative testing use-cases of function and criterion (expected results).
4th, table D, it is stored and the corresponding all marginal testing use-cases of function and criterion (expected results).
5th, table C1, its storage table B1's as a result, i.e. and the corresponding output result of positive test use-case.
6th, table C2, its storage table B2's as a result, i.e. and the corresponding output result of negative testing use-case.
7th, table E, its storage table D's as a result, i.e. and the corresponding output result of marginal testing use-case.
8th, table F, its storage table Bn and the result (i.e. comparison result) of table Cn and table D and table E contrast statistics.
In the present embodiment, table B1, B2 and D together constitutes test case knowledge base.
The present embodiment is equal by test case, test intermediate product, test result, and analysis result by means of database
Preserve respectively, have certain adaptive ability to the various fortuitous events being likely encountered in test process.The present embodiment uses
Abundant daily record, is most intuitively analyzed to test result, so as to ensure that the practicality of test.In addition, all tests rely on number
It is driven according to storehouse, whole test frame autgmentability is strong, safeguards simply, and increase new function needs only to maintenance test use-case i.e.
Can.
Embodiment six
The present embodiment combination Fig. 3, and illustrate with an instantiation test method described in above-described embodiment.
Tested for the singing function that this specification provides, test process is:
First, a positive test use-case is taken out from positive test use-case list B1 (toy_song lists) " to sing to me
The lustily water of one head Liu De China ".
Then, which is called to the testing service interface of Turing machine device people's operating system, and uploads high in the clouds
Server (cloud) is parsed.Cloud server parses the content of the test case, determines user view to want to listen
Song, it is then determined that the function of service to be supplied is singing function, finally returns to the corresponding identifier of singing function and to be supplied
Service relevant information (such as response to user, song title, singer etc.).
3rd, the analysis result for receiving cloud server is as follows:
{"code":401000,"app_id":100101,"text":" good, me please be listen to sing ", " song_name ":" forget
Feelings water ", " singer_name ":" Liu Dehua " }
4th, the C1 tables of singing function (singing APP) are established automatically.Following information is preserved in table:Id, it is used for test
The label of example;Cmd, it corresponds to the text (text) in feedback result, for recording text export as a result, for example " it is good, please listen
I sings ";App_id, it is used for the identification number for marking the function of the service of offer, such as 100101;Song_name, it is used to record
Song title, such as " lustily water ";Singer_name, it is used to record singer's title, such as " Liu Dehua ".
5th, the data result (Cn, E table) for submitting server to obtain is contrasted with expected results (Bn, D table), will
Comparison result is stored in F tables.Then collect F tables, generate journal file and statistical result, automatic mail of sending out is responsible for related
People's feedback test result.
Embodiment seven
A kind of test system based on robot operating system is present embodiments provided, robot operating system insertion is a variety of
Function.Fig. 4 shows the structure diagram of test system of the embodiment of the present invention based on robot operating system.As shown in figure 4,
The test system of the present embodiment mainly includes treating brake handling module 301, test case extraction module 302, test case solution
Analyse module 303, comparing module 304 and test result determining module 305.
Specifically, treat brake handling module 301, be arranged to treat brake in crawl robot operating system.
Test case extraction module 302, is arranged to extract and treat the corresponding survey of brake from test case knowledge base
Example on probation, wherein, preserved in test case knowledge base respectively with the corresponding survey of each function in robot operating system
Example on probation;
Test case parsing module 303, is arranged to call testing service interface and test case is uploaded to cloud service
Device is parsed, and is obtained and the corresponding output result of test case;
Comparing module 304, is arranged to output result being compared with expected results, obtains corresponding with test case
Comparison result;
Test case parsing module 303 and 304 searching loop of comparing module are with treating that the corresponding all tests of brake are used
Example:
Test result determining module 305, is arranged to according to the corresponding comparison result of all test cases through traversal, determines
Treat the test result of brake.
In the present embodiment, the identifier of each function in robot operating system is preserved in test case knowledge base
And with the corresponding test case of the identifier.It is test case extraction module 302 in the embodiment of the present invention with reference to Fig. 5
Structure diagram.The test case extraction module 302 of the present embodiment includes identifier determination unit 401 and test case extraction is single
Member 402.
Specifically, identifier determination unit 401, is arranged to determine the identifier for treating brake.
Test case extraction unit 402, is arranged to extraction and the corresponding test of identifier in test case knowledge base
Use-case.
In the present embodiment, each treat a brake individually corresponding thread, completed to treat brake for this by thread
Test.
In the present embodiment, test case includes representing to require to provide the positive test use-case serviced, represents that refusal provides
The negative testing use-case of service and expression depart from one or more in the marginal testing use-case of service.
In the present embodiment, the test system based on robot operating system further includes database, test case knowledge base,
One or more preservations in output result and test result are in the database.
It is worth noting that, the specific refinement of above-mentioned each mould operation in the block, reference can be made to above in conjunction with Fig. 1 to Fig. 3 to this
The explanation of inventive method, in this not go into detail.
Important composition of the test system of the present embodiment as robot operating system, is ensured in robot operating system
The important guarantee that function of application is stablized.Using the test system based on robot operating system described in the present embodiment, profit
With test case to treating that brake is tested in robot operating system, the steady of function in robot operating system ensure that
It is fixed.In addition, the present embodiment realizes the automatic test of robot operating system, human cost, and Chinese are greatlyd save
The flexibility of language and the APP of robot operating system it is rich so that the test scope and scale there is certain magnitude.
Further more, the test structure of the present embodiment is simple, testing efficiency is high.
Those skilled in the art should be understood that above-mentioned each module of the invention or each step can use general calculating
Device realizes that they can be concentrated on single computing device, or be distributed in the network that multiple computing devices are formed
On, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to be stored in storage
Performed in device by computing device, they are either fabricated to each integrated circuit modules respectively or will be more in them
A module or step are fabricated to single integrated circuit module to realize.In this way, the present invention be not restricted to any specific hardware and
Software combines.
While it is disclosed that embodiment as above, but the content only to facilitate understand the present invention and adopt
Embodiment, is not limited to the present invention.Any those skilled in the art to which this invention pertains, are not departing from this
On the premise of the disclosed spirit and scope of invention, any modification and change can be made in the implementing form and in details,
But protection scope of the present invention, still should be subject to the scope of the claims as defined in the appended claims.
Claims (10)
1. a kind of test method based on robot operating system, it is characterised in that the robot operating system insertion is a variety of
Function, the test method include:
Capture in the robot operating system and treat brake;
Extraction treats the corresponding test case of brake with described from test case knowledge base, wherein, the test case is known
Know storehouse in preserve respectively with the corresponding test case of each function in the robot operating system;
Circulation following steps treat the corresponding all test cases of brake to traversal with described:
Call testing service interface and the test case is uploaded to cloud server and parsed, obtain using with the test
The corresponding output result of example;
The output result is compared with expected results, is obtained and the corresponding comparison result of the test case;
According to the corresponding comparison result of all test cases through traversal, the test result for treating brake is determined.
2. according to the method described in claim 1, it is characterized in that, preserve the robot in the test case knowledge base
The identifier of each function in operating system and with the corresponding test case of the identifier;It is described from test case knowledge
Extraction and described the step for the treatment of brake corresponding test case in storehouse, including:
Determine the identifier for treating brake;
Extraction and the corresponding test case of the identifier in the test case knowledge base.
3. according to the method described in claim 1, it is characterized in that, each treat a brake individually corresponding thread, by described
Thread is completed to treat the test of brake for this.
4. according to the method in any one of claims 1 to 3, it is characterised in that the test case includes representing to require
The positive test use-case of service is provided, represents that refusal provides the negative testing use-case of service and represents the marginal testing for departing from service
It is one or more in use-case.
5. according to the method in any one of claims 1 to 3, it is characterised in that the test case knowledge base, described defeated
Go out one or more preservations in result and the test result in the database.
6. a kind of test system based on robot operating system, it is characterised in that the robot operating system insertion is a variety of
Function, the test system include:
Treat brake handling module, be arranged to capture in the robot operating system and treat brake;
Test case extraction module, is arranged to the extraction from test case knowledge base and treats that the corresponding test of brake is used with described
Example, wherein, preserved in the test case knowledge base corresponding with each function in the robot operating system respectively
Test case;
Test case parsing module, be arranged to call testing service interface and by the test case be uploaded to cloud server into
Row parsing, obtains and the corresponding output result of the test case;
Comparing module, is arranged to the output result being compared with expected results, obtains corresponding with the test case
Comparison result;
The test case parsing module and the comparing module searching loop treat the corresponding all tests of brake with described
Use-case;
Test result determining module, is arranged to according to the corresponding comparison result of all test cases through traversal, determines described treat
The test result of brake.
7. system according to claim 6, it is characterised in that preserve the robot in the test case knowledge base
The identifier of each function in operating system and with the corresponding test case of the identifier;The test case extracts mould
Block includes:
Identifier determination unit, is arranged to determine the identifier for treating brake;
Test case extraction unit, is arranged to extraction and the corresponding test of the identifier in the test case knowledge base
Use-case.
8. system according to claim 6, it is characterised in that it is each to treat a brake individually corresponding thread, by described
Thread is completed to treat the test of brake for this.
9. the system according to any one of claim 6 to 8, it is characterised in that the test case includes representing to require
The positive test use-case of service is provided, represents that refusal provides the negative testing use-case of service and represents the marginal testing for departing from service
It is one or more in use-case.
10. the system according to any one of claim 6 to 8, it is characterised in that further include database, the test is used
One or more preservations in example knowledge base, the output result and the test result are in the database.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610158156.1A CN105824757B (en) | 2016-03-18 | 2016-03-18 | Test method and system based on robot operating system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610158156.1A CN105824757B (en) | 2016-03-18 | 2016-03-18 | Test method and system based on robot operating system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105824757A CN105824757A (en) | 2016-08-03 |
CN105824757B true CN105824757B (en) | 2018-05-01 |
Family
ID=56524068
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610158156.1A Active CN105824757B (en) | 2016-03-18 | 2016-03-18 | Test method and system based on robot operating system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105824757B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106021114B (en) * | 2016-06-02 | 2018-07-10 | 北京光年无限科技有限公司 | Towards the automated testing method and system of intelligent robot |
CN108804300A (en) * | 2017-04-27 | 2018-11-13 | 龙芯中科技术有限公司 | Automated testing method and system |
CN107894762B (en) * | 2017-11-09 | 2018-08-28 | 重庆鲁班机器人技术研究院有限公司 | Matter emulation tests system |
CN109885499B (en) * | 2019-02-27 | 2022-07-26 | 弗徕威智能机器人科技(上海)有限公司 | Robot automatic test system and test method |
CN115509900B (en) * | 2022-09-15 | 2024-02-02 | 上海宜软检测技术有限公司 | Method and system for generating functional test cases |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141270A (en) * | 2006-09-05 | 2008-03-12 | 阿里巴巴公司 | Method and system for instant communication software client terminal to customize robot |
KR20120051933A (en) * | 2010-11-15 | 2012-05-23 | 성균관대학교산학협력단 | System and method for evaluating performance robot software componet based on simulator |
CN104898459A (en) * | 2015-04-13 | 2015-09-09 | 南京阿凡达机器人科技有限公司 | Robot test system and robot test method based on command line interface |
CN105068661A (en) * | 2015-09-07 | 2015-11-18 | 百度在线网络技术(北京)有限公司 | Man-machine interaction method and system based on artificial intelligence |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101132560B1 (en) * | 2010-06-09 | 2012-04-03 | 강원대학교산학협력단 | System and method for automatic interface testing based on simulation for robot software components |
-
2016
- 2016-03-18 CN CN201610158156.1A patent/CN105824757B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101141270A (en) * | 2006-09-05 | 2008-03-12 | 阿里巴巴公司 | Method and system for instant communication software client terminal to customize robot |
KR20120051933A (en) * | 2010-11-15 | 2012-05-23 | 성균관대학교산학협력단 | System and method for evaluating performance robot software componet based on simulator |
CN104898459A (en) * | 2015-04-13 | 2015-09-09 | 南京阿凡达机器人科技有限公司 | Robot test system and robot test method based on command line interface |
CN105068661A (en) * | 2015-09-07 | 2015-11-18 | 百度在线网络技术(北京)有限公司 | Man-machine interaction method and system based on artificial intelligence |
Non-Patent Citations (1)
Title |
---|
"基于机器人操作系统的新型功能模块设计及软件开发支撑技术研究";仲跻韶;《中国优秀硕士学位论文全文数据库 信息科技辑》;20160315(第03期);第五章 * |
Also Published As
Publication number | Publication date |
---|---|
CN105824757A (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105824757B (en) | Test method and system based on robot operating system | |
CN106328166B (en) | Human-computer dialogue abnormality detection system and method | |
WO2019084810A1 (en) | Information processing method and terminal, and computer storage medium | |
CN108446286A (en) | A kind of generation method, device and the server of the answer of natural language question sentence | |
CN106528613B (en) | Intelligent answer method and device | |
CN108664599B (en) | Intelligent question-answering method and device, intelligent question-answering server and storage medium | |
RU2005107522A (en) | DISPLAYING TABLES BY USING TEAMS IN NATURAL LANGUAGE | |
CN105893478A (en) | Tag extraction method and equipment | |
CN106503074B (en) | Topic refining and classifying method | |
RU2007139777A (en) | LIMITED PORTALS ("WALL-Walled GARDENS") | |
CN108932278B (en) | Man-machine conversation method and system based on semantic framework | |
CN106326307A (en) | Language interaction method | |
CN109101583A (en) | A kind of knowledge mapping construction method and system for non-structured text | |
CN109033390A (en) | The method and apparatus for automatically generating similar question sentence | |
CN106471502A (en) | Intension recognizing method based on water conservancy diversion and system | |
CN111125145A (en) | Automatic system for acquiring database information through natural language | |
Hua | Study on knowledge acquisition techniques | |
CN106021114B (en) | Towards the automated testing method and system of intelligent robot | |
CN105787010B (en) | Acquisition process and method for pushing and system based on personal data | |
CN105117980B (en) | A kind of automatic evaluation method of grid equipment state | |
CN109993053A (en) | Electronic device, interview householder method and storage medium based on micro- Expression Recognition | |
CN108920385A (en) | Matchmaker provides platform data automatization test system and test method | |
CN109086440A (en) | A kind of method and system of knowledge extraction | |
Chen et al. | A Study of Mental Health Self-Monitoring Based on the Combination of BERT and Low-Code Platform | |
CN112364226A (en) | Interactive information acquisition method and system based on dynamic content analysis |
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 | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right | ||
PE01 | Entry into force of the registration of the contract for pledge of patent right |
Denomination of invention: Testing methods and systems based on robot operating systems Granted publication date: 20180501 Pledgee: Haidian Beijing science and technology enterprise financing Company limited by guarantee Pledgor: Beijing Guangnian Infinite Technology Co.,Ltd. Registration number: Y2024110000239 |