--
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.
Hi Stéphane,
Thanks for your help, especially correcting my understanding in the "feed" functions.
May I ask the details for the csv file format? Most url files I usually tested, based on RestFul, are only separated by the line breaks, which are not in the format of the keys and values. Do you have any idea about how to handle it? Thank you very much.
url file:
url1
url2
url3
......
Best Regards,
Phy.
Hi, maybe I misunderstood but It looks like csv will work for you as you have 1 record per line and one column only resulting in no commas.
You could try it out with a limited data set to see if it produces the output you expect?
Thanks
Alex
Hi Stéphane,
I really appreciate your invaluable advice. May I pls ask more deeply about this multiple-URLs testing which is quite common case for perf-testing? If my URLs.txt file contains commas, and each line is separated by "\n" (so cannot be treated as csv, tsv, ssv), is it possible to use the function of "feed" for loading these urls from the external file? Thank you very much.
Best Regards,
Phy.
Hi Stéphane,
I find if we have a file with 1 record per line, and each line contains commas, csv will not work.
I tried tsv, and seems it works, but I donot really understand its mechanism. Thank you very much.
Best,
Phy.
Phy.Hi Stéphane,Thanks for your prompt reply and invaluable suggestions. I do think it is necessary to process the input file before testing. Currently I use tsv instead of csv, and interestingly it works, which maybe "/t" is similiar to "\n", I guess?
Thank you,
--
You received this message because you are subscribed to a topic in the Google Groups "Gatling User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/gatling/zMtJEzzKXhM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to gatling+u...@googlegroups.com.
There is some error for session("url"). Here is my script:Thank you,
val url = csv("urls.txt").circular
val scn = scenario("PerfTest").during(10 seconds) {
feed(url)
.exec(
http("URLs")
.get(session => "/search/query?" + java.net.URLEncoder.encode(session("url").as[String], "UTF-8") )
.check(status.is(200)))
}
Phy.