load testing - TSung HTTP not working with header -
we performing load testing using tsung.
we able load test http end point without headers. when add http header, tsung failing , not able make request.
i unable decipher tsung logs issue. format of configuration tsung.xml per tsung docs.
please find below tsung.xml configuration used , error logs,
tsung.xml
<sessions> <session name="http-example" probability="100" type="ts_http"> <request> <http url="http://172.17.0.1/api/test" version="1.1" method="get"> <http_header name="authorization" value="bearer a3b84dd8-d8a3-4e37-9468-5244333df0e0"/> </http> </request> </session> </sessions> tsungcontroller.log
** reason termination = ** {{case_clause,false}, [{ts_http_common,'-headers/1-fun-0-',2, [{file,"src/tsung/ts_http_common.erl"},{line,224}]}, {lists,foldl,3,[{file,"lists.erl"},{line,1248}]}, {ts_http_common,http_no_body,2, [{file,"src/tsung/ts_http_common.erl"},{line,75}]}, {ts_http,get_message,2,[{file,"src/tsung/ts_http.erl"},{line,130}]}, {ts_client,handle_next_request,2, [{file,"src/tsung/ts_client.erl"},{line,798}]}, {gen_fsm,handle_msg,7,[{file,"gen_fsm.erl"},{line,505}]}, {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]} please let me know missing
i using tsung 1.5.1 earlier. issue resolved in 1.6 :) :)
i able add http headers.
Comments
Post a Comment