# How to user a repeat countername with dates

**URL:** https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415
**Category:** Gatling (Open-Source)
**Created:** [June 5, 2013, 8:06pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415 "2013-06-05T20:06:12Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 5, 2013, 8:06pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/1 "2013-06-05T20:06:12Z")

</div>

.repeat(2,“DAY”){

.param(""“tripDay”"", “”“2013-05-”${DAY}"""")

}

its not working

---

<div class="post-metadata">

### Author: ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)
#### Post date: [June 5, 2013, 8:38pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/2 "2013-06-05T20:38:39Z")

</div>

Don’t have an extra quote?  
Isn’t it supposed to be .param(""“tripDay”"", “”“2013-05-${DAY}”"")?

cheers  
Nicolas

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 5, 2013, 8:54pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/3 "2013-06-05T20:54:20Z")

</div>

still didn’t work, meaning that it only loops once, not twice

.param(""“tripDay”"", “”“2013-05-$DAY”"")

---

<div class="post-metadata">

### Author: ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)
#### Post date: [June 5, 2013, 8:58pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/4 "2013-06-05T20:58:27Z")

</div>

Do you have a more complete piece of code to show?  
What you showed is not any valid code and I don’t really get what you are trying to achieve here.

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 2:11am UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/5 "2013-06-06T02:11:40Z")

</div>

.repeat(2,“DAY”){  
exec(http(“request\_42”)  
.post(“[https://server1.com/userportal/trips/save](https://server1.com/userportal/trips/save)”)  
.headers(headers\_42)  
.param(""“id”"", “”"""")  
.param(""“commuteDistance”"", “”"""")  
.param(""“customFields[purpose]”"", “”“Visit to Everything Just A Buck”"")  
.param(""“distance”"", “”“0"”")  
.param(""“sequenceNum”"", “”“1"”")  
.param(""“tripDay”"", “”“2013-05-${DAY}”"")  
.param(""“unit”"", “”“MILES”"")  
.param(""“toLocationAddress”"", “”“3300 Broadway St, Eureka, CA 95501, USA”"")  
.param(""“toLocationClientLocationId”"", “”“1007"”")  
.param(""“toLocationDataEntrySourceName”"", “”“browser”"")  
.param(""“toLocationDetectedMilliseconds”"", “”“1370460506342"”")  
.param(""“toEndDayStop”"", “”“false”"")  
.param(""“toLocationId”"", “”“1027"”")  
.param(""“toLocationIsGoogleVerified”"", “”“true”"")  
.param(""“toLocationLatitude”"", “”“40.779146"”")  
.param(""“toLocationLongitude”"", “”"-124.18738""")  
.param(""“toLocationName”"", “”“Everything Just A Buck”"")  
.param(""“toLocationPersonLocationId”"", “”“2092"”")  
.param(""“fromLocationAddress”"", “”“1615 Alexander Ln, Grants Pass, OR 97527, USA”"")  
.param(""“fromLocationDetectedMilliseconds”"", “”“1370460506342"”")  
.param(""“fromLocationId”"", “”“40980"”")  
.param(""“fromLocationIsGoogleVerified”"", “”“true”"")  
.param(""“fromLocationName”"", “”“Base Location”"")

)  
}

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 3:49am UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/6 "2013-06-06T03:49:05Z")

</div>

I should also mention that the value returned is always 0

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 12:32pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/7 "2013-06-06T12:32:24Z")

</div>

I think the issue is that its not incrementing the count.

I cleaned up by code a little.

package junk  
import com.excilys.ebi.gatling.core.Predef.\_  
import com.excilys.ebi.gatling.http.Predef.\_  
import com.excilys.ebi.gatling.jdbc.Predef.\_  
import com.excilys.ebi.gatling.http.Headers.Names.\_  
import akka.util.duration.\_  
import bootstrap.\_  
import assertions.\_

