如何将字符串从SIPP命令行注入到脚本的<exec>部分?
SIPP wiki谈论声明,但不讨论如何在<exec>中使用声明。
CMD:
sipp -sf sipp_pcap.txt ........ -key k1 "5060" -set pcap_file "abc.pcap"sipp_pcap.txt
<scenario name=" UAC">
<Global variables="pcap_file" />
<Reference variables="pcap_file" />
………..
……….
<exec play_pcap_video="/root/backup/[$pcap_file]” />
…………..
……………..发布于 2018-02-26 10:34:39
SIPv.3.3和SIPv.3.5的工作都有问题,如果您使用key而不是set,如下所示:
CMD:
sipp -sf sipp_pcap.txt ........ -key k1 "5060" -key pcap_file "abc.pcap"sipp_pcap.txt
<scenario name=" UAC">
<Global variables="pcap_file" />
<Reference variables="pcap_file" />
………..
……….
// no $ symbol
<exec play_pcap_video="/root/backup/[pcap_file]” />
…………..
……………..PS:仍然不知道如何与set一起使用
https://stackoverflow.com/questions/48952295
复制相似问题