I am using gatling 2.2 version.
I have used following check expression to capture the values:----------------------
.check(regex("<script type=(.+?) src=(.+?)>").ofType[(String,String)].findAll.saveAs("answer_ids"))
But getting the value as response in LIST collection:--------------
List((‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/jquery/jquery.js?ver=1.12.4’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/jquery/ui/core.min.js?ver=1.11.4’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/jquery/ui/widget.min.js?ver=1.11.4’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/jquery/ui/tabs.min.js?ver=1.11.4’), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/themes/myloadtest2012j/js/sprout.combined.min.js?ver=1.0’), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/themes/myloadtest2012j/js/jquery.theme.js?ver=1.0’), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/plugins/google-analyticator/external-tracking.min.js?ver=6.4.9’), (“text/javascript”,“http://www.myloadtest.com/wp-content/plugins/insert-or-embed-articulate-content-into-wordpress/colorbox/jquery.colorbox-min.js” ), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/plugins/akismet/_inc/form.js?ver=3.1.11’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/comment-reply.min.js?ver=4.5.4’), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.51.0-2014.06.20’), (‘text/javascript’,‘http://www.myloadtest.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=4.5’), (‘text/javascript’,‘http://www.myloadtest.com/wp-includes/js/wp-embed.min.js?ver=4.5.4’))
how to extract the values is session using single string like that : ‘text/javascript’ …‘http://www.myloadtest.com/wp-includes/js/jquery/jquery.js?ver=1.12.4’
each element individually.
Any Help on this please.
Thanks,
Ashish kumar