Skip to content

Gatling "Empty results" issue due for we set group for request #1729

@BrightSummer

Description

@BrightSummer

Hi,
We are try to use Taurus do gatling testing, and the yaml look like:

execution:
  - executor: gatling
    scenario: sample
scenarios:
  sample:
    script: build/libs/abc.jar
    simulation: test.TestSimulation

in TestSimilation we use 'io.gatling.javaapi.core.group', code look like:

scenario("ScenarioName")
                .exec(session -> session.setAll(Map.of("timeStamp", nlocalDateTime, "baseUrl", BASE_URL)))
                .group("abc")
                .on(exec(login.doLogin)
                        .exec(access.doAccess).pause(1000, 5000)
                );    

Then we found gatling works fine with result like:

================================================================================
2023-06-02 03:51:27                                           5s elapsed
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=2      KO=0     )
> abc / Login... (OK=1      KO=0     )
> abc / Access... (OK=1      KO=0     )

---- Requisition Simulation ----------------------------------------------------
[--                                                                        ]  0%
          waiting: 60     / active: 1      / done: 0     
================================================================================

But Taurus get error:
ERROR: Child Process Error: Empty results, most likely sample (GatlingExecutor) failed. Actual reason for this can be found in logs under /tmp/artifacts
By looking the source code, we can see if we set ".group("abc")" in scenario, the 'req_hierarchy' in below will be always not none and '__parse_request' always return None, could we know if there any reason doesn't support 'req_hierarchy'?

      req_hierarchy = fields[0].split(',')[0]
       if req_hierarchy:
           if error:
               self._group_errors[req_hierarchy].add(error)
           return None

return None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions