Requisition for information - Gatling usage query

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”)
.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 → Geolocation.schoolHolidaysByPostCode,

)
)

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

.protocols(httpProtocol)
.maxDuration(500 seconds)

}

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