JSF handling with Gatling 2-M3a

Hello there. I checked documentation and it seems outdated a bit in terms of Gatling version 2 JSF handling (https://github.com/excilys/gatling/wiki/Handling-JSF). I couldn’t find EvaluatableString type even when I changed import statement to: “import io.gatling.core.session.EvaluatableString”. I am using Gatling in Maven project and have it running fine with standard web sites, but I need to test JSF web site. Since I never used Scala before Gatling I am quite lost on how to solve it in Gatling 2. Could anyone help?

Its called Expression these days

And what’s the import? I used “import io.gatling.core.session._” but that didn’t help.

Sorry, it’s not about import. It’s about this:

10:16:34.690 [main][ERROR][ZincCompiler.scala:98] i.g.a.ZincCompiler$ - D:\dev\test\MavenGatling\src\test\scala\rnpl\TestSimulation.scala:21: type Expression takes type parameters
10:16:34.694 [main][ERROR][ZincCompiler.scala:98] i.g.a.ZincCompiler$ - def jsfGet(name: String, url: Expression) = http(name).get(url)

Code is here:

def jsfGet(name: String, url: Expression) = http(name).get(url).check(jsfViewStateCheck)

Any hints, how should I use Expression here?

“Expression takes type parameters” means exactly that :slight_smile:

url is a Expression[String]

That did it, thank you.