# How do I externalize my application's configurations?

**URL:** <https://community.gatling.io/t/how-do-i-externalize-my-applications-configurations/2288>\
**Category:** Gatling (Open-Source)\
**Created:** [May 14, 2015, 6:35am UTC](https://community.gatling.io/t/how-do-i-externalize-my-applications-configurations/2288 "2015-05-14T06:35:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gautam\_Soni](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gautam\_Soni](https://community.gatling.io/u/Gautam_Soni)\
**Post date:** [May 14, 2015, 6:35am UTC](https://community.gatling.io/t/how-do-i-externalize-my-applications-configurations/2288/1 "2015-05-14T06:35:55Z")

</div>

I have started using Gatling today, and was wondering how can I externalize my applications variables in the form of a conf or a properties file, and then use those keys in my simulations in Gatling. I could see people passing individual properties in maven or passing properties as -Dabc=xyz but I dont want to complicate the project build files. Do you know how can I just specify properties as key value pairs?

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [May 14, 2015, 7:15am UTC](https://community.gatling.io/t/how-do-i-externalize-my-applications-configurations/2288/2 "2015-05-14T07:15:50Z")

</div>

You could use [Typesafe Config](https://github.com/typesafehub/config), which is the library that Gatling uses too.

---

<div class="post-metadata">

**Author:** ![Gautam\_Soni](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@Gautam\_Soni](https://community.gatling.io/u/Gautam_Soni)\
**Post date:** [May 14, 2015, 3:10pm UTC](https://community.gatling.io/t/how-do-i-externalize-my-applications-configurations/2288/3 "2015-05-14T15:10:43Z")

</div>

I tried using it. It doesnt seem to be straightforward. I am getting “null” for keys I kept in application.conf.  
Pardon me, as I am new to Scala and Gatling. Do you have a simple example where a Simulation reads from test/resources/application.conf.

Here is my application.conf:

```auto
application {
    env = test
}

```

```auto

```

```auto
And here is how I am trying to read it in Simulation:

```
