# Alternative Recording

**URL:** <https://community.gatling.io/t/alternative-recording/2713>\
**Category:** Gatling (Open-Source)\
**Created:** [December 11, 2015, 10:13am UTC](https://community.gatling.io/t/alternative-recording/2713 "2015-12-11T10:13:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aidylewis](https://avatars.discourse-cdn.com/v4/letter/a/e9a140/32.png) [@aidylewis](https://community.gatling.io/u/aidylewis)\
**Post date:** [December 11, 2015, 10:13am UTC](https://community.gatling.io/t/alternative-recording/2713/1 "2015-12-11T10:13:36Z")

</div>

There have been a number of posts around recording and proxy issues. There is an alternative recorder which Stephane pointed out to me.

Go to the developer tools in Chrome, click the Network tab and clear the network activity. Tick ‘preserve log’ and ‘disable cache’. Navigate your use case, right click and “Save with Har Content”.

In the Gatling recorder, change the recorder mode to Har converter and browse and import the saved HAR file (you may want to filter on static resources (there may be a way to filter on the HAR recorder)). This will convert the HAR file to a Gatling script.

Aidy

---

<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:** [December 11, 2015, 10:20am UTC](https://community.gatling.io/t/alternative-recording/2713/2 "2015-12-11T10:20:47Z")

</div>

It’s all in the doc 🙂  
[http://gatling.io/docs/2.1.7/http/recorder.html#har-files](http://gatling.io/docs/2.1.7/http/recorder.html#har-files)

Cheers,

---

<div class="post-metadata">

**Author:** ![Greg\_Hinsley](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Greg\_Hinsley](https://community.gatling.io/u/Greg_Hinsley)\
**Post date:** [August 1, 2016, 2:28pm UTC](https://community.gatling.io/t/alternative-recording/2713/3 "2016-08-01T14:28:56Z")

</div>

Bit of an old post, thought I’d chip in.

I tend to use a combination of chrome dev tools to generate the .har and open and edit this in Charles before running the gatling recorder on it to generate the simulation.

---

<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:** [August 1, 2016, 2:40pm UTC](https://community.gatling.io/t/alternative-recording/2713/4 "2016-08-01T14:40:26Z")

</div>

Oh, so you can import an HAR file into Charles? Didn’t know, thanks for sharing!

---

<div class="post-metadata">

**Author:** ![Greg\_Hinsley](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Greg\_Hinsley](https://community.gatling.io/u/Greg_Hinsley)\
**Post date:** [August 1, 2016, 2:56pm UTC](https://community.gatling.io/t/alternative-recording/2713/5 "2016-08-01T14:56:20Z")

</div>

Yes, I find it easier for manually filtering out static content (I know you can also do this in recorder.sh) as well as interrogating response bodies and such

---

<div class="post-metadata">

**Author:** ![Greg\_Hinsley](https://avatars.discourse-cdn.com/v4/letter/g/a9adbd/32.png) [@Greg\_Hinsley](https://community.gatling.io/u/Greg_Hinsley)\
**Post date:** [August 1, 2016, 3:12pm UTC](https://community.gatling.io/t/alternative-recording/2713/6 "2016-08-01T15:12:45Z")

</div>

…and I’ve also used Charles to generate a session from an iOS device, exported this from Charles as a HAR and then generated a gatling scenario from that.

---

<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:** [August 1, 2016, 3:25pm UTC](https://community.gatling.io/t/alternative-recording/2713/7 "2016-08-01T15:25:21Z")

</div>

When recording HAR from Charles, don’t forget to remove the CONNECT requests over HTTPS.
