There are many stages of developing embedded software including requirement analysis, design, coding, and testing. Among them, the software testing is important to make a software production without bugs. As the software testing often falls within the...
There are many stages of developing embedded software including requirement analysis, design, coding, and testing. Among them, the software testing is important to make a software production without bugs. As the software testing often falls within the program coding stage, a programmer is in charge of testing software as well as making source codes. In this situation, making test codes for a program increases the burden on programmers. Also the test method can be different across programmers, so the result of the testing may not be trusted. This paper proposes the automatic generating system for the test code based on the requirement data. The proposed system generates test codes and test stubs according to test scenarios automatically. To show the performance of the implemented system, the code coverage of the test codes which have been written by programmers and that of the test codes generated automatically have been compared. According to the experiment result, the code coverage of two test codes is the same. This result shows that the system is helpful for a programmer to save considerable time and effort for the testing of embedded software, for the amount of test code is more than 40% of typical embedded software.