|
@@ -44,95 +44,95 @@ public class PolicyLibraryTest {
|
|
|
Driver.getThreadLocal().remove();
|
|
|
}
|
|
|
|
|
|
- @Test(retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:进入政策文库,默认搜索系统当前城市的申报通知")
|
|
|
- @Story("政策文库")
|
|
|
- public void defaultSearchSuccess(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.defaultSearch();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:进入政策文库,默认搜索系统当前城市的申报通知")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void defaultSearchSuccess(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.defaultSearch();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:国家级")
|
|
|
- @Story("政策文库")
|
|
|
- public void countrySearch(){
|
|
|
- ArrayList<String> assertTextList=policyLibrary.searchCountry();
|
|
|
- for(String str:assertTextList){
|
|
|
- assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:国家级")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void countrySearch(){
|
|
|
+// ArrayList<String> assertTextList=policyLibrary.searchCountry();
|
|
|
+// for(String str:assertTextList){
|
|
|
+// assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 5,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:国家级,主管部门为第一个部门")
|
|
|
- @Story("政策文库")
|
|
|
- public void countryDepartmentSearch(){
|
|
|
- ArrayList<String> assertTextList=policyLibrary.searchCountryDepartment();
|
|
|
- for(String str:assertTextList){
|
|
|
- assertTrue(str.equals(policyLibrary.assertText));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 5,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:国家级,主管部门为第一个部门")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void countryDepartmentSearch(){
|
|
|
+// ArrayList<String> assertTextList=policyLibrary.searchCountryDepartment();
|
|
|
+// for(String str:assertTextList){
|
|
|
+// assertTrue(str.equals(policyLibrary.assertText));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:省级")
|
|
|
- @Story("政策文库")
|
|
|
- public void provinceSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchProvince();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:省级")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void provinceSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchProvince();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:省级,主管部门为第一个部门")
|
|
|
- @Story("政策文库")
|
|
|
- public void provinceDepartmentSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchProvinceDepartment();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(str.equals(policyLibrary.assertText));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:省级,主管部门为第一个部门")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void provinceDepartmentSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchProvinceDepartment();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(str.equals(policyLibrary.assertText));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1)
|
|
|
- @Description("正常测试用例:搜索选择区域:区级,第一个区")
|
|
|
- @Story("政策文库")
|
|
|
- public void districtSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchDistrict();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1)
|
|
|
+// @Description("正常测试用例:搜索选择区域:区级,第一个区")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void districtSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchDistrict();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 0,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:区级,第一个区,主管部门为第一个部门")
|
|
|
- @Story("政策文库")
|
|
|
- public void districtDepartmentSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchDistrictDepartment();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(str.equals(policyLibrary.assertText));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 0,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:区级,第一个区,主管部门为第一个部门")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void districtDepartmentSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchDistrictDepartment();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(str.equals(policyLibrary.assertText));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:镇街级,第一个镇街")
|
|
|
- @Story("政策文库")
|
|
|
- public void StreetSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchStreet();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:镇街级,第一个镇街")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void StreetSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchStreet();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(policyLibrary.departmentList.contains(str));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
- @Description("正常测试用例:搜索选择区域:镇街级,第一个镇街,主管部门为第一个部门")
|
|
|
- @Story("政策文库")
|
|
|
- public void StreetDepartmentSearch(){
|
|
|
- ArrayList<String> departmentList=policyLibrary.searchStreetDepartment();
|
|
|
- for(String str:departmentList){
|
|
|
- assertTrue(str.equals(policyLibrary.assertText));
|
|
|
- }
|
|
|
- }
|
|
|
+// @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+// @Description("正常测试用例:搜索选择区域:镇街级,第一个镇街,主管部门为第一个部门")
|
|
|
+// @Story("政策文库")
|
|
|
+// public void StreetDepartmentSearch(){
|
|
|
+// ArrayList<String> departmentList=policyLibrary.searchStreetDepartment();
|
|
|
+// for(String str:departmentList){
|
|
|
+// assertTrue(str.equals(policyLibrary.assertText));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
@Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
@Description("正常测试用例:搜索存在的政策原文标题")
|
|
@@ -204,7 +204,7 @@ public class PolicyLibraryTest {
|
|
|
assertTrue(start);
|
|
|
}
|
|
|
|
|
|
- @Test(priority = 1,retryAnalyzer = RetryUtils.class)
|
|
|
+ @Test(priority = 1)
|
|
|
@Description("正常测试用例:搜索扶持扶持方式:资金扶持")
|
|
|
@Story("政策文库")
|
|
|
public void searchSupportOne(){
|