All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.artos.template.template.xml Maven / Gradle / Ivy

Go to download

The Artos "ART OF SYSTEM TESTING" is a framework designed for regression, functional, integration, end to end and/or unit testing.

There is a newer version: 1.0.02
Show newest version
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="true" context="java" deleted="false" description="ARTOS runner template" enabled="true" name="Artos_Runner">package ${enclosing_package};&#13;
&#13;
import java.util.ArrayList;&#13;
import com.artos.framework.infra.Runner;&#13;
import com.artos.interfaces.TestExecutable;&#13;
&#13;
public class ${primary_type_name} {&#13;
&#13;
	public static ArrayList&lt;TestExecutable&gt; getTestList() throws Exception {&#13;
		ArrayList&lt;TestExecutable&gt; tests = new ArrayList&lt;TestExecutable&gt;();&#13;
&#13;
		// --------------------------------------------------------------------------------------------&#13;
		// TODO User May Add Test Case Manually as show in sample below&#13;
		// tests.add(new Test_123());&#13;
		// tests.add(new Test_abc());&#13;
		// --------------------------------------------------------------------------------------------&#13;
&#13;
		return tests;&#13;
	}&#13;
&#13;
	public static void main(String[] args) throws Exception {&#13;
		Runner runner = new Runner(${primary_type_name}.class);&#13;
		runner.setTestList(getTestList());&#13;
		runner.run(args);&#13;
	}&#13;
&#13;
}&#13;
</template><template autoinsert="true" context="java" deleted="false" description="ARTOS test case template" enabled="true" name="Artos_TestCase">package ${enclosing_package};&#13;
&#13;
import com.artos.annotation.TestCase;&#13;
import com.artos.annotation.TestPlan;&#13;
import com.artos.annotation.Unit;&#13;
import com.artos.framework.infra.TestContext;&#13;
import com.artos.interfaces.TestExecutable;&#13;
&#13;
@TestPlan(preparedBy = "${user}", preparationDate = "${date}", bdd = "GIVEN..WHEN..AND..THEN..")&#13;
@TestCase&#13;
public class ${primary_type_name} implements TestExecutable {&#13;
&#13;
	@Unit&#13;
	public void testUnit_1(TestContext context) {&#13;
		// --------------------------------------------------------------------------------------------&#13;
		// TODO Write Test Here&#13;
		// --------------------------------------------------------------------------------------------&#13;
	}&#13;
&#13;
}&#13;
&#13;
&#13;
</template></templates>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy