com.artos.template.template.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of artos Show documentation
Show all versions of artos Show documentation
The Artos "ART OF SYSTEM TESTING" is a framework designed for regression, functional, integration, end to end and/or unit testing.
<?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}; import java.util.ArrayList; import com.artos.framework.infra.Runner; import com.artos.interfaces.TestExecutable; public class ${primary_type_name} { public static ArrayList<TestExecutable> getTestList() throws Exception { ArrayList<TestExecutable> tests = new ArrayList<TestExecutable>(); // -------------------------------------------------------------------------------------------- // TODO User May Add Test Case Manually as show in sample below // tests.add(new Test_123()); // tests.add(new Test_abc()); // -------------------------------------------------------------------------------------------- return tests; } public static void main(String[] args) throws Exception { Runner runner = new Runner(${primary_type_name}.class); runner.setTestList(getTestList()); runner.run(args); } } </template><template autoinsert="true" context="java" deleted="false" description="ARTOS test case template" enabled="true" name="Artos_TestCase">package ${enclosing_package}; import com.artos.annotation.TestCase; import com.artos.annotation.TestPlan; import com.artos.annotation.Unit; import com.artos.framework.infra.TestContext; import com.artos.interfaces.TestExecutable; @TestPlan(preparedBy = "${user}", preparationDate = "${date}", bdd = "GIVEN..WHEN..AND..THEN..") @TestCase public class ${primary_type_name} implements TestExecutable { @Unit public void testUnit_1(TestContext context) { // -------------------------------------------------------------------------------------------- // TODO Write Test Here // -------------------------------------------------------------------------------------------- } } </template></templates>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy