lundi 5 octobre 2015

Test Case and Testing Automation for Module Level Testing of Embedded C Projects

I am working on a automotive project which has different modules for different functionalities. Each module has a set of predefined APIs used to achive the functionality that it is intended for. (If you know about AUTOSAR and its modules, I am talking about the same).

I am working on a Watchdog module. Its functionality and the APIs are predefined. The module development consists of static code and generated code (configuration). Static code is written in Embedded C which realises the functionality of the module. The generated code consists of two files- "Cfg.C" and "Cfg.h". "Cfg.h" has macros and pre-compile options. "Cfg.c" has values for the global variables and constants. These files are generated based on the XML configuration file.

Currently the module testing is done by writing manual test cases in C and compiling with the static and generated code. One test case is written for each functionality. These test cases consists of only predefined API calls and no internal APIs are used. Upon executing the test case it will give whether the result is passed or failed.

My task is to automate the test case generation and testing of this module. Test case generation is to generate numberous test cases to test the functionality and also all possible scenarios. Test case generation includes both generating test cases and configuration files and testing using a combination of these.

What are the different ways to automate the test cases and perform testing automation?

What are the best practices followed in the industry for test case automation and testing?

How industries do module level testing for verify the functionality of the module?

At the outset, are there any tools available for test case automation and testing automation for the above scenario.

Aucun commentaire:

Enregistrer un commentaire