How to set run title and description from Gatling Github Action

Hi :smiley:

I am struggling to set the run title and description in the Gatling Github Action

I tried passing

         extra_system_properties: >
            {
              "gatling.enterprise.simulationName": "some name",
              "gatling.enterprise.runTitle": "${{ github.sha }}"
            }

which has no effect. I wonder if its even possible. Is it possible? Or would I need to use the maven plugin Maven Plugin for Gatling and Gatling Enterprise instead to set -Dgatling.enterprise.runTitle and -Dgatling.enterprise.runDescription? The latter works.

Thank you!

Hi!

Sorry for the late answer. These parameters were in fact not supported in the GitHub Action… The good news is that we have just published a new version to add them. You can already try something like:

- name: Gatling Enterprise Action
  uses: gatling/enterprise-action@v1
  with:
    api_token: ${{ secrets.GATLING_ENTERPRISE_API_TOKEN }}
    simulation_id: "..."
    title: "My Title"
    description: "My Description"

The documentation page isn’t updated yet, but this should be straightforward enough I think.

2 Likes

Hi, that is great, thank you! :smiley:

Are there ways to link from Gatling Enterprise back to GitHub? The only way I found so far is adding the necessary information in the title/description to find the GitHub run that triggered the run shown in Gatling

Have you tried something like this? https://stackoverflow.com/questions/59073850/github-actions-get-url-of-test-build

Thanks @slandelle that is what I am doing but do the titles/descriptions support html or markdown to make them clickable? That’s more what I have in mind :smiley:

No, it’s not possible to insert HTML or JavaScript in there, this content gets (rightfully) sanitized.