Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是加特林的新手,我有自己无法解决的问题。我必须从我创建的馈线中提取值,但我不知道该怎么做。你有什么想法如何做到这一点?谢谢你的帮助。
val feeder = csv("insertPC.csv").random
假设您的 CSV 中有这个:
computer Macbook MacBook Pro
它会是这样的:
object Search { val feeder = csv("insertPC.csv").random val search = exec(http("Search") .feed(feeder) .get("/computers?f=${computer}"); }
注意CSV 第一行是列名和${computer}之间的匹配