br.com.behaviortest.api.engine.ExecutionTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of behavior-test-api Show documentation
Show all versions of behavior-test-api Show documentation
Projeto para criação e execução dos teste automáticos a nível funcional
package br.com.behaviortest.api.engine;
import java.util.Map;
import java.util.Map.Entry;
import br.com.behaviortest.api.common.LogExecution;
import br.com.behaviortest.api.engine.inicializer.ExecutionInicializer;
import br.com.behaviortest.model.design.Script;
/**
* @author Felipe Rudolfe
* @since 9 de jan de 2020
*/
public class ExecutionTest {
private ExecutionTest() {}
public static void start(Map> mapTest) {
LogExecution.runScripts();
for (Entry> entry : mapTest.entrySet()) {
// TODO melhorar, se possível com thread, possibilitando execução em paralelo
Class clazz = entry.getValue();
ExecutionInicializer task = new ExecutionInicializer(clazz);
task.run();
}
}
}