文件名:ElementData.java
+ *用途: + * 用于存储页面元素的基本信息,以便于在查找中进行使用 + *
+ *编码时间:2020年9月27日上午7:50:44
+ *修改时间:2020年9月27日上午7:50:44
+ * @author 彭宇琦 + * @version Ver1.0 + * + */ +public class ElementData { + +} diff --git a/src/test/java/pres/auxiliary/testcase/writecase/TestAddInformation.java b/src/test/java/pres/auxiliary/testcase/writecase/TestAddInformation.java index 550b1e9..416ee24 100644 --- a/src/test/java/pres/auxiliary/testcase/writecase/TestAddInformation.java +++ b/src/test/java/pres/auxiliary/testcase/writecase/TestAddInformation.java @@ -3,9 +3,9 @@ package pres.auxiliary.testcase.writecase; import java.io.File; import java.io.IOException; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; +import org.testng.annotations.AfterClass; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; import pres.auxiliary.work.old.testcase.change.Tab; import pres.auxiliary.work.old.testcase.templet.ZentaoTemplet; @@ -20,7 +20,7 @@ public class TestAddInformation { static AddInformation a; @BeforeClass - public static void createTemplet() throws Exception { + public void createTemplet() throws Exception { ZentaoTemplet.setCoverFile(true); ZentaoTemplet.create(); diff --git a/src/test/java/pres/auxiliary/work/testcase/file/JiraTestCaseWriteTest.java b/src/test/java/pres/auxiliary/work/testcase/file/JiraTestCaseWriteTest.java index b70eb2a..2de2977 100644 --- a/src/test/java/pres/auxiliary/work/testcase/file/JiraTestCaseWriteTest.java +++ b/src/test/java/pres/auxiliary/work/testcase/file/JiraTestCaseWriteTest.java @@ -63,6 +63,7 @@ public class JiraTestCaseWriteTest { @BeforeMethod public void addContent(Method method) { System.out.println("=======正在运行:" + method.getName() + "======="); + wtc.switchSheet("测试用例"); } /** @@ -155,27 +156,4 @@ public class JiraTestCaseWriteTest { dlc.setReplaceWord(DataListCase.DATA_NAME, "用户"); wtc.addCase(dlc.appBrowseListCase()); } - - /** - * 综合测试 - */ - @Test - public void synthesizeTest() { - wtc.addTitle("测试一个标题") - .addModule("企业", "标段现场") - .addStep("步骤1", "步骤2") - .addExcept("预期1", "预期2") - .addStepAndExcept("步骤3", "预期3") - .addContent(JiraFieldIdType.CASE_KEY.getName(), "1") - .addContent(JiraFieldIdType.COMPONENT.getName(), "4") - .addContent(JiraFieldIdType.ISSUES.getName(), "4") - .addContent(JiraFieldIdType.OBJECTIVE.getName(), "目的") - .addContent(JiraFieldIdType.OWNER.getName(), "彭宇琦") - .addContent(JiraFieldIdType.PRECONDITION.getName(), "前置1", "前置2") - .addContent(JiraFieldIdType.PRIORITY.getName(), "1") - .addContent(JiraFieldIdType.STATUS.getName(), "3") - .end() - .changeTextColor(JiraFieldIdType.STEP.getName(), 0, MarkColorsType.GREEN) - .fieldComment(JiraFieldIdType.FOLDER.getName(), "模块标记"); - } } diff --git a/src/test/java/pres/auxiliary/work/testcase/用例xml文件.xml b/src/test/java/pres/auxiliary/work/testcase/用例xml文件.xml index e73d681..d9b94db 100644 --- a/src/test/java/pres/auxiliary/work/testcase/用例xml文件.xml +++ b/src/test/java/pres/auxiliary/work/testcase/用例xml文件.xml @@ -1,2 +1,2 @@ -