3

JMeter로 web-srvice를 테스트해야합니다. Thread-group 500으로 테스트 계획을 만들었습니다. 각 스레드마다 매개 변수의 새 값을 전달해야합니다. "CSV Data Set Config"에 대해 들었지만 "Sharing mode"= "All threads"로 설정하면 각 스레드가 각 행의 파일에서 읽으려고 시도하기 때문에 원하는대로 허용하지 않습니다. 첫 번째 스레드는 파일에서 첫 번째 값을, 두 번째 스레드는 두 번째 값을 전달합니다. 물론 한 줄로 500 개의 파일을 만들 수 있지만이 방법은 어리 석고 느립니다. 최선의 방법으로 어떻게 할 수 있습니까? 감사.각 스레드마다 다른 매개 변수가있는 JMeter 테스트 계획

답변

6

올바르게 이해하면 thread1은 row1을 읽고 thread2는 row2를 읽음으로써 각 스레드에 CSV 파일의 고유 한 값을 부여해야합니다. 이것은 정확히 "모든 스레드"가하는 것입니다. 디버그 컨트롤러를 사용하여이를 확인할 수 있습니다.

* All threads - (the default) the file is shared between all the threads. 
* Current thread group - each file is opened once for each thread group in which the element appears 
* Current thread - each file is opened separately for each thread 
* Identifier - all threads sharing the same identifier share the same file. So for example if you have 4 thread groups, you could use a common id for two or more of the groups to share the file between them. Or you could use the thread number to share the file between the same thread numbers in different thread groups. 
+0

http://jmeter.apache.org/usermanual/component_reference.html#CSV_Data_Set_Config

당신은 내가 모든 스레드를 선택하면 각 스레드가 파일에서 다음 행을 마우스 오른쪽했다. 감사. – Roman

관련 문제