Exemple #1
0
func (g Group) Process(cache map[string]interface{}, tr *system.TaskRunner) error {
	log.Printf("---->%v", g.number)

	var i uint32 = 0
	for ;i < g.number; i++ {
		innertr, err := createTaskRunner(&g.baseGroup)
		if err != nil {
			return err
		}

		innertr.Run()
	}

	tr.EndTask(false)

	return nil
}
Exemple #2
0
func (w RandomWait) Process(cache map[string]interface{}, tr *system.TaskRunner) error {
	log.Printf("Waiting between %v and %v ms", w.min, w.max)
	tr.EndTask(false)
	return nil
}
Exemple #3
0
func (w Wait) Process(cache map[string]interface{}, tr *system.TaskRunner) error {
	log.Printf("Waiting %v ms", w.time)
	tr.EndTask(false)
	return nil
}
Exemple #4
0
func (d Display) Process(cache map[string]interface{}, tr *system.TaskRunner) error {
	log.Printf(d.text)
	tr.EndTask(false)
	return nil
}