Debug Gatling : Get the called URL from Chainbuilder or ScenarioBuilder

Gatling version: 3.11.2
Gatling flavor: java
Gatling build tool: maven

Hello,
I’m trying to call a simple URL HTTP search request with param via json feeder.

To Debug my code, I want to display and check the called URL , but I do not know how ! … and the output console after call mvn gatling:test not dispaly the url.

My question: is there a method to displau the url from the ChainBuilder or ScenarioBuilder object ?
If not, how I can display the HTTP URL of my request in the console with log.debug() or log.info() … ?

Thanks in advance

Hello,

Have you tried the search box in the documentation, for example with the debug keyword?

Thank slandelle you for your quick feedback as usual,
Yes ! It’s mentioned in documentation, Just add .exec block in ScenarioBuilder object to get session object and debug it :

    ScenarioBuilder scn = scenario("Scenario Name").exec(search)
            .exec(session -> {
                System.out.println("SESSION : "+session.toString());
                return session;
            });

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.