session - error: missing parameter type

.param(“transactionsWithRate20”, session => “” + number3 + “”) is working perfectly.
However, when I use:

.paramsSeq(Seq(
(“transactionsWithRate20”, session => “” + number3 + “”)
))

It gives me the following error:

error: missing parameter type

What am I missing?

paramSeq can use a Session => Seq, not this.

.paramsSeq(session => Seq(
(“vatDeclarationForm9_hf_0”, “”),
(“transactionsWithRate20”, number3.toString)

With “session =>” or without it gives me the same result (number 3 is random Int from 1 to 40). All parameters are equal. What I want is that for each user it is different random string.

.paramsSeq(session => Seq(
(“vatDeclarationForm9_hf_0”, “”),
(“transactionsWithRate20”, number3.toString)

With “session =>” or without it gives me the same result (number 3 is random Int from 1 to 40). All parameters are equal. What I want is that for each user it is different random string.

Is number3 a val or a def?

val

So that’s your problem.
A val is a static value, it’s only evaluated once, where it’s assigned.

Use a def so that it’s computed inside every function call.

Used def - works perfectly now. Thanks again!