mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 07:26:55 +08:00
feat #1342: support specify custom python3 venv
This commit is contained in:
+8
-1
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user