Close
Banner News Page

Tutorial: c-code function stubbing in TPT

c-code function stubbing in TPT

Function stubbing in TPT

In this tutorial we show you how to test c-code and hightlight how to stub missing functions of your c-code in TPT. For illustration purposes we use our classic Lights Control example. Learn how to improve your Software-in-Loop testing with TPT and watch the tutorial.

First, the c-platform is configured and a compiler is chosen. After that you can already analyze the sources and define unresolved references (i.e. the function to be stubbed).

Once you are done, you can generate and compile your code and test harness to start modeling your test case.

After the test execution you can view the execution results to compare signals.

Tutorial: Stub missing functions in your c-code in TPT

Want to learn more? Watch our other tutorials on TPT Basics and Use Cases here

If you are keen to learn more about testing and the testing tool TPT, check out our video library. We cover the basics of TPT and illustrate use cases from multiple test environments in short videos. Happy testing!

Give TPT a try with a free evaluation license

You can request a free evaluation license to give TPT a try.

1. Download TPT here

2. Send us an e-mail under tpt@piketec.com

Related topics

Feel free to follow us on LinkedIn or stay tuned by subscribing to our Newsletter which we send out once every quarter and upon new releases of TPT.