pip install -r requirements.txt
Reference: https://docs.locust.io/en/stable/running-in-debugger.html
Test SenseChat API Only:
SC_TOKEN='xxxxxx' MH_TOKEN='xxxx' FUSION_TOKEN='xxxx' locust --headless -H https://example.com --users 1 --only-summary --tags sense_chat
Test MiaoHua API Only:
SC_TOKEN='xxxxxx' MH_TOKEN='xxxx' FUSION_TOKEN='xxxx' locust --headless -H https://example.com --users 1 --only-summary --tags miao_hua
Test SenseChat API and Fusion-SenseChat:
SC_TOKEN='xxxxxx' MH_TOKEN='xxxx' FUSION_TOKEN='xxxx' locust --headless -H https://example.com --users 1 --only-summary --tags sense_chat fusion_sc