.check(regex("""data-page="(\d)\.2" data-question""").findAll.saveAs("list1")).check(regex("""data-page="(\d)\.2" data-question""").count.saveAs("count1"))
def spustanie(var_list:List[String],var_count:Int)={ for (i <- 0 to var_count-1) { var lst2 = var_list(i).toString var re2 = lst2 if (i == var_count-1) re2 else{ re2 = (lst2.toInt + 1).toString } footer (lst2+",2",re2) } }
.exec(session => { spustanie(session("list1").as[List[String]],session("count1").as[Int]) session })
--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Session(teotest89,7029719221769583319-0,Map(count1 -> 2, count2 -> 2, list1 -> List(2, 5), list2 -> List(0, 3), Ziak_id -> F000000060, <cookies and stuff> ... ),1435150367172,22,OK,List(),<function1>)
.exec(spustanie(list1,count1))
.exec(spustanie(list1,list2,count1,count2))
> begin (OK=1 KO=0 )> zacat testovanie2 (OK=1 KO=0 )> notify_zacat (OK=1 KO=0 )> logout (OK=1 KO=0 )