# Requisition for information - Gatling usage query

**URL:** <https://community.gatling.io/t/requisition-for-information-gatling-usage-query/1314>\
**Category:** Gatling (Open-Source)\
**Created:** [August 22, 2014, 9:04am UTC](https://community.gatling.io/t/requisition-for-information-gatling-usage-query/1314 "2014-08-22T09:04:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://community.gatling.io/u/Guest)\
**Post date:** [August 22, 2014, 9:04am UTC](https://community.gatling.io/t/requisition-for-information-gatling-usage-query/1314/1 "2014-08-22T09:04:26Z")

</div>

Hello Gatling Experts,

I am trying to run a scenario, using following code snippet. I am trying to load Home Page first, before navigating to child pages.  
However after test completed successfully, End report showing only Home page execution details, not child page details.  
Could you please advise how should I resolve this.

Note: This issue does not happen, if I remove HomePage.home from child list page. however I should call individually in randomSwitch (eg: 60.0 -\>HomePage, 40.0 → ContentItemList.Croft)

Class TestSimulation extends Simulation {

object ContentItemList {

val croft = **Homepage.home**  
group(“crofting”) {  
exec(http(“request\_158”)  
.get( “”"/housing/crofting/""")  
.headers(headers\_78)  
.resources(http(“request\_159”)  
.get(uri2 + “”"/assets/styles/bootstrap.css""")  
.headers(headers\_9), … so on

}

object Homepage {

val home = group(“Home Page”) {  
exec(http(“request\_1”)  
.get( “”"/""")  
.headers(headers\_1)  
.resources(http(“request\_2”) … so on

}  
}

val httpProtocol = http  
.baseURL(“[https://testsite](https://testsite)”)  
.proxy(Proxy(“proxyserver”,80).httpsPort(80))  
.inferHtmlResources()  
.acceptHeader( “”"_/_""")  
.acceptEncodingHeader( “”“gzip,deflate,sdch”"")  
.acceptLanguageHeader( “”“en-US,en;q=0.8"”")  
.connection( “”“keep-alive”"")  
.userAgentHeader( “”“Mozilla/5.0 (Macintosh; Intel Mac OS X 10\_9\_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.76 Safari/537.36"”")

val scn = scenario(“RecordedSimulation”).forever()(

**randomSwitch(**

**100.0 → ContentItemList.croft**  
[//20.0](https://20.0) → Geolocation.schoolHolidaysByPostCode,

)  
)

setUp(  
scn.inject(constantUsersPerSec(1) during (40)))

.protocols(httpProtocol)  
.maxDuration(500 seconds)

}

---

<div class="post-metadata">

**Author:** ![Alex\_Bagehot](https://avatars.discourse-cdn.com/v4/letter/a/d78d45/32.png) [@Alex\_Bagehot](https://community.gatling.io/u/Alex_Bagehot)\
**Post date:** [August 22, 2014, 9:58am UTC](https://community.gatling.io/t/requisition-for-information-gatling-usage-query/1314/2 "2014-08-22T09:58:12Z")

</div>

Hi Raja,  
If I understand what you want correctly, looks like you’re missing a dot

doesn’t work:

val croft = **Homepage.home**  
group(“crofting”) {

should work:

val croft = **Homepage.home**  
.group(“crofting”) {

should work:

val croft = \*\*Homepage.home .\*\*group(“crofting”) {

Thanks  
Alex
