DOI QR코드

DOI QR Code

Development of Log-Based Testing Framework for Unit Testing of Embedded Software

임베디드 소프트웨어의 단위 테스팅을 위한 로그 기반 테스팅 프레임워크 개발

  • Received : 2015.08.04
  • Accepted : 2015.08.31
  • Published : 2015.09.30

Abstract

As Internet of Things (IoT) is recently serviced in several fields, the reliability and safety issues for IoT embedded systems are emerged. During the development of embedded systems, it is not easy to build the virtual execution environment and to test the developing version. Therefore, it is difficult to ensure its reliability due to lack of unit testing. In this paper, we propose a log-based unit testing framework for embedded software, which performs on real target board by extracting information of function execution. And, according to execution paths, duplicated logs are eliminated to keep a minimal log size. As a result, during system testing, testers can efficiently decide whether the executed paths of each function are correctly performed or not.

최근 사물인터넷 서비스가 점차 보편화되면서 사물인터넷에 사용되는 임베디드 시스템의 신뢰성 및 안전성 이슈가 부각되고 있다. 사물인터넷 시스템 등과 같은 임베디드 시스템 개발의 경우, 개발과정에서 소프트웨어 가상 수행환경을 구축하는 것이 쉽지 않아 단위테스트를 거의 수행하지 않고 있어 기능 신뢰성을 보장하기 어려운 실정이다. 이 연구에서는 실제 플랜트 환경에서 로그 기반 단위테스트 수행방법을 제안한다. 실제 시나리오 수행과정에서 함수별 수행경로를 고려하여 중복된 수행로그를 제거하여 저장되는 로그를 최소화하고 나중에 대표 수행경로만을 분석하여 단위테스트를 진행하는 방식이다. 제안된 방식은 시스템 테스트를 진행하는 과정에서 로그 기반 단위테스트를 효율적으로 수행할 수 있는 장점이 있다.

Keywords

References

  1. Adams, Jack A, "A closed-loop theory of motor learning," Journal of motor behavior, Vol.3, No.2, pp.111-150, 1971. https://doi.org/10.1080/00222895.1971.10734898
  2. Riley, Patrick F., and George F. Riley, "Next generation modeling III - agents: Spades - a distributed agent simulation environment with software-in-the-loop execution," in Proceedings of the 35th conference on Winter simulation: driving innovation, 2003.
  3. Wang, G. Gary, "Definition and review of virtual prototyping," Journal of Computing and Information Science in engineering, pp.232-236, 2002.
  4. Hodong Ryu, et al., "A Testing Technique based on Virtual Prototype for Embedded Software," Journal of Institute of Embedded Engineering of Korea, Vol.9, No.6, pp.1-9, 2014.
  5. Short Michael and Michael J. Pont, "Hardware in the loop simulation of embedded automotive control system," Intelligent Transportation Systems, 2005.
  6. Elyasov Alexander, "Log-based testing," in Proceedings of the 2012 International Conference on Software Engineering, 2012.
  7. Andrews, James H., "Testing using log file analysis: tools, methods, and issues," in Proceedings of 13th IEEE International Conference on Automated Software Engineering, 1998.
  8. Dan Tu, Rong Chen, Zhenjun Du, and Yaqing Liu, "A Method of Log File Analysis for Test Oracle," in Proceedings of Eighth International Conference on Embedded Computing Scalable Computing and Communications, 2009.
  9. Laddad Ramnivas, "AspectJ in action: enterprise AOP with spring applications," Manning Publications Co., 2009.
  10. Dr. Garbage, Control Flow Graph Factory [Internet], http://ww.drgarbage.com/control-flow-graph-factory.html.
  11. Arthur H. Watson and Thomas J. McCabe, "Structured Testing: A Testing Methodology Using the Cyclomatic Complexity Metric," NIST Special Publication 500-235, 1996.
  12. GraphML, The GraphML File Format [Internet], http://raphml.graphdrawing.org.
  13. BBC News Reader [Internet], https://github.com/oscarkey/BBC-News-Reader.
  14. Tomdroid [Internet], https://launchpad.net/tomdroid/stable.