mirror of
https://github.com/httprunner/httprunner.git
synced 2026-09-05 15:37:35 +08:00
feat: data-driven.
This commit is contained in:
@@ -69,6 +69,7 @@ func (iter *Iterator) Next() (value map[string]interface{}) {
|
|||||||
iter.Lock()
|
iter.Lock()
|
||||||
defer iter.Unlock()
|
defer iter.Unlock()
|
||||||
if len(iter.data) == 0 {
|
if len(iter.data) == 0 {
|
||||||
|
iter.index++
|
||||||
return map[string]interface{}{}
|
return map[string]interface{}{}
|
||||||
}
|
}
|
||||||
if iter.strategy == strategyRandom {
|
if iter.strategy == strategyRandom {
|
||||||
|
|||||||
Reference in New Issue
Block a user