feat #1342: support specify custom python3 venv

This commit is contained in:
debugtalk
2022-06-13 21:31:05 +08:00
parent f24c453890
commit 182d2fd5d8
35 changed files with 381 additions and 123 deletions
+8 -1
View File
@@ -29,9 +29,16 @@ type HRPBoomer struct {
pluginsMutex *sync.RWMutex // avoid data race
}
func (b *HRPBoomer) SetClientTransport() {
func (b *HRPBoomer) SetClientTransport() *HRPBoomer {
// set client transport for high concurrency load testing
b.hrpRunner.SetClientTransport(b.GetSpawnCount(), b.GetDisableKeepAlive(), b.GetDisableCompression())
return b
}
// SetPython3Venv specifies python3 venv.
func (b *HRPBoomer) SetPython3Venv(venv string) *HRPBoomer {
b.hrpRunner.SetPython3Venv(venv)
return b
}
// Run starts to run load test for one or multiple testcases.