Grouping of request

Hi Team,

I have a question regarding groping.

object Click_Phone {

val clickphone = exec(http(“IPTV_Click_Phone_02_request_9”)
.get("/modular-tv-guide/app/partials/phone.html?d=0")
.headers(headers_6)
.resources(http(“IPTV_Click_Phone_02_request_10”)
.get(uri2 + “/v1/tvguide/phone/speeddial?unitId=0&roomType=GUEST_ROOM&locale=en_US”)))
//.check(bodyString.is(RawFileBody(“RecordedSimulation1_0010_response.txt”)))
.pause(10)
}

object Click_Home {
val clickhome = exec(http(“IPTV_Click_Home_03_request_12”)
.get("/v1/tvguide/apps/config?locationType=GUEST_ROOM")
.headers(headers_6)
.check(regex(""“SUCCESS”"").find(0).exists))
//.check(bodyString.is(RawFileBody(“RecordedSimulation1_0012_response.txt”))))
.pause(10)
}

val scn = scenario(“RecordedSimulation1”).exec(Click_Phone.clickphone,Click_Home.clickhome)

but the problem is that i am getting all the requests result separately…in the HTML report (though thats nice to have the report for every request but grouping the request for a specific transactions is my purpose now)

Need to know how to apply .group in to my scenario.

Thanks in advance.

I think the documentation suggests the page object model that was quite popular with WebDriver tests.

So, if you have a home page.

object Homepage {
val = signIn{
exec(… )
.get(…)
}

}

I’d stick to Java/Scala naming and remove the underscores in your object names and uppercase the non-first token in your vals/functions.

Then

group(“Homepage”) { Homepage.signIn }

Or some variation on that.

Aidy