diff --git a/ConfigurationFiles/CaseConfigurationFile/CaseTemplet/BrowseList.xml b/ConfigurationFiles/CaseConfigurationFile/CaseTemplet/BrowseList.xml
index 78ea941..274acde 100644
--- a/ConfigurationFiles/CaseConfigurationFile/CaseTemplet/BrowseList.xml
+++ b/ConfigurationFiles/CaseConfigurationFile/CaseTemplet/BrowseList.xml
@@ -1,11 +1,17 @@
文件名:CaseContentException.java
diff --git a/src/main/java/pres/auxiliary/work/n/tcase/DataListCase.java b/src/main/java/pres/auxiliary/work/n/testcase/DataListCase.java similarity index 58% rename from src/main/java/pres/auxiliary/work/n/tcase/DataListCase.java rename to src/main/java/pres/auxiliary/work/n/testcase/DataListCase.java index ea9f63c..5114535 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/DataListCase.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/DataListCase.java @@ -1,6 +1,7 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; import java.io.File; +import java.io.IOException; /** *文件名:DataListCase.java
@@ -100,9 +101,6 @@ public class DataListCase extends Case { //添加步骤与预期 relevanceAddData(caseName, ALL, ALL); - //存储预期信息 - addFieldText(LabelType.EXCEPT, getAllLabelText(caseName, LabelType.EXCEPT)); - //存储前置条件信息 addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); @@ -123,7 +121,7 @@ public class DataListCase extends Case { //清空字段的内容 clearFieldText(); // 存储case标签的name属性内容 - String caseName = "addInputSearchCase"; + String caseName = "addSelectSearchCase"; //添加替换词语 wordMap.put(WordType.SEARCH_CONDITION.getName(), condition); @@ -132,7 +130,60 @@ public class DataListCase extends Case { addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); //添加步骤与预期 - relevanceAddData(caseName, ALL, ALL); + //选择第一个选项 + relevanceAddData(caseName, "1", "1"); + //选择中间选项 + relevanceAddData(caseName, "2", "1"); + //选择最后选项 + relevanceAddData(caseName, "3", "1"); + //不选择 + relevanceAddData(caseName, "4", "4"); + //选择都不包含 + relevanceAddData(caseName, "5", "5"); + + //存储前置条件信息 + addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); + + //存储关键词信息 + addFieldText(LabelType.KEY, getLabelText(caseName, LabelType.KEY, "1")); + //存储优先级信息 + addFieldText(LabelType.RANK, getLabelText(caseName, LabelType.RANK, "1")); + + return this; + } + + /** + * 用于添加联动选择条件对列表进行搜索的测试用例,当存在联动选项时可使用该方法生成用例。 + * 若搜索条件为最下级时,相当于普通下拉选择框,可以考虑调用{@link #selectSearchCase(String)}方法 + * @param condition 搜索条件(控件)名称 + * @param downCondition 下级搜索条件(控件)名称 + * @return 类本身 + */ + public Case selectSearchCase(String condition, String downCondition) { + //清空字段的内容 + clearFieldText(); + // 存储case标签的name属性内容 + String caseName = "addSelectSearchCase"; + + //添加替换词语 + wordMap.put(WordType.SEARCH_CONDITION.getName(), condition); + //添加替换词语 + wordMap.put(WordType.DONW_CONDITION.getName(), downCondition); + + //存储标题信息 + addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); + + //添加步骤与预期 + //选择第一个选项 + relevanceAddData(caseName, "1", "2"); + //选择中间选项 + relevanceAddData(caseName, "2", "2"); + //选择最后选项 + relevanceAddData(caseName, "3", "2"); + //不选择 + relevanceAddData(caseName, "4", "3"); + //选择都不包含 + relevanceAddData(caseName, "5", "5"); //存储前置条件信息 addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); @@ -239,6 +290,9 @@ public class DataListCase extends Case { // 存储case标签的name属性内容 String caseName = "addListSortCase"; + //添加替换词语 + wordMap.put(WordType.SEARCH_CONDITION.getName(), condition); + //存储标题信息 addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); @@ -268,7 +322,10 @@ public class DataListCase extends Case { //清空字段的内容 clearFieldText(); // 存储case标签的name属性内容 - String caseName = "addListSortCase"; + String caseName = "addExportListCase"; + + //添加替换词语 + wordMap.put(WordType.EXPORT_BUTTON_NAME.getName(), exportButton); //存储标题信息 addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); @@ -298,6 +355,141 @@ public class DataListCase extends Case { return this; } + /** + * 用于添加导入信息的测试用例 + * @return 类本身 + */ + public Case importListCase() { + //清空字段的内容 + clearFieldText(); + // 存储case标签的name属性内容 + String caseName = "addImportListCase"; + + //存储标题信息 + addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); + + //---------------------------------------- + //添加步骤与预期 + relevanceAddData(caseName, ALL, ALL); + //---------------------------------------- + + //存储前置条件信息 + addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); + + //存储关键词信息 + addFieldText(LabelType.KEY, getLabelText(caseName, LabelType.KEY, "1")); + //存储优先级信息 + addFieldText(LabelType.RANK, getLabelText(caseName, LabelType.RANK, "1")); + + return this; + } + + /** + * 用于生成重置搜索功能的测试用例 + * @return 类本身 + */ + public Case resetSearchCase() { + //清空字段的内容 + clearFieldText(); + // 存储case标签的name属性内容 + String caseName = "addResetSearchCase"; + + //存储标题信息 + addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); + + //---------------------------------------- + //添加步骤与预期 + relevanceAddData(caseName, ALL, ALL); + //---------------------------------------- + + //存储前置条件信息 + addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); + + //存储关键词信息 + addFieldText(LabelType.KEY, getLabelText(caseName, LabelType.KEY, "1")); + //存储优先级信息 + addFieldText(LabelType.RANK, getLabelText(caseName, LabelType.RANK, "1")); + + return this; + } + + /** + * 该方法用于生成切换列表单页数据显示量的用例 + * @return + * @throws IOException + */ + public Case switchListShowDataCase() { + //清空字段的内容 + clearFieldText(); + // 存储case标签的name属性内容 + String caseName = "addSwitchListShowDataCase"; + + //存储标题信息 + addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); + + //---------------------------------------- + //添加步骤与预期 + relevanceAddData(caseName, ALL, ALL); + //---------------------------------------- + + //存储前置条件信息 + addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); + + //存储关键词信息 + addFieldText(LabelType.KEY, getLabelText(caseName, LabelType.KEY, "1")); + //存储优先级信息 + addFieldText(LabelType.RANK, getLabelText(caseName, LabelType.RANK, "1")); + + return this; + } + + /** + * 用于生成删除列表数据相关的测试用例 + * @param delectButton 删除按钮名称 + * @return 类本身 + */ + public Case delectDataCase(String delectButton) { + //清空字段的内容 + clearFieldText(); + // 存储case标签的name属性内容 + String caseName = "delectDataCase"; + + //添加替换词语 + wordMap.put(WordType.DELECT_BUTTON.getName(), delectButton); + + //存储标题信息 + addFieldText(LabelType.TITLE, getLabelText(caseName, LabelType.TITLE, "1")); + + //---------------------------------------- + //不选择 + relevanceAddData(caseName, "1", "1"); + //选择第一条删除 + relevanceAddData(caseName, "2", "2"); + //选择最后删除 + relevanceAddData(caseName, "3", "2"); + //选择多条删除 + relevanceAddData(caseName, "4", "2"); + //选择一页数据删除 + relevanceAddData(caseName, "5", "3"); + //在只有一页数据的情况下,全选 + relevanceAddData(caseName, "6", "4"); + //列表搜索后勾选部分数据 + relevanceAddData(caseName, "7", "2"); + //列表搜索后数据全选 + relevanceAddData(caseName, "8", "5"); + //---------------------------------------- + + //存储前置条件信息 + addFieldText(LabelType.PRECONDITION, getAllLabelText(caseName, LabelType.PRECONDITION)); + + //存储关键词信息 + addFieldText(LabelType.KEY, getLabelText(caseName, LabelType.KEY, "1")); + //存储优先级信息 + addFieldText(LabelType.RANK, getLabelText(caseName, LabelType.RANK, "1")); + + return this; + } + /** *文件名:DataListCase.java
*用途:枚举在预设测试用例中需要被替换的词语
@@ -329,6 +521,14 @@ public class DataListCase extends Case { * 导出按钮 */ EXPORT_BUTTON_NAME("导出按钮"), + /** + * 下级选项 + */ + DONW_CONDITION("下级选项"), + /** + * 删除按钮 + */ + DELECT_BUTTON("删除按钮"), ; /** * 存储需要替换的单词名称 diff --git a/src/main/java/pres/auxiliary/work/n/tcase/FieldType.java b/src/main/java/pres/auxiliary/work/n/testcase/FieldType.java similarity index 92% rename from src/main/java/pres/auxiliary/work/n/tcase/FieldType.java rename to src/main/java/pres/auxiliary/work/n/testcase/FieldType.java index 94f3578..0e1e2be 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/FieldType.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/FieldType.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; /** *文件名:FieidType.java
diff --git a/src/main/java/pres/auxiliary/work/n/tcase/IncorrectFileException.java b/src/main/java/pres/auxiliary/work/n/testcase/IncorrectFileException.java similarity index 91% rename from src/main/java/pres/auxiliary/work/n/tcase/IncorrectFileException.java rename to src/main/java/pres/auxiliary/work/n/testcase/IncorrectFileException.java index 566b828..0f88e12 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/IncorrectFileException.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/IncorrectFileException.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; /** *文件名:IncorrectFileException.java
diff --git a/src/main/java/pres/auxiliary/work/n/tcase/InformationCase.java b/src/main/java/pres/auxiliary/work/n/testcase/InformationCase.java similarity index 97% rename from src/main/java/pres/auxiliary/work/n/tcase/InformationCase.java rename to src/main/java/pres/auxiliary/work/n/testcase/InformationCase.java index 55986f5..e65d8a8 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/InformationCase.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/InformationCase.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; import java.io.File; import java.util.Arrays; diff --git a/src/main/java/pres/auxiliary/work/n/tcase/LabelNotFoundException.java b/src/main/java/pres/auxiliary/work/n/testcase/LabelNotFoundException.java similarity index 89% rename from src/main/java/pres/auxiliary/work/n/tcase/LabelNotFoundException.java rename to src/main/java/pres/auxiliary/work/n/testcase/LabelNotFoundException.java index 329ce06..d29588e 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/LabelNotFoundException.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/LabelNotFoundException.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; public class LabelNotFoundException extends RuntimeException { diff --git a/src/main/java/pres/auxiliary/work/n/tcase/LabelType.java b/src/main/java/pres/auxiliary/work/n/testcase/LabelType.java similarity index 90% rename from src/main/java/pres/auxiliary/work/n/tcase/LabelType.java rename to src/main/java/pres/auxiliary/work/n/testcase/LabelType.java index 7e3ce7f..2023a1a 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/LabelType.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/LabelType.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; /** *文件名:LabelType.java
diff --git a/src/main/java/pres/auxiliary/work/n/tcase/MarkColorsType.java b/src/main/java/pres/auxiliary/work/n/testcase/MarkColorsType.java similarity index 91% rename from src/main/java/pres/auxiliary/work/n/tcase/MarkColorsType.java rename to src/main/java/pres/auxiliary/work/n/testcase/MarkColorsType.java index d31933a..c72a0cb 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/MarkColorsType.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/MarkColorsType.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; import org.apache.poi.ss.usermodel.IndexedColors; diff --git a/src/main/java/pres/auxiliary/work/n/tcase/TestCaseTemplet.java b/src/main/java/pres/auxiliary/work/n/testcase/TestCaseTemplet.java similarity index 96% rename from src/main/java/pres/auxiliary/work/n/tcase/TestCaseTemplet.java rename to src/main/java/pres/auxiliary/work/n/testcase/TestCaseTemplet.java index fe1e303..28c43a6 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/TestCaseTemplet.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/TestCaseTemplet.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; import java.io.File; import java.io.FileOutputStream; diff --git a/src/main/java/pres/auxiliary/work/n/tcase/TestCaseWrite.java b/src/main/java/pres/auxiliary/work/n/testcase/TestCaseWrite.java similarity index 97% rename from src/main/java/pres/auxiliary/work/n/tcase/TestCaseWrite.java rename to src/main/java/pres/auxiliary/work/n/testcase/TestCaseWrite.java index cb7c4af..535c706 100644 --- a/src/main/java/pres/auxiliary/work/n/tcase/TestCaseWrite.java +++ b/src/main/java/pres/auxiliary/work/n/testcase/TestCaseWrite.java @@ -1,4 +1,4 @@ -package pres.auxiliary.work.n.tcase; +package pres.auxiliary.work.n.testcase; import java.io.File; import java.io.FileInputStream; diff --git a/src/test/java/pres/auxiliary/work/testcase/DataListCaseTest.java b/src/test/java/pres/auxiliary/work/testcase/DataListCaseTest.java new file mode 100644 index 0000000..c418ab5 --- /dev/null +++ b/src/test/java/pres/auxiliary/work/testcase/DataListCaseTest.java @@ -0,0 +1,185 @@ +package pres.auxiliary.work.testcase; + +import java.io.File; + +import org.testng.annotations.AfterClass; +import org.testng.annotations.AfterMethod; +import org.testng.annotations.BeforeClass; +import org.testng.annotations.Test; + +import pres.auxiliary.work.n.testcase.DataListCase; +import pres.auxiliary.work.n.testcase.LabelType; +import pres.auxiliary.work.n.testcase.TestCaseTemplet; +import pres.auxiliary.work.n.testcase.TestCaseWrite; + +public class DataListCaseTest { + /** + * 指向生成的测试用例文件 + */ + File testCaseFile = new File("src/test/java/pres/auxiliary/work/testcase/测试用例.xlsx"); + /** + * 指向测试用例文件字段配置文件 + */ + File templetXml = new File("ConfigurationFiles/CaseConfigurationFile/FileTemplet/jira测试用例导入模板.xml"); + /** + * 指向与InformationCase使用到的预设测试用例配置文件 + */ + File browseListCase = new File("ConfigurationFiles/CaseConfigurationFile/CaseTemplet/BrowseList.xml"); + + DataListCase dc = new DataListCase(browseListCase); + /** + * 用于写入用例到文件中 + */ + TestCaseWrite tcw; + + @BeforeClass + public void start() throws Exception { + TestCaseTemplet tct = new TestCaseTemplet(templetXml, testCaseFile); + //为方便演示,则允许覆盖用例文件 + tct.setCoverFile(true); + //生成用例文件 + tct.create(); + + //初始化 + tcw = new TestCaseWrite(templetXml, testCaseFile); + + dc.setReplaceWord(DataListCase.DATA_NAME, "用户"); + + //设置测试用例文件中字段与测试用例模板中的字段对应关系 + tcw.relevanceCase("步骤", LabelType.STEP.getName()); + tcw.relevanceCase("预期", LabelType.EXCEPT.getName()); + tcw.relevanceCase("优先级", LabelType.RANK.getName()); + tcw.relevanceCase("前置条件", LabelType.PRECONDITION.getName()); + tcw.relevanceCase("标题", LabelType.TITLE.getName()); + + //设置每条测试用例中值都一样的字段 + tcw.setFieldValue("设计者", "彭宇琦"); + tcw.setFieldValue("状态", "2"); + } + + @AfterClass + public void outputInformation() throws Exception { + //写入用例 + tcw.writeFile(); + //打开用例文件夹 + java.awt.Desktop.getDesktop().open(testCaseFile.getParentFile()); + java.awt.Desktop.getDesktop().open(testCaseFile); + } + + @AfterMethod + public void endCase() { + tcw.end(); + } + + /** + * 测试{@link DataListCase#appBrowseListCase()} + */ + @Test + public void appBrowseListCaseTest() { + tcw.addCase(dc.appBrowseListCase()); + } + + /** + * 测试{@link DataListCase#dateSearchCase(String)} + */ + @Test + public void dateSearchCaseTest() { + tcw.addCase(dc.dateSearchCase("考勤时间")); + } + + /** + * 测试{@link DataListCase#exportListCase(String, boolean)} + */ + @Test + public void exportListCaseTest_True() { + tcw.addCase(dc.exportListCase("导出数据", true)); + } + + /** + * 测试{@link DataListCase#exportListCase(String, boolean)} + */ + @Test + public void exportListCaseTest_false() { + tcw.addCase(dc.exportListCase("导出数据", false)); + } + + /** + * 测试{@link DataListCase#importListCase()} + */ + @Test + public void importListCaseTest() { + tcw.addCase(dc.importListCase()); + } + + /** + * 测试{@link DataListCase#listSortCase(String)} + */ + @Test + public void listSortCaseTest() { + tcw.addCase(dc.listSortCase("创建时间")); + } + + /** + * 测试{@link DataListCase#resetSearchCase()} + */ + @Test + public void resetSearchCaseTest() { + tcw.addCase(dc.resetSearchCase()); + } + + /** + * 测试{@link DataListCase#selectSearchCase(String)} + */ + @Test + public void selectSearchCaseTest_String() { + tcw.addCase(dc.selectSearchCase("班组")); + } + + /** + * 测试{@link DataListCase#selectSearchCase(String, String)} + */ + @Test + public void selectSearchCaseTest_StringString() { + tcw.addCase(dc.selectSearchCase("企业单位", "班组")); + } + + /** + * 测试{@link DataListCase#switchListShowDataCase()} + */ + @Test + public void switchListShowDataCaseTest() { + tcw.addCase(dc.switchListShowDataCase()); + } + + /** + * 测试{@link DataListCase#textboxSearchCase(String)} + */ + @Test + public void textboxSearchCaseTest() { + tcw.addCase(dc.textboxSearchCase("统一社会信用代码")); + } + + /** + * 测试{@link DataListCase#timeQuantumSearchCase(String, String)} + */ + @Test + public void timeQuantumSearchCaseTest() { + tcw.addCase(dc.timeQuantumSearchCase("开工时间", "竣工时间")); + } + + /** + * 测试{@link DataListCase#webBrowseListCase()} + */ + @Test + public void webBrowseListCaseTest() { + tcw.addCase(dc.webBrowseListCase()); + } + + /** + * 测试{@link DataListCase#delectDataCase(String)} + */ + @Test + public void delectDataCaseTest() { + tcw.addCase(dc.delectDataCase("删除")); + } +} diff --git a/src/test/java/pres/auxiliary/work/testcase/InformationCaseTest.java b/src/test/java/pres/auxiliary/work/testcase/InformationCaseTest.java index dc660ac..8e6a4a2 100644 --- a/src/test/java/pres/auxiliary/work/testcase/InformationCaseTest.java +++ b/src/test/java/pres/auxiliary/work/testcase/InformationCaseTest.java @@ -6,14 +6,14 @@ import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; -import pres.auxiliary.work.n.tcase.CaseContentException; -import pres.auxiliary.work.n.tcase.InformationCase; -import pres.auxiliary.work.n.tcase.InformationCase.FileRuleType; -import pres.auxiliary.work.n.tcase.InformationCase.InputRuleType; -import pres.auxiliary.work.n.tcase.InformationCase.UploadFileType; +import pres.auxiliary.work.n.testcase.CaseContentException; +import pres.auxiliary.work.n.testcase.InformationCase; +import pres.auxiliary.work.n.testcase.InformationCase.FileRuleType; +import pres.auxiliary.work.n.testcase.InformationCase.InputRuleType; +import pres.auxiliary.work.n.testcase.InformationCase.UploadFileType; public class InformationCaseTest { -InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfigurationFile/CaseTemplet/AddInformation.xml")); + InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfigurationFile/CaseTemplet/AddInformation.xml")); @BeforeClass public void start() { @@ -180,7 +180,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.tcase.InformationCase.PhoneType...)}方法 + * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.testcase.InformationCase.PhoneType...)}方法 */ @Test public void addPhoneCaseTest_Fixed() { @@ -188,7 +188,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.tcase.InformationCase.PhoneType...)}方法 + * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.testcase.InformationCase.PhoneType...)}方法 */ @Test public void addPhoneCaseTest_Moble() { @@ -196,7 +196,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.tcase.InformationCase.PhoneType...)}方法 + * 测试{@link InformationCase#addPhoneCase(String, boolean, boolean, boolean, pres.auxiliary.work.n.testcase.InformationCase.PhoneType...)}方法 */ @Test public void addPhoneCaseTest_All() { @@ -284,7 +284,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.tcase.InformationCase.UploadFileType, pres.auxiliary.work.n.tcase.InformationCase.FileRuleType...)}方法 + * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.testcase.InformationCase.UploadFileType, pres.auxiliary.work.n.testcase.InformationCase.FileRuleType...)}方法 */ @Test public void addUploadFileCaseTest_1() { @@ -292,7 +292,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.tcase.InformationCase.UploadFileType, pres.auxiliary.work.n.tcase.InformationCase.FileRuleType...)}方法 + * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.testcase.InformationCase.UploadFileType, pres.auxiliary.work.n.testcase.InformationCase.FileRuleType...)}方法 */ @Test public void addUploadFileCaseTest_2() { @@ -300,7 +300,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.tcase.InformationCase.UploadFileType, pres.auxiliary.work.n.tcase.InformationCase.FileRuleType...)}方法 + * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.testcase.InformationCase.UploadFileType, pres.auxiliary.work.n.testcase.InformationCase.FileRuleType...)}方法 */ @Test public void addUploadFileCaseTest_3() { @@ -308,7 +308,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.tcase.InformationCase.UploadFileType, pres.auxiliary.work.n.tcase.InformationCase.FileRuleType...)}方法 + * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.testcase.InformationCase.UploadFileType, pres.auxiliary.work.n.testcase.InformationCase.FileRuleType...)}方法 */ @Test public void addUploadFileCaseTest_4() { @@ -316,7 +316,7 @@ InformationCase ic = new InformationCase(new File("ConfigurationFiles/CaseConfig } /** - * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.tcase.InformationCase.UploadFileType, pres.auxiliary.work.n.tcase.InformationCase.FileRuleType...)}方法 + * 测试{@link InformationCase#addUploadFileCase(String, boolean, boolean, boolean, int, int, int, pres.auxiliary.work.n.testcase.InformationCase.UploadFileType, pres.auxiliary.work.n.testcase.InformationCase.FileRuleType...)}方法 */ @Test public void addUploadFileCaseTest_5() { diff --git a/src/test/java/pres/auxiliary/work/testcase/ProgramWriteTestCaseDemo.java b/src/test/java/pres/auxiliary/work/testcase/ProgramWriteTestCaseDemo.java index ed62a54..eb2e3e4 100644 --- a/src/test/java/pres/auxiliary/work/testcase/ProgramWriteTestCaseDemo.java +++ b/src/test/java/pres/auxiliary/work/testcase/ProgramWriteTestCaseDemo.java @@ -10,12 +10,12 @@ import org.testng.annotations.BeforeGroups; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; -import pres.auxiliary.work.n.tcase.InformationCase; -import pres.auxiliary.work.n.tcase.InformationCase.InputRuleType; -import pres.auxiliary.work.n.tcase.LabelType; -import pres.auxiliary.work.n.tcase.MarkColorsType; -import pres.auxiliary.work.n.tcase.TestCaseTemplet; -import pres.auxiliary.work.n.tcase.TestCaseWrite; +import pres.auxiliary.work.n.testcase.InformationCase; +import pres.auxiliary.work.n.testcase.LabelType; +import pres.auxiliary.work.n.testcase.MarkColorsType; +import pres.auxiliary.work.n.testcase.TestCaseTemplet; +import pres.auxiliary.work.n.testcase.TestCaseWrite; +import pres.auxiliary.work.n.testcase.InformationCase.InputRuleType; public class ProgramWriteTestCaseDemo { /** diff --git a/src/test/java/pres/auxiliary/work/testcase/TestCaseTempletTest.java b/src/test/java/pres/auxiliary/work/testcase/TestCaseTempletTest.java index d9d898d..169857f 100644 --- a/src/test/java/pres/auxiliary/work/testcase/TestCaseTempletTest.java +++ b/src/test/java/pres/auxiliary/work/testcase/TestCaseTempletTest.java @@ -9,8 +9,8 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; -import pres.auxiliary.work.n.tcase.IncorrectFileException; -import pres.auxiliary.work.n.tcase.TestCaseTemplet; +import pres.auxiliary.work.n.testcase.IncorrectFileException; +import pres.auxiliary.work.n.testcase.TestCaseTemplet; public class TestCaseTempletTest { /** diff --git a/src/test/java/pres/auxiliary/work/testcase/WriteTestCaseTest.java b/src/test/java/pres/auxiliary/work/testcase/WriteTestCaseTest.java index ae54a53..5523ce4 100644 --- a/src/test/java/pres/auxiliary/work/testcase/WriteTestCaseTest.java +++ b/src/test/java/pres/auxiliary/work/testcase/WriteTestCaseTest.java @@ -11,13 +11,13 @@ import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; -import pres.auxiliary.work.n.tcase.FieldType; -import pres.auxiliary.work.n.tcase.InformationCase; -import pres.auxiliary.work.n.tcase.LabelType; -import pres.auxiliary.work.n.tcase.MarkColorsType; -import pres.auxiliary.work.n.tcase.TestCaseTemplet; -import pres.auxiliary.work.n.tcase.TestCaseWrite; -import pres.auxiliary.work.n.tcase.TestCaseWrite.CaseMark; +import pres.auxiliary.work.n.testcase.FieldType; +import pres.auxiliary.work.n.testcase.InformationCase; +import pres.auxiliary.work.n.testcase.LabelType; +import pres.auxiliary.work.n.testcase.MarkColorsType; +import pres.auxiliary.work.n.testcase.TestCaseTemplet; +import pres.auxiliary.work.n.testcase.TestCaseWrite; +import pres.auxiliary.work.n.testcase.TestCaseWrite.CaseMark; /** *@@ -112,7 +112,7 @@ public class WriteTestCaseTest { } /** - * 测试{@link TestCaseWrite#addCase(pres.auxiliary.work.n.tcase.Case)}方法 + * 测试{@link TestCaseWrite#addCase(pres.auxiliary.work.n.testcase.Case)}方法 */ @Test public void addCaseTest() { diff --git a/src/test/java/pres/auxiliary/work/testcase/测试用例.xlsx b/src/test/java/pres/auxiliary/work/testcase/测试用例.xlsx index e9fbbdf..8c76c0e 100644 Binary files a/src/test/java/pres/auxiliary/work/testcase/测试用例.xlsx and b/src/test/java/pres/auxiliary/work/testcase/测试用例.xlsx differ