I am stuck in creating a custom feeder. I would like to feed for example Empl1- Empl20. So I am creating a feeder as below but it complains about type mismatch Any help would be appreciated.
val UserID = (1 to 20).iterator val customFeeder = Iterator.continually(Map( "ClientID" -> ClientID, "Username" -> "Empl"+UserID.next() "Password" -> "123456789" ))
I get the below error
I tried converting to String using
val UserID = (1 to 20).iterator
val customFeeder = Iterator.continually(Map(
“ClientID” → ClientID,
“Username” → “Empl”+(UserID.next()).toString()
“Password” → “123456789”
))
Thanks for taking the time to reply. Really appreciated. Unfortunately, ‘,’ is not an issue. Actually I used ‘,’ You can see in the 2nd screenshot that there is a ‘,’ after “Empl”+(UserID.next()).toString(),
Thank you so much Stephane. I tried separate parentheses for both parts like this ("Empl")+(ID.next()) and it was not working. What a silly mistake I have done.