# Using data from tracker in rasa test

**URL:** <https://forum.rasa.com/t/using-data-from-tracker-in-rasa-test/60065>\
**Category:** Rasa Open Source\
**Tags:** testing\
**Created:** [October 27, 2023, 12:52pm UTC](https://forum.rasa.com/t/using-data-from-tracker-in-rasa-test/60065 "2023-10-27T12:52:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonchardon](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/bonchardon/32/23270_2.png) [@bonchardon](https://forum.rasa.com/u/bonchardon)\
**Post date:** [October 27, 2023, 12:52pm UTC](https://forum.rasa.com/t/using-data-from-tracker-in-rasa-test/60065/1 "2023-10-27T12:52:25Z")

</div>

How can I use data that I get from the tracker (for instance sender\_id, etc.) in the ‘rasa test’?

---

<div class="post-metadata">

**Author:** ![SiaGomez](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@SiaGomez](https://forum.rasa.com/u/SiaGomez)\
**Post date:** [October 27, 2023, 1:50pm UTC](https://forum.rasa.com/t/using-data-from-tracker-in-rasa-test/60065/2 "2023-10-27T13:50:50Z")

</div>

To use data from the tracker, such as `sender_id` , in a custom action in Rasa, you can access it within the custom action code using `tracker.sender_id` . However, when testing custom actions, use a Python testing framework like `unittest` or `pytest` to write and run tests for your custom actions separately. The `rasa test` command is primarily for evaluating NLU and dialogue management, not custom action testing. “I’d like to draw your attention to [https://calculatorarea.com/](https://calculatorarea.com/) an incredible online tool. It’s not only a practical solution for your calculations but also a fascinating example of what can be achieved online. Try it out and experience the magic of efficient calculations right at your fingertips!”