class junk extends Simulation {

val httpConf = httpConfig  
.baseURL(“[https://server1.com:443](https://server1.com:443)”)  
.acceptHeader(“image/png,image/_;q=0.8,_/\*;q=0.5”)  
.acceptEncodingHeader(“gzip, deflate”)  
.acceptLanguageHeader(“en-US,en;q=0.5”)  
.connection(“keep-alive”)  
.userAgentHeader(“Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0”)

val headers\_1 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“Cache-Control” → “”“max-age=0"”"  
)

val headers\_21 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“Cache-Control” → “”“no-cache”"",  
“Content-Type” → “”“application/x-www-form-urlencoded; charset=UTF-8"”",  
“Pragma” → “”“no-cache”"",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_22 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”"  
)

val headers\_23 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“If-Modified-Since” → “”“Mon, 03 Jun 2013 08:58:40 GMT”""  
)

val headers\_31 = Map(  
“Accept” → “”“application/json, text/javascript, _/_; q=0.01"”",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_33 = Map(  
“Accept” → “”"_/_""",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_42 = Map(  
“Accept” → “”"_/_""",  
“Cache-Control” → “”“no-cache”"",  
“Content-Type” → “”“application/x-www-form-urlencoded; charset=UTF-8"”",  
“Pragma” → “”“no-cache”"",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val scn = scenario(“Scenario Name”)

.exec(http(“request\_1”)  
.get(“[https://server1.com/](https://server1.com/)”)  
.headers(headers\_1)  
)

.pause(450 milliseconds)  
.exec(http(“request\_21”)  
.post(“[https://server1.com/system/login.php](https://server1.com/system/login.php)”)  
.headers(headers\_21)  
.param(""“username”"", “”“133873"”")  
.param(""“password”"", “”“1"”")  
.param(""“ajaxLogin”"", “”“1"”")  
)

.exec(http(“request\_31”)  
.get(“[https://server1.com/userportal/settings/person/current/userportal.mileage](https://server1.com/userportal/settings/person/current/userportal.mileage)”)  
.headers(headers\_31)  
.queryParam(""“startDate”"", “”“2013-06-05"”")  
.queryParam(""“endDate”"", “”“2013-06-06"”")  
)

.pause(6)  
.repeat(2,“DAY”){  
exec(http(“request\_42”)  
.post(“[https://server1.com/userportal/trips/save](https://server1.com/userportal/trips/save)”)  
.headers(headers\_42)  
.param(""“id”"", “”"""")  
.param(""“commuteDistance”"", “”"""")  
.param(""“customFields[purpose]”"", “”“Visit to Everything Just A Buck “””)  
.param(""“distance”"", “”“0"”")  
.param(""“sequenceNum”"", “”“1"”")  
.param(""“tripDay”"", “”“2013-06-0${DAY}”"")  
.param(""“unit”"", “”“MILES”"")  
.param(""“toLocationAddress”"", “”“3300 Broadway St, Eureka, CA 95501, USA”"")  
.param(""“toLocationClientLocationId”"", “”“1007"”")  
.param(""“toLocationDataEntrySourceName”"", “”“browser”"")  
.param(""“toLocationDetectedMilliseconds”"", “”“1370460506342"”")  
.param(""“toEndDayStop”"", “”“false”"")  
.param(""“toLocationId”"", “”“1027"”")  
.param(""“toLocationIsGoogleVerified”"", “”“true”"")  
.param(""“toLocationLatitude”"", “”“40.779146"”")  
.param(""“toLocationLongitude”"", “”"-124.18738""")  
.param(""“toLocationName”"", “”“Everything Just A Buck”"")  
.param(""“toLocationPersonLocationId”"", “”“2092"”")  
.param(""“fromLocationAddress”"", “”“1615 Alexander Ln, Grants Pass, OR 97527, USA”"")  
.param(""“fromLocationDetectedMilliseconds”"", “”“1370460506342"”")  
.param(""“fromLocationId”"", “”“40980"”")  
.param(""“fromLocationIsGoogleVerified”"", “”“true”"")  
.param(""“fromLocationName”"", “”“Base Location”"")

)

.pause(6)  
}  
.exec(http(“request\_43”)  
.get(“[https://server1.com/userportal/logout](https://server1.com/userportal/logout)”)  
.headers(headers\_22)  
)  
.pause(714 milliseconds)

setUp(scn.users(1).protocolConfig(httpConf))  
}

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 2:30pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/8 "2013-06-06T14:30:56Z")

</div>

OK guys I know what the issue is, just don’t know how to fix it.

First, the repeat is working just fine. the issue is the counter. so if I have the following .repeat(2,“Val1”){} I notiec that the count starts at 0 not 1 and ends at 1 so its counting from 1 to 1. how do I make it start at 1 ?

---

<div class="post-metadata">

### Author: ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)
#### Post date: [June 6, 2013, 2:49pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/9 "2013-06-06T14:49:43Z")

</div>

.param(""“tripDay”"", session =\> “2013-06-0” + (session.getTypedAttributeInt + 1))

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 3:16pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/10 "2013-06-06T15:16:11Z")

</div>

not working for me. this is what I have

package junk  
import com.excilys.ebi.gatling.core.Predef.\_  
import com.excilys.ebi.gatling.http.Predef.\_  
import com.excilys.ebi.gatling.jdbc.Predef.\_  
import com.excilys.ebi.gatling.http.Headers.Names.\_  
import akka.util.duration.\_  
import bootstrap.\_  
import assertions.\_

class junk extends Simulation {

val httpConf = httpConfig  
.baseURL(“[https://server1.com:443](https://server1.com:443)”)  
.acceptHeader(“image/png,image/_;q=0.8,_/\*;q=0.5”)  
.acceptEncodingHeader(“gzip, deflate”)  
.acceptLanguageHeader(“en-US,en;q=0.5”)  
.connection(“keep-alive”)  
.userAgentHeader(“Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.0”)

val headers\_1 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:55 GMT”"",  
“If-None-Match” → “”"“418d7-152d-4ddf06a786417"”""  
)

val headers\_2 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40eca-734-4ddf06a75899f”"""  
)

val headers\_3 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:55 GMT”"",  
“If-None-Match” → “”"“4187a-333-4ddf06a78585f”"""  
)

val headers\_4 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:55 GMT”"",  
“If-None-Match” → “”"“418a4-303-4ddf06a78602f”"""  
)

val headers\_5 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“Cache-Control” → “”“no-cache”"",  
“Content-Type” → “”“application/x-www-form-urlencoded; charset=UTF-8"”",  
“Pragma” → “”“no-cache”"",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_6 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”"  
)

val headers\_7 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“If-Modified-Since” → “”“Mon, 03 Jun 2013 08:58:40 GMT”""  
)

val headers\_8 = Map(  
“Accept” → “”“text/css,_/_;q=0.1"”",  
“If-Modified-Since” → “”“Mon, 03 Jun 2013 08:59:20 GMT”""  
)

val headers\_9 = Map(  
“Accept” → “”"_/_""",  
“If-Modified-Since” → “”“Mon, 03 Jun 2013 08:59:20 GMT”""  
)

val headers\_11 = Map(  
“If-Modified-Since” → “”“Mon, 03 Jun 2013 08:58:40 GMT”""  
)

val headers\_14 = Map(  
“Accept” → “”“application/json, text/javascript, _/_; q=0.01"”",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_15 = Map(  
“Accept” → “”“text/html,application/xhtml+xml,application/xml;q=0.9,_/_;q=0.8"”",  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“401ff-47e-4ddf06a6f3487"”""  
)

val headers\_16 = Map(  
“Accept” → “”"_/_""",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_25 = Map(  
“Accept” → “”"_/_""",  
“Cache-Control” → “”“no-cache”"",  
“Content-Type” → “”“application/x-www-form-urlencoded; charset=UTF-8"”",  
“Pragma” → “”“no-cache”"",  
“X-Requested-With” → “”“XMLHttpRequest”""  
)

val headers\_27 = Map(  
“Accept” → “”"_/_""",  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:55 GMT”"",  
“If-None-Match” → “”"“41b06-1faca-4ddf06a78ae4f”"""  
)

val headers\_28 = Map(  
“Accept” → “”“text/css,_/_;q=0.1"”",  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ec2-208a4-4ddf06a7579ff”"""  
)

val headers\_29 = Map(  
“Accept” → “”"_/_""",  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ec3-a9c23-4ddf06a7585b7"”""  
)

val headers\_30 = Map(  
“Accept” → “”"_/_""",  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ec7-2211-4ddf06a75899f”"""  
)

val headers\_31 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407c5-4da-4ddf06a73ff17"”""  
)

val headers\_32 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407c2-4d4-4ddf06a73ff17"”""  
)

val headers\_33 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407c7-acdf-4ddf06a73ff17"”""  
)

val headers\_34 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ecd-e3b3-4ddf06a75899f”"""  
)

val headers\_35 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ecf-6df-4ddf06a75899f”"""  
)

val headers\_36 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40ecc-39d-4ddf06a75899f”"""  
)

val headers\_37 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407ee-39f8-4ddf06a741687"”""  
)

val headers\_38 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407eb-a50c-4ddf06a741687"”""  
)

val headers\_39 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“407c6-909-4ddf06a73ff17"”""  
)

val headers\_41 = Map(  
“If-Modified-Since” → “”“Thu, 30 May 2013 14:35:54 GMT”"",  
“If-None-Match” → “”"“40325-19b3-4ddf06a73d807"”""  
)

val scn = scenario(“Scenario Name”)  
.exec(http(“request\_1”)  
.get(“[https://server1.com/scripts/ext-3.3.3/resources/images/default/panel/tool-sprites.gif](https://server1.com/scripts/ext-3.3.3/resources/images/default/panel/tool-sprites.gif)”)  
.headers(headers\_1)  
.check(status.is(304))  
)  
.pause(74 milliseconds)  
.exec(http(“request\_2”)  
.get(“[https://server1.com/resources/img/gadget-body-bg.gif](https://server1.com/resources/img/gadget-body-bg.gif)”)  
.headers(headers\_2)  
.check(status.is(304))  
)  
.pause(12 milliseconds)  
.exec(http(“request\_3”)  
.get(“[https://server1.com/scripts/ext-3.3.3/resources/images/default/form/text-bg.gif](https://server1.com/scripts/ext-3.3.3/resources/images/default/form/text-bg.gif)”)  
.headers(headers\_3)  
.check(status.is(304))  
)  
.pause(6)  
.exec(http(“request\_4”)  
.get(“[https://server1.com/scripts/ext-3.3.3/resources/images/default/grid/loading.gif](https://server1.com/scripts/ext-3.3.3/resources/images/default/grid/loading.gif)”)  
.headers(headers\_4)  
.check(status.is(304))  
)  
.pause(5)  
.exec(http(“request\_5”)  
.post(“[https://server1.com/system/login.php](https://server1.com/system/login.php)”)  
.headers(headers\_5)  
.param(""“username”"", “”“133873"”")  
.param(""“password”"", “”“1"”")  
.param(""“ajaxLogin”"", “”“1"”")  
)  
.pause(472 milliseconds)

.repeat(2,“DAY”){  
exec(http(“request\_6”)  
.get(“[https://server1.com/system/](https://server1.com/system/)”)  
.headers(headers\_6)  
)  
.pause(943 milliseconds)  
.exec(http(“request\_7”)  
.get(“[https://server1.com/userportal/resources/images/favicon.ico](https://server1.com/userportal/resources/images/favicon.ico)”)  
.headers(headers\_7)  
.check(status.is(304))  
)  
.pause(11 milliseconds)  
.exec(http(“request\_8”)  
.get(“[https://server1.com/userportal/resources/css/userportal.css](https://server1.com/userportal/resources/css/userportal.css)”)  
.headers(headers\_8)  
.check(status.is(304))  
)  
.pause(90 milliseconds)  
.exec(http(“request\_9”)  
.get(“[https://server1.com/userportal/resources/js/userportal.js](https://server1.com/userportal/resources/js/userportal.js)”)  
.headers(headers\_9)  
.check(status.is(304))  
)  
.pause(463 milliseconds)  
.exec(http(“request\_10”)  
.get(“[https://server1.com/userportal/resources/fonts/proximanova-regular-webfont.woff](https://server1.com/userportal/resources/fonts/proximanova-regular-webfont.woff)”)  
.headers(headers\_7)  
.check(status.is(304))  
)  
.pause(125 milliseconds)  
.exec(http(“request\_11”)  
.get(“[https://server1.com/userportal/resources/images/crs-loader.gif](https://server1.com/userportal/resources/images/crs-loader.gif)”)  
.headers(headers\_11)  
.check(status.is(304))  
)  
.exec(http(“request\_12”)  
.get(“[https://server1.com/userportal/resources/fonts/crs.woff](https://server1.com/userportal/resources/fonts/crs.woff)”)  
.headers(headers\_7)  
.check(status.is(304))  
)  
.exec(http(“request\_13”)  
.get(“[https://server1.com/userportal/resources/fonts/proximanova-semibold-webfont.woff](https://server1.com/userportal/resources/fonts/proximanova-semibold-webfont.woff)”)  
.headers(headers\_7)  
.check(status.is(304))  
)  
.pause(19 milliseconds)  
.exec(http(“request\_14”)  
.get(“[https://server1.com/userportal/settings/person/current/userportal.mileage](https://server1.com/userportal/settings/person/current/userportal.mileage)”)  
.headers(headers\_14)  
.queryParam(""“startDate”"", “”“2013-06-06"”")  
.queryParam(""“endDate”"", “”“2013-06-07"”")  
)  
.pause(161 milliseconds)  
.exec(http(“request\_15”)  
.get(“[https://server1.com/favicon.ico](https://server1.com/favicon.ico)”)  
.headers(headers\_15)  
.check(status.is(304))  
)  
.pause(1)  
.exec(http(“request\_16”)  
.get(“[https://server1.com/userportal/async/status/personSyncJob](https://server1.com/userportal/async/status/personSyncJob)”)  
.headers(headers\_16)  
)  
.pause(467 milliseconds)  
.exec(http(“request\_17”)  
.get(“[https://server1.com/userportal/resources/images/icon-calendar.gif](https://server1.com/userportal/resources/images/icon-calendar.gif)”)  
.headers(headers\_11)  
.check(status.is(304))  
)  
.exec(http(“request\_18”)  
.get(“[https://server1.com/userportal/resources/images/pdficon.png](https://server1.com/userportal/resources/images/pdficon.png)”)  
.headers(headers\_11)  
.check(status.is(304))  
)  
.pause(48 milliseconds)

.exec(http(“request\_19”)  
.get(“[https://server1.com/userportal/period/favr/current](https://server1.com/userportal/period/favr/current)”)  
.headers(headers\_14)  
)  
.pause(103 milliseconds)  
.exec(http(“request\_20”)  
.get(“[https://server1.com/userportal/settings/person/current/userportal.mileage](https://server1.com/userportal/settings/person/current/userportal.mileage)”)  
.headers(headers\_14)  
.queryParam(""“startDate”"", “”“2013-06-01"”")  
.queryParam(""“endDate”"", “”“2013-06-30"”")  
)  
.pause(118 milliseconds)  
.exec(http(“request\_21”)  
.get(“[https://server1.com/userportal/trips/list](https://server1.com/userportal/trips/list)”)  
.headers(headers\_14)  
.queryParam(""“startDate”"", “”“2013-06-01"”")  
.queryParam(""“endDate”"", “”“2013-06-30"”")  
)  
.pause(338 milliseconds)  
.exec(http(“request\_22”)  
.get(“[https://server1.com/userportal/resources/images/fallback\_bg\_navicon.png](https://server1.com/userportal/resources/images/fallback_bg_navicon.png)”)  
.headers(headers\_11)  
.check(status.is(304))  
)  
.pause(15)  
.exec(http(“request\_23”)  
.get(“[https://server1.com/userportal/location/find](https://server1.com/userportal/location/find)”)  
.headers(headers\_16)  
.queryParam(""“address”"", “”“3300 Broadway St, Eureka, CA 95501, USA”"")  
.queryParam(""“day”"", session =\>""“2013-06-0+ (session.getTypedAttributeInt + 1))”"")  
.queryParam(""“maxResults”"", “”“5"”")  
)  
.pause(116 milliseconds)

.pause(5)  
.exec(http(“request\_25”)  
.post(“[https://server1.com/userportal/trips/save](https://server1.com/userportal/trips/save)”)  
.headers(headers\_25)  
.param(""“id”"", “”"""")  
.param(""“commuteDistance”"", “”"""")  
.param(""“customFields[purpose]”"", “”“Visit to Everything Just A Buck”"")  
.param(""“distance”"", “”“0"”")  
.param(""“sequenceNum”"", “”“1"”")  
.param(""“tripDay”"", session =\>""“2013-06-0”+ (session.getTypedAttributeInt + 1))""")  
.param(""“unit”"", “”“MILES”"")  
.param(""“toLocationAddress”"", “”“3300 Broadway St, Eureka, CA 95501, USA”"")  
.param(""“toLocationClientLocationId”"", “”“1007"”")  
.param(""“toLocationDataEntrySourceName”"", “”“browser”"")  
.param(""“toLocationDetectedMilliseconds”"", “”“1370525760179"”")  
.param(""“toEndDayStop”"", “”“false”"")  
.param(""“toLocationId”"", “”“1027"”")  
.param(""“toLocationIsGoogleVerified”"", “”“true”"")  
.param(""“toLocationLatitude”"", “”“40.779146"”")  
.param(""“toLocationLongitude”"", “”"-124.18738""")  
.param(""“toLocationName”"", “”“Everything Just A Buck”"")  
.param(""“toLocationPersonLocationId”"", “”“2092"”")  
.param(""“fromLocationAddress”"", “”“1615 Alexander Ln, Grants Pass, OR 97527, USA”"")  
.param(""“fromLocationDetectedMilliseconds”"", “”“1370525760179"”")  
.param(""“fromLocationId”"", “”“40980"”")  
.param(""“fromLocationIsGoogleVerified”"", “”“true”"")  
.param(""“fromLocationName”"", “”“Base Location”"")  
)  
.pause(2)  
}  
.exec(http(“request\_26”)  
.get(“[https://server1.com/userportal/logout](https://server1.com/userportal/logout)”)  
.headers(headers\_6)  
)  
.pause(538 milliseconds)  
.exec(http(“request\_27”)  
.get(“[https://server1.com/scripts/prototype.js](https://server1.com/scripts/prototype.js)”)  
.headers(headers\_27)  
.check(status.is(304))  
)  
.exec(http(“request\_28”)  
.get(“[https://server1.com/resources/2b6c732475f91ffbb3899572fe8af89f.css](https://server1.com/resources/2b6c732475f91ffbb3899572fe8af89f.css)”)  
.headers(headers\_28)  
.check(status.is(304))  
)  
.exec(http(“request\_29”)  
.get(“[https://server1.com/resources/c07b311750fa627de90d4a5ef3f39337.js](https://server1.com/resources/c07b311750fa627de90d4a5ef3f39337.js)”)  
.headers(headers\_29)  
.check(status.is(304))  
)  
.pause(94 milliseconds)  
.exec(http(“request\_30”)  
.get(“[https://server1.com/resources/fcb9dbfd662b6128f2c6611a65a3fbfe.js](https://server1.com/resources/fcb9dbfd662b6128f2c6611a65a3fbfe.js)”)  
.headers(headers\_30)  
.check(status.is(304))  
)  
.pause(481 milliseconds)  
.exec(http(“request\_31”)  
.get(“[https://server1.com/layouts/marketing/img/corner4.gif](https://server1.com/layouts/marketing/img/corner4.gif)”)  
.headers(headers\_31)  
.check(status.is(304))  
)  
.pause(34 milliseconds)  
.exec(http(“request\_32”)  
.get(“[https://server1.com/layouts/marketing/img/corner1.gif](https://server1.com/layouts/marketing/img/corner1.gif)”)  
.headers(headers\_32)  
.check(status.is(304))  
)  
.exec(http(“request\_33”)  
.get(“[https://server1.com/layouts/marketing/img/hero.jpg](https://server1.com/layouts/marketing/img/hero.jpg)”)  
.headers(headers\_33)  
.check(status.is(304))  
)  
.pause(11 milliseconds)  
.exec(http(“request\_34”)  
.get(“[https://server1.com/resources/img/logo-with-header.jpg](https://server1.com/resources/img/logo-with-header.jpg)”)  
.headers(headers\_34)  
.check(status.is(304))  
)  
.exec(http(“request\_35”)  
.get(“[https://server1.com/resources/img/primary-btn-bg.gif](https://server1.com/resources/img/primary-btn-bg.gif)”)  
.headers(headers\_35)  
.check(status.is(304))  
)  
.pause(11 milliseconds)  
.exec(http(“request\_36”)  
.get(“[https://server1.com/resources/img/icons-sprite.gif](https://server1.com/resources/img/icons-sprite.gif)”)  
.headers(headers\_36)  
.check(status.is(304))  
)  
.exec(http(“request\_37”)  
.get(“[https://server1.com/layouts/marketing/img/nav-module-sprite.jpg](https://server1.com/layouts/marketing/img/nav-module-sprite.jpg)”)  
.headers(headers\_37)  
.check(status.is(304))  
)  
.pause(35 milliseconds)  
.exec(http(“request\_38”)  
.get(“[https://server1.com/layouts/marketing/img/nav-module-image-sprite.jpg](https://server1.com/layouts/marketing/img/nav-module-image-sprite.jpg)”)  
.headers(headers\_38)  
.check(status.is(304))  
)  
.pause(107 milliseconds)  
.exec(http(“request\_39”)  
.get(“[https://server1.com/layouts/marketing/img/footer-fade.gif](https://server1.com/layouts/marketing/img/footer-fade.gif)”)  
.headers(headers\_39)  
.check(status.is(304))  
)  
.pause(91 milliseconds)  
.exec(http(“request\_40”)  
.get(“[https://server1.com/favicon.ico](https://server1.com/favicon.ico)”)  
.headers(headers\_15)  
.check(status.is(304))  
)  
.exec(http(“request\_41”)  
.get(“[https://server1.com/images/glyphs/ribon\_serverinfo\_o.png](https://server1.com/images/glyphs/ribon_serverinfo_o.png)”)  
.headers(headers\_41)  
.check(status.is(304))  
)

setUp(scn.users(1).protocolConfig(httpConf))  
}

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 3:22pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/11 "2013-06-06T15:22:12Z")

</div>

IT WORKED! I had an extra “)” in the code

Thank you so much!

---

<div class="post-metadata">

### Author: ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)
#### Post date: [June 6, 2013, 3:31pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/12 "2013-06-06T15:31:43Z")

</div>

You really have to be more explicit about “not working”.

---

<div class="post-metadata">

### Author: ![Zique\_Sousa](https://avatars.discourse-cdn.com/v4/letter/z/6f9a4e/32.png) [@Zique\_Sousa](https://community.gatling.io/u/Zique_Sousa)
#### Post date: [June 6, 2013, 3:47pm UTC](https://community.gatling.io/t/how-to-user-a-repeat-countername-with-dates/415/13 "2013-06-06T15:47:02Z")

</div>

yep I will next time
