CN102043714A - Automatic testing system of embedded software - Google Patents
Automatic testing system of embedded software Download PDFInfo
- Publication number
- CN102043714A CN102043714A CN 201010582452 CN201010582452A CN102043714A CN 102043714 A CN102043714 A CN 102043714A CN 201010582452 CN201010582452 CN 201010582452 CN 201010582452 A CN201010582452 A CN 201010582452A CN 102043714 A CN102043714 A CN 102043714A
- Authority
- CN
- China
- Prior art keywords
- embedded software
- test
- configuration file
- svn
- essential information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses an automatic testing system of an embedded software, which is implemented through the following steps: firstly, aiming at the characteristics of embedded software, through combining with the concepts and techniques of automatic tests, automatically detecting the development code of the embedded software from an SVN (subversion) server according to a configuration file; then, compiling and testing the detected development code of the embedded software according to the configuration file, and storing the detected development code into a compiling/testing result text; finally, according to the configuration file, automatically sending the compiling/testing results to a user by an E-mail so as to inform related software developers. The automatic testing system disclosed by the invention has the advantages that because the users (namely, the software development engineers) store the development code of completely-developed embedded software into the SVN server, then the automatic testing system of the invention automatically tests the development code of the embedded software according to the configuration file, automatically compiles and tests the detected development code, and automatically sends the compiling/testing results to the software development engineers, thereby further relieving the operations of the software development engineers, and improving the development efficiency of embedded software.
Description
Technical field
The invention belongs to the embedded software test technical field, more specifically say, relate to a kind of embedded software automatic test system.
Background technology
Improving the quality of software product, is the common objective of all soft projects.On stream, if just improve specification in the performance history, differ and improve the quality of software product surely.Whether meet the standard of quality for software product, just need to rely on test job software.
For the mistake of earlier finding may exist in the software, in existing software development process, test job generally in the middle of the design phase just has been introduced in the life cycle of software, Yi Bian develop software, is tested on the other hand.The test final purpose is to realize mistake artificial in the practical work process, or the product function complexity promotes the potential problems that produced, or the mistake that can expect or can not expect takes place.
In vehicle electric field, because the demand for security of high reliability, it is more outstanding that the importance of test job seems.We notice that the functional requirement of automobile electronic controller ECU (Electronic Control Unit) is various simultaneously, and the trickle change of each software all may impact the function and the reliability of total system.Thereby, when the software change having occurred, often need the tester to carry out all tests again, this engineering is very complicated.
Embedded software automatic test lasts for many years in field of software development.It is a kind of practice, can allow team receive feedback and improve on the basis that continues exploitation, needn't wait until that later stage construction cycle just seeks and repair-deficiency.Embedded software automatic test has many good qualities: reduce risks (1), tests in the time of exploitation, can improve software quality significantly; (2) reduce manual procedure, avoided the loaded down with trivial details work of developer; (3) generate test result automatically, various information come into plain view.
Summary of the invention
The object of the invention is to provide a kind of embedded software automatic test system, further alleviates PHP's work, the efficient of raising embedded software developing.
For achieving the above object, embedded software automatic test system of the present invention comprises collector and test module, it is characterized in that, also comprises:
One timer module is used to be provided with the task start time; After the system manager was provided with the timer module task start time and starts timer module, test macro was checked system clock at set intervals, arrived the task start time, started test assignment;
One configuration file parsing module after being used for test assignment and starting, is resolved outside configuration file, obtains test assignment and moves needed information: visit SVN server essential information, e-mail sending essential information, user basic information;
One Version Control (SVN) server;
According to resolving the visit SVN server essential information that obtains, visit version control server and according to the title of embedded software in user's the essential information, from version control server, detect the embedded software developing code that needs test, and export to assigned address; The embedded software developing code is stored in the version control server after being finished by user's exploitation;
Collector and test module carry out compile and test respectively to the embedded software developing code that exports to assigned address, and the result is saved in the compiling test result text;
One mail distribution module is used for according to the essential information of resolving the e-mail sending that obtains, and the mailbox of login e-mail sending sends to the user to compiling test result text according to the email address in user's the essential information.
Goal of the invention of the present invention is achieved in that
The present invention is directed to the characteristics of embedded software, notion and technology in conjunction with test have automatically proposed a kind of embedded software automatic test system, are embedded software, provide a platform of test automatically as the automobile embedded software developing.Embedded software automatic test system of the present invention is according to configuration file, automatically detect the embedded software developing code from the SVN server, according to configuration file the embedded software developing code that is detected is carried out compile and test then, and be saved in the compiling test result text, at last, according to configuration file, will compile test result and send to the user automatically, notice related software developer with lettergram mode.
Because user, be that the embedded software developing code that the PHP finishes exploitation in advance is stored in the SVN server, embedded software automatic test system of the present invention then detects the embedded software developing code automatically, carries out compile and test automatically according to configuration, and automatically the result is sent to the PHP, so further alleviate PHP's work, the efficient of raising embedded software developing.
Description of drawings
Fig. 1 is a kind of embodiment theory diagram of embedded software automatic test system of the present invention;
Fig. 2 is the workflow diagram of embedded software automatic test system shown in Figure 1.
Embodiment
Below in conjunction with accompanying drawing the specific embodiment of the present invention is described, so that those skilled in the art understands the present invention better.What need point out especially is that in the following description, when perhaps the detailed description of known function and design can desalinate main contents of the present invention, these were described in here and will be left in the basket.
Embodiment
Fig. 1 is a kind of embodiment theory diagram of embedded software automatic test system of the present invention.
As shown in Figure 1, in the present embodiment, embedded software automatic test system of the present invention comprises timer module 1, configuration file parsing module 2, Version Control (SVN) server 3, collector 4, test module 5 and mail distribution module 6.
After the system manager was provided with the 1 task start time of timer module and starts timer module 1, test macro was checked system clock at set intervals, arrived the task start time, started test assignment.
After test assignment started, configuration file parsing module 2 was resolved outside configuration file, obtained test assignment and moved needed information: visit SVN server essential information, e-mail sending essential information, user basic information.
Then, according to resolving the visit SVN server essential information that obtains, visit version control server 3 and according to the title of embedded software in user's the essential information detects the embedded software developing code that needs test, and exports to assigned address from version control server 3; The embedded software developing code is stored in the version control server 3 after being finished by user's exploitation;
The embedded software developing code that 5 pairs of collector 4 and test modules export to assigned address carries out compile and test respectively, and the result is saved in the compiling test result text;
In this enforcement, as Fig. 1, embedded software automatic test system of the present invention also comprises configuration file modification interface 7 and logger module 8.Configuration file is revised interface 7 and is used to offer interface of revising configuration file of system manager, the system manager just can utilize configuration file to revise the essential information of the visit SVN in 7 pairs of configuration files of interface easily like this, the essential information of e-mail sending, user's essential information is made amendment.In the present embodiment, configuration file is the XML form.There have been configuration file modification interface 7 system managers just need not waste time and energy and revised configuration file, improved efficient, and guaranteed that modification is not easy to make mistakes with the mode of order line.
In the present embodiment, logger module 8 is used for real time record test macro state, so that test macro assessment foundation to be provided, unusual place may occur in the whole test system operation abnormality processing is set, and writing daily record unusually, search reason for the keeper.
Fig. 2 is the workflow diagram of embedded software automatic test system shown in Figure 1.
As shown in Figure 2, in the present embodiment, the workflow of embedded software automatic test system is as follows:
Step 1: the keeper is provided with timer, sets the task start time
For the realization task regularly starts function, in specific implementation process, " plan target " function that timer module can select Windows to carry also can select for use the Java timer class of Eclipse (jdk 6.0) platform band to realize.We use with Java Timer class and are example now:
1, the time of carrying out by void timeSet (String hour, string minute) method task that setting is decided; For example, setting task execution time is 19:30, and then the hour parameter value is 19, and the minute parameter value is 30;
2, set the task of required execution by void TaskSet () method; For example, in the TaskSet code, add our the automatic structure and the task of test;
3, start setting of task by void TaskStart () method by the TaskSet method;
4, close being started of task by void Taskclose () method by the TaskStart method.This method has realized the function that ends task.
Step 2: the configuration file parsing module is resolved the external XML configuration file
According to the setting of step 1, after system time had arrived 19:30, test assignment just was performed automatically.Carrying out first thing that this task does is exactly the analyzing XML configuration file, obtains test assignment and moves needed information.
The XML configuration file has comprised visit SVN server essential information, e-mail sending essential information, user basic information, is specially:
√ visit SVN server essential information
<SVNServer>
<account>XXX</account>
<PWD>XXXX</PWD>
<TarAddress>E:\AutoBuild\</TarAddress>
<SVNAddress>https://192.168.1.142/svn/ide/Project1</SVNAddress>
</SVNServer>
By parsing to above-mentioned section of configuration file, can obtain visiting SVN server essential information, comprise user name, password, file derivation address and SVN server address.
√ e-mail sending essential information
<MailServer>
<EmailAddress>zhangsan@126.com</EmailAddress>
<PassWord>xxxx</PassWord>
<Host>smtp.126.com</Host>
</MailServer>
Parsing by to above-mentioned section of configuration file can obtain the e-mail sending essential information, comprises Email Accounts and password, and host name.
The √ user basic information
<CfgUser>
<EmailTo>lisi@163.com</EmailTo>
<Enclosure>E:\result.txt</Enclosure>
<Object>Project1</Object>
<User>xxx</User>
<CfgUser>
Parsing by to above-mentioned section of configuration file can obtain user basic information, comprises Email Accounts, compiling test result text title and path, embedded software title, user name.
Step 3: visit SVN server, derive the embedded software developing code
When configuration file resolve finish after, just can obtain visiting SVN server essential information, as step 2<SVNServer〉content that label comprised.According to username and password visit SVN server in the SVN server essential information.
In the present embodiment, SVN server address https: // 192.168.1.142/svn/ide/Project1, detect the embedded software developing code that name is called Project1 from SVN server 192.168.1.142, its URL is https: // 192.168.1.142/svn/ide/Project1, the embedded software Project1 exploitation code that detects be placed into local path E: AutoBuild under.
Step 4: compile and test
In conjunction with the employed development platform of embedded software Project1, compiler commonly used such as CodeWarrior for example, read the makefile file in the embedded software, call the compiler fill order, the compiling project file, and will compile the result write E: in the result.txt text, E: the result.txt text by resolving user basic information label<CfgUser in the configuration file obtain.
In conjunction with embedded software Project1, can select TestBed and TBrun testing tool for use, by the script calls tool embedded software Project1 exploitation code is carried out dependence test, and test result is write in the E: result.txt text.
Step 5: mail distribution compiling test result text
By resolving in the configuration file<MailServer〉the label sender address that obtains mail distribution is zhangsan@126.com.By resolving configuration file<CfgUser〉label, can obtain the mail recipient address is lisi@163.com.
By the smtp mail server of script login zhangsan@126.com correspondence, send annex E: result.txt to destination address lisi@163.com.
Like this, lisi logins the result that its mailbox can view automatic structure of platform and testing engineering Project1.
Step 6: log record
The state of the main real time record test macro of daily record is to provide the system evaluation foundation.By mission critical node, add log record and handling procedure, record test macro operation information at test macro.
For example, when carrying out test macro following various situations might appear, the key message of noting the test macro operation that logger module can be real-time.
(1), visit SVN makes mistakes
The mistake numbering | Explanation of error | Solution |
SVN-1 | Can't create file | Check that it denys correct that the path is known |
SVN-2 | Can't sign in to the SVN server | Check whether network is communicated with, and whether number of the account and password be correct |
SVN-3 | Can't derive engineering | Check whether the path is correct |
SVN-4 | Derive and interrupt | Check network, restart |
Table 1
(2) compiling, test make mistakes
Table 2
(3) mail distribution is made mistakes
The mistake numbering | Explanation of error | Solution |
MAIL-1 | Mail server can't land | To preserve annex get off, send the operation of mail after stopping |
MAIL-2 | Mail sends failure | Still failure resends, if will preserve annex get off |
Table 3
(4) the normal running log record of platform
2010.8.30 1 Connection Service device detects engineering Project1 success!
2010.8.30 2 compiling Project1 engineering successes!
2010.8.30 3 test Project1 engineering successes!
2010.8.30 4 login sender mailbox zhangsan@126.com successes!
2010.8.30 5 mail distribution results E: result.txt to addressee lisi@163.com success!
Although above the illustrative embodiment of the present invention is described; so that the technician of present technique neck understands the present invention; but should be clear; the invention is not restricted to the scope of embodiment; to those skilled in the art; as long as various variations appended claim limit and the spirit and scope of the present invention determined in, these variations are conspicuous, all utilize innovation and creation that the present invention conceives all at the row of protection.
Claims (3)
1. an embedded software automatic test system comprises collector and test module, it is characterized in that, also comprises:
One timer module is used to be provided with the task start time; After the system manager was provided with the timer module task start time and starts timer module, test macro was checked system clock at set intervals, arrived the task start time, started test assignment;
One configuration file parsing module after being used for test assignment and starting, is resolved outside configuration file, obtains test assignment and moves needed information: visit SVN server essential information, e-mail sending essential information, user basic information;
One Version Control (SVN) server;
According to resolving the visit SVN server essential information that obtains, visit version control server and according to the title of embedded software in the user basic information, from version control server, detect the embedded software developing code that needs test, and export to assigned address; The embedded software developing code is stored in the version control server after being finished by user's exploitation;
Collector and test module carry out compile and test respectively to the embedded software developing code that exports to assigned address, and the result is saved in the compiling test result text;
One mail distribution module is used for according to the essential information of resolving the e-mail sending that obtains, and the mailbox of login e-mail sending sends to the user to compiling test result text according to the email address in user's the essential information.
2. embedded software automatic test system according to claim 1 is characterized in that, also comprises configuration file modification interface and logger module;
Configuration file is revised interface and is used to offer interface of revising configuration file of system manager, and the system manager can utilize configuration file to revise interface visit SVN essential information, e-mail sending essential information and user basic information in the configuration file are made amendment;
Logger module is used for real time record test macro state, so that test macro assessment foundation to be provided, unusual place may occur in the whole test system operation abnormality processing is set, and writing daily record unusually, search reason for the keeper.
3. embedded software automatic test system according to claim 1 is characterized in that, described visit SVN server essential information comprises user name, password, file derivation address and SVN server address;
Visit SVN server is to carry out according to the username and password in the SVN server essential information, detects the embedded software developing code according to the SVN server address, and is placed into file derivation address.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010582452 CN102043714B (en) | 2010-12-10 | 2010-12-10 | Automatic testing system of embedded software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201010582452 CN102043714B (en) | 2010-12-10 | 2010-12-10 | Automatic testing system of embedded software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102043714A true CN102043714A (en) | 2011-05-04 |
CN102043714B CN102043714B (en) | 2013-01-02 |
Family
ID=43909865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201010582452 Expired - Fee Related CN102043714B (en) | 2010-12-10 | 2010-12-10 | Automatic testing system of embedded software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102043714B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103279419A (en) * | 2013-06-09 | 2013-09-04 | 浪潮电子信息产业股份有限公司 | Automation version verifying method and system based on B/S structural system |
WO2013152576A1 (en) * | 2012-04-12 | 2013-10-17 | 广东欧珀移动通信有限公司 | Method for implementing remote control automation tool |
CN105431823A (en) * | 2013-05-31 | 2016-03-23 | 沃德尔有限公司 | Environmentalization technique for promotion of application programming interface (api) server in lifecycle succession of deployments |
CN105446874A (en) * | 2014-09-25 | 2016-03-30 | 北京畅游天下网络技术有限公司 | Method and device for detecting resource configuration file |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN107885658A (en) * | 2017-10-31 | 2018-04-06 | 平安科技(深圳)有限公司 | Test preposition implementation method, device, terminal device and storage medium |
CN109101269A (en) * | 2018-08-30 | 2018-12-28 | 长沙软工信息科技有限公司 | A kind of Software Delivery method and device, electronic equipment |
CN109857406A (en) * | 2019-02-15 | 2019-06-07 | 上海微小卫星工程中心 | Satellite embedded software batch processing system and method |
CN112015661A (en) * | 2020-09-08 | 2020-12-01 | 江苏云柜网络技术有限公司 | Software testing method and device |
CN113534764A (en) * | 2020-04-16 | 2021-10-22 | 广州汽车集团股份有限公司 | Continuous integration test method and system for whole electric vehicle controller |
CN115221058A (en) * | 2022-07-21 | 2022-10-21 | 中航机载系统共性技术有限公司 | Software automation test system and method |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205406A1 (en) * | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
CN1744054A (en) * | 2004-08-31 | 2006-03-08 | 中国银联股份有限公司 | Automatic test auxiliary system and corresponding software automatic test method |
CN101079004A (en) * | 2007-06-22 | 2007-11-28 | 中兴通讯股份有限公司 | Method and device for implementing test script management and distribution |
-
2010
- 2010-12-10 CN CN 201010582452 patent/CN102043714B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040205406A1 (en) * | 2000-05-12 | 2004-10-14 | Marappa Kaliappan | Automatic test system for testing remote target applications on a communication network |
CN1744054A (en) * | 2004-08-31 | 2006-03-08 | 中国银联股份有限公司 | Automatic test auxiliary system and corresponding software automatic test method |
CN101079004A (en) * | 2007-06-22 | 2007-11-28 | 中兴通讯股份有限公司 | Method and device for implementing test script management and distribution |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2013152576A1 (en) * | 2012-04-12 | 2013-10-17 | 广东欧珀移动通信有限公司 | Method for implementing remote control automation tool |
CN105431823A (en) * | 2013-05-31 | 2016-03-23 | 沃德尔有限公司 | Environmentalization technique for promotion of application programming interface (api) server in lifecycle succession of deployments |
CN103279419A (en) * | 2013-06-09 | 2013-09-04 | 浪潮电子信息产业股份有限公司 | Automation version verifying method and system based on B/S structural system |
CN105446874B (en) * | 2014-09-25 | 2019-03-15 | 北京畅游天下网络技术有限公司 | A kind of detection method and device of resource distribution file |
CN105446874A (en) * | 2014-09-25 | 2016-03-30 | 北京畅游天下网络技术有限公司 | Method and device for detecting resource configuration file |
CN105808227A (en) * | 2014-12-31 | 2016-07-27 | 北京畅游天下网络技术有限公司 | Art resource file detection method and device |
CN107885658B (en) * | 2017-10-31 | 2019-06-21 | 平安科技(深圳)有限公司 | Test preposition implementation method, device, terminal device and storage medium |
CN107885658A (en) * | 2017-10-31 | 2018-04-06 | 平安科技(深圳)有限公司 | Test preposition implementation method, device, terminal device and storage medium |
CN109101269A (en) * | 2018-08-30 | 2018-12-28 | 长沙软工信息科技有限公司 | A kind of Software Delivery method and device, electronic equipment |
CN109857406A (en) * | 2019-02-15 | 2019-06-07 | 上海微小卫星工程中心 | Satellite embedded software batch processing system and method |
CN113534764A (en) * | 2020-04-16 | 2021-10-22 | 广州汽车集团股份有限公司 | Continuous integration test method and system for whole electric vehicle controller |
CN112015661A (en) * | 2020-09-08 | 2020-12-01 | 江苏云柜网络技术有限公司 | Software testing method and device |
CN112015661B (en) * | 2020-09-08 | 2023-10-03 | 南京云柜网络科技有限公司 | Software testing method and device |
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 |
---|---|
CN102043714B (en) | 2013-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102043714B (en) | Automatic testing system of embedded software | |
CN101930400B (en) | SDK (Software Development Kit) automatic test system and method | |
CN108446223B (en) | Business scene automatic testing method based on dynamic compilation | |
Weigert et al. | Practical experiences in using model-driven engineering to develop trustworthy computing systems | |
CN112306855B (en) | Interface automation test method, device, terminal and storage medium | |
KR101579493B1 (en) | Staging control method for source code, Computer program for the same, Recording medium storing computer program for the same | |
CN102035892A (en) | System and method for automatically releasing operating system version and automatically updating software package | |
CN104539458A (en) | Operating environment self-adapting method and device | |
CN106656927A (en) | Method and device for enabling Linux account to be added to AD domain | |
CN109409093B (en) | System vulnerability scanning scheduling method | |
CN105549959A (en) | Compiling inspection method and device | |
CN108563539A (en) | Interface testing method, server, readable storage medium and system | |
US20090319576A1 (en) | Extensible task execution techniques for network management | |
CN106897920A (en) | A kind of automatic measures and procedures for the examination and approval of operation flow and system | |
AU2019201237A1 (en) | Updating software packets in water installation controlling apparatus | |
CN108804315B (en) | Test method and device applied to dynamic development, electronic equipment and storage medium | |
CN104598619A (en) | Service compositional verification method based on constraint solver | |
CN104090763A (en) | Compiling and publishing method and publishing server | |
CN104899134A (en) | Automatic domain name registration server testing system and method | |
CN105094959B (en) | It is a kind of that the method and apparatus of reconciliation file are provided | |
Kamran et al. | Android fragmentation classification, causes, problems and solutions | |
CN104036193B (en) | Local cross-domain vulnerability detection method and device for application program | |
CN108319551B (en) | Software testing method and device, computer equipment and readable storage medium | |
CN102262527B (en) | The method and system of generating network service | |
CN105319964A (en) | Carrier rocket test launch flow generation method and system based on configuration files |
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 |
Granted publication date: 20130102 Termination date: 20151210 |
|
EXPY | Termination of patent right or utility model |