# I have scenario like I need to load specific test data based on the environment I'm passing in cmd line like prod, qa and stag

**URL:** <https://forum.robotframework.org/t/i-have-scenario-like-i-need-to-load-specific-test-data-based-on-the-environment-im-passing-in-cmd-line-like-prod-qa-and-stag/4067>\
**Category:** Robot Framework\
**Created:** [24 June 2022 06:05 UTC](https://forum.robotframework.org/t/i-have-scenario-like-i-need-to-load-specific-test-data-based-on-the-environment-im-passing-in-cmd-line-like-prod-qa-and-stag/4067 "2022-06-24T06:05:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![damies13](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/damies13/32/623_2.png) [@damies13](https://forum.robotframework.org/u/damies13)\
**Post date:** [26 June 2022 03:06 UTC](https://forum.robotframework.org/t/i-have-scenario-like-i-need-to-load-specific-test-data-based-on-the-environment-im-passing-in-cmd-line-like-prod-qa-and-stag/4067/2 "2022-06-26T03:06:39Z")

</div>

Hi @sudheer1987 ,

This was answered just recently [in this thread](https://forum.robotframework.org/t/how-to-run-robot-tests-on-different-environments-like-dev-qa-prod/4044)

when you read the test data from your datafile just use ${ENV} in the file name/path

Dave.

---

_[View the full topic](https://forum.robotframework.org/t/i-have-scenario-like-i-need-to-load-specific-test-data-based-on-the-environment-im-passing-in-cmd-line-like-prod-qa-and-stag/4067)._
