From a69b6975eff0e0d983a53eac2b176cd315c8749c Mon Sep 17 00:00:00 2001 From: fatihbaltaci Date: Mon, 5 Sep 2022 13:47:13 +0000 Subject: [PATCH] Fix bool dynamic variable --- core/scenario/scripting/variables.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/scenario/scripting/variables.go b/core/scenario/scripting/variables.go index ae3bdc22..de53899e 100644 --- a/core/scenario/scripting/variables.go +++ b/core/scenario/scripting/variables.go @@ -207,6 +207,8 @@ func (vi *VariableInjector) fakeDataInjector(text string) (string, error) { p = fmt.Sprintf("%f", res.(float64)) case uuid.UUID: p = res.(uuid.UUID).String() + case bool: + p = strconv.FormatBool(res.(bool)) default: p = res.(string) }