Fetch values from Github Action in Gatling Simulation

How to fetch values from Github action in Gatling simulation convert it into int and set default value if no value given

What do you means by this?

from Github action

Is it a simple GET Method? is it the Status Code?

however you can :

import scala.util.Try

  // Convert the value to an Int, or use a default value if the conversion fails
  val myInt: Int = Try(myVariable.toInt).getOrElse(YOUR_DEFAULT_VALUE)

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