Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

Jmeter - Passing parameter one by one from a variable

I am a JMeter new user. I have the following scenario - To search for a Name in search text box. Parameterized the Name in CSV. But while searching instead of entire name being passed as parameter i.e. ${Name}, I need to pass each character of ${Name} to individual HTTP Request, say for request 1, parameter is N, Request 2 - Parameter a and so on and the search result is displayed for the last request when N, a, m, e have all been passed. How do i handle this using Jmeter?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

If you need to send multiple request then in the csv, give the input field as required.

Example:-

1st Cell:-N

2nd Cell:-Na

etc

But, check if there is a request being send for every word you type in the field to the server using fiddler or any other sniffing tool. If yes, then use the above approach. Also, you can try using jmeter recording for the scenerio.

If, not then you need to have one request which is sending the full variable i.e. Name.

Hope this helps.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...