CN102609357A - Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards - Google Patents
Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards Download PDFInfo
- Publication number
- CN102609357A CN102609357A CN2012100372683A CN201210037268A CN102609357A CN 102609357 A CN102609357 A CN 102609357A CN 2012100372683 A CN2012100372683 A CN 2012100372683A CN 201210037268 A CN201210037268 A CN 201210037268A CN 102609357 A CN102609357 A CN 102609357A
- Authority
- CN
- China
- Prior art keywords
- test cases
- test
- code
- configuration
- module
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Abstract
The invention provides a method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards. Each test case includes a core code module and a peripheral test case code module, each core code module includes all functional modules except for a configuration code module of the test case, each peripheral test case code module includes the configuration code module of the test case and a test case user code module, all the peripheral test case code modules form a test case library, the modules are reasonably combined in step, and accordingly description files of configuration tools are stored and maintained instead of configuration case codes capable of being directly copied in a target project. The description files of the configuration tools are directly used by users, so that when configuration items of the test cases need to be adjusted, the user only needs to configure functions via a test tool meeting the AUTOSAR standards, configuration conditions of a user interface are directly amended and stored, and then the description files of the configuration tools can be updated without changing and replacing other content in the test case library.
Description
Technical field
The present invention relates to realization mechanism, relate in particular to the test cases dynamic fixing method that meets AUTOSAR standard automatic test to the embedded system automatic test.
Background technology
AUTOSAR (AUTomotive Open System Architecture) is a standardized open automobile software architecture.Software based on the AUTOSAR standard development is to adopt modular method to realize.The user is when using AUTOSAR system software; At first will be according to its concrete application demand; Use the AUTOSAR configuration tool that the parameter and the function of each required sub-module are configured, generate corresponding case code, and in the User Defined part of case code, add personal code work.Based on this, when carrying out the AUTOSAR software test, each test cases can be divided into: core code, test cases code.Wherein, the test cases code is divided into again: test cases personal code work and test cases configuration code.
The ECU configuration tool that meets the AUTOSAR standard is to meet one of ingredient of the automotive electronics SDK chain of AUTOSAR standard.Its major function is the parameter of the part of basic software under the configuration AUTOSAR framework, and generates test cases configuration code mentioned above based on configuration information.
Along with the complexity of automobile embedded software is increasingly high.Correspondingly, the testing requirement to them has also increased.Use automatic test can improve software test efficient, guarantee that simultaneously test result has stability.Especially be carried out to repeatedly test and the very high task of some step repeatability for needs, relatively be suitable for making in an automated fashion accomplishing.
In the test process of software, need to safeguard a test cases storehouse.Particularly, be directed to the test of AUTOSAR system software, the maintenance test case library is exactly dissimilar according to AUTOSAR test cases code, reasonably organizes, stores, manages all test cases.Making up test cases is first step of whole automatic test, i.e. the process of setup test case.How making up test cases quickly and efficiently is one of key issue of automatic test platform realization.
All test codes of generation in advance than static state; Dynamic fixing method is meant through configuration tool, test cases description document and obtains the test cases configuration code, and then integrated core code and peripheral test case code obtain reality and can compile the test cases engineering.
Summary of the invention
Be directed to the characteristics of AUTOSAR system software test case; For the case preparatory stage of realizing AUTOSAR system software automated testing platform provides a kind of effective method, the present invention proposes a kind of dynamic construction method of test cases of automatic test of the AUTOSAR of meeting standard.
In order to solve the problems of the technologies described above, technical scheme of the present invention is following:
The test cases dynamic fixing method that meets AUTOSAR standard automatic test; Said test cases comprises core code module and peripheral test case code module, and said core code module is all functions module except that the configuration code module of test cases; Configuration code module that said peripheral test case code module is a test cases and test cases personal code work module;
Comprise the steps:
1) test cases is formed a test cases storehouse and with the stored in form of file on disk; In said test cases storehouse; Each test cases with comprise this test cases configuration describing document and leave in the identical file folder, all be provided with the test cases personal code work routing information and the corresponding test cases configuration describing document information of corresponding test cases in each said test cases configuration describing document;
2) meet the testing tool load step 1 of AUTOSAR standard automatic test) described in test cases and corresponding test cases configuration describing document; The automatic code systematic function of the ECU configuration tool that utilizes this testing tool to call to meet the AUTOSAR standard; In conjunction with said test cases configuration describing document, generate the configuration code file of surveying case automatically; Then with test cases personal code work file in the test cases storehouse and the configuration code integrating documents that generates the survey case automatically, generation is used for the employed peripheral test case of automatic test engineering code module;
3) at first detect the test cases code of whether haveing been friends in the past during said testing tool establishing target project engineering; If any then deleting this old test cases code; Scanning is stored in the test cases in the said test cases storehouse on the disk again; The new test cases of needs is copied in the engineering, can compile the test cases engineering thereby obtain reality.
As possibility, said core code module comprises task module, event module, resource module.
Beneficial effect of the present invention is:
1. test cases library storage, maintenance is the file of describing with configuration tool rather than can directly copies the configuration case code that uses in the target engineering to; Because the description document of configuration tool directly is intended for the user; Therefore; When the configuration item of test cases need be adjusted, the user only need be through configuration feature in the testing tool that meets the AUTOSAR standard, and user interface direct modification configuring condition is preserved and got final product; The configuration tool description document can be along with renewal, and need not change the other guide in the replacement test cases storehouse.
2. the process need that makes up utilizes the function of the automatic generating code of AUTOSAR configuration tool, dynamically required test cases code in the establishing target engineering.
Description of drawings
Fig. 1 is the constituent act figure of test cases;
Fig. 2 is the procedure chart of dynamic construction;
Fig. 3 is the file organization key diagram of form work engineering;
Fig. 4 utilizes the automated test tool of AUTOSAR software to make up the test cases workflow diagram.
Embodiment
To combine accompanying drawing and specific embodiment that the present invention is done further explanation below.
1. the organizational form of case code: the test cases engineering code module of a destination item has comprised 2 parts: core code module, peripheral test case code module.The core code module is meant the code module of all the realization correlation functions except that the configuration code module.For example, meet AUTOSAR standard Real-time operating system---AUTOSAR OS, its core code module comprises task module, event module, resource module or the like.Peripheral test case code module is the configuration code module and the test cases personal code work module of test cases.The present invention with these case code modules with the stored in form of file on disk, and regularly with file form tissue, with the streamlining management cost, the automatic test platform that conveniently meets the AUTOSAR standard loads the test library file path apace.
Its concrete organizational form is as shown in Figure 1, and wherein the core code module section is according to its disparate modules tissue storage; All peripheral test case code modules are formed a test cases storehouse; Each test cases in the test cases storehouse leaves in the independent sub-folder; Be not directly to comprise the test cases configuration code module of using in the target engineering in each sub-folder, but comprised corresponding test cases configuration describing document.Each test cases description document has been preserved the test cases personal code work routing information and the test cases configuration describing document information of the test cases corresponding with it.
2. dynamically generate peripheral test case code: owing to what deposit in the test cases storehouse is the configuration describing document of test cases; Therefore dynamically generating in the process of test code file; The testing tool that meets AUTOSAR standard automatic test loads test cases and corresponding test cases configuration describing document; The testing tool that utilization meets AUTOSAR standard automatic test calls the automatic code systematic function of the ECU configuration tool that meets the AUTOSAR standard; In conjunction with the test cases description document, generate the configuration code file of surveying case automatically; Then test cases personal code work file in the test cases storehouse is integrated with generating the configuration code literary composition of surveying case automatically, generated the employed peripheral test case of the engineering code that is used for automatic test.
3. the structure of destination item engineering: as shown in Figure 2 in this part; At first detect the test cases code of whether haveing been friends in the past during said testing tool establishing target project engineering; If any then deleting this old test cases code; According to the test cases in the test cases storehouse of scanning storage, new test cases code copy in engineering, can be compiled the test cases engineering thereby obtain reality again.
The present invention is applied to the structure in test cases storehouse of the automated test tool of AUTOSAR software and realizes.
For can the dynamic construction test cases, the automated test tool of AUTOSAR software be set up a form work engineering.When needs make up engineering, form work engineering handled obtaining complete engineering.Processing to form work engineering has comprised: delete old test cases code, copy new test cases code to form work engineering.
Fig. 3 has represented the file organization of form work engineering.Platform and Src-NonPlat are the core code software modules.Platform is the platform correlative code.Src-NonPlat be core code but with the code of platform independence.The Test file is the code relevant with test.Test sub-directory TestCode is the directly related code of test cases.Making up the operation of test cases engineering is exactly to the deleted file of this document folder and the operation of xcopy.
In conjunction with shown in Figure 4, the process concrete steps that the automated test tool of AUTOSAR software use the present invention accomplishes the dynamic construction test cases are following:
1. use script that file is carried out deletion action.Old test cases correlative code file under the deletion TestCode catalogue.
2. use script that file is carried out copy function and from the test cases storehouse of local disk, copy the test cases personal code work to the TestCode catalogue according to test cases personal code work file path parameter.
3. through the supporting configuration tool of automated test tool kernel of AUTOSAR software, load the test cases description document in the test cases storehouse, the configuration code that generates test cases automatically is to engineering TestCode catalogue.
So far the automated test tool of AUTOSAR software has been accomplished the process of dynamic construction test cases.
The above only is a preferred implementation of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the present invention's design; Can also make some improvement and retouching, these improvement and retouching also should be regarded as in the protection domain of the present invention.
Claims (2)
1. the test cases dynamic fixing method that meets AUTOSAR standard automatic test; It is characterized in that; Said test cases comprises core code module and peripheral test case code module, and said core code module is all functions module except that the configuration code module of test cases; Configuration code module that said peripheral test case code module is a test cases and test cases personal code work module;
Comprise the steps:
1) test cases is formed a test cases storehouse and with the stored in form of file on disk; In said test cases storehouse; Each test cases with comprise this test cases configuration describing document and leave in the identical file folder, all be provided with the test cases personal code work routing information and the corresponding test cases configuration describing document information of corresponding test cases in each said test cases configuration describing document;
2) meet the testing tool load step 1 of AUTOSAR standard automatic test) described in test cases and corresponding test cases configuration describing document; The automatic code systematic function of the ECU configuration tool that utilizes this testing tool to call to meet the AUTOSAR standard; In conjunction with said test cases configuration describing document, generate the configuration code file of surveying case automatically; Then with test cases personal code work file in the test cases storehouse and the configuration code integrating documents that generates the survey case automatically, generation is used for the employed peripheral test case of automatic test engineering code module;
3) at first detect the test cases code of whether haveing been friends in the past during said testing tool establishing target project engineering; If any then deleting this old test cases code; Scanning is stored in the test cases in the said test cases storehouse on the disk again; The new test cases of needs is copied in the engineering, can compile the test cases engineering thereby obtain reality.
2. the test cases dynamic fixing method that meets AUTOSAR standard automatic test according to claim 1 is characterized in that said core code module comprises task module, event module, resource module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210037268.3A CN102609357B (en) | 2012-02-17 | 2012-02-17 | Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210037268.3A CN102609357B (en) | 2012-02-17 | 2012-02-17 | Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102609357A true CN102609357A (en) | 2012-07-25 |
CN102609357B CN102609357B (en) | 2015-03-18 |
Family
ID=46526747
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210037268.3A Expired - Fee Related CN102609357B (en) | 2012-02-17 | 2012-02-17 | Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102609357B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834591A (en) * | 2014-05-22 | 2015-08-12 | 北汽福田汽车股份有限公司 | Method and system for testing AUTOSAR software component |
CN106776266A (en) * | 2015-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The collocation method and terminal device of testing tool |
CN108710571A (en) * | 2018-05-14 | 2018-10-26 | 中国建设银行股份有限公司 | A kind of method and apparatus generating automatic test code |
CN108804271A (en) * | 2018-06-28 | 2018-11-13 | 北京潘达互娱科技有限公司 | Interface tolerating measure method and device |
CN110554965A (en) * | 2019-09-05 | 2019-12-10 | 腾讯科技(深圳)有限公司 | automated fuzz testing method, related equipment and computer readable storage medium |
CN115221058A (en) * | 2022-07-21 | 2022-10-21 | 中航机载系统共性技术有限公司 | Software automation test system and method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1503168A (en) * | 2002-11-22 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Automatic test method for system products |
US6779134B1 (en) * | 2000-06-27 | 2004-08-17 | Ati International Srl | Software test system and method |
-
2012
- 2012-02-17 CN CN201210037268.3A patent/CN102609357B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6779134B1 (en) * | 2000-06-27 | 2004-08-17 | Ati International Srl | Software test system and method |
CN1503168A (en) * | 2002-11-22 | 2004-06-09 | 深圳市中兴通讯股份有限公司 | Automatic test method for system products |
Non-Patent Citations (2)
Title |
---|
HONG LI等: "SmartSAR:A Component-based Hierarchy Software Platform for Automotive Electronics", 《EMBEDDED SOFTWARE AND SYSTEMS, 2009. ICESS "09. INTERNATIONAL CONFERENCE ON 》 * |
李锐等: "OSEK操作系统一致性测试用例的生成", 《计算机工程》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104834591A (en) * | 2014-05-22 | 2015-08-12 | 北汽福田汽车股份有限公司 | Method and system for testing AUTOSAR software component |
CN104834591B (en) * | 2014-05-22 | 2017-12-08 | 北汽福田汽车股份有限公司 | Test the method for testing and system of AUTOSAR component softwares |
CN106776266A (en) * | 2015-11-25 | 2017-05-31 | 腾讯科技(深圳)有限公司 | The collocation method and terminal device of testing tool |
CN108710571A (en) * | 2018-05-14 | 2018-10-26 | 中国建设银行股份有限公司 | A kind of method and apparatus generating automatic test code |
CN108710571B (en) * | 2018-05-14 | 2021-11-23 | 中国建设银行股份有限公司 | Method and device for generating automatic test code |
CN108804271A (en) * | 2018-06-28 | 2018-11-13 | 北京潘达互娱科技有限公司 | Interface tolerating measure method and device |
CN110554965A (en) * | 2019-09-05 | 2019-12-10 | 腾讯科技(深圳)有限公司 | automated fuzz testing method, related equipment and computer readable storage medium |
CN115221058A (en) * | 2022-07-21 | 2022-10-21 | 中航机载系统共性技术有限公司 | Software automation test system and method |
CN115221058B (en) * | 2022-07-21 | 2024-02-06 | 中航机载系统共性技术有限公司 | Automatic software testing system and method |
Also Published As
Publication number | Publication date |
---|---|
CN102609357B (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102609357B (en) | Method for dynamically building test cases for automatic testing meeting AUTOSAR (automotive open system architecture) standards | |
US10579803B1 (en) | System and method for management of application vulnerabilities | |
US8521741B1 (en) | Systems and methods for performing integrated searches with actions | |
CN105760168A (en) | Automatic code file generation method and system | |
US10425478B2 (en) | Task-based data transmission method and data transmission apparatus | |
CN103425468B (en) | Plug-in type software integrating method and device | |
US20150066977A1 (en) | Method and system for managing digital resources | |
US20060218163A1 (en) | Rapid prototyping database | |
CN103500116A (en) | Method and system for clearing data generated by application program | |
CN110460509A (en) | The creation method and device of mail group | |
CN103177329A (en) | Rule-based determination and validation in business object processing | |
US10466973B2 (en) | Integration application creator design | |
CN109284106A (en) | Method for release management, electronic device and the readable storage medium storing program for executing of business rule | |
CN106250148A (en) | ANT-based project difference upgrading method | |
CN103577417B (en) | The method and apparatus for clearing up desktop | |
CN111818175B (en) | Enterprise service bus configuration file generation method, device, equipment and storage medium | |
CN107301347A (en) | A kind of method that Hbuilder App calling figures are obtained based on static analysis | |
CN101477485A (en) | MySQL database remote backup and reduction method based on ASP.net | |
CN111181935A (en) | Method for batch adding and timed deleting domain users in AD domain security group | |
CN103577554A (en) | Method and device for triggering multimedia database scanning of Android equipment | |
CN106648964A (en) | Database backup method and system | |
Rumpe et al. | Refining business processes | |
CN104317602A (en) | Development method and device of code files of host computer | |
WO2021021321A1 (en) | Parallel cloned workflow execution | |
CN109614442B (en) | Data table maintenance method and device for data synchronization, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20150318 Termination date: 20220217 |