From cdc2269dfb7f20d75e9cc23bf62c9c8e71a63fef Mon Sep 17 00:00:00 2001 From: suweicheng <2811574534@qq.com> Date: Thu, 25 Oct 2018 16:44:12 +0800 Subject: [PATCH] 删除之前的代码; --- .classpath | 31 ------------------------------- .project | 23 ----------------------- .settings/org.eclipse.core.resources.prefs | 5 ----- .settings/org.eclipse.jdt.core.prefs | 5 ----- .settings/org.eclipse.m2e.core.prefs | 4 ---- Log/Screenshots/20180831_153604截图.png | Bin 86820 -> 0 bytes Log/Screenshots/20180831_170604截图.png | Bin 107652 -> 0 bytes pom.xml | 135 --------------------------------------------------------------------------------------------------------------------------------------- resources/chromedriver.exe | Bin 6737408 -> 0 bytes resources/config.properties | 16 ---------------- resources/suites/addMarketGoods.xml | 16 ---------------- resources/suites/addOriginalGoods.xml | 44 -------------------------------------------- resources/suites/addSkuToCart.xml | 14 -------------- resources/suites/buyerRegister.xml | 19 ------------------- resources/suites/productInquiry.xml | 19 ------------------- resources/suites/publishGroupPurchase.xml | 24 ------------------------ resources/suites/sendPO.xml | 25 ------------------------- resources/suites/sendPO2.xml | 20 -------------------- src/test/java/com/buyer/pageObject/AssetManagementPage.java | 11 ----------- src/test/java/com/buyer/pageObject/BuyerLoginPage.java | 48 ------------------------------------------------ src/test/java/com/buyer/pageObject/ConslidationPage.java | 97 ------------------------------------------------------------------------------------------------- src/test/java/com/buyer/pageObject/IndexPage.java | 131 ----------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/buyer/pageObject/KeywordResultPage.java | 116 -------------------------------------------------------------------------------------------------------------------- src/test/java/com/buyer/pageObject/MyOrderPage.java | 11 ----------- src/test/java/com/buyer/pageObject/OrderPreviewPage.java | 48 ------------------------------------------------ src/test/java/com/buyer/pageObject/PayDepositPage.java | 69 --------------------------------------------------------------------- src/test/java/com/buyer/pageObject/RegisterPage.java | 165 --------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/buyer/pageObject/SettingMarksPage.java | 46 ---------------------------------------------- src/test/java/com/buyer/pageObject/SettingStickerPage.java | 44 -------------------------------------------- src/test/java/com/buyer/pageObject/ShoppingCartPage.java | 81 --------------------------------------------------------------------------------- src/test/java/com/buyer/testSuite/TestAddToCart.java | 65 ----------------------------------------------------------------- src/test/java/com/buyer/testSuite/TestRegister.java | 45 --------------------------------------------- src/test/java/com/buyer/testSuite/TestSendPO.java | 64 ---------------------------------------------------------------- src/test/java/com/essa/framework/BasePage.java | 700 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/framework/BrowserEngine.java | 140 -------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/framework/DBInfo.java | 74 -------------------------------------------------------------------------- src/test/java/com/essa/framework/DButil.java | 143 ----------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/framework/ListenerSuite.java | 20 -------------------- src/test/java/com/essa/framework/LogType.java | 20 -------------------- src/test/java/com/essa/framework/Logger.java | 79 ------------------------------------------------------------------------------- src/test/java/com/essa/framework/Model.java | 128 -------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/framework/SendEmail.java | 113 ----------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/framework/Tools.java | 41 ----------------------------------------- src/test/java/com/essa/pageObject/BaseTest.java | 69 --------------------------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/AddMarketGoodsPage.java | 510 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ src/test/java/com/essa/pageObject/GoodsManage/AddOriginalGoodsPage.java | 505 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/AuditMarketGoodsPage.java | 70 ---------------------------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/AuditMarketOpreatePage.java | 34 ---------------------------------- src/test/java/com/essa/pageObject/GoodsManage/AuditOriginalGoodsPage.java | 74 -------------------------------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/AuditOriginalOpreatePage.java | 52 ---------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/EditSpuPage.java | 45 --------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/GoodsBankPage.java | 47 ----------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/GoodsRelesePage.java | 88 ---------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/GoodsManage/MarketGoodsRelesePage.java | 54 ------------------------------------------------------ src/test/java/com/essa/pageObject/GoodsManage/UpdatePicPage.java | 98 -------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/HomePage.java | 347 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/LoginPage.java | 54 ------------------------------------------------------ src/test/java/com/essa/pageObject/SupplierOperationsTrackPage.java | 79 ------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/SupplierStrengthPage.java | 307 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/buyPlaneManage/SkuCategoryManagerCongfigPage.java | 84 ------------------------------------------------------------------------------------ src/test/java/com/essa/pageObject/buyerManage/InvateCodePage.java | 69 --------------------------------------------------------------------- src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryFeedbackPage.java | 113 ----------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryTaskPage.java | 121 ------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/marketingManage/CollectBillControlPage.java | 15 --------------- src/test/java/com/essa/pageObject/marketingManage/CollectBillSettingPage.java | 223 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/pageObject/marketingManage/GroupControlPage.java | 45 --------------------------------------------- src/test/java/com/essa/pageObject/marketingManage/GroupSettingPage.java | 222 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ src/test/java/com/essa/pageObject/productDev/AddProjectPage.java | 75 --------------------------------------------------------------------------- src/test/java/com/essa/testSuite/SendEmail.java | 113 ----------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestAddMarketGoods.java | 86 -------------------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestAddOriginalGoods.java | 117 --------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestDevelopmentAbility.java | 124 ---------------------------------------------------------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestGenrateCode.java | 45 --------------------------------------------- src/test/java/com/essa/testSuite/TestGroupPurchase.java | 75 --------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestLogin.java | 104 -------------------------------------------------------------------------------------------------------- src/test/java/com/essa/testSuite/TestProductInquiry.java | 51 --------------------------------------------------- src/test/java/swing/SwingMain.java | 701 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/test/java/swing/icon.png | Bin 15974 -> 0 bytes target/.gitignore | 2 -- target/classes/META-INF/MANIFEST.MF | 5 ----- target/classes/META-INF/maven/com.essatest/essa/pom.properties | 7 ------- target/classes/META-INF/maven/com.essatest/essa/pom.xml | 135 --------------------------------------------------------------------------------------------------------------------------------------- target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst | 0 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst | 15 --------------- target/test-classes/com/essa/framework/BasePage.class | Bin 18329 -> 0 bytes target/test-classes/com/essa/framework/BrowserEngine.class | Bin 5033 -> 0 bytes target/test-classes/com/essa/framework/ListenerSuite.class | Bin 678 -> 0 bytes target/test-classes/com/essa/framework/LogType$LogTypeName.class | Bin 1269 -> 0 bytes target/test-classes/com/essa/framework/LogType.class | Bin 377 -> 0 bytes target/test-classes/com/essa/framework/Logger.class | Bin 2826 -> 0 bytes target/test-classes/com/essa/framework/SendEmail$1.class | Bin 703 -> 0 bytes target/test-classes/com/essa/framework/SendEmail.class | Bin 3140 -> 0 bytes target/test-classes/com/essa/pageObject/BaseTest.class | Bin 2039 -> 0 bytes target/test-classes/com/essa/pageObject/HomePage.class | Bin 7265 -> 0 bytes target/test-classes/com/essa/pageObject/LoginPage.class | Bin 1147 -> 0 bytes target/test-classes/com/essa/pageObject/SupplierOperationsTrackPage.class | Bin 2071 -> 0 bytes target/test-classes/com/essa/pageObject/SupplierStrengthPage.class | Bin 7457 -> 0 bytes target/test-classes/com/essa/testSuite/SendEmail$1.class | Bin 703 -> 0 bytes target/test-classes/com/essa/testSuite/SendEmail.class | Bin 3140 -> 0 bytes test-output/Default suite/Default test.html | 71 ----------------------------------------------------------------------- test-output/Default suite/Default test.xml | 4 ---- test-output/Default suite/testng-failed.xml | 13 ------------- test-output/bpms自动化测试/addOriginalGoods.html | 94 ---------------------------------------------------------------------------------------------- test-output/bpms自动化测试/addOriginalGoods.xml | 7 ------- test-output/bpms自动化测试/login.html | 89 ----------------------------------------------------------------------------------------- test-output/bpms自动化测试/login.xml | 6 ------ test-output/bpms自动化测试/testng-failed.xml | 15 --------------- test-output/bpms自动化测试报告/login.html | 89 ----------------------------------------------------------------------------------------- test-output/bpms自动化测试报告/login.xml | 6 ------ test-output/bpms自动化测试报告/登录.html | 89 ----------------------------------------------------------------------------------------- test-output/bpms自动化测试报告/登录.xml | 6 ------ test-output/bullet_point.png | Bin 356 -> 0 bytes test-output/collapseall.gif | Bin 157 -> 0 bytes test-output/emailable-report.html | 21 --------------------- test-output/failed.png | Bin 977 -> 0 bytes test-output/index.html | 316 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test-output/jquery-1.7.1.min.js | 4 ---- test-output/junitreports/TEST-com.buyer.testSuite.TestAddToCart.xml | 5 ----- test-output/junitreports/TEST-com.buyer.testSuite.TestBuyGoods.xml | 37 ------------------------------------- test-output/junitreports/TEST-com.buyer.testSuite.TestRegister.xml | 44 -------------------------------------------- test-output/junitreports/TEST-com.buyer.testSuite.TestSendPO.xml | 6 ------ test-output/junitreports/TEST-com.essa.testSuite.TestAddMarketGoods.xml | 7 ------- test-output/junitreports/TEST-com.essa.testSuite.TestAddOriginalGoods.xml | 8 -------- test-output/junitreports/TEST-com.essa.testSuite.TestGenrateCode.xml | 5 ----- test-output/junitreports/TEST-com.essa.testSuite.TestGroupPurchase.xml | 7 ------- test-output/junitreports/TEST-com.essa.testSuite.TestProductInquiry.xml | 5 ----- test-output/junitreports/TEST-com.essa.testSuite.Test_Login.xml | 6 ------ test-output/navigator-bullet.png | Bin 352 -> 0 bytes test-output/old/Default suite/Default test.properties | 1 - test-output/old/Default suite/classes.html | 6 ------ test-output/old/Default suite/groups.html | 1 - test-output/old/Default suite/index.html | 6 ------ test-output/old/Default suite/main.html | 2 -- test-output/old/Default suite/methods-alphabetical.html | 2 -- test-output/old/Default suite/methods-not-run.html | 2 -- test-output/old/Default suite/methods.html | 2 -- test-output/old/Default suite/reporter-output.html | 1 - test-output/old/Default suite/testng.xml.html | 1 - test-output/old/Default suite/toc.html | 30 ------------------------------ test-output/old/bpms-test/classes.html | 36 ------------------------------------ test-output/old/bpms-test/groups.html | 1 - test-output/old/bpms-test/index.html | 6 ------ test-output/old/bpms-test/login.properties | 1 - test-output/old/bpms-test/main.html | 2 -- test-output/old/bpms-test/methods-alphabetical.html | 12 ------------ test-output/old/bpms-test/methods-not-run.html | 2 -- test-output/old/bpms-test/methods.html | 12 ------------ test-output/old/bpms-test/reporter-output.html | 1 - test-output/old/bpms-test/testng.xml.html | 1 - test-output/old/bpms-test/toc.html | 30 ------------------------------ test-output/old/bpms-test/登录.properties | 1 - test-output/old/bpms自动化测试/addOriginalGoods.properties | 1 - test-output/old/bpms自动化测试/classes.html | 44 -------------------------------------------- test-output/old/bpms自动化测试/groups.html | 1 - test-output/old/bpms自动化测试/index.html | 6 ------ test-output/old/bpms自动化测试/login.properties | 1 - test-output/old/bpms自动化测试/main.html | 2 -- test-output/old/bpms自动化测试/methods-alphabetical.html | 14 -------------- test-output/old/bpms自动化测试/methods-not-run.html | 2 -- test-output/old/bpms自动化测试/methods.html | 14 -------------- test-output/old/bpms自动化测试/reporter-output.html | 1 - test-output/old/bpms自动化测试/testng.xml.html | 1 - test-output/old/bpms自动化测试/toc.html | 30 ------------------------------ test-output/old/bpms自动化测试报告/classes.html | 36 ------------------------------------ test-output/old/bpms自动化测试报告/groups.html | 1 - test-output/old/bpms自动化测试报告/index.html | 6 ------ test-output/old/bpms自动化测试报告/login.properties | 1 - test-output/old/bpms自动化测试报告/main.html | 2 -- test-output/old/bpms自动化测试报告/methods-alphabetical.html | 12 ------------ test-output/old/bpms自动化测试报告/methods-not-run.html | 2 -- test-output/old/bpms自动化测试报告/methods.html | 12 ------------ test-output/old/bpms自动化测试报告/reporter-output.html | 1 - test-output/old/bpms自动化测试报告/testng.xml.html | 1 - test-output/old/bpms自动化测试报告/toc.html | 30 ------------------------------ test-output/old/bpms自动化测试报告/登录.properties | 1 - test-output/old/index.html | 9 --------- test-output/old/发布团购商品/classes.html | 86 -------------------------------------------------------------------------------------- test-output/old/发布团购商品/groups.html | 1 - test-output/old/发布团购商品/index.html | 6 ------ test-output/old/发布团购商品/main.html | 2 -- test-output/old/发布团购商品/methods-alphabetical.html | 26 -------------------------- test-output/old/发布团购商品/methods-not-run.html | 2 -- test-output/old/发布团购商品/methods.html | 26 -------------------------- test-output/old/发布团购商品/publishGroupPurchase.properties | 1 - test-output/old/发布团购商品/reporter-output.html | 1 - test-output/old/发布团购商品/testng.xml.html | 1 - test-output/old/发布团购商品/toc.html | 30 ------------------------------ test-output/old/成品询价/classes.html | 70 ---------------------------------------------------------------------- test-output/old/成品询价/groups.html | 1 - test-output/old/成品询价/index.html | 6 ------ test-output/old/成品询价/main.html | 2 -- test-output/old/成品询价/methods-alphabetical.html | 14 -------------- test-output/old/成品询价/methods-not-run.html | 3 --- test-output/old/成品询价/methods.html | 14 -------------- test-output/old/成品询价/productInquiry.properties | 1 - test-output/old/成品询价/reporter-output.html | 1 - test-output/old/成品询价/testng.xml.html | 1 - test-output/old/成品询价/toc.html | 30 ------------------------------ test-output/old/提交PO-活动商品/classes.html | 74 -------------------------------------------------------------------------- test-output/old/提交PO-活动商品/groups.html | 1 - test-output/old/提交PO-活动商品/index.html | 6 ------ test-output/old/提交PO-活动商品/main.html | 2 -- test-output/old/提交PO-活动商品/methods-alphabetical.html | 18 ------------------ test-output/old/提交PO-活动商品/methods-not-run.html | 3 --- test-output/old/提交PO-活动商品/methods.html | 18 ------------------ test-output/old/提交PO-活动商品/reporter-output.html | 1 - test-output/old/提交PO-活动商品/sendActivityPO.properties | 1 - test-output/old/提交PO-活动商品/testng.xml.html | 1 - test-output/old/提交PO-活动商品/toc.html | 30 ------------------------------ test-output/old/提交PO/classes.html | 105 --------------------------------------------------------------------------------------------------------- test-output/old/提交PO/groups.html | 1 - test-output/old/提交PO/index.html | 6 ------ test-output/old/提交PO/main.html | 2 -- test-output/old/提交PO/methods-alphabetical.html | 24 ------------------------ test-output/old/提交PO/methods-not-run.html | 3 --- test-output/old/提交PO/methods.html | 24 ------------------------ test-output/old/提交PO/reporter-output.html | 1 - test-output/old/提交PO/sendPO.properties | 1 - test-output/old/提交PO/testng.xml.html | 1 - test-output/old/提交PO/toc.html | 30 ------------------------------ test-output/old/新增原厂商品/addOriginalGoods.properties | 1 - test-output/old/新增原厂商品/classes.html | 48 ------------------------------------------------ test-output/old/新增原厂商品/groups.html | 1 - test-output/old/新增原厂商品/index.html | 6 ------ test-output/old/新增原厂商品/main.html | 2 -- test-output/old/新增原厂商品/methods-alphabetical.html | 16 ---------------- test-output/old/新增原厂商品/methods-not-run.html | 2 -- test-output/old/新增原厂商品/methods.html | 16 ---------------- test-output/old/新增原厂商品/reporter-output.html | 1 - test-output/old/新增原厂商品/testng.xml.html | 1 - test-output/old/新增原厂商品/toc.html | 30 ------------------------------ test-output/old/新增市场商品/addMarketGoods.properties | 1 - test-output/old/新增市场商品/classes.html | 44 -------------------------------------------- test-output/old/新增市场商品/groups.html | 1 - test-output/old/新增市场商品/index.html | 6 ------ test-output/old/新增市场商品/main.html | 2 -- test-output/old/新增市场商品/methods-alphabetical.html | 14 -------------- test-output/old/新增市场商品/methods-not-run.html | 2 -- test-output/old/新增市场商品/methods.html | 14 -------------- test-output/old/新增市场商品/reporter-output.html | 1 - test-output/old/新增市场商品/testng.xml.html | 1 - test-output/old/新增市场商品/toc.html | 30 ------------------------------ test-output/old/添加SKU到购物车/buyerRegister.properties | 1 - test-output/old/添加SKU到购物车/classes.html | 40 ---------------------------------------- test-output/old/添加SKU到购物车/groups.html | 1 - test-output/old/添加SKU到购物车/index.html | 6 ------ test-output/old/添加SKU到购物车/main.html | 2 -- test-output/old/添加SKU到购物车/methods-alphabetical.html | 10 ---------- test-output/old/添加SKU到购物车/methods-not-run.html | 3 --- test-output/old/添加SKU到购物车/methods.html | 10 ---------- test-output/old/添加SKU到购物车/reporter-output.html | 1 - test-output/old/添加SKU到购物车/testng.xml.html | 1 - test-output/old/添加SKU到购物车/toc.html | 30 ------------------------------ test-output/old/采购商注册/RegisterBuyer.properties | 1 - test-output/old/采购商注册/buyerRegister.properties | 1 - test-output/old/采购商注册/classes.html | 66 ------------------------------------------------------------------ test-output/old/采购商注册/groups.html | 1 - test-output/old/采购商注册/index.html | 6 ------ test-output/old/采购商注册/main.html | 2 -- test-output/old/采购商注册/methods-alphabetical.html | 16 ---------------- test-output/old/采购商注册/methods-not-run.html | 2 -- test-output/old/采购商注册/methods.html | 16 ---------------- test-output/old/采购商注册/reporter-output.html | 1 - test-output/old/采购商注册/testng.xml.html | 1 - test-output/old/采购商注册/toc.html | 30 ------------------------------ test-output/passed.png | Bin 1019 -> 0 bytes test-output/skipped.png | Bin 967 -> 0 bytes test-output/testng-failed.xml | 16 ---------------- test-output/testng-reports.css | 309 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test-output/testng-reports.js | 122 -------------------------------------------------------------------------------------------------------------------------- test-output/testng-results.xml | 37 ------------------------------------- test-output/testng.css | 9 --------- test-output/xml/com.essa.testSuite.Test_Login_results.xml | 14 -------------- test-output/发布团购商品/publishGroupPurchase.html | 114 ------------------------------------------------------------------------------------------------------------------ test-output/发布团购商品/publishGroupPurchase.xml | 11 ----------- test-output/发布团购商品/testng-failed.xml | 15 --------------- test-output/成品询价/productInquiry.html | 331 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test-output/成品询价/productInquiry.xml | 67 ------------------------------------------------------------------- test-output/成品询价/testng-failed.xml | 15 --------------- test-output/提交PO-活动商品/sendActivityPO.html | 94 ---------------------------------------------------------------------------------------------- test-output/提交PO-活动商品/sendActivityPO.xml | 10 ---------- test-output/提交PO/sendPO.html | 99 --------------------------------------------------------------------------------------------------- test-output/提交PO/sendPO.xml | 11 ----------- test-output/提交PO/testng-failed.xml | 16 ---------------- test-output/新增原厂商品/addOriginalGoods.html | 99 --------------------------------------------------------------------------------------------------- test-output/新增原厂商品/addOriginalGoods.xml | 8 -------- test-output/新增原厂商品/testng-failed.xml | 17 ----------------- test-output/新增市场商品/addMarketGoods.html | 94 ---------------------------------------------------------------------------------------------- test-output/新增市场商品/addMarketGoods.xml | 7 ------- test-output/新增市场商品/testng-failed.xml | 15 --------------- test-output/添加SKU到购物车/buyerRegister.html | 84 ------------------------------------------------------------------------------------ test-output/添加SKU到购物车/buyerRegister.xml | 8 -------- test-output/添加SKU到购物车/testng-failed.xml | 15 --------------- test-output/采购商注册/RegisterBuyer.html | 89 ----------------------------------------------------------------------------------------- test-output/采购商注册/RegisterBuyer.xml | 6 ------ test-output/采购商注册/buyerRegister.html | 143 ----------------------------------------------------------------------------------------------------------------------------------------------- test-output/采购商注册/buyerRegister.xml | 22 ---------------------- test-output/采购商注册/testng-failed.xml | 15 --------------- 298 files changed, 0 insertions(+), 12307 deletions(-) delete mode 100644 .classpath delete mode 100644 .project delete mode 100644 .settings/org.eclipse.core.resources.prefs delete mode 100644 .settings/org.eclipse.jdt.core.prefs delete mode 100644 .settings/org.eclipse.m2e.core.prefs delete mode 100644 Log/Screenshots/20180831_153604截图.png delete mode 100644 Log/Screenshots/20180831_170604截图.png delete mode 100644 pom.xml delete mode 100644 resources/chromedriver.exe delete mode 100644 resources/config.properties delete mode 100644 resources/suites/addMarketGoods.xml delete mode 100644 resources/suites/addOriginalGoods.xml delete mode 100644 resources/suites/addSkuToCart.xml delete mode 100644 resources/suites/buyerRegister.xml delete mode 100644 resources/suites/productInquiry.xml delete mode 100644 resources/suites/publishGroupPurchase.xml delete mode 100644 resources/suites/sendPO.xml delete mode 100644 resources/suites/sendPO2.xml delete mode 100644 src/test/java/com/buyer/pageObject/AssetManagementPage.java delete mode 100644 src/test/java/com/buyer/pageObject/BuyerLoginPage.java delete mode 100644 src/test/java/com/buyer/pageObject/ConslidationPage.java delete mode 100644 src/test/java/com/buyer/pageObject/IndexPage.java delete mode 100644 src/test/java/com/buyer/pageObject/KeywordResultPage.java delete mode 100644 src/test/java/com/buyer/pageObject/MyOrderPage.java delete mode 100644 src/test/java/com/buyer/pageObject/OrderPreviewPage.java delete mode 100644 src/test/java/com/buyer/pageObject/PayDepositPage.java delete mode 100644 src/test/java/com/buyer/pageObject/RegisterPage.java delete mode 100644 src/test/java/com/buyer/pageObject/SettingMarksPage.java delete mode 100644 src/test/java/com/buyer/pageObject/SettingStickerPage.java delete mode 100644 src/test/java/com/buyer/pageObject/ShoppingCartPage.java delete mode 100644 src/test/java/com/buyer/testSuite/TestAddToCart.java delete mode 100644 src/test/java/com/buyer/testSuite/TestRegister.java delete mode 100644 src/test/java/com/buyer/testSuite/TestSendPO.java delete mode 100644 src/test/java/com/essa/framework/BasePage.java delete mode 100644 src/test/java/com/essa/framework/BrowserEngine.java delete mode 100644 src/test/java/com/essa/framework/DBInfo.java delete mode 100644 src/test/java/com/essa/framework/DButil.java delete mode 100644 src/test/java/com/essa/framework/ListenerSuite.java delete mode 100644 src/test/java/com/essa/framework/LogType.java delete mode 100644 src/test/java/com/essa/framework/Logger.java delete mode 100644 src/test/java/com/essa/framework/Model.java delete mode 100644 src/test/java/com/essa/framework/SendEmail.java delete mode 100644 src/test/java/com/essa/framework/Tools.java delete mode 100644 src/test/java/com/essa/pageObject/BaseTest.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AddMarketGoodsPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AddOriginalGoodsPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AuditMarketGoodsPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AuditMarketOpreatePage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AuditOriginalGoodsPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/AuditOriginalOpreatePage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/EditSpuPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/GoodsBankPage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/GoodsRelesePage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/MarketGoodsRelesePage.java delete mode 100644 src/test/java/com/essa/pageObject/GoodsManage/UpdatePicPage.java delete mode 100644 src/test/java/com/essa/pageObject/HomePage.java delete mode 100644 src/test/java/com/essa/pageObject/LoginPage.java delete mode 100644 src/test/java/com/essa/pageObject/SupplierOperationsTrackPage.java delete mode 100644 src/test/java/com/essa/pageObject/SupplierStrengthPage.java delete mode 100644 src/test/java/com/essa/pageObject/buyPlaneManage/SkuCategoryManagerCongfigPage.java delete mode 100644 src/test/java/com/essa/pageObject/buyerManage/InvateCodePage.java delete mode 100644 src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryFeedbackPage.java delete mode 100644 src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryTaskPage.java delete mode 100644 src/test/java/com/essa/pageObject/marketingManage/CollectBillControlPage.java delete mode 100644 src/test/java/com/essa/pageObject/marketingManage/CollectBillSettingPage.java delete mode 100644 src/test/java/com/essa/pageObject/marketingManage/GroupControlPage.java delete mode 100644 src/test/java/com/essa/pageObject/marketingManage/GroupSettingPage.java delete mode 100644 src/test/java/com/essa/pageObject/productDev/AddProjectPage.java delete mode 100644 src/test/java/com/essa/testSuite/SendEmail.java delete mode 100644 src/test/java/com/essa/testSuite/TestAddMarketGoods.java delete mode 100644 src/test/java/com/essa/testSuite/TestAddOriginalGoods.java delete mode 100644 src/test/java/com/essa/testSuite/TestDevelopmentAbility.java delete mode 100644 src/test/java/com/essa/testSuite/TestGenrateCode.java delete mode 100644 src/test/java/com/essa/testSuite/TestGroupPurchase.java delete mode 100644 src/test/java/com/essa/testSuite/TestLogin.java delete mode 100644 src/test/java/com/essa/testSuite/TestProductInquiry.java delete mode 100644 src/test/java/swing/SwingMain.java delete mode 100644 src/test/java/swing/icon.png delete mode 100644 target/.gitignore delete mode 100644 target/classes/META-INF/MANIFEST.MF delete mode 100644 target/classes/META-INF/maven/com.essatest/essa/pom.properties delete mode 100644 target/classes/META-INF/maven/com.essatest/essa/pom.xml delete mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst delete mode 100644 target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst delete mode 100644 target/test-classes/com/essa/framework/BasePage.class delete mode 100644 target/test-classes/com/essa/framework/BrowserEngine.class delete mode 100644 target/test-classes/com/essa/framework/ListenerSuite.class delete mode 100644 target/test-classes/com/essa/framework/LogType$LogTypeName.class delete mode 100644 target/test-classes/com/essa/framework/LogType.class delete mode 100644 target/test-classes/com/essa/framework/Logger.class delete mode 100644 target/test-classes/com/essa/framework/SendEmail$1.class delete mode 100644 target/test-classes/com/essa/framework/SendEmail.class delete mode 100644 target/test-classes/com/essa/pageObject/BaseTest.class delete mode 100644 target/test-classes/com/essa/pageObject/HomePage.class delete mode 100644 target/test-classes/com/essa/pageObject/LoginPage.class delete mode 100644 target/test-classes/com/essa/pageObject/SupplierOperationsTrackPage.class delete mode 100644 target/test-classes/com/essa/pageObject/SupplierStrengthPage.class delete mode 100644 target/test-classes/com/essa/testSuite/SendEmail$1.class delete mode 100644 target/test-classes/com/essa/testSuite/SendEmail.class delete mode 100644 test-output/Default suite/Default test.html delete mode 100644 test-output/Default suite/Default test.xml delete mode 100644 test-output/Default suite/testng-failed.xml delete mode 100644 test-output/bpms自动化测试/addOriginalGoods.html delete mode 100644 test-output/bpms自动化测试/addOriginalGoods.xml delete mode 100644 test-output/bpms自动化测试/login.html delete mode 100644 test-output/bpms自动化测试/login.xml delete mode 100644 test-output/bpms自动化测试/testng-failed.xml delete mode 100644 test-output/bpms自动化测试报告/login.html delete mode 100644 test-output/bpms自动化测试报告/login.xml delete mode 100644 test-output/bpms自动化测试报告/登录.html delete mode 100644 test-output/bpms自动化测试报告/登录.xml delete mode 100644 test-output/bullet_point.png delete mode 100644 test-output/collapseall.gif delete mode 100644 test-output/emailable-report.html delete mode 100644 test-output/failed.png delete mode 100644 test-output/index.html delete mode 100644 test-output/jquery-1.7.1.min.js delete mode 100644 test-output/junitreports/TEST-com.buyer.testSuite.TestAddToCart.xml delete mode 100644 test-output/junitreports/TEST-com.buyer.testSuite.TestBuyGoods.xml delete mode 100644 test-output/junitreports/TEST-com.buyer.testSuite.TestRegister.xml delete mode 100644 test-output/junitreports/TEST-com.buyer.testSuite.TestSendPO.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.TestAddMarketGoods.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.TestAddOriginalGoods.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.TestGenrateCode.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.TestGroupPurchase.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.TestProductInquiry.xml delete mode 100644 test-output/junitreports/TEST-com.essa.testSuite.Test_Login.xml delete mode 100644 test-output/navigator-bullet.png delete mode 100644 test-output/old/Default suite/Default test.properties delete mode 100644 test-output/old/Default suite/classes.html delete mode 100644 test-output/old/Default suite/groups.html delete mode 100644 test-output/old/Default suite/index.html delete mode 100644 test-output/old/Default suite/main.html delete mode 100644 test-output/old/Default suite/methods-alphabetical.html delete mode 100644 test-output/old/Default suite/methods-not-run.html delete mode 100644 test-output/old/Default suite/methods.html delete mode 100644 test-output/old/Default suite/reporter-output.html delete mode 100644 test-output/old/Default suite/testng.xml.html delete mode 100644 test-output/old/Default suite/toc.html delete mode 100644 test-output/old/bpms-test/classes.html delete mode 100644 test-output/old/bpms-test/groups.html delete mode 100644 test-output/old/bpms-test/index.html delete mode 100644 test-output/old/bpms-test/login.properties delete mode 100644 test-output/old/bpms-test/main.html delete mode 100644 test-output/old/bpms-test/methods-alphabetical.html delete mode 100644 test-output/old/bpms-test/methods-not-run.html delete mode 100644 test-output/old/bpms-test/methods.html delete mode 100644 test-output/old/bpms-test/reporter-output.html delete mode 100644 test-output/old/bpms-test/testng.xml.html delete mode 100644 test-output/old/bpms-test/toc.html delete mode 100644 test-output/old/bpms-test/登录.properties delete mode 100644 test-output/old/bpms自动化测试/addOriginalGoods.properties delete mode 100644 test-output/old/bpms自动化测试/classes.html delete mode 100644 test-output/old/bpms自动化测试/groups.html delete mode 100644 test-output/old/bpms自动化测试/index.html delete mode 100644 test-output/old/bpms自动化测试/login.properties delete mode 100644 test-output/old/bpms自动化测试/main.html delete mode 100644 test-output/old/bpms自动化测试/methods-alphabetical.html delete mode 100644 test-output/old/bpms自动化测试/methods-not-run.html delete mode 100644 test-output/old/bpms自动化测试/methods.html delete mode 100644 test-output/old/bpms自动化测试/reporter-output.html delete mode 100644 test-output/old/bpms自动化测试/testng.xml.html delete mode 100644 test-output/old/bpms自动化测试/toc.html delete mode 100644 test-output/old/bpms自动化测试报告/classes.html delete mode 100644 test-output/old/bpms自动化测试报告/groups.html delete mode 100644 test-output/old/bpms自动化测试报告/index.html delete mode 100644 test-output/old/bpms自动化测试报告/login.properties delete mode 100644 test-output/old/bpms自动化测试报告/main.html delete mode 100644 test-output/old/bpms自动化测试报告/methods-alphabetical.html delete mode 100644 test-output/old/bpms自动化测试报告/methods-not-run.html delete mode 100644 test-output/old/bpms自动化测试报告/methods.html delete mode 100644 test-output/old/bpms自动化测试报告/reporter-output.html delete mode 100644 test-output/old/bpms自动化测试报告/testng.xml.html delete mode 100644 test-output/old/bpms自动化测试报告/toc.html delete mode 100644 test-output/old/bpms自动化测试报告/登录.properties delete mode 100644 test-output/old/index.html delete mode 100644 test-output/old/发布团购商品/classes.html delete mode 100644 test-output/old/发布团购商品/groups.html delete mode 100644 test-output/old/发布团购商品/index.html delete mode 100644 test-output/old/发布团购商品/main.html delete mode 100644 test-output/old/发布团购商品/methods-alphabetical.html delete mode 100644 test-output/old/发布团购商品/methods-not-run.html delete mode 100644 test-output/old/发布团购商品/methods.html delete mode 100644 test-output/old/发布团购商品/publishGroupPurchase.properties delete mode 100644 test-output/old/发布团购商品/reporter-output.html delete mode 100644 test-output/old/发布团购商品/testng.xml.html delete mode 100644 test-output/old/发布团购商品/toc.html delete mode 100644 test-output/old/成品询价/classes.html delete mode 100644 test-output/old/成品询价/groups.html delete mode 100644 test-output/old/成品询价/index.html delete mode 100644 test-output/old/成品询价/main.html delete mode 100644 test-output/old/成品询价/methods-alphabetical.html delete mode 100644 test-output/old/成品询价/methods-not-run.html delete mode 100644 test-output/old/成品询价/methods.html delete mode 100644 test-output/old/成品询价/productInquiry.properties delete mode 100644 test-output/old/成品询价/reporter-output.html delete mode 100644 test-output/old/成品询价/testng.xml.html delete mode 100644 test-output/old/成品询价/toc.html delete mode 100644 test-output/old/提交PO-活动商品/classes.html delete mode 100644 test-output/old/提交PO-活动商品/groups.html delete mode 100644 test-output/old/提交PO-活动商品/index.html delete mode 100644 test-output/old/提交PO-活动商品/main.html delete mode 100644 test-output/old/提交PO-活动商品/methods-alphabetical.html delete mode 100644 test-output/old/提交PO-活动商品/methods-not-run.html delete mode 100644 test-output/old/提交PO-活动商品/methods.html delete mode 100644 test-output/old/提交PO-活动商品/reporter-output.html delete mode 100644 test-output/old/提交PO-活动商品/sendActivityPO.properties delete mode 100644 test-output/old/提交PO-活动商品/testng.xml.html delete mode 100644 test-output/old/提交PO-活动商品/toc.html delete mode 100644 test-output/old/提交PO/classes.html delete mode 100644 test-output/old/提交PO/groups.html delete mode 100644 test-output/old/提交PO/index.html delete mode 100644 test-output/old/提交PO/main.html delete mode 100644 test-output/old/提交PO/methods-alphabetical.html delete mode 100644 test-output/old/提交PO/methods-not-run.html delete mode 100644 test-output/old/提交PO/methods.html delete mode 100644 test-output/old/提交PO/reporter-output.html delete mode 100644 test-output/old/提交PO/sendPO.properties delete mode 100644 test-output/old/提交PO/testng.xml.html delete mode 100644 test-output/old/提交PO/toc.html delete mode 100644 test-output/old/新增原厂商品/addOriginalGoods.properties delete mode 100644 test-output/old/新增原厂商品/classes.html delete mode 100644 test-output/old/新增原厂商品/groups.html delete mode 100644 test-output/old/新增原厂商品/index.html delete mode 100644 test-output/old/新增原厂商品/main.html delete mode 100644 test-output/old/新增原厂商品/methods-alphabetical.html delete mode 100644 test-output/old/新增原厂商品/methods-not-run.html delete mode 100644 test-output/old/新增原厂商品/methods.html delete mode 100644 test-output/old/新增原厂商品/reporter-output.html delete mode 100644 test-output/old/新增原厂商品/testng.xml.html delete mode 100644 test-output/old/新增原厂商品/toc.html delete mode 100644 test-output/old/新增市场商品/addMarketGoods.properties delete mode 100644 test-output/old/新增市场商品/classes.html delete mode 100644 test-output/old/新增市场商品/groups.html delete mode 100644 test-output/old/新增市场商品/index.html delete mode 100644 test-output/old/新增市场商品/main.html delete mode 100644 test-output/old/新增市场商品/methods-alphabetical.html delete mode 100644 test-output/old/新增市场商品/methods-not-run.html delete mode 100644 test-output/old/新增市场商品/methods.html delete mode 100644 test-output/old/新增市场商品/reporter-output.html delete mode 100644 test-output/old/新增市场商品/testng.xml.html delete mode 100644 test-output/old/新增市场商品/toc.html delete mode 100644 test-output/old/添加SKU到购物车/buyerRegister.properties delete mode 100644 test-output/old/添加SKU到购物车/classes.html delete mode 100644 test-output/old/添加SKU到购物车/groups.html delete mode 100644 test-output/old/添加SKU到购物车/index.html delete mode 100644 test-output/old/添加SKU到购物车/main.html delete mode 100644 test-output/old/添加SKU到购物车/methods-alphabetical.html delete mode 100644 test-output/old/添加SKU到购物车/methods-not-run.html delete mode 100644 test-output/old/添加SKU到购物车/methods.html delete mode 100644 test-output/old/添加SKU到购物车/reporter-output.html delete mode 100644 test-output/old/添加SKU到购物车/testng.xml.html delete mode 100644 test-output/old/添加SKU到购物车/toc.html delete mode 100644 test-output/old/采购商注册/RegisterBuyer.properties delete mode 100644 test-output/old/采购商注册/buyerRegister.properties delete mode 100644 test-output/old/采购商注册/classes.html delete mode 100644 test-output/old/采购商注册/groups.html delete mode 100644 test-output/old/采购商注册/index.html delete mode 100644 test-output/old/采购商注册/main.html delete mode 100644 test-output/old/采购商注册/methods-alphabetical.html delete mode 100644 test-output/old/采购商注册/methods-not-run.html delete mode 100644 test-output/old/采购商注册/methods.html delete mode 100644 test-output/old/采购商注册/reporter-output.html delete mode 100644 test-output/old/采购商注册/testng.xml.html delete mode 100644 test-output/old/采购商注册/toc.html delete mode 100644 test-output/passed.png delete mode 100644 test-output/skipped.png delete mode 100644 test-output/testng-failed.xml delete mode 100644 test-output/testng-reports.css delete mode 100644 test-output/testng-reports.js delete mode 100644 test-output/testng-results.xml delete mode 100644 test-output/testng.css delete mode 100644 test-output/xml/com.essa.testSuite.Test_Login_results.xml delete mode 100644 test-output/发布团购商品/publishGroupPurchase.html delete mode 100644 test-output/发布团购商品/publishGroupPurchase.xml delete mode 100644 test-output/发布团购商品/testng-failed.xml delete mode 100644 test-output/成品询价/productInquiry.html delete mode 100644 test-output/成品询价/productInquiry.xml delete mode 100644 test-output/成品询价/testng-failed.xml delete mode 100644 test-output/提交PO-活动商品/sendActivityPO.html delete mode 100644 test-output/提交PO-活动商品/sendActivityPO.xml delete mode 100644 test-output/提交PO/sendPO.html delete mode 100644 test-output/提交PO/sendPO.xml delete mode 100644 test-output/提交PO/testng-failed.xml delete mode 100644 test-output/新增原厂商品/addOriginalGoods.html delete mode 100644 test-output/新增原厂商品/addOriginalGoods.xml delete mode 100644 test-output/新增原厂商品/testng-failed.xml delete mode 100644 test-output/新增市场商品/addMarketGoods.html delete mode 100644 test-output/新增市场商品/addMarketGoods.xml delete mode 100644 test-output/新增市场商品/testng-failed.xml delete mode 100644 test-output/添加SKU到购物车/buyerRegister.html delete mode 100644 test-output/添加SKU到购物车/buyerRegister.xml delete mode 100644 test-output/添加SKU到购物车/testng-failed.xml delete mode 100644 test-output/采购商注册/RegisterBuyer.html delete mode 100644 test-output/采购商注册/RegisterBuyer.xml delete mode 100644 test-output/采购商注册/buyerRegister.html delete mode 100644 test-output/采购商注册/buyerRegister.xml delete mode 100644 test-output/采购商注册/testng-failed.xml diff --git a/.classpath b/.classpath deleted file mode 100644 index 8024414..0000000 --- a/.classpath +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/.project b/.project deleted file mode 100644 index 400595b..0000000 --- a/.project +++ /dev/null @@ -1,23 +0,0 @@ - - - demo - - - - - - org.eclipse.jdt.core.javabuilder - - - - - org.eclipse.m2e.core.maven2Builder - - - - - - org.eclipse.jdt.core.javanature - org.eclipse.m2e.core.maven2Nature - - diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs deleted file mode 100644 index 839d647..0000000 --- a/.settings/org.eclipse.core.resources.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -encoding//src/main/java=UTF-8 -encoding//src/main/resources=UTF-8 -encoding//src/test/java=UTF-8 -encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs deleted file mode 100644 index abec6ca..0000000 --- a/.settings/org.eclipse.jdt.core.prefs +++ /dev/null @@ -1,5 +0,0 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning -org.eclipse.jdt.core.compiler.source=1.5 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs deleted file mode 100644 index f897a7f..0000000 --- a/.settings/org.eclipse.m2e.core.prefs +++ /dev/null @@ -1,4 +0,0 @@ -activeProfiles= -eclipse.preferences.version=1 -resolveWorkspaceProjects=true -version=1 diff --git a/Log/Screenshots/20180831_153604截图.png b/Log/Screenshots/20180831_153604截图.png deleted file mode 100644 index a796fec..0000000 Binary files a/Log/Screenshots/20180831_153604截图.png and /dev/null differ diff --git a/Log/Screenshots/20180831_170604截图.png b/Log/Screenshots/20180831_170604截图.png deleted file mode 100644 index 7c5963c..0000000 Binary files a/Log/Screenshots/20180831_170604截图.png and /dev/null differ diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 71a3f3b..0000000 --- a/pom.xml +++ /dev/null @@ -1,135 +0,0 @@ - - 4.0.0 - - com.essatest - essa - 0.0.1-SNAPSHOT - jar - - essa - http://maven.apache.org - - - UTF-8 - - - - - - org.testng - testng - 6.14.3 - - - - - org.seleniumhq.selenium - selenium-java - 3.11.0 - - - - - org.seleniumhq.selenium - selenium-firefox-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-chrome-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-safari-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-ie-driver - 3.11.0 - - - - - org.seleniumhq.selenium - selenium-support - 2.46.0 - - - - javax.mail - mail - 1.4 - - - - org.apache.commons - commons-collections4 - 4.1 - - - - org.apache.poi - poi - 3.14 - - - - org.apache.poi - poi-ooxml - 3.14 - - - - org.apache.poi - poi-ooxml-schemas - 3.14 - - - - org.apache.commons - commons-io - 1.3.2 - - - - mysql - mysql-connector-java - 6.0.6 - - - org.dbunit - dbunit - 2.5.4 - - - jdom - jdom - 1.0 - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.7.1 - - - - resources/suites/testng.xml - - - - - - - - diff --git a/resources/chromedriver.exe b/resources/chromedriver.exe deleted file mode 100644 index 370e9eb..0000000 Binary files a/resources/chromedriver.exe and /dev/null differ diff --git a/resources/config.properties b/resources/config.properties deleted file mode 100644 index 414e8d8..0000000 --- a/resources/config.properties +++ /dev/null @@ -1,16 +0,0 @@ -#browserName=FireFox -#browserName=IE -browserName=Chrome - -SIT=http://bpms.sit.gz.essa -BSIT=http://en.portalsit.cn - -HOTFIX=http://bpms.hotfix.gz.essa -BHOTFIX=http://en.portalhotfix.cn - -UAT=http://bpms.spstoys.com:7291 -BUAT=http://en.spstoys.com:889 - -DIT=http://bpms.dit.gz.essa -BDIT=http://en.portaldit.cn - diff --git a/resources/suites/addMarketGoods.xml b/resources/suites/addMarketGoods.xml deleted file mode 100644 index 666d27b..0000000 --- a/resources/suites/addMarketGoods.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/resources/suites/addOriginalGoods.xml b/resources/suites/addOriginalGoods.xml deleted file mode 100644 index 41025ca..0000000 --- a/resources/suites/addOriginalGoods.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/suites/addSkuToCart.xml b/resources/suites/addSkuToCart.xml deleted file mode 100644 index 8273552..0000000 --- a/resources/suites/addSkuToCart.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/resources/suites/buyerRegister.xml b/resources/suites/buyerRegister.xml deleted file mode 100644 index 4b0bcb7..0000000 --- a/resources/suites/buyerRegister.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/resources/suites/productInquiry.xml b/resources/suites/productInquiry.xml deleted file mode 100644 index b253775..0000000 --- a/resources/suites/productInquiry.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/resources/suites/publishGroupPurchase.xml b/resources/suites/publishGroupPurchase.xml deleted file mode 100644 index 49e9eb5..0000000 --- a/resources/suites/publishGroupPurchase.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/suites/sendPO.xml b/resources/suites/sendPO.xml deleted file mode 100644 index e5f17ee..0000000 --- a/resources/suites/sendPO.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/resources/suites/sendPO2.xml b/resources/suites/sendPO2.xml deleted file mode 100644 index aa551c5..0000000 --- a/resources/suites/sendPO2.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/src/test/java/com/buyer/pageObject/AssetManagementPage.java b/src/test/java/com/buyer/pageObject/AssetManagementPage.java deleted file mode 100644 index 934e4cb..0000000 --- a/src/test/java/com/buyer/pageObject/AssetManagementPage.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.WebDriver; - -import com.essa.framework.BasePage; - -public class AssetManagementPage extends BasePage { - public AssetManagementPage(WebDriver driver) { - super(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/BuyerLoginPage.java b/src/test/java/com/buyer/pageObject/BuyerLoginPage.java deleted file mode 100644 index 3cee6eb..0000000 --- a/src/test/java/com/buyer/pageObject/BuyerLoginPage.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; - -/** - * 采购商登录页 - * @author Administrator - * - */ -public class BuyerLoginPage extends BasePage { - public BuyerLoginPage(WebDriver driver) { - super(driver); - } - /* - * 页面元素定位 - */ - //用户名:邮箱 - @FindBy (xpath = "//*[@id='username']") - WebElement userName; - - //密码 - @FindBy (xpath = "//*[@id='password']") - WebElement passWord; - - //登录按钮 - @FindBy (xpath = "//*[@id='login']") - WebElement signIn; - - /* - * 页面方法 - */ - /** - * 采购商登录方法 - * @param account 账号 - * @param password 密码 - * @return IndexPage - */ - public IndexPage login(String account,String password) { - sendKeys(userName, account); - sendKeys(passWord, password); - click(signIn); - return new IndexPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/ConslidationPage.java b/src/test/java/com/buyer/pageObject/ConslidationPage.java deleted file mode 100644 index 2c53a45..0000000 --- a/src/test/java/com/buyer/pageObject/ConslidationPage.java +++ /dev/null @@ -1,97 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * 暂存柜,拼柜页面 - * @author Administrator - * - */ -public class ConslidationPage extends BasePage { - public ConslidationPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //关闭提示 - @FindBy(xpath="//*[@class='close']") - WebElement close; - - //选择散货 - @FindBy (xpath ="//button[text()='Bulk cargo']") - WebElement bulkCargo; - - //确认 - @FindBy (xpath="//button[text()='OK']") - WebElement ok; - - //查询输入框 - @FindBy (xpath="//*[@id='left-search']/div/input") - WebElement searchText; - - //查询按钮 - @FindBy (xpath="//*[@id='left-search']/div/span") - WebElement search; - - //左边列表第一个复选框 - @FindBy (xpath="//*[@id='left-product-list']/div[1]/div/div[2]/div/ul/li[1]/input") - WebElement leftFirstCheckbox; - - //中间加入右边的箭头 - @FindBy (xpath="//*[@id='icon-pi-right-big']") - WebElement add; - - //右边的第一个复选框 - @FindBy (xpath="//*[@id='right-product-list']/div/div/div[2]/div/ul/li[1]/input") - WebElement rightFirstCheckbox; - - //下一步,设置贴纸 - @FindBy (xpath="//*[@id='next']") - WebElement next; - - //确认弹框-可能会提示价格不一致 - @FindBy (xpath ="//a[text()='OK']") - WebElement ok2; - - /** - * 开始拼柜 - * @return SettingMarkerPage - */ - public SettingMarksPage conslidation() { - //是否有操作提示弹框 - if(isVisibility(By.xpath("//*[@class='close']"))) { - click(close); - } - forceWait(1000); - //是否有选择货柜 - if(isVisibility(By.xpath("//button[text()='Bulk cargo']"))) { - click(bulkCargo); - click(ok); - forceWait(1000); - } - sendKeys(searchText, Model.getSkuNo()); - click(search); - click(leftFirstCheckbox); - click(add); - //是否有加入到暂存柜 - dynamicWait(By.xpath("//*[@id='right-product-list']/div/div/div[2]/div/ul/li[1]/input")); - forceWait(2000); - moveHeightScroll("100"); - forceWait(1000); - click(next); - //如果提示价格变化,确认弹框 - if(isVisibility(By.xpath("//a[text()='OK']"))) { - click(ok2); - forceWait(1000); - click(next); - } - return new SettingMarksPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/IndexPage.java b/src/test/java/com/buyer/pageObject/IndexPage.java deleted file mode 100644 index e4a3e25..0000000 --- a/src/test/java/com/buyer/pageObject/IndexPage.java +++ /dev/null @@ -1,131 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * 采购商首页 - * @author Administrator - * - */ -public class IndexPage extends BasePage { - public IndexPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //登录-sign in - @FindBy (xpath ="//*[@id='SignIn']/a") - WebElement signIn; - - //注册-register - @FindBy (xpath ="//*[@class='u-login']/a") - WebElement register; - - //关键字输入框 - @FindBy (xpath ="//*[@class='search-tx']/input") - WebElement searchText; - - //查询按钮 - @FindBy (xpath ="//*[@class='btn btn-primary search-btn']") - WebElement searchButton; - - //绑定手机弹窗-关闭按钮 - @FindBy (xpath ="//*[contains(@class,'layui-layer-close1')]") - WebElement closed; - - //右上角购物车 - @FindBy (xpath ="//*[@id='miniCart']") - WebElement minicart; - - /* - * 页面方法 - */ - /** - * 进入登录页面 - * @return BuyerLoginPage - */ - public BuyerLoginPage toLoginPage() { - click(signIn); - return new BuyerLoginPage(driver); - } - - /** - * 进入注册页面 - * @return RegisterPage - */ - public RegisterPage toRegisterPage() { - click(register); - return new RegisterPage(driver); - } - - /** - * 进入购物车 - * @return ShoppingCartPage - */ - public ShoppingCartPage toShoppingCartPage() { - if (isVisibility(By.xpath("//*[@id='bind-phone']"))) { - forceWait(1000); - click(closed); - } - click(minicart); - return new ShoppingCartPage(driver); - } - /** - * 关键字搜索商品 - * @return KeywordResultPage - */ - public KeywordResultPage keywordSearch() { - //判断是否绑定手机 - if (isVisibility(By.xpath("//*[@id='bind-phone']"))) { - click(closed); - } - //如果是非活动 -// if (Model.getIsactivity()==0 &&(Model.getSkuNo().equals("选填,勿填活动商品")||Model.getSkuNo().equals(""))) { - if (Model.getIsactivity()==0 &&(("选填,勿填活动商品").equals(Model.getSkuNo())||("").equals(Model.getSkuNo()))) { - //判断是否自定义输入商品编号 - String sql = "SELECT s.id,s.`no` from prd_category c\r\n" + - "LEFT JOIN prd_goods g on c.id = g.category_id\r\n" + - "LEFT JOIN prd_goods_sku s on s.goods_id = g.id\r\n" + - "where find_in_set(5,REPLACE(c.path,'.',','))\r\n" + - "AND s.`no` > 200000000\r\n" + - "AND s.id NOT IN (SELECT g.sku_id FROM sale_group_buy g)\r\n" + - "AND s.id NOT IN (SELECT t.sku_id FROM sale_shopping_cart t)\r\n" + - "AND s.src = 1\r\n" + - "AND s.`status` = 2\r\n" + - "AND s.is_stop_product = 0\r\n" + - "AND s.is_delete = 0\r\n" + - "limit 1"; - Model.setSkuNo(DBSqlSearch(sql, "no")); - }else if (Model.getIsactivity()==1 &&(("选填,勿填非活动商品").equals(Model.getSkuNo())||("").equals(Model.getSkuNo()))) { - //活动商品 - String sql = "SELECT s.id,s.`no` from prd_category c\r\n" + - "LEFT JOIN prd_goods g on c.id = g.category_id\r\n" + - "LEFT JOIN prd_goods_sku s on s.goods_id = g.id\r\n" + - "LEFT JOIN sale_group_buy a on a.sku_id = s.id\r\n" + - "where s.`no` > 200000000\r\n" + - "AND s.id NOT IN (SELECT t.sku_id FROM sale_shopping_cart t)\r\n" + - "AND a.`status` = 20 and s.src = 1 \r\n" + - "limit 1;"; - Model.setSkuNo(DBSqlSearch(sql, "no")); - } -// System.out.println(Model.getSkuNo()); - sendKeys(searchText, Model.getSkuNo()); - click(searchButton); - return new KeywordResultPage(driver); - } - - /** - * 断言是否注册成功,根据是否有绑定手机号的弹窗来判断 - * @return boolean - */ - public boolean isSucceed() { - return isVisibility(By.xpath("//*[contains(@class,'layui-layer-close1')]")); - } -} diff --git a/src/test/java/com/buyer/pageObject/KeywordResultPage.java b/src/test/java/com/buyer/pageObject/KeywordResultPage.java deleted file mode 100644 index 0e13b21..0000000 --- a/src/test/java/com/buyer/pageObject/KeywordResultPage.java +++ /dev/null @@ -1,116 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * 关键字查询结果页 - * @author Administrator - * - */ -public class KeywordResultPage extends BasePage { - public KeywordResultPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //加入购物车 - @FindBy (xpath ="//*[@id='product-list']/ul[1]/div[1]/li[1]/div[1]/div[1]/div[4]/div[2]") - WebElement addToCart; - - //确认添加 - @FindBy (xpath ="//*[@id='product-list']/ul[1]/div[1]/li[1]/div[2]/div[3]/div[1]") - WebElement confirmAdd; - - //添加购物车时,提示加入一款成功toast - @FindBy (xpath ="//*[@class='util-bill-pd']") - WebElement toast; - - //右上角购物车 - @FindBy (xpath ="//*[@id='miniCart']") - WebElement minicart; - - //订购量 - @FindBy (xpath="//*[contains(text(),'quantity')]/../span[2]/input") - WebElement count; - - //活动商品-添加购物车 - @FindBy (xpath ="//*[@class='btn-box']/div[2]") - WebElement addToCart1; - - //查询输入框 - @FindBy (xpath ="//*[@class='search-tx']/input") - WebElement searchText; - - /* - * 页面方法 - */ - /** - * 加入到购物车中,且会进入购物车校验是否加入成功 - * @return ShoppingCartPage - */ - public ShoppingCartPage addToCart() { - if (Model.getIsactivity() == 0) {//该sku为非活动商品 - click(addToCart); - forceWait(1000); - click(count); - sendKeys(count, "50"); - }else if (Model.getIsactivity() == 1) {//该sku为活动商品 - click(addToCart1); - forceWait(1000); - click(count); - sendKeys(count, "200"); - } - - click(confirmAdd); - dynamicWait(By.xpath("//*[@class='util-bill-pd']")); - forceWait(1000); - click(minicart); - if (Model.getIsactivity() == 1) { - getManager();//找出对应的类目经理 - } - return new ShoppingCartPage(driver); - } - /** - * 由于操作过快,系统会提示:有人正在操作 - * sku加入到购物车,但不进入购物车,防止无法操作后续的拼柜 - * 此方法与addToCart()一样,只是不进入购物车 - */ - public void addSku() { - if (Model.getIsactivity() == 0) { - click(addToCart); - forceWait(1000); - click(count); - sendKeys(count, "50"); - }else if (Model.getIsactivity() == 1) { - click(addToCart1); - forceWait(1000); - click(count); - sendKeys(count, "200"); - } - click(confirmAdd); - dynamicWait(By.xpath("//*[@class='util-bill-pd']")); - if (Model.getIsactivity() == 1) { - sendKeys(searchText, "查询数据库ing……程序还在进行,无聊可以先去撩撩妹子呀!"); - getManager();//找出对应的类目经理 - } - } - - /** - * 根据sql查出商品对应类目经理,并在model类中设置其值 - */ - public void getManager() { - //查找商品对应的类目经理sql - String sql = "SELECT u.account_name from prd_goods g \r\n" + - "LEFT JOIN prd_goods_sku s on g.id = s.goods_id\r\n" + - "LEFT JOIN pri_user u on u.id = g.category_manager_id\r\n" + - "where s.`no` in ("+Model.getSkuNo()+");"; - Model.setManager(DBSqlSearch(sql, "account_name")); - } -} diff --git a/src/test/java/com/buyer/pageObject/MyOrderPage.java b/src/test/java/com/buyer/pageObject/MyOrderPage.java deleted file mode 100644 index f59ff8b..0000000 --- a/src/test/java/com/buyer/pageObject/MyOrderPage.java +++ /dev/null @@ -1,11 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.WebDriver; - -import com.essa.framework.BasePage; - -public class MyOrderPage extends BasePage { - public MyOrderPage(WebDriver driver) { - super(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/OrderPreviewPage.java b/src/test/java/com/buyer/pageObject/OrderPreviewPage.java deleted file mode 100644 index ac93f0a..0000000 --- a/src/test/java/com/buyer/pageObject/OrderPreviewPage.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; - -/** - * @author Administrator - *订单预览页 - */ -public class OrderPreviewPage extends BasePage { - public OrderPreviewPage(WebDriver driver) { - super(driver); - } - - //是否授权:同意 - @FindBy (xpath ="//*[@ng-checked='list.isAuthorExchange==1']") - WebElement agree; - - //提交po - @FindBy (xpath ="//*[@id='react-orderConfirmation-submit']") - WebElement sendPO; - - //弹框:确认 - @FindBy (xpath ="//a[text()='Send PO']") - WebElement confirm; - - /** - * 提交po - * @return PayDepositPage - */ - public PayDepositPage submit() { -// while(!(isVisibility(By.xpath("//*[@ng-checked='list.isAuthorExchange==1']")))) { -// forceWait(1000); -// } - dynamicWait(By.xpath("//*[@ng-checked='list.isAuthorExchange==1']")); - moveHeightScroll("50"); - forceWait(500); - jsExecutorClick(agree); - click(sendPO); - forceWait(1000); - click(confirm); - return new PayDepositPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/PayDepositPage.java b/src/test/java/com/buyer/pageObject/PayDepositPage.java deleted file mode 100644 index e2e4d9f..0000000 --- a/src/test/java/com/buyer/pageObject/PayDepositPage.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *支付定金页 - */ -public class PayDepositPage extends BasePage { - public PayDepositPage(WebDriver driver) { - super(driver); - } - - //PO信息 - @FindBy (xpath="//*[contains(text(),'PO information')]") - WebElement POInfo; - - //查看资金详情---可用资金不足 - @FindBy (xpath ="//button[@class='submit-payment-deposit-button btn btn-primary']") - WebElement FundDetail; - - //免定金模式--确认按钮 - @FindBy (xpath ="//*[@ng-click='submit()']") - WebElement ok; - - //po单号 - @FindBy (xpath ="//*[contains(text(),'PO number:')]/../../td[2]/span") - WebElement poNum; - - /** - * 查看资金详情 - * @return AssetManagementPage - */ - public AssetManagementPage toAssetManagementPage() { - click(FundDetail); - return new AssetManagementPage(driver); - } - - /** - * 确认PO - * @return MyOrderPage - */ - public MyOrderPage confirm() { - click(ok); - return new MyOrderPage(driver); - } - - public void operate() { - /*while (!(isVisibility(By.xpath("//*[contains(text(),'PO information')]")))) { - forceWait(1000); - }*/ - dynamicWait(By.xpath("//*[contains(text(),'PO information')]")); - Model.setPoNum(poNum.getText()); - if (isVisibility(By.xpath("//button[@class='submit-payment-deposit-button btn btn-primary']"))) { - //如果是可用资金不足,跳转到资金管理 - toAssetManagementPage(); - }else if (isVisibility(By.xpath("//*[@ng-click='submit()']"))) { - //免定金模式,确认po,跳转到我的订单列表 - confirm(); - } - forceWait(2000); - } -} diff --git a/src/test/java/com/buyer/pageObject/RegisterPage.java b/src/test/java/com/buyer/pageObject/RegisterPage.java deleted file mode 100644 index a0cb8b0..0000000 --- a/src/test/java/com/buyer/pageObject/RegisterPage.java +++ /dev/null @@ -1,165 +0,0 @@ -package com.buyer.pageObject; - -import java.text.SimpleDateFormat; -import java.util.Date; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; -import com.essa.framework.Tools; - -/** - * 采购商注册页 - * @author Administrator - * - */ -public class RegisterPage extends BasePage { - public RegisterPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //检查点-是否进入页面 - @FindBy (xpath ="//*[contains(text(),' Own essa.cn account')]") - WebElement checkPoint; - - //email - @FindBy (xpath ="//*[@id='email']") - WebElement email; - - //password - @FindBy (xpath ="//*[@id='password']") - WebElement password; - - //confirmPassword - @FindBy (xpath ="//*[@id='confirmPassword']") - WebElement confirmPassword; - - //币种 currency - @FindBy (xpath ="//*[@id='currPlaceholder']") - WebElement currPlaceholder; - - //CNY - @FindBy (xpath="//*[text()='CNY']") - WebElement CNY; - - //companyName - @FindBy (xpath="//*[@id='companyName']") - WebElement companyName; - - //空白的地方-用于关闭选项框 - @FindBy (xpath ="//*[@class='register-right']") - WebElement blank; - - //区域continent - @FindBy (xpath ="//*[@id='continentPlaceholder']") - WebElement continentPlaceholder; - - //欧洲europe - @FindBy (xpath="//*[text()='Europe']") - WebElement Europe; - - //country - @FindBy (xpath ="//*[@id='countryPlaceholder']") - WebElement country; - - //俄罗斯Russian - @FindBy (xpath ="//*[text()='Russian federation']") - WebElement Russian; - - //contactName - @FindBy (xpath ="//*[@id='contactName']") - WebElement contactName; - - //phone - @FindBy (xpath ="//*[@id='phone']") - WebElement phone; - - //purchaseQuantity - @FindBy (xpath ="//*[@id='purchaseQuantity']") - WebElement purchaseQuantity; - - //quantity - @FindBy (xpath ="//*[contains(text(),'1 000 000 - 2 500 000 USD')]") - WebElement quantity; - - //singleQuantity - @FindBy (xpath ="//*[@id='singleQuantity']") - WebElement singleQuantity; - - //single - @FindBy (xpath ="//*[text()='30-49 ctn']") - WebElement single; - - //select - @FindBy (xpath ="//*[text()='Select']") - WebElement select; - - //toys1 - @FindBy (xpath ="//*[@title='Animals&plants']") - WebElement toys1; - - //toys2 - @FindBy (xpath ="//*[text()='Dolls and accessories']") - WebElement toys2; - - //toys3 - @FindBy (xpath ="//*[text()='Bricks']") - WebElement toys3; - - //referralCode - @FindBy (xpath ="//*[@id='referralCode']") - WebElement referralCode; - - //checkBox - @FindBy (xpath ="//*[@id='protocol']") - WebElement checkbox; - - //Register - @FindBy (xpath ="//*[@id='submit']") - WebElement register; - - /* - * 页面方法 - */ - /** - * 注册 - * @return IndexPage - */ - public IndexPage register() { - SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmm"); - String num = Tools.getTime(); - sendKeys(email, Model.getEmail()); - sendKeys(password, "essa123"); - sendKeys(confirmPassword, "essa123"); - click(currPlaceholder); - click(CNY); - sendKeys(companyName, "Auto"+num); - click(continentPlaceholder); - click(Europe); - click(Russian); - sendKeys(contactName, "Tester"+num); - sendKeys(phone, format.format(new Date())); - forceWait(500); - click(purchaseQuantity); - click(quantity); - forceWait(500); - click(singleQuantity); - click(single); - moveHeightScroll("100"); - jsExecutorClick(select); - click(toys1); - click(toys2); - click(toys3); - click(blank); - sendKeys(referralCode, Model.getInvateCode()); - jsExecutorClick(checkbox); - click(register); - forceWait(3000); - return new IndexPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/SettingMarksPage.java b/src/test/java/com/buyer/pageObject/SettingMarksPage.java deleted file mode 100644 index ec02815..0000000 --- a/src/test/java/com/buyer/pageObject/SettingMarksPage.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; - -/** - * 设置唛头页 - * @author Administrator - * - */ -public class SettingMarksPage extends BasePage { - public SettingMarksPage(WebDriver driver) { - super(driver); - } - //不应用唛头 - @FindBy (xpath ="//*[@title='No shipping marks for these products']") - WebElement noNeedMarks; - - //下一步 - @FindBy (xpath ="//*[text()='Next step']") - WebElement next; - - //弹框提示-确定 - @FindBy (xpath ="//*[text()='OK']") - WebElement ok; - - /** - * 设置唛头:不应用唛头 - * @return SettingStickerPage - */ - public SettingStickerPage setMarks() { - /*while(!(isVisibility(By.xpath("//*[@title='No shipping marks for these products']")))) { - forceWait(1000); - }*/ - dynamicWait(By.xpath("//*[@title='No shipping marks for these products']")); - click(noNeedMarks); - click(next); - forceWait(500); - click(ok); - return new SettingStickerPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/SettingStickerPage.java b/src/test/java/com/buyer/pageObject/SettingStickerPage.java deleted file mode 100644 index 0eef148..0000000 --- a/src/test/java/com/buyer/pageObject/SettingStickerPage.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; - -/** - * @author Administrator - *设置贴纸页 - */ -public class SettingStickerPage extends BasePage { - public SettingStickerPage(WebDriver driver) { - super(driver); - } - //不应用贴纸 - @FindBy (xpath ="//*[@title='No stickers for these products']") - WebElement noNeedSticker; - - //下一步 - @FindBy (xpath ="//*[text()='Next step']") - WebElement next; - - //弹框提示-确定 - @FindBy (xpath ="//*[text()='OK']") - WebElement ok; - - /** - * 设置贴纸:不应用贴纸 - * @return OrderPreviewPage - */ - public OrderPreviewPage setSticker() { - /*while (!(isVisibility(By.xpath("//*[@title='No stickers for these products']")))) { - forceWait(1000); - }*/ - dynamicWait(By.xpath("//*[@title='No stickers for these products']")); - click(noNeedSticker); - click(next); - click(ok); - return new OrderPreviewPage(driver); - } -} diff --git a/src/test/java/com/buyer/pageObject/ShoppingCartPage.java b/src/test/java/com/buyer/pageObject/ShoppingCartPage.java deleted file mode 100644 index a6012f6..0000000 --- a/src/test/java/com/buyer/pageObject/ShoppingCartPage.java +++ /dev/null @@ -1,81 +0,0 @@ -package com.buyer.pageObject; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * 购物车页 - * @author Administrator - * - */ -public class ShoppingCartPage extends BasePage { - public ShoppingCartPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //关键字查询框 - @FindBy (xpath ="//*[@ng-model='keyword']") - WebElement keyword; - - //查询按钮 - @FindBy (xpath ="//*[contains(@ng-click,'search()')]") - WebElement searchButton; - - //搜索结果的一个sku对应的复选框 - @FindBy (xpath ="//*[contains(@class,'products-list ng-scope')]/div[2]/div[2]/span[1]/input") - WebElement checkbox; - - //可拼柜 - @FindBy (xpath="//*[text()='Consolidation allowed']") - WebElement consolidationAllowed; - - //开始拼柜 - @FindBy (xpath ="//button[contains(text(),' Start consolidation')]") - WebElement startConslidation; - - //确认采购按钮 - @FindBy (xpath = "//*[@class='products-list ng-scope']/div[2]/div/div[1]/div/span[5]/div/button") - WebElement confirmOrder; - - /* - * 页面方法 - */ - /** - * 断言sku是否已经加入购物车 - * @return true:已加入 false:未加入 - */ - public boolean isSucceed() { - mywait(keyword); - sendKeys(keyword, Model.getSkuNo()); - click(searchButton); - mywait(checkbox); - forceWait(2000); - return isVisibility(By.xpath("//*[contains(text(),'"+Model.getSkuNo()+"')]")); - } - /** - * 开始拼柜 - * @return ConslidationPage - */ - public ConslidationPage startConslidation() { - mywait(keyword); - click(consolidationAllowed); - mywait(startConslidation); - click(startConslidation); - return new ConslidationPage(driver); - } - - /** - * 确认采购 - */ - public void confirmOrder() { - dynamicLoad(By.xpath("//*[@class='products-list ng-scope']/div[2]/div/div[1]/div/span[5]/div/button")); - click(confirmOrder); - } -} diff --git a/src/test/java/com/buyer/testSuite/TestAddToCart.java b/src/test/java/com/buyer/testSuite/TestAddToCart.java deleted file mode 100644 index a9216d0..0000000 --- a/src/test/java/com/buyer/testSuite/TestAddToCart.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.buyer.testSuite; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.buyer.pageObject.IndexPage; -import com.buyer.pageObject.KeywordResultPage; -import com.buyer.pageObject.ShoppingCartPage; -import com.essa.framework.Model; -import com.essa.pageObject.BaseTest; - -/** - * @author Administrator - *测试用例:采购商平台采购流程 - */ -public class TestAddToCart extends BaseTest { - WebDriver driver; - - @BeforeClass - public void setUp() { - initBuyer(); - loginBuyerValid(Model.getBuyerAccount(),Model.getBuyerPassword()); -// loginBuyerValid("buyer51551@essa.cn","essa123"); -// Model.setIsactivity(1); -// Model.setSkuNo(""); - } - @AfterClass - public void tearDown() { - driver.quit(); - } - - /** - * 关键字查询,并将搜到的结果加入购物车 - */ - @Test(description="关键字搜索,并将sku加入购物车",groups= {"first"}) - public void keywordToCart() { - this.driver = getDriver(); - IndexPage indexPage = PageFactory.initElements(driver, IndexPage.class); - indexPage.keywordSearch(); - KeywordResultPage keywordResultPage = PageFactory.initElements(driver, KeywordResultPage.class); - keywordResultPage.addToCart(); - //断言 - ShoppingCartPage shoppingCartPage = PageFactory.initElements(driver, ShoppingCartPage.class); - boolean actual = shoppingCartPage.isSucceed(); - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(actual, true, "加入购物车失败!"); - softAssert.assertAll(); - } - - /** - * 关键字查询,加入购物车,但不进入购物车,防止提示有人正在操作 - */ - @Test(description="将sku加入购物车") - public void addSku() { - this.driver = getDriver(); - IndexPage indexPage = PageFactory.initElements(driver, IndexPage.class); - indexPage.keywordSearch(); - KeywordResultPage keywordResultPage = PageFactory.initElements(driver, KeywordResultPage.class); - keywordResultPage.addSku(); - } -} diff --git a/src/test/java/com/buyer/testSuite/TestRegister.java b/src/test/java/com/buyer/testSuite/TestRegister.java deleted file mode 100644 index 3a7b8a8..0000000 --- a/src/test/java/com/buyer/testSuite/TestRegister.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.buyer.testSuite; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.buyer.pageObject.IndexPage; -import com.buyer.pageObject.RegisterPage; -import com.essa.pageObject.BaseTest; - -/** - * @author Administrator - *测试用例:采购商注册信息填写 - */ -public class TestRegister extends BaseTest{ - WebDriver driver; - - @BeforeClass - public void setUp() { - initBuyer(); - } - - /** - * 注册buyer - */ - @Test(description="填写注册采购商信息,注册采购商") - public void register() { - this.driver = getDriver(); - IndexPage indexPage = PageFactory.initElements(driver, IndexPage.class); - indexPage.toRegisterPage(); - RegisterPage registerPage = PageFactory.initElements(driver, RegisterPage.class); - registerPage.register(); - - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(indexPage.isSucceed(), true, "采购商注册失败了!"); - softAssert.assertAll(); - } - @AfterClass - public void tearDown() { - driver.quit(); - } -} diff --git a/src/test/java/com/buyer/testSuite/TestSendPO.java b/src/test/java/com/buyer/testSuite/TestSendPO.java deleted file mode 100644 index d47cc36..0000000 --- a/src/test/java/com/buyer/testSuite/TestSendPO.java +++ /dev/null @@ -1,64 +0,0 @@ -package com.buyer.testSuite; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import com.buyer.pageObject.ConslidationPage; -import com.buyer.pageObject.IndexPage; -import com.buyer.pageObject.OrderPreviewPage; -import com.buyer.pageObject.PayDepositPage; -import com.buyer.pageObject.SettingMarksPage; -import com.buyer.pageObject.SettingStickerPage; -import com.buyer.pageObject.ShoppingCartPage; -import com.essa.framework.Model; -import com.essa.pageObject.BaseTest; - -/** - * @author Administrator - *测试用例:采购商平台采购流程 - */ -public class TestSendPO extends BaseTest { - WebDriver driver; - - @BeforeClass - public void setUp() { - initBuyer(); - loginBuyerValid(Model.getBuyerAccount(),Model.getBuyerPassword()); -// loginBuyerValid("buyer51551@essa.cn","essa123"); - } - @AfterClass - public void tearDown() { - driver.quit(); - } - - /** - * 开始拼柜 - */ - @Test(description="开始拼柜") - public void conslidation() { - this.driver = getDriver(); - IndexPage indexPage = PageFactory.initElements(driver, IndexPage.class); - indexPage.toShoppingCartPage(); - ShoppingCartPage shoppingCartPage = PageFactory.initElements(driver, ShoppingCartPage.class); - shoppingCartPage.startConslidation(); - ConslidationPage conslidationPage = PageFactory.initElements(driver, ConslidationPage.class); - conslidationPage.conslidation(); - } - /** - * 提交PO - */ - @Test(description="设置贴纸唛头,提交PO") - public void sendPO() { - this.driver = getDriver(); - SettingMarksPage settingMarksPage = PageFactory.initElements(driver, SettingMarksPage.class); - settingMarksPage.setMarks(); - SettingStickerPage settingStickerPage = PageFactory.initElements(driver, SettingStickerPage.class); - settingStickerPage.setSticker(); - OrderPreviewPage orderPreviewPage = PageFactory.initElements(driver, OrderPreviewPage.class); - orderPreviewPage.submit(); - PayDepositPage payDepositPage = PageFactory.initElements(driver, PayDepositPage.class); - payDepositPage.operate(); - } -} diff --git a/src/test/java/com/essa/framework/BasePage.java b/src/test/java/com/essa/framework/BasePage.java deleted file mode 100644 index a656e03..0000000 --- a/src/test/java/com/essa/framework/BasePage.java +++ /dev/null @@ -1,700 +0,0 @@ -package com.essa.framework; - -import java.awt.Robot; -import java.awt.Toolkit; -import java.awt.datatransfer.StringSelection; -import java.awt.event.KeyEvent; -import java.io.File; -import java.io.FileInputStream; -import java.io.IOException; -import java.sql.Connection; -import java.sql.ResultSet; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.Iterator; -import java.util.List; -import java.util.Set; - -import org.apache.commons.io.FileUtils; -import org.apache.poi.hssf.usermodel.HSSFWorkbook; -import org.apache.poi.ss.usermodel.Cell; -import org.apache.poi.ss.usermodel.Row; -import org.apache.poi.ss.usermodel.Sheet; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; -import org.openqa.selenium.Alert; -import org.openqa.selenium.By; -import org.openqa.selenium.JavascriptExecutor; -import org.openqa.selenium.Keys; -import org.openqa.selenium.NoSuchElementException; -import org.openqa.selenium.OutputType; -import org.openqa.selenium.TakesScreenshot; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.interactions.Actions; -import org.openqa.selenium.support.ui.ExpectedConditions; -import org.openqa.selenium.support.ui.Select; -import org.openqa.selenium.support.ui.WebDriverWait; - -import com.essa.framework.BasePage; -import com.essa.framework.LogType; -import com.essa.framework.Logger; -import com.mysql.cj.jdbc.PreparedStatement; - -public class BasePage { - - public static WebDriver driver; - public static String pageTitle; - public static String pageUrl; - public static String OutputFileName = getDateTimeByFormat(new Date(), "yyyyMMdd_HHmmss"); - - /** - * 构造方法 - * @param driver - */ - public BasePage(WebDriver driver) { - BasePage.driver = driver; - } - - /** - * 在文本框内输入字符 - * @param element - * @param text - */ - protected void sendKeys(WebElement element, String text) { - try { - mywait(element); - if (element.isEnabled()) { - element.clear(); - Logger.Output(LogType.LogTypeName.INFO, "清除文本框中已有字符:" + partialStr(element.toString(), "xpath:")); - element.sendKeys(text); - Logger.Output(LogType.LogTypeName.INFO, "输入的字符是:" + text); - } - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, element.toString()+"元素不存在"); - } - - } - - /** - * 点击元素,这里指点击鼠标左键 - * @param element - */ - protected void click(WebElement element) { - - try { - mywait(element); - if (element.isEnabled()) { - Logger.Output(LogType.LogTypeName.INFO, "点击元素:" + partialStr(element.toString(), "xpath:")); - element.click(); - } - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - - } - - /** - * 在文本输入框执行清除操作 - * @param element - */ - protected void clear(WebElement element) { - try { - if (element.isEnabled()) { - element.clear(); - Logger.Output(LogType.LogTypeName.INFO, "清除输入框中字符:" + partialStr(element.toString(), "xpath:") ); - } - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - - } - - /** - * 判断一个页面元素是否显示在当前页面 - * @param element - */ - protected void verifyElementIsPresent(WebElement element) { - - try { - if (element.isDisplayed()) { - Logger.Output(LogType.LogTypeName.INFO, "元素存在:" + partialStr(element.toString(), "xpath:").trim()); - - } - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - } - - /** - * 获取页面的标题 - * @return - */ - protected String getCurrentPageTitle() { - - pageTitle = driver.getTitle(); - Logger.Output(LogType.LogTypeName.INFO, "当前页面的标题为:" + pageTitle); - return pageTitle; - } - - /** - * 获取页面的url - * @return - */ - public static String getCurrentPageUrl() { - pageUrl = driver.getCurrentUrl(); - Logger.Output(LogType.LogTypeName.INFO, "当前页面的URL为:" + pageUrl); - return pageUrl; - } - - /** - * 处理多窗口之间切换 - */ - protected void switchWindow() { - - String currentWindow = driver.getWindowHandle();// 获取当前窗口句柄 - Set handles = driver.getWindowHandles();// 获取所有窗口句柄 - Logger.Output(LogType.LogTypeName.INFO, "当前窗口数量: " + handles.size()); - Iterator it = handles.iterator(); - while (it.hasNext()) { - if (currentWindow == it.next()) { - driver.close(); - continue; - } - try { - // driver.close();// 关闭旧窗口 - WebDriver window = driver.switchTo().window(it.next());// 切换到新窗口 - Logger.Output(LogType.LogTypeName.INFO, "新窗口的标题为:" + window.getTitle()); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "无法切换到新打开窗口" + e.getMessage()); - - } - // driver.close();//关闭当前焦点所在的窗口 - } - // driver.switchTo().window(currentWindow);//回到原来页面 - } - - /** - * 处理多窗口之间切换 - * 将会关闭当前的窗口 - */ - protected void switchMoreWindow() { - - String handle = driver.getWindowHandle(); - for(String temhandle : driver.getWindowHandles()) { - if (!temhandle.equals(handle)) { - driver.close(); - driver.switchTo().window(temhandle); - } - } - } - /** - * 浏览器弹框操作,true确认弹框,false取消弹框 - * @param isAccept - */ - protected void alert(boolean isAccept) { - Alert alert = driver.switchTo().alert(); - if (isAccept) { - Logger.Output(LogType.LogTypeName.INFO, "提示框内容为:" + alert.getText()); - alert.accept(); - Logger.Output(LogType.LogTypeName.INFO, "确认弹框"); - } else { - Logger.Output(LogType.LogTypeName.INFO, "提示框内容为:" + alert.getText()); - alert.dismiss(); - Logger.Output(LogType.LogTypeName.INFO, "取消弹框"); - } - } - - /** - * 下拉框选择选项 - * 元素必须可以使用select,input和button使用会报错 - * @param element - * @param optionText - */ - protected void selectElement(WebElement element, String optionText) { - Select select = new Select(element); - select.selectByVisibleText(optionText); - Logger.Output(LogType.LogTypeName.INFO, "选择选项:" + optionText); - } - - /** - * 下拉框选择选项,通过选项中的value来定位 - * @param element - * @param value - */ - protected void selectElement(WebElement element, int value) { - Select select = new Select(element); - select.selectByIndex(value); - Logger.Output(LogType.LogTypeName.INFO, "选择选项:" + value); - } - /** - * 判断元素在页面中是否存在 - * @param element - * @return boolean - */ - protected boolean isElementExist(WebElement element) { - try { - Boolean bool = element.isDisplayed(); - - Logger.Output(LogType.LogTypeName.INFO, "检查元素是否存在:" +partialStr(element.toString(), "xpath:")+":"+ bool); - return bool; - } catch (NoSuchElementException e) { - takeScreenShot(); - Logger.Output(LogType.LogTypeName.ERROR, "无法确认当前元素是否存在:" + e.getMessage()); - return false; - } - } - - /** - * 元素在页面上是否可见,不建议用此方法,有时会报错,找不出原因 - * @param element - * @return boolean - */ - protected boolean isVisibility(WebElement element) { - try { - if(ExpectedConditions.visibilityOf(element) != null) { - Logger.Output(LogType.LogTypeName.INFO, "元素在页面上可见"); - return true; - } - } catch (NoSuchElementException e) { - Logger.Output(LogType.LogTypeName.ERROR, "无法页面上是否有此元素"); - return false; - } - Logger.Output(LogType.LogTypeName.INFO, "元素在页面不可见"); - return false; - } - - /** - * 元素在页面上是否可见 - * @param element - * @return - */ - protected boolean isVisibility(By by) { - try { - Logger.Output(LogType.LogTypeName.INFO, "检查元素在页面上是否可见"); - if(ExpectedConditions.visibilityOf(driver.findElement(by)) != null) { - Logger.Output(LogType.LogTypeName.INFO, "元素可见:"+by.toString()); - return true; - } - } catch (NoSuchElementException e) { - } - Logger.Output(LogType.LogTypeName.INFO, "元素不可见:"+by.toString()); - return false; - } - - - /** - * 获取元素的文本值 - * @param element - */ - protected String getText(WebElement element) { - - try { - if (element.isEnabled()) { - Logger.Output(LogType.LogTypeName.INFO, "获取当前元素的文本值:" + element.getText()); - return element.getText(); - } - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - return null; - } - - /** - * js的点击操作 - * @param element - */ - protected void jsExecutorClick(WebElement element) { - try { - mywait(element); - JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; - jsExecutor.executeScript("arguments[0].click();", element); - Logger.Output(LogType.LogTypeName.INFO, "调用JavaScript点击元素:" + partialStr(element.toString(), "xpath:")); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - - } - - /** - * js的删除操作 - * @param webElement - * @param attribute - */ - protected void jsExecutorRemoveAttribute(WebElement webElement, String attribute) { - try { - JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; - jsExecutor.executeScript("arguments[0].removeAttribute('" + attribute + "');", webElement); - Logger.Output(LogType.LogTypeName.INFO, "调用JavaScript删除元素属性:" + attribute); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - - } - - /** - * 获取js返回的值 - * @param webElement - * @return - */ - protected String jsExecutorGetAttributeValue(WebElement webElement) { - try { - JavascriptExecutor jsExecutor = (JavascriptExecutor) driver; - Logger.Output(LogType.LogTypeName.INFO, "调用JavaScript返回元素属性值"); - return (String) jsExecutor.executeScript("return arguments[0].id;", webElement); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - return null; - } - } - - /** - * 读取excel中的数据 - * @param filepath excel的路径地址 - * @param filename excel的文件名 - * @param SheetName excel的worksheet名 - * @return - * @throws Exception - */ - public static Object[][] readExcel(String filepath, String filename, String SheetName){ - try { - File file = new File(filepath + "\\" + filename); - FileInputStream inputStream = new FileInputStream(file); - Workbook Workbook = null; - // 获取文件扩展名 - String fileExtensionName = filename.substring(filename.indexOf(".")); - Logger.Output(LogType.LogTypeName.INFO, "获取所要读取的文件"); - // 判断是.xlsx还是.xls的文件并进行实例化 - if (fileExtensionName.equals(".xlsx")) { - Workbook = new XSSFWorkbook(inputStream); - Logger.Output(LogType.LogTypeName.INFO, "文件为:.xlsx格式"); - } else if (fileExtensionName.equals(".xls")) { - Workbook = new HSSFWorkbook(inputStream); - Logger.Output(LogType.LogTypeName.INFO, "文件为:.xls格式"); - } - // 通过sheetName生成Sheet对象 - Sheet Sheet = Workbook.getSheet(SheetName); - int rowCount = Sheet.getLastRowNum() - Sheet.getFirstRowNum(); - List records = new ArrayList(); - for (int i = 0; i < rowCount + 1; i++) { - Row row = Sheet.getRow(i); - String fields[] = new String[row.getLastCellNum()]; - for (int j = 0; j < row.getLastCellNum(); j++) { - if (row.getCell(j).getCellType() == Cell.CELL_TYPE_NUMERIC) { - row.getCell(j).setCellType(Cell.CELL_TYPE_STRING); - } - // 判断数据的类型 - switch (row.getCell(j).getCellType()) { - case Cell.CELL_TYPE_NUMERIC: // 数字 - fields[j] = String.valueOf(row.getCell(j).getNumericCellValue()); - break; - case Cell.CELL_TYPE_STRING: // 字符串 - fields[j] = String.valueOf(row.getCell(j).getStringCellValue()); - break; - case Cell.CELL_TYPE_BOOLEAN: // Boolean - fields[j] = String.valueOf(row.getCell(j).getBooleanCellValue()); - break; - case Cell.CELL_TYPE_FORMULA: // 公式 - fields[j] = String.valueOf(row.getCell(j).getCellFormula()); - break; - case Cell.CELL_TYPE_BLANK: // 空值 - fields[j] = ""; - break; - case Cell.CELL_TYPE_ERROR: // 故障 - fields[j] = "非法字符"; - break; - default: - fields[j] = "未知类型"; - break; - } - } - records.add(fields); - } - Object[][] results = new Object[records.size()][]; - for (int i = 0; i < records.size(); i++) { - results[i] = records.get(i); - } - Logger.Output(LogType.LogTypeName.INFO, "读取文件成功"); - return results; - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - return null; - } - - /** - * 上传文件 - * @param filePath - * @throws Exception - */ - protected void uploadFile(String filePath){ - try { - Logger.Output(LogType.LogTypeName.INFO, "开始上传文件"); - StringSelection sel = new StringSelection(filePath); - Toolkit.getDefaultToolkit().getSystemClipboard().setContents(sel, null); - // 新建一个Robot类的对象 - Robot robot = new Robot(); - Thread.sleep(1000); - - // 按下回车 - robot.keyPress(KeyEvent.VK_ENTER); - - // 释放回车 - robot.keyRelease(KeyEvent.VK_ENTER); - - // 按下 CTRL+V - robot.keyPress(KeyEvent.VK_CONTROL); - robot.keyPress(KeyEvent.VK_V); - - // 释放 CTRL+V - robot.keyRelease(KeyEvent.VK_CONTROL); - robot.keyRelease(KeyEvent.VK_V); - Thread.sleep(1000); - - // 点击回车 Enter - robot.keyPress(KeyEvent.VK_ENTER); - robot.keyRelease(KeyEvent.VK_ENTER); - - Logger.Output(LogType.LogTypeName.INFO, "上传文件成功"); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - } - - /** - * 字符串切片 - * @param element 需要被操作的元素 - * @param begin 从这个字符开始切 - * @param end 到这个字符结尾 - * 例子:某个元素的文本值为:广州市天河区猎德,只要“天河区” - * 第二个参数:天, 第三个参数:区 - * @return - */ - protected String partialStr(WebElement element, String begin, String end) { - String result_string = element.getText(); - Logger.Output(LogType.LogTypeName.INFO, "获取所需切片的字符串"); - // 根据词切片,取第二片字符串 - String st1 = result_string.split(begin)[1]; - Logger.Output(LogType.LogTypeName.INFO, "切除" + begin + "之前的字符串"); - // 再切一次结尾,得到我们想要的结果 - String search_need = st1.split(end)[0]; - Logger.Output(LogType.LogTypeName.INFO, "切除" + end + "之后的字符串"); - Logger.Output(LogType.LogTypeName.INFO, "返回切片后的字符串"); - return search_need; - } - - /** - * 复写切片,仅在本页面作为截断日志文本后面带的一堆字符串 - * @param string - * @param begin - * @return - */ - protected String partialStr(String string,String begin) { - String st1 = string.split(begin)[1]; - return st1; - } - - /**要的元素是否存在,最多5秒 - * @param element - */ - protected void mywait(WebElement element) { - - WebDriverWait wait = new WebDriverWait(driver, 7); -// Logger.Output(LogType.LogTypeName.INFO, "等待元素在页面上加载可见,最多5秒"); - wait.until(ExpectedConditions.visibilityOf(element)); - } - - /** - * 设立检查点,判断页面是否是我们要的 - * @param checkPoint - * @param element - * @return - */ - protected boolean isThisPage(String checkPoint,WebElement element) { - boolean bool1=checkPoint.equals(element.getText()); - Logger.Output(LogType.LogTypeName.INFO, "判断检查点是否存在:"+bool1); - return bool1; - } - - /** - * 截图当前页面 - */ - protected void takeScreenShot() { - File src = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); - - try { - // 拷贝截图文件到我们项目./Screenshots - FileUtils.copyFile(src, new File(".\\Log\\Screenshots\\"+OutputFileName+"截图.png")); - Logger.Output(LogType.LogTypeName.INFO, "截图当前页面成功!"); - } - - catch (IOException e) { - System.out.println(e.getMessage()); - Logger.Output(LogType.LogTypeName.ERROR, "截图当前页面失败!"); - } - - } - - /** - * 上下移动滚动条,这里使用js操作 - * @param percent 0:最下方 100:最上方 - */ - protected void moveHeightScroll(String percent) { - JavascriptExecutor js = (JavascriptExecutor)driver; - js.executeScript("scrollBy(0, 0-document.body.scrollHeight *"+percent+"/100)"); - try { - Thread.sleep(1000); - } catch (Exception e) { - } - Logger.Output(LogType.LogTypeName.INFO, "上下拖动滚动条"); - } - - /** - * 左右移动滚动条 - * @param percent 0:最左 100:最右 - */ - protected void moveWidthScroll(String percent) { - JavascriptExecutor js = (JavascriptExecutor)driver; - js.executeScript("scrollBy(0, 0-document.body.scrollWidth *"+percent+"/100)"); - Logger.Output(LogType.LogTypeName.INFO, "左右拖动滚动条"); - } - - /** - * 鼠标点击 - * @param element - */ - protected void actionClick(WebElement element) { - try { - Actions action = new Actions(driver); - Logger.Output(LogType.LogTypeName.INFO, "鼠标事件点击元素"); - action.click(element).perform(); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "鼠标事件点击元素失败!"); - } - } - - /** - * 鼠标双击 - * @param element - */ - protected void actionDoubleClick(WebElement element) { - try { - Actions action = new Actions(driver); - Logger.Output(LogType.LogTypeName.INFO, "鼠标双击元素"); - action.doubleClick(element).perform(); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "鼠标双击元素失败!"); - } - } - - - /** - * 模拟鼠标事件拖动元素 - * @param element 需要拖动的元素 - * @param horizontal 水平方向:正数向右,负数向左 - * @param vertical 垂直方向:正数向上,负数向下 - */ - protected void jsExecutorDragAndDrop(WebElement element,int horizontal,int vertical) { - try { - Actions action = new Actions(driver); - action.dragAndDropBy(element, horizontal, vertical).perform(); - Logger.Output(LogType.LogTypeName.INFO, "使用鼠标拖动,将元素水平拖动"+horizontal+" 垂直拖动"+vertical); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, e.getMessage() + "."); - } - } - - /** - * 移动鼠标到指定元素 - * @param element - */ - public void moveMouse(WebElement element) { - try { - Actions action = new Actions(driver); - Logger.Output(LogType.LogTypeName.INFO, "移动鼠标到指定元素上"); - action.moveToElement(element).perform(); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "移动鼠标失败了~"); - } - } - - /** - * 键盘回车 - * @param element - */ - protected void enter(WebElement element) { - try { - Logger.Output(LogType.LogTypeName.INFO, "对元素进行键盘回车"); - element.sendKeys(Keys.ENTER); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "键盘回车失败!"); - } - } - - /** - * 强行等待,有时候页面加载需要时间,检查点检测不出使用 - * @param msec - */ - protected void forceWait(int msec) { - try { - Logger.Output(LogType.LogTypeName.INFO, "强行等待:"+msec/1000+"秒"); - Thread.sleep(msec); - } catch (Exception e) { - Logger.Output(LogType.LogTypeName.ERROR, "强行等待失败"); - } - } - /** - * 动态等待,如果元素不存在,等待一秒直到元素出现,最长7秒 - * @param by - */ - protected void dynamicWait(By by) { - for(int count=0;count<7&&!(isVisibility(by));count++) { - forceWait(1000); - } - } - - /** - * 与上面的方法相反,如果元素存在,等待直到元素不存在,最长7秒 - * @param by - */ - protected void dynamicLoad(By by) { - for(int count=0;count<7&&isVisibility(by);count++) { - forceWait(1000); - } - } - /** - * 连接数据库查询数据 - * @param sql 查询sql - * @param field 需要的字段,这个方法只支持一个字段查询 - * @return 返回字段值 - */ - protected String DBSqlSearch(String sql,String field) { - try { - Connection conn = DButil.getCon(); - PreparedStatement pstmt = (PreparedStatement) conn.prepareStatement(sql); - ResultSet rs = pstmt.executeQuery(); - while (rs.next()) { - return rs.getString(field); - } - DButil.close(rs, pstmt, conn); - } catch (Exception e) { - e.printStackTrace(); - } - return null; - } - - /** - * 获取当前系统时间,得到格式化时间字符串 - * @param date - * @param format - * @return - */ - protected static String getDateTimeByFormat(Date date, String format) { - - SimpleDateFormat df = new SimpleDateFormat(format); - - return df.format(date); - - } -} \ No newline at end of file diff --git a/src/test/java/com/essa/framework/BrowserEngine.java b/src/test/java/com/essa/framework/BrowserEngine.java deleted file mode 100644 index 8a1557a..0000000 --- a/src/test/java/com/essa/framework/BrowserEngine.java +++ /dev/null @@ -1,140 +0,0 @@ -package com.essa.framework; - -import java.io.FileInputStream; -import java.io.IOException; -import java.io.InputStream; -import java.util.Properties; -import java.util.concurrent.TimeUnit; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.chrome.ChromeDriver; -import org.openqa.selenium.firefox.FirefoxDriver; -import org.openqa.selenium.ie.InternetExplorerDriver; -import org.openqa.selenium.remote.CapabilityType; -import org.openqa.selenium.remote.DesiredCapabilities; - -public class BrowserEngine { - - private static String browserName; - private String serverURL; - private String buyerURL; - private static WebDriver driver; - private static String env1; - - public void initConfigData() throws IOException{ - Properties p = new Properties(); - // 加载配置文件 - InputStream ips = new FileInputStream(".\\resources\\config.properties"); - p.load(ips); - Logger.Output(LogType.LogTypeName.INFO, "开始从配置文件中选择浏览器"); - browserName=p.getProperty("browserName");//使用jframe要注释 - Logger.Output(LogType.LogTypeName.INFO, "所选择的浏览器类型为: "+ browserName); - if (env1=="DIT") { - serverURL = p.getProperty("DIT"); - buyerURL = p.getProperty("BDIT"); - }else if (env1 =="HOTFIX") { - serverURL = p.getProperty("HOTFIX"); - buyerURL = p.getProperty("BHOTFIX"); - }else if (env1 == "UAT") { - serverURL = p.getProperty("UAT"); - buyerURL = p.getProperty("BUAT"); - }else { - serverURL = p.getProperty("SIT"); - buyerURL = p.getProperty("BSIT"); - } - Logger.Output(LogType.LogTypeName.INFO, "所测试的环境为:"+ env1); - Model.setEnv(env1);//我也不知道为什么执行完上面的代码后,env会变为sit - ips.close(); - } - /** - * bpms环境初始化 - * @param environment - * @param browser - */ - public static void setInit(String environment,String browser) { - browserName = browser; - env1 = environment; - } - - /** - * bpms获取地址方法 - * @return - */ - public WebDriver getBrowser(){ - - if(browserName.equalsIgnoreCase("Firefox")){ - System.setProperty("webdriver.gecko.driver", ".\\resources\\geckodriver.exe"); - driver = new FirefoxDriver(); - Logger.Output(LogType.LogTypeName.INFO, "正在启动FireFox浏览器"); - } - else if(browserName.equals("Chrome")){ - System.setProperty("webdriver.chrome.driver", ".\\resources\\chromedriver.exe"); //图形界面 - driver= new ChromeDriver(); - Logger.Output(LogType.LogTypeName.INFO, "正在启动Chrome浏览器"); - }else if(browserName.equalsIgnoreCase("IE")){ - System.setProperty("webdriver.ie.driver", ".\\src\\main\resources\\IEDriverServer.exe"); - driver= new InternetExplorerDriver(); - Logger.Output(LogType.LogTypeName.INFO, "正在启动IE浏览器"); - } - driver.manage().window().maximize(); - Logger.Output(LogType.LogTypeName.INFO, "窗口最大化"); - driver.get(serverURL); - Logger.Output(LogType.LogTypeName.INFO, "打开URL: "+ serverURL); - callWait(5); - return driver; - } - - /** - * buyer获取浏览器,并读取buyer的地址 - * @return - */ - public WebDriver buyerGetBrowser() { - if (browserName.equals("Chrome")) { - System.setProperty("webdriver.chrome.driver", ".\\resources\\chromedriver.exe"); //图形界面 - driver= new ChromeDriver(); - Logger.Output(LogType.LogTypeName.INFO, "正在启动Chrome浏览器"); - }else if (browserName.equals("Firefox")) { - System.setProperty("webdriver.gecko.driver", ".\\resources\\geckodriver.exe"); - driver = new FirefoxDriver(); - Logger.Output(LogType.LogTypeName.INFO, "正在启动FireFox浏览器"); - } - driver.manage().window().maximize(); - Logger.Output(LogType.LogTypeName.INFO, "窗口最大化"); - driver.get(buyerURL); - Logger.Output(LogType.LogTypeName.INFO, "打开URL: "+ buyerURL); - callWait(5); - return driver; - } - - - /** - * 退出驱动 - * @throws InterruptedException - */ - public void tearDown() throws InterruptedException{ - Logger.Output(LogType.LogTypeName.INFO, "关闭浏览器"); - driver.quit(); - Thread.sleep(3000); - } - - /** - * 隐式时间等待方法 - * @param time - */ - public void callWait(int time){ - - driver.manage().timeouts().implicitlyWait(time, TimeUnit.SECONDS); - Logger.Output(LogType.LogTypeName.INFO, "设置隐性等待"+time+" 秒"); - } - /** - *跳过安全链接 - */ - public void anQuan() { - // 创建DesiredCapabilities类的一个对象实例 - DesiredCapabilities cap=DesiredCapabilities.chrome(); - // 设置变量ACCEPT_SSL_CERTS的值为True - cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true); - Logger.Output(LogType.LogTypeName.INFO, "设置浏览器可以打开不安全链接"); - } -} - diff --git a/src/test/java/com/essa/framework/DBInfo.java b/src/test/java/com/essa/framework/DBInfo.java deleted file mode 100644 index 9eff8c7..0000000 --- a/src/test/java/com/essa/framework/DBInfo.java +++ /dev/null @@ -1,74 +0,0 @@ -package com.essa.framework; - -public class DBInfo { - - //sit - public static String sitJdbcName = "com.mysql.cj.jdbc.Driver"; - public static String sitSqlUrl = "jdbc:mysql://192.168.1.247:3307/bpms"; - public static String sitUser = "root"; - public static String sitPassword = "redhat"; - //hotfix - public static String hotfixJdbcName = "com.mysql.cj.jdbc.Driver"; - public static String hotfixSqlUrl = "jdbc:mysql://192.168.1.19:3321/bpms"; - public static String hotfixUser = "essa_hotfix"; - public static String hotfixPassword = "essa^_hotfix^D checkBoxes; - - //是否服务过大客户:是 - @FindBy (xpath = ".//*[contains(text(),'是否服务过大客户')]/../div[1]/label[1]") - WebElement isServLargeCus; - - //是否服务过大客户:否 - @FindBy (xpath = ".//*[contains(text(),'是否服务过大客户')]/../div[1]/label[2]") - WebElement notServLargeCus; - - //服务过的大客户数 - @FindBy (xpath = ".//*[@list='ctrl.model.serviceLargeCustomerList']/div/table/tbody/tr") - List customers; - - //大客户的“+” - @FindBy (xpath = ".//*[@list='ctrl.model.serviceLargeCustomerList']/div/div/button[1]") - WebElement addCustomer; - - //大客户名称文本框 - public WebElement largeCusName(int i) { - String xpath = ".//*[@list='ctrl.model.serviceLargeCustomerList']/div/table/tbody/tr["+i+"]/td[2]/input"; - return driver.findElement(By.xpath(xpath)); - } - - //备注文本框 - public WebElement note(int i) { - String xpath = ".//*[@list='ctrl.model.serviceLargeCustomerList']/div/table/tbody/tr["+i+"]/td[3]/input"; - return driver.findElement(By.xpath(xpath)); - } - - //确定按钮 - @FindBy (xpath = "//*[text()='确定']") - WebElement submit; - - //标签页名称 - @FindBy (xpath ="//*/a[contains(text(),'综合实力评估')]") - WebElement labelName; - - //提交完成后,操作成功的弹框关闭按钮 - @FindBy (xpath="//*[@class='close']") - WebElement alertClosed; - - //关闭页面 - @FindBy(xpath = "//*[text()='综合实力评估']/../span") - WebElement closed; - - - /* - * 方法 - */ - - //选择配合度 - public void selectCooperateDegree(String cooperateGrade) { - - //选择配合度:高、中、低 - selectElement(cooperateDegree, cooperateGrade); - - } - - //是否有研发能力,参数可选 是/否 - public void isDevAblity(String ablity) { - if("是".equals(ablity)) - click(isDev); - else { - click(notDev); - } - } - - // - - //提交编辑 - public void submit() { - moveHeightScroll("0"); - click(submit); - - } - - //勾选每季度有新品推出 - public void newProduct() { - if(newGoodsEveryQuarter.isSelected());//判断是否已勾选 - else { - isElementExist(newGoodsEveryQuarter); - click(newGoodsEveryQuarter); - } - } - - //勾选有配备工程师 - public void haveEngineer() { - if(existsEngineer.isSelected()); - else { - isElementExist(existsEngineer); - click(existsEngineer); - } - } - - //勾选有研发团队 - public void haveTeam() { - if (existsProductDev.isSelected()); - else { - isElementExist(existsProductDev); - click(existsProductDev); - } - } - - //勾选“其他” - public void other() { - if(others.isSelected()); - else { - click(others); - isElementExist(otherDevAbilValue); - sendKeys(otherDevAbilValue, "我们每天都有新品推出!"); - } - } - - - //拖动滚动条,因为本页面如果数据量多,就看不到头部的关闭本页面的X - public void moveScroll() { - - moveHeightScroll("100"); - - } - - //检查是否列表加载完成 - public boolean isSucceed() throws InterruptedException { - while(!(labelName.isDisplayed())) { - Thread.sleep(1000); - } - return isElementExist(labelName); - - } - - //判断是否提交成功 - public boolean isSubmit() { - - return isElementExist(alertClosed); - - } - - //关闭“操作成功”提示 - public void alertClosed() { - click(alertClosed); - } - - /* - * 添加证书逻辑: - * 1.点击是否有证书:是 - * 2.点击“+” - * 3.统计已有x个证书 - * 4.i=x - * 5.选择证书类型WRAP,证书编号,证书说明,传证书图片 - * 6.判断证书是否上传成功,不成功则等待 - */ - public void addCertification() throws Exception { - click(isCertificate); - isElementExist(addCertificate); - click(addCertificate); - - java.util.List list= checkBoxes; - int x = list.size(); - - selectElement(itemType(x), "WRAP"); - sendKeys(itemCode(x), "20180331:"+x); - sendKeys(itemDec(x), "证书说明:这是第"+x+"个证书"); - click(itemFile(x)); - uploadFile("E:\\pic\\证书.jpg"); - - //如果图片是系统默认的图片,则等待1秒 - while("/img/nopic.jpg".equals(imge(x).getAttribute("ng-src"))) { - Thread.sleep(1000); - } - } - - /* - * 添加服务大客户记录 - * 先把滚动条拉下来,不然找不到元素 - * 1.是否服务过大客户,点击:是 - * 2.点击“+” - * 3.判断已有服务过的次数x,i=x - * 4.写入大客户名称,备注 - */ - public void addSerLargeCus() { - moveHeightScroll("0"); - click(isServLargeCus); - isElementExist(addCustomer); - click(addCustomer); - List list = customers; - int x = list.size(); - sendKeys(largeCusName(x), "第"+x+"大客户"); - sendKeys(note(x), "这个是备注信息"+x); - } - - //选择主打产品 - public void selMainProduct(String degree) { - selectElement(mainProduct, degree); - } - - //关闭本页面 - public void closed() { - - click(closed); - - } -} diff --git a/src/test/java/com/essa/pageObject/buyPlaneManage/SkuCategoryManagerCongfigPage.java b/src/test/java/com/essa/pageObject/buyPlaneManage/SkuCategoryManagerCongfigPage.java deleted file mode 100644 index 8d1fe39..0000000 --- a/src/test/java/com/essa/pageObject/buyPlaneManage/SkuCategoryManagerCongfigPage.java +++ /dev/null @@ -1,84 +0,0 @@ -package com.essa.pageObject.buyPlaneManage; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *商品类目经理管理配置页 - */ -public class SkuCategoryManagerCongfigPage extends BasePage { - public SkuCategoryManagerCongfigPage(WebDriver driver) { - super(driver); - } - /* - * 页面元素定位 - */ - - //查询输入框 - @FindBy (xpath="//*[@placeholder='请输入关键信息查询']") - WebElement searchContent; - - //高级查询 - @FindBy (xpath="//*[contains(text(),'高级查询')]") - WebElement advancedQuery; - - //sku编号 - @FindBy (xpath="//*[contains(text(),'SKU编号')]/../div/input") - WebElement skuNoQuery; - - //高级查询按钮 - @FindBy (xpath="//*[text()='查询']") - WebElement query; - - //查询按钮 - @FindBy (xpath="//*[@ng-click='search()']") - WebElement search; - - //右下角分页的GO按钮,用作检查点,等待页面加载完成 - @FindBy (xpath="//*[text()='GO']") - WebElement checkPoint; - - //列表第一条数据的复选框 - @FindBy (xpath="//*[@ng-table='tableParams']/tbody/tr[1]/td[1]/input") - WebElement firstCheckBox; - - //分配类目经理 - @FindBy (xpath="//*[text()='分配类目经理']") - WebElement distribute; - - //选择类目经理 - @FindBy (xpath="//*[@ng-model='mgrOpt']") - WebElement selectManager; - - //确认类目经理 - @FindBy(xpath="//*[text()='确认']") - WebElement confirm; - - /* - * 页面方法 - */ - - /** - * 商品分配类目经理 - * @return SkuCategoryManagerCongfigPage - */ - public SkuCategoryManagerCongfigPage distributeManager() { - forceWait(1000); - mywait(advancedQuery); - click(advancedQuery); - sendKeys(skuNoQuery, Model.getSkuNo()); - click(query); - mywait(firstCheckBox); - click(firstCheckBox); - click(distribute); - mywait(confirm); - selectElement(selectManager, "林荣"); - click(confirm); - return new SkuCategoryManagerCongfigPage(driver); - } -} diff --git a/src/test/java/com/essa/pageObject/buyerManage/InvateCodePage.java b/src/test/java/com/essa/pageObject/buyerManage/InvateCodePage.java deleted file mode 100644 index 981a2d6..0000000 --- a/src/test/java/com/essa/pageObject/buyerManage/InvateCodePage.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.essa.pageObject.buyerManage; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *邀请码生成页面 - */ -public class InvateCodePage extends BasePage { - public InvateCodePage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - - //第一个业务员复选框 - @FindBy(xpath ="//*[text()='选择人员']/../div/dl/dd[1]/b/input") - WebElement firstCheckbox; - - //推广方式 - @FindBy (xpath="//select[contains(@ng-change,'changeChannelList')]") - WebElement spreadForm; - - //推广渠道 - @FindBy (xpath="//select[@ng-model='parame.create.promoteChannelId']") - WebElement spreadChannel; - - //生成 - @FindBy (xpath="//button[contains(text(),'生成')]") - WebElement create; - - //确认 - @FindBy (xpath ="//*[text()='确认']") - WebElement confirm; - - //关闭 - @FindBy (xpath ="//*[text()='关闭']") - WebElement close; - - //生成的邀请码 - @FindBy (xpath="//tbody[@class='ng-scope']/tr[1]/td[5]") - WebElement invateCode; - - /* - * 页面方法 - */ - /** - * 生成邀请码 - */ - public void generateCode() { - mywait(firstCheckbox); - click(firstCheckbox); - selectElement(spreadForm, "搜索引擎"); - selectElement(spreadChannel, "Google"); - click(create); - forceWait(500); - click(confirm); - forceWait(500); - click(close); - String code = invateCode.getText(); - Model.setInvateCode(code); - } -} diff --git a/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryFeedbackPage.java b/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryFeedbackPage.java deleted file mode 100644 index d6cb10c..0000000 --- a/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryFeedbackPage.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.essa.pageObject.inquiryManage; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator 成品询价反馈页 - */ -public class ProductInquiryFeedbackPage extends BasePage { - public ProductInquiryFeedbackPage(WebDriver driver) { - super(driver); - } - - /* - * 元素定位 - */ - // 查询类型 - @FindBy(xpath = "//*[@ng-change='changeSearchType()']") - WebElement searchType; - - // 查询条件输入框 - @FindBy(xpath = "//*[@placeholder='请输入查询条件']") - WebElement searchText; - - // 查询按钮 - @FindBy(xpath = "//button[@ng-click='getFeedbackDetailBySearchInfo()']") - WebElement search; - - // 单箱金额 - @FindBy(xpath = "//*[contains(text(),'单箱金额')]") - WebElement singlePrice; - - // 待反馈任务 - @FindBy(xpath = "//*[contains(text(),'待反馈任务')]") - WebElement waitFeedback; - - // 提交审核 - @FindBy(xpath = "//*[@ng-click='submitFeedback(1)']") - WebElement submit; - - /* - * 页面方法 - */ - /** - * 提交询价任务 - * - * @return ProductInquiryTask - */ - public ProductInquiryTaskPage submit() { - // 根据单箱价格是否为空来判断页面是否加载成功 - for (int count = 0;"单箱金额:".equals(getText(singlePrice))&& count < 7;count++) { - forceWait(1000); - } - selectElement(searchType, "商品编号"); - sendKeys(searchText, Model.getSkuNo()); - // 根据sku编号来判断是否加载出想要的sku信息 - click(search); -// boolean b = isVisibility(By.xpath("//*[contains(text(),'" + Model.getSkuNo() + "')]")); -// while (!b) { -// forceWait(1000); -// } - dynamicWait(By.xpath("//*[contains(text(),'" + Model.getSkuNo() + "')]")); - click(waitFeedback); - // 判断是否加载待反馈视图 -// boolean b1 = isVisibility(By.xpath("//*[contains(text(),'询价要求完成时间')]")); -// while (!b1) { -// forceWait(1000); -// } - dynamicWait(By.xpath("//*[contains(text(),'询价要求完成时间')]")); - moveHeightScroll("100"); - click(submit); - return new ProductInquiryTaskPage(driver); - } - - /** - * 根据PO单,询价 - * @return - */ - public ProductInquiryTaskPage POsubmit() { - // 根据单箱价格是否为空来判断页面是否加载成功 - for (int count=0;"单箱金额:".equals(getText(singlePrice))&&count<7;count++) { - forceWait(1000); - } - selectElement(searchType, "来源PO单/成品采购单号"); - sendKeys(searchText, Model.getPoNum()); - click(search); -// while (!(isVisibility(By.xpath("//*[@id='mask' and @style='display: none;']")))) { -// forceWait(1000); -// } - dynamicLoad(By.xpath("//*[@id='mask' and @style='display: none;']")); - forceWait(1000); - click(waitFeedback); - dynamicWait(By.xpath("//*[contains(text(),'询价要求完成时间')]")); - moveHeightScroll("100"); - toSubmit(); - return new ProductInquiryTaskPage(driver); - } - - /** - * 如果【提交审核】在页面中存在,则一直点击,最多等7秒 - */ - private void toSubmit() { - for (int count =0;isVisibility(By.xpath("//*[@ng-click='submitFeedback(1)']"))&&count<7;count++) { - click(submit); - forceWait(1000); - } - } -} diff --git a/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryTaskPage.java b/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryTaskPage.java deleted file mode 100644 index 0b91489..0000000 --- a/src/test/java/com/essa/pageObject/inquiryManage/ProductInquiryTaskPage.java +++ /dev/null @@ -1,121 +0,0 @@ -package com.essa.pageObject.inquiryManage; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator 成品询价任务列表 - */ -public class ProductInquiryTaskPage extends BasePage { - public ProductInquiryTaskPage(WebDriver driver) { - super(driver); - } - - /* - * 元素定位 - */ - // 高级查询 - @FindBy(xpath = "//*[contains(text(),'高级查询')]") - WebElement advancedQuery; - - // 商品编码查询 - @FindBy(xpath = "//*[text()='商品编码']/../div/input") - WebElement skuNoQuery; - - // 根据PO查询 - @FindBy(xpath = "//*[text()='来源单号']/../div[1]/input") - WebElement POQuery; - - // 高级查询-查询按钮 - @FindBy(xpath = "//*[@name='advSearch']/div[12]/button[1]") - WebElement search; - - // 列表第一行数据 - @FindBy(xpath = "//*[@ng-table='tableParams1']/tbody/tr[1]") - WebElement firstRow; - - // 询价反馈 - @FindBy(xpath = "//*[contains(text(),'询价反馈')]") - WebElement feedBack; - - // 暂无数据--用于检查是否已经成功 - @FindBy(xpath = "//*[text()='暂无数据']") - WebElement isSucceed; - - /* - * 页面方法 - */ - /** - * 查出要成品询价的商品,进入成品询价反馈页面 - * - * @return ProductInquiryFeedback - */ - public ProductInquiryFeedbackPage toFeedback() { -// mywait(firstRow); - click(advancedQuery); - sendKeys(skuNoQuery, Model.getSkuNo()); - click(search); - mywait(firstRow); - click(firstRow); - click(feedBack); - return new ProductInquiryFeedbackPage(driver); - } - - /** - * 判断页面是否查询不到该商品 - * - * @return boolean - */ - public boolean isSucceed() { - click(advancedQuery); - sendKeys(skuNoQuery, Model.getSkuNo()); - click(search); - forceWait(1000); - return isVisibility(By.xpath("//*[text()='暂无数据']")); - } - - /** - * 判断根据po单查询,是否全部询价完成 - * - * @return boolean - */ - public boolean isPOSucceed() { - forceWait(1000); - return isVisibility(By.xpath("//*[@ng-table='tableParams1']/tbody/tr[1]")); - } - - /** - * 根据PO单号查询询价 - * - * @return 询价反馈页面 - */ - public ProductInquiryFeedbackPage POtoFeedback() { - dynamicWait(By.xpath("//*[@ng-table='tableParams1']/tbody/tr[1]")); - click(advancedQuery); - sendKeys(POQuery, Model.getPoNum()); - click(search); - dynamicWait(By.xpath("//*[@id='mask' and @style='display: none;']")); -// dynamicWait(By.xpath("//*[@ng-table='tableParams1']/tbody/tr[1]")); -// mywait(firstRow); -// forceWait(2000); - click(firstRow); - click(feedBack); - return new ProductInquiryFeedbackPage(driver); - } - - /** - * 如果列表中还存在待询价的单,循环方法,继续询价 - * - * @return - */ - public ProductInquiryFeedbackPage POcircle() { - click(firstRow); - click(feedBack); - return new ProductInquiryFeedbackPage(driver); - } -} diff --git a/src/test/java/com/essa/pageObject/marketingManage/CollectBillControlPage.java b/src/test/java/com/essa/pageObject/marketingManage/CollectBillControlPage.java deleted file mode 100644 index 883e8ac..0000000 --- a/src/test/java/com/essa/pageObject/marketingManage/CollectBillControlPage.java +++ /dev/null @@ -1,15 +0,0 @@ -package com.essa.pageObject.marketingManage; - -import org.openqa.selenium.WebDriver; - -import com.essa.framework.BasePage; - -/** - * @author Administrator - *集单控制 - */ -public class CollectBillControlPage extends BasePage { - public CollectBillControlPage(WebDriver driver) { - super(driver); - } -} diff --git a/src/test/java/com/essa/pageObject/marketingManage/CollectBillSettingPage.java b/src/test/java/com/essa/pageObject/marketingManage/CollectBillSettingPage.java deleted file mode 100644 index 2ab1419..0000000 --- a/src/test/java/com/essa/pageObject/marketingManage/CollectBillSettingPage.java +++ /dev/null @@ -1,223 +0,0 @@ -package com.essa.pageObject.marketingManage; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *集单设置 - */ -public class CollectBillSettingPage extends BasePage { - public CollectBillSettingPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - - //添加商品-查询输入框 - @FindBy (xpath = "//*[@name='keyword']") - WebElement searchContent; - - //团购设置中的关键字输入框 - @FindBy (xpath="//*[@ng-model='searchKeyword']") - WebElement content; - - //查询按钮 - @FindBy (xpath = "//button[@ng-click='gotoSearch()']") - WebElement search; - - //添加商品 - @FindBy (xpath = "//*[text()='添加商品']") - WebElement addSku; - - //loading,判断是否加载完成 - @FindBy (xpath="//*[@class='loading ng-scope']") - WebElement loading; - - //查询列表中的第一个复选框 - @FindBy (xpath = "//*[@class='table marketing-collectbill-products']/tbody/tr[1]/td[1]/input") - WebElement firstCheckBox; - - //MOQ设置 - @FindBy (xpath = "//*[text()='MOQ设置']") - WebElement MOQSet; - - //阶梯价 - @FindBy (xpath = "//*[text()='阶梯价']") - WebElement setPrice; - - //配置主推市场 - @FindBy (xpath = "//*[text()='配置主推市场']") - WebElement mainMarket; - - //发布商品 - @FindBy (xpath = "//*[text()='发布商品']") - WebElement publishSku; - - //添加商品-查询按钮 - @FindBy (xpath = "//*[@ng-click='search(false)']") - WebElement addSkuSearch; - - //添加商品-展开商品信息 - @FindBy (xpath = "//*[contains(@class,'fa fa-angle-double-dow')]") - WebElement showSku; - - //添加商品-搜索结果复选框 - @FindBy (xpath = "//*[@ng-repeat='list in item.skus']/tbody/tr[1]/td[1]/input") - WebElement skuCheckbox; - - //确定按钮 - @FindBy (xpath = "//*[contains(text(),'确定')]") - WebElement confirm; - - //活动成功MOQ - @FindBy (xpath = "//*[@ng-model='activitySuccessMoq']") - WebElement successMoq; - - //活动销售MOQ - @FindBy (xpath = "//*[@ng-model='activitySaleMoq']") - WebElement saleMoq; - - //成本价格 - @FindBy (xpath = "//*[contains(text(),'成本')]") - WebElement firstCost; - - //最低价 - @FindBy (xpath = "//*[@ng-model='minPrice']") - WebElement minPrice; - - //最高价 - @FindBy (xpath = "//*[@ng-model='maxPrice']") - WebElement maxPrice; - - //阶梯数 - @FindBy (xpath = "//*[@ng-model='ladderCount']") - WebElement ladderCount; - - //生成阶梯 - @FindBy (xpath = "//*[text()='生成阶梯']") - WebElement creatLadder; - - //可选区域-东欧 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[1]/input") - WebElement easternEurope; - - //可选区域-南美 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[2]/input") - WebElement southAmerican; - - //可选区域-欧美 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[3]/input") - WebElement europeAndAmerica; - - //可选区域-东南亚 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[4]/input") - WebElement southeastAsia; - - //可选区域-中东 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[5]/input") - WebElement middleEast; - - /* - * 页面方法 - */ - /** - * 添加商品 - */ - public void addSku() { - mywait(addSku); - click(addSku); - /*while (isVisibility(By.xpath("//*[@class='loading ng-scope']"))) { - forceWait(1000); - };*/ - dynamicLoad(By.xpath("//*[@class='loading ng-scope']")); - sendKeys(searchContent, Model.getSkuNo()); - click(addSkuSearch); - forceWait(1000); - click(showSku); - click(skuCheckbox); - click(confirm); - } - - /** - * 设置MOQ - */ - public void setMoq() { - forceWait(1000); - mywait(firstCheckBox); - sendKeys(content, Model.getSkuNo()); - click(search); - mywait(firstCheckBox); - click(firstCheckBox); - click(MOQSet); -//===================================================================此处要修改 - sendKeys(successMoq, "150"); - sendKeys(saleMoq, "15"); - click(confirm); - } - /** - * 设置阶梯价 - */ - public void setPrice() { - forceWait(1000); - click(setPrice); - mywait(creatLadder); - int firstCost = getFirstCost(); - sendKeys(minPrice, firstCost+30+""); - sendKeys(maxPrice, firstCost+100+""); - sendKeys(ladderCount, "2"); - click(creatLadder); - forceWait(1000); - click(confirm); - } - /** - * 设置主推市场 - */ - public void setMarket() { - forceWait(1000); - click(mainMarket); - mywait(easternEurope); - click(easternEurope); - click(southAmerican); - click(easternEurope); - click(southeastAsia); - click(middleEast); - forceWait(500); - click(confirm); - forceWait(1000); - click(confirm); - } - - /** - * 组装以上操作 - * 添加商品并发布团购 - * @return GroupSettingPage - */ - public GroupSettingPage publishGroup() { - addSku(); - setMoq(); - setPrice(); - setMarket(); - forceWait(1000); - click(publishSku); - forceWait(1000); - click(confirm); - return new GroupSettingPage(driver); - } - - /** - * 获取到商品的成本价 - * @return price - */ - private int getFirstCost() { - String p = partialStr(firstCost.getText(), "成本:¥"); - int price = Integer.parseInt(p); - return price; - } -} diff --git a/src/test/java/com/essa/pageObject/marketingManage/GroupControlPage.java b/src/test/java/com/essa/pageObject/marketingManage/GroupControlPage.java deleted file mode 100644 index 8b6c6de..0000000 --- a/src/test/java/com/essa/pageObject/marketingManage/GroupControlPage.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.essa.pageObject.marketingManage; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *团购控制 - */ -public class GroupControlPage extends BasePage { - public GroupControlPage(WebDriver driver) { - super(driver); - } - /* - * 页面元素定位 - */ - - //关键字查询输入 - @FindBy (xpath = "//*[@ng-model='searchKeyword']") - WebElement searchKeyword; - - //查询按钮 - @FindBy (xpath = "//*[@ng-click='gotoSearch()']") - WebElement search; - - /* - * 页面方法 - */ - /** - * 判断团购的商品是否发布成功 - * @return boolean - */ - public boolean isSuccess() { - mywait(searchKeyword); - sendKeys(searchKeyword, Model.getSkuNo()); - click(search); - forceWait(1500); - return isVisibility(By.xpath("//*[contains(text(),'"+Model.getSkuNo()+"')]")); - } -} diff --git a/src/test/java/com/essa/pageObject/marketingManage/GroupSettingPage.java b/src/test/java/com/essa/pageObject/marketingManage/GroupSettingPage.java deleted file mode 100644 index 24d1142..0000000 --- a/src/test/java/com/essa/pageObject/marketingManage/GroupSettingPage.java +++ /dev/null @@ -1,222 +0,0 @@ -package com.essa.pageObject.marketingManage; - -import org.openqa.selenium.By; -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; -import com.essa.framework.Model; - -/** - * @author Administrator - *团购设置 - */ -public class GroupSettingPage extends BasePage { - public GroupSettingPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - - //添加商品-查询输入框 - @FindBy (xpath = "//*[@name='keyword']") - WebElement searchContent; - - //团购设置中的关键字输入框 - @FindBy (xpath="//*[@ng-model='searchKeyword']") - WebElement content; - - //查询按钮 - @FindBy (xpath = "//button[@ng-click='gotoSearch()']") - WebElement search; - - //添加商品 - @FindBy (xpath = "//*[text()='添加商品']") - WebElement addSku; - - //loading,判断是否加载完成 - @FindBy (xpath="//*[@class='loading ng-scope']") - WebElement loading; - - //查询列表中的第一个复选框 - @FindBy (xpath = "//*[@class='table marketing-collectbill-products']/tbody/tr[1]/td[1]/input") - WebElement firstCheckBox; - - //MOQ设置 - @FindBy (xpath = "//*[text()='MOQ设置']") - WebElement MOQSet; - - //阶梯价 - @FindBy (xpath = "//*[text()='阶梯价']") - WebElement setPrice; - - //配置主推市场 - @FindBy (xpath = "//*[text()='配置主推市场']") - WebElement mainMarket; - - //发布商品 - @FindBy (xpath = "//*[text()='发布商品']") - WebElement publishSku; - - //添加商品-查询按钮 - @FindBy (xpath = "//*[@ng-click='search(false)']") - WebElement addSkuSearch; - - //添加商品-展开商品信息 - @FindBy (xpath = "//*[contains(@class,'fa fa-angle-double-dow')]") - WebElement showSku; - - //添加商品-搜索结果复选框 - @FindBy (xpath = "//*[@ng-repeat='list in item.skus']/tbody/tr[1]/td[1]/input") - WebElement skuCheckbox; - - //确定按钮 - @FindBy (xpath = "//*[contains(text(),'确定')]") - WebElement confirm; - - //活动成功MOQ - @FindBy (xpath = "//*[@ng-model='activitySuccessMoq']") - WebElement successQoq; - - //活动销售MOQ - @FindBy (xpath = "//*[@ng-model='activitySaleMoq']") - WebElement saleQoq; - - //成本价格 - @FindBy (xpath = "//*[contains(text(),'成本')]") - WebElement firstCost; - - //最低价 - @FindBy (xpath = "//*[@ng-model='minPrice']") - WebElement minPrice; - - //最高价 - @FindBy (xpath = "//*[@ng-model='maxPrice']") - WebElement maxPrice; - - //阶梯数 - @FindBy (xpath = "//*[@ng-model='ladderCount']") - WebElement ladderCount; - - //生成阶梯 - @FindBy (xpath = "//*[text()='生成阶梯']") - WebElement creatLadder; - - //可选区域-东欧 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[1]/input") - WebElement easternEurope; - - //可选区域-南美 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[2]/input") - WebElement southAmerican; - - //可选区域-欧美 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[3]/input") - WebElement europeAndAmerica; - - //可选区域-东南亚 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[4]/input") - WebElement southeastAsia; - - //可选区域-中东 - @FindBy (xpath = "//*[contains(text(),'可选择的市场区域')]/../dd/span[5]/input") - WebElement middleEast; - - /* - * 页面方法 - */ - /** - * 添加商品 - */ - public void addSku() { - mywait(addSku); - click(addSku); - /*while (isVisibility(By.xpath("//*[@class='loading ng-scope']"))) { - forceWait(1000); - };*/ - dynamicLoad(By.xpath("//*[@class='loading ng-scope']")); - sendKeys(searchContent, Model.getSkuNo()); - click(addSkuSearch); - forceWait(1000); - click(showSku); - click(skuCheckbox); - click(confirm); - } - - /** - * 设置MOQ - */ - public void setMoq() { - forceWait(1000); - mywait(firstCheckBox); - sendKeys(content, Model.getSkuNo()); - click(search); - mywait(firstCheckBox); - click(firstCheckBox); - click(MOQSet); - sendKeys(successQoq, "150"); - sendKeys(saleQoq, "15"); - click(confirm); - } - /** - * 设置阶梯价 - */ - public void setPrice() { - forceWait(1000); - click(setPrice); - mywait(creatLadder); - int firstCost = getFirstCost(); - sendKeys(minPrice, firstCost+30+""); - sendKeys(maxPrice, firstCost+100+""); - sendKeys(ladderCount, "2"); - click(creatLadder); - forceWait(1000); - click(confirm); - } - /** - * 设置主推市场 - */ - public void setMarket() { - forceWait(1000); - click(mainMarket); - mywait(easternEurope); - click(easternEurope); - click(southAmerican); - click(easternEurope); - click(southeastAsia); - click(middleEast); - forceWait(500); - click(confirm); - forceWait(1000); - click(confirm); - } - - /** - * 组装以上操作 - * 添加商品并发布团购 - * @return GroupSettingPage - */ - public GroupSettingPage publishGroup() { - addSku(); - setMoq(); - setPrice(); - setMarket(); - forceWait(1000); - click(publishSku); - forceWait(1000); - click(confirm); - return new GroupSettingPage(driver); - } - - /** - * 获取到商品的成本价 - * @return price - */ - private int getFirstCost() { - String p = partialStr(firstCost.getText(), "成本:¥"); - int price = Integer.parseInt(p); - return price; - } -} diff --git a/src/test/java/com/essa/pageObject/productDev/AddProjectPage.java b/src/test/java/com/essa/pageObject/productDev/AddProjectPage.java deleted file mode 100644 index aa07ea7..0000000 --- a/src/test/java/com/essa/pageObject/productDev/AddProjectPage.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.essa.pageObject.productDev; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.WebElement; -import org.openqa.selenium.support.FindBy; - -import com.essa.framework.BasePage; - -/** - * @author Administrator - *新增项目立项书 - */ -public class AddProjectPage extends BasePage { - public AddProjectPage(WebDriver driver) { - super(driver); - } - /* - * 元素定位 - */ - //改版类型 - @FindBy (xpath ="//*[@dic-list='改版类型']") - WebElement revisonType; - - //项目名称 - @FindBy (xpath ="//*[@ng-model='model.name']") - WebElement projectName; - - //项目负责人 - @FindBy (xpath ="//*[@ng-model='model.leaderId']/input") - WebElement projectLeader; - - //项目负责人-林荣 - @FindBy (xpath ="//*[@id='role-user-select-box']/ul/li[3]/span") - WebElement linrong; - - //开发程度 - @FindBy (xpath ="//*[@dic-list='开发程度']") - WebElement devLevel; - - //开发系列 - @FindBy (xpath ="//*[@ng-model='model.serialId']") - WebElement devSerial; - - //团队成员-新增 - @FindBy (xpath ="//button[text()='新增']") - WebElement addMember; - - //任务处理人 -第一个 - @FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[1]/td[2]/div/input") - WebElement Transactor1; - - //处理人-linrong - @FindBy (xpath ="//*[@id='role-user-select-box']/ul/li[3]/span") - WebElement linrong1; - - //任务处理人 -第二个 - @FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[2]/td[2]/div/input") - WebElement Transactor2; - - //成员角色 -第一个 - @FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[1]/td[3]/select") - WebElement role1; - - //成员角色 -第二个 - @FindBy (xpath ="//*[@class='col-md-14']/table/tbody/tr[2]/td[3]/select") - WebElement role2; - - //选择改版商品信息 - @FindBy (xpath ="//*[text()='选择']") - WebElement selectGoods; - - //保存 - @FindBy (xpath ="//*[contains(text(),'保存')]") - WebElement save; -} diff --git a/src/test/java/com/essa/testSuite/SendEmail.java b/src/test/java/com/essa/testSuite/SendEmail.java deleted file mode 100644 index aec2d62..0000000 --- a/src/test/java/com/essa/testSuite/SendEmail.java +++ /dev/null @@ -1,113 +0,0 @@ -package com.essa.testSuite; - -import java.util.Properties; - -import javax.activation.DataHandler; -import javax.activation.DataSource; -import javax.activation.FileDataSource; -import javax.mail.BodyPart; -import javax.mail.Message; -import javax.mail.MessagingException; -import javax.mail.Multipart; -import javax.mail.PasswordAuthentication; -import javax.mail.Session; -import javax.mail.Transport; -import javax.mail.internet.InternetAddress; -import javax.mail.internet.MimeBodyPart; -import javax.mail.internet.MimeMessage; -import javax.mail.internet.MimeMultipart; - -public class SendEmail { - - public static void main(String[] args) { - - // 创建一个Property文件对象 - Properties props = new Properties(); - - // 设置邮件服务器的信息,这里设置smtp主机名称 - props.put("mail.smtp.host", "smtp.qq.com"); - - // 设置socket factory 的端口 - props.put("mail.smtp.socketFactory.port", "465"); - - // 设置socket factory - props.put("mail.smtp.socketFactory.class","javax.net.ssl.SSLSocketFactory"); - - // 设置需要身份验证 - props.put("mail.smtp.auth", "true"); - - // 设置SMTP的端口,QQ的smtp端口是25 - props.put("mail.smtp.port", "25"); - - // 身份验证实现 - Session session = Session.getDefaultInstance(props, new javax.mail.Authenticator() { - - protected PasswordAuthentication getPasswordAuthentication() { - // 第二个参数,就是我QQ开启smtp的授权码 - return new PasswordAuthentication("278953238@qq.com", "pfpzqcamljytbjec"); - - } - - }); - - try { - - // 创建一个MimeMessage类的实例对象 - Message message = new MimeMessage(session); - - // 设置发件人邮箱地址 - message.setFrom(new InternetAddress("278953238@qq.com")); - - // 设置收件人邮箱地址 - message.setRecipients(Message.RecipientType.TO,InternetAddress.parse("3289714863@qq.com")); - - // 设置邮件主题 - message.setSubject("测试发送邮件"); - - // 创建一个MimeBodyPart的对象,以便添加内容 - BodyPart messageBodyPart1 = new MimeBodyPart(); - - // 设置邮件正文内容 - messageBodyPart1.setText("这个是邮件的正文部分"); - - // 创建另外一个MimeBodyPart对象,以便添加其他内容 - MimeBodyPart messageBodyPart2 = new MimeBodyPart(); - - // 设置邮件中附件文件的路径 - String filename = ".\\test-output\\emailable-report.html"; - - // 创建一个datasource对象,并传递文件 - DataSource source = new FileDataSource(filename); - - // 设置handler - messageBodyPart2.setDataHandler(new DataHandler(source)); - - // 加载文件 - messageBodyPart2.setFileName(filename); - - // 创建一个MimeMultipart类的实例对象 - Multipart multipart = new MimeMultipart(); - - // 添加正文1内容 - multipart.addBodyPart(messageBodyPart1); - - // 添加正文2内容 - multipart.addBodyPart(messageBodyPart2); - - // 设置内容 - message.setContent(multipart); - - // 最终发送邮件 - Transport.send(message); - - System.out.println("=====邮件已经发送====="); - - } catch (MessagingException e) { - - throw new RuntimeException(e); - - } - - } - -} diff --git a/src/test/java/com/essa/testSuite/TestAddMarketGoods.java b/src/test/java/com/essa/testSuite/TestAddMarketGoods.java deleted file mode 100644 index 6dccefe..0000000 --- a/src/test/java/com/essa/testSuite/TestAddMarketGoods.java +++ /dev/null @@ -1,86 +0,0 @@ -package com.essa.testSuite; - -import java.io.IOException; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.framework.Model; -import com.essa.pageObject.BaseTest; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.GoodsManage.AddMarketGoodsPage; -import com.essa.pageObject.GoodsManage.AuditMarketGoodsPage; -import com.essa.pageObject.GoodsManage.AuditMarketOpreatePage; -import com.essa.pageObject.GoodsManage.MarketGoodsRelesePage; - -/** - * @author Administrator - *测试用例:添加市场商品 - */ -public class TestAddMarketGoods extends BaseTest { - - WebDriver driver; - - @BeforeClass - public void setUp() throws IOException { - initsetUp(); - loginValid("maomeixiang"); - } - /** - * 进入市场商品发布页,选择对应的采购商 - */ - @Test(description="进入市场商品发布列表,选择采购商") - public void toMarketGoodsRelesePage() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toMarketGoodsRelesePage(); - MarketGoodsRelesePage marketGoodsRelesePage = PageFactory.initElements(driver, MarketGoodsRelesePage.class); - marketGoodsRelesePage.toAddMarketGoodsPage(); - } - /** - * 市场商品建档 - */ - @Test(description="市场商品建档") - public void addMarketGoods() { - this.driver = getDriver(); - AddMarketGoodsPage addMarketGoodsPage = PageFactory.initElements(driver, AddMarketGoodsPage.class); - addMarketGoodsPage.addMarketGoods(); - - //断言是否建档成功,如果model中的skuNo不为null则成功 - SoftAssert softAssert = new SoftAssert(); - boolean actual = !(Model.getSkuNo().isEmpty()); - softAssert.assertEquals(actual, true, "市场商品建档失败"); - softAssert.assertAll(); - - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.getHome(); - homePage.logout(); - } - /** - * 对市场商品进行审核 - */ - @Test(description="市场商品审核") - public void auditMarketGoods() { - loginValid("xingchangyong"); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toAuditMarketGoodsPage(); - AuditMarketGoodsPage auditMarketGoodsPage = PageFactory.initElements(driver, AuditMarketGoodsPage.class); - auditMarketGoodsPage.auditMarketGoods(); - AuditMarketOpreatePage auditMarketOpreatePage = PageFactory.initElements(driver, AuditMarketOpreatePage.class); - auditMarketOpreatePage.auditPass(); - //断言是否审核成功 - boolean actual = auditMarketGoodsPage.isSucceed(); - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(actual, false, "市场商品审核失败!"); - softAssert.assertAll(); - } - - @AfterClass - public void tearDown() { - driver.quit(); - } -} diff --git a/src/test/java/com/essa/testSuite/TestAddOriginalGoods.java b/src/test/java/com/essa/testSuite/TestAddOriginalGoods.java deleted file mode 100644 index c542c75..0000000 --- a/src/test/java/com/essa/testSuite/TestAddOriginalGoods.java +++ /dev/null @@ -1,117 +0,0 @@ -package com.essa.testSuite; - -import java.io.IOException; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.pageObject.BaseTest; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.GoodsManage.AddOriginalGoodsPage; -import com.essa.pageObject.GoodsManage.AuditOriginalGoodsPage; -import com.essa.pageObject.GoodsManage.AuditOriginalOpreatePage; -import com.essa.pageObject.GoodsManage.GoodsBankPage; -import com.essa.pageObject.GoodsManage.GoodsRelesePage; -import com.essa.pageObject.GoodsManage.UpdatePicPage; - -/** - * @author Administrator - *测试用例:天机原厂商品 - */ -public class TestAddOriginalGoods extends BaseTest { - - WebDriver driver; - - @BeforeClass - public void setUp() throws IOException { - initsetUp(); - loginValid("linxun"); - } - - /** - * 商品建档 - * - * @throws InterruptedException - */ - @Test(description="原厂商品建档") - public void toAddOriginalGoodsPage() throws InterruptedException { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.tOriginalGoodsPage(); - AddOriginalGoodsPage addOriginalGoodsPage = PageFactory.initElements(driver, AddOriginalGoodsPage.class); - addOriginalGoodsPage.addOriginalGoods(); - - } - - /** - * 更新商品图片 - * - * @throws Exception - * @throws InterruptedException - */ - @Test(description="更新图片") - public void updatePic() throws Exception { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.tGoodsRelesePage(); - GoodsRelesePage goodsRelesePage = PageFactory.initElements(driver, GoodsRelesePage.class); - - //断言上一步商品建档是否成功 - boolean actual = goodsRelesePage.isAddOrignalSucceed(); - SoftAssert assertion = new SoftAssert(); - assertion.assertEquals(actual, true, "商品建档失败!"); - assertion.assertAll(); - - goodsRelesePage.toUpDatePic(); - UpdatePicPage updatePicPage = PageFactory.initElements(driver, UpdatePicPage.class); - // 传入要上传的图片的本机地址 -// updatePicPage.upDatePic("C:\\Users\\Administrator\\Pictures\\Camera Roll\\4.jpg"); - updatePicPage.upDatePic(); - } - - /** - * 审核原厂商品 - */ - @Test(description="原厂商品审核") - public void auditOriginal() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toAuditOriginalGoodsPage(); - AuditOriginalGoodsPage auditOriginalGoodsPage = PageFactory.initElements(driver, AuditOriginalGoodsPage.class); - // 断言上一步更新图片是否成功 - boolean actual1 = auditOriginalGoodsPage.isSucceed(); - SoftAssert assertion = new SoftAssert(); - assertion.assertEquals(actual1, true, "更新图片失败!"); - - auditOriginalGoodsPage.toAuditOriginalSku(); - AuditOriginalOpreatePage auditOriginalOpreatePage = PageFactory.initElements(driver, - AuditOriginalOpreatePage.class); - auditOriginalOpreatePage.auditPass(); - - // 断言是否审核成功,如果发布审核页面没有找到刚刚的商品,说明审核成功了 - boolean actual = auditOriginalGoodsPage.isSucceed(); - assertion.assertEquals(actual, false, "审核原厂商品时失败!"); - assertion.assertAll(); - } - - /** - * 获取新增的商品编号 - */ - @Test(description="去商品库获取添加的sku编号") - public void getSkuNo() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toGoodsBankPage(); - GoodsBankPage goodsBankPage = PageFactory.initElements(driver, GoodsBankPage.class); - goodsBankPage.getNo(); - } - - @AfterClass - public void tearDown() { - driver.quit(); - } -} diff --git a/src/test/java/com/essa/testSuite/TestDevelopmentAbility.java b/src/test/java/com/essa/testSuite/TestDevelopmentAbility.java deleted file mode 100644 index b4cf4f6..0000000 --- a/src/test/java/com/essa/testSuite/TestDevelopmentAbility.java +++ /dev/null @@ -1,124 +0,0 @@ -package com.essa.testSuite; - -import static org.testng.Assert.assertEquals; - -import java.io.IOException; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.DataProvider; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.pageObject.HomePage; -import com.essa.pageObject.SupplierOperationsTrackPage; -import com.essa.pageObject.SupplierStrengthPage; -import com.essa.pageObject.BaseTest; - -public class TestDevelopmentAbility extends BaseTest { - - WebDriver driver; - - // 登录 - @BeforeClass - public void setUp() throws IOException { - - initsetUp(); - - loginValid("admin"); - - } - - // 切换到“供应商管理”菜单 - @Test - public void toSupplierOperationsTrack() { - - /* - * 由于我们只能对一个driver进行操作,要先将driver获取 我们要操作的页面为HomePage,所以要初始化一个HomePage对象 - * 调用进入平台运营管理,断言 - */ - this.driver = getDriver(); - - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - - homePage.goToSupplierOperationsTrack(); - - assertEquals(homePage.isSearchSuppliers(), true, "切换到“供应商管理”菜单失败!"); - - } - - @Test(dataProvider = "suppliers", dependsOnMethods = { "toSupplierOperationsTrack" }) - public void editDevelopmentAbility(String supplier) throws Exception { - - SupplierOperationsTrackPage sotp = - PageFactory.initElements(driver, SupplierOperationsTrackPage.class); - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(sotp.isSucceed(), true, "进入平台运营跟进管理失败!"); - - sotp.goToSupplierStrengthPage(supplier); - SupplierStrengthPage strengthPage = - PageFactory.initElements(driver, SupplierStrengthPage.class); - softAssert.assertEquals(strengthPage.isSucceed(), true, "进入实力评估页面失败!"); - - /* - * 配合度选择“高”,主打产品:中高 - * 是否研发能力选择“是”,勾选:每个季度有新品推出,有配备工程师,产品研发团队,其他 - * 添加证书,服务过大客户 - * 点击提交 - */ - - strengthPage.selectCooperateDegree("高"); - Thread.sleep(500); - - strengthPage.selMainProduct("中高"); - Thread.sleep(500); - - strengthPage.isDevAblity("是"); - strengthPage.newProduct(); - strengthPage.haveEngineer(); - strengthPage.haveTeam(); - strengthPage.other(); - - strengthPage.addCertification(); - strengthPage.addSerLargeCus(); - - strengthPage.submit(); - Thread.sleep(1000); - - softAssert.assertEquals(strengthPage.isSubmit(), true, "提交失败!"); - - softAssert.assertAll(); - - strengthPage.alertClosed(); - - } - - - // 读取excel表格 表格位置在data文件夹下 表格名称为“供应商”,读取的sheet名称为“供应商” - @DataProvider(name = "suppliers") - public Object[][] suppliersData() { - - try { - - return com.essa.framework.BasePage.readExcel(".\\src\\main\\resources", "data.xlsx", "供应商"); - - } catch (Exception e) { - - e.printStackTrace(); - - return null; - - } - } - - // 测试完要清理,不占用资源 - - @AfterClass - public void tearDown() { - - driver.quit(); - - } -} diff --git a/src/test/java/com/essa/testSuite/TestGenrateCode.java b/src/test/java/com/essa/testSuite/TestGenrateCode.java deleted file mode 100644 index 4c333d1..0000000 --- a/src/test/java/com/essa/testSuite/TestGenrateCode.java +++ /dev/null @@ -1,45 +0,0 @@ -package com.essa.testSuite; - -import java.io.IOException; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; - -import com.essa.pageObject.BaseTest; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.buyerManage.InvateCodePage; - -/** - * @author Administrator - *测试用例:生成邀请码 - */ -public class TestGenrateCode extends BaseTest { - -WebDriver driver; - - @BeforeClass - public void setUp() throws IOException { - initsetUp(); - loginValid("admin"); - } - - @AfterClass - public void tearDown() { - driver.quit(); - } - - /** - * 生成邀请码 - */ - @Test(description="生成采购商注册邀请码") - public void genrateCode() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toInvateCodePage(); - InvateCodePage invateCodePage = PageFactory.initElements(driver, InvateCodePage.class); - invateCodePage.generateCode(); - } -} diff --git a/src/test/java/com/essa/testSuite/TestGroupPurchase.java b/src/test/java/com/essa/testSuite/TestGroupPurchase.java deleted file mode 100644 index 22c7ccf..0000000 --- a/src/test/java/com/essa/testSuite/TestGroupPurchase.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.essa.testSuite; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.pageObject.BaseTest; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.buyPlaneManage.SkuCategoryManagerCongfigPage; -import com.essa.pageObject.marketingManage.GroupControlPage; -import com.essa.pageObject.marketingManage.GroupSettingPage; - -/** - * @author Administrator - *测试用例:发布团购 - */ -public class TestGroupPurchase extends BaseTest { - - WebDriver driver; - - @BeforeClass - public void setUp() { - initsetUp(); - loginValid("linrong"); - } - - /** - * 配置商品类目经理 - */ - @Test(description="配置商品类目经理") - public void SkuCategoryManagerCongfig() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toSkuCategoryManagerCongfig(); - SkuCategoryManagerCongfigPage skuCategoryManagerCongfigPage = PageFactory.initElements(driver, - SkuCategoryManagerCongfigPage.class); - skuCategoryManagerCongfigPage.distributeManager(); - } - - /** - * 发布团购商品 - */ - @Test(description="发布团购") - public void publishGroupPurchase() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toGroupSettingPage(); - GroupSettingPage groupSettingPage = PageFactory.initElements(driver, GroupSettingPage.class); - groupSettingPage.publishGroup(); - } - - /** - * 进入团购控制,查找是否有发布成功,并进行断言 - */ - @Test(description="检查团购是否发布成功") - public void isPublish() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toGroupControlPage(); - GroupControlPage groupControlPage = PageFactory.initElements(driver, GroupControlPage.class); - boolean actual = groupControlPage.isSuccess(); - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(actual, true, "发布团购失败了!"); - softAssert.assertAll(); - } - - @AfterClass - public void tearDown() { - driver.quit(); - } - -} diff --git a/src/test/java/com/essa/testSuite/TestLogin.java b/src/test/java/com/essa/testSuite/TestLogin.java deleted file mode 100644 index 1ed4d57..0000000 --- a/src/test/java/com/essa/testSuite/TestLogin.java +++ /dev/null @@ -1,104 +0,0 @@ -package com.essa.testSuite; - -import java.io.IOException; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.DataProvider; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.framework.BrowserEngine; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.LoginPage; - -/** - * @author Administrator - *测试用例:登录测试 - */ -public class TestLogin { - WebDriver driver; - - /* - * 调用浏览器,打开网页 - * 执行任何测试之前都应执行这个步骤 - * 后面我会把这个方法封装在pageObject.function里面 - */ - - @BeforeClass - public void setUp() throws IOException { - - BrowserEngine browserEngine = new BrowserEngine(); - - browserEngine.initConfigData(); - - driver = browserEngine.getBrowser(); - - } - - /* - * 初始化(实例化)一个登录页面 - * 做登录操作 - * 登录完后会跳转到后台首页 - * 故要初始化一个后台首页用于断言是否登录成功 - * 这里登录成功的标识是有“退出”按钮 - */ - - @Test(dataProvider="users") - public void login(String account,String password) { - - LoginPage loginPage = PageFactory.initElements(driver, LoginPage.class); - - loginPage.login(account, password); - - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - - /* - * 软断言,即就算此用例失败,依然会继续执行 - * 断言后,做退出登录操作 - */ - - SoftAssert softAssert = new SoftAssert(); - - softAssert.assertEquals(homePage.isSucceed(), true, "登录失败!"); - - softAssert.assertAll(); - - homePage.logout(); - - } - - /* - * 提供数据对象 - * 此方法读取当前项目根目录下的data\\data.xlsx文件中的“users”工作表 - */ - - @DataProvider(name="users") - public Object[][] suppliersData() { - - try { - - return com.essa.framework.BasePage.readExcel(".\\src\\main\\resources", "data.xlsx", "users"); - - } catch (Exception e) { - - e.printStackTrace(); - - return null; - - } - } - - /* - * 最后要做清理工作,避免占用资源 - */ - - @AfterClass - public void tearDown() { - - driver.quit(); - - } -} diff --git a/src/test/java/com/essa/testSuite/TestProductInquiry.java b/src/test/java/com/essa/testSuite/TestProductInquiry.java deleted file mode 100644 index 834ceb9..0000000 --- a/src/test/java/com/essa/testSuite/TestProductInquiry.java +++ /dev/null @@ -1,51 +0,0 @@ -package com.essa.testSuite; - -import org.openqa.selenium.WebDriver; -import org.openqa.selenium.support.PageFactory; -import org.testng.annotations.AfterClass; -import org.testng.annotations.BeforeClass; -import org.testng.annotations.Test; -import org.testng.asserts.SoftAssert; - -import com.essa.pageObject.BaseTest; -import com.essa.pageObject.HomePage; -import com.essa.pageObject.inquiryManage.ProductInquiryFeedbackPage; -import com.essa.pageObject.inquiryManage.ProductInquiryTaskPage; - -/** - * @author Administrator 测试用例:成品询价 - */ -public class TestProductInquiry extends BaseTest { - - WebDriver driver; - - @BeforeClass - public void setUp() { - initsetUp(); - loginValid("chenhong"); - } - - @AfterClass - public void tearDown() { - driver.quit(); - } - - /** - * 成品询价 - */ - @Test(description = "成品询价流程") - public void productInquiry() { - this.driver = getDriver(); - HomePage homePage = PageFactory.initElements(driver, HomePage.class); - homePage.toProductInquiryTask(); - ProductInquiryTaskPage productInquiryTask = PageFactory.initElements(driver, ProductInquiryTaskPage.class); - productInquiryTask.toFeedback(); - ProductInquiryFeedbackPage productInquiryFeedback = PageFactory.initElements(driver, - ProductInquiryFeedbackPage.class); - productInquiryFeedback.submit(); - // 断言 - SoftAssert softAssert = new SoftAssert(); - softAssert.assertEquals(productInquiryTask.isSucceed(), true, "成品询价失败!"); - softAssert.assertAll(); - } -} diff --git a/src/test/java/swing/SwingMain.java b/src/test/java/swing/SwingMain.java deleted file mode 100644 index 0e89ffc..0000000 --- a/src/test/java/swing/SwingMain.java +++ /dev/null @@ -1,701 +0,0 @@ -package swing; - -import java.awt.EventQueue; - -import javax.swing.JFrame; -import javax.swing.ButtonGroup; -import javax.swing.JButton; -import java.awt.event.ActionListener; -import java.io.BufferedReader; -import java.io.File; -import java.io.FileInputStream; -import java.io.FileNotFoundException; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.RandomAccessFile; -import java.io.StringReader; -import java.text.SimpleDateFormat; -import java.util.ArrayList; -import java.util.Date; -import java.util.List; -import java.util.Properties; -import java.util.concurrent.Executors; -import java.util.concurrent.ScheduledExecutorService; -import java.util.concurrent.TimeUnit; -import java.awt.event.ActionEvent; -import javax.swing.JTextField; - -import org.apache.xmlbeans.impl.xb.xsdschema.Public; -import org.jdom.Document; -import org.jdom.Element; -import org.jdom.JDOMException; -import org.jdom.input.SAXBuilder; -import org.jdom.output.XMLOutputter; -import org.testng.TestNG; - -import com.essa.framework.BrowserEngine; -import com.essa.framework.Logger; -import com.essa.framework.Model; -import com.essa.pageObject.GoodsManage.AddOriginalGoodsPage; -import com.essa.pageObject.GoodsManage.GoodsBankPage; -import com.essa.pageObject.GoodsManage.UpdatePicPage; - -import javax.swing.JLabel; -import javax.swing.JRadioButton; -import javax.swing.JComboBox; -import javax.swing.JFileChooser; -import javax.swing.JScrollPane; -import javax.swing.JTextArea; - -import java.awt.Color; -import javax.swing.DefaultComboBoxModel; -import javax.swing.ImageIcon; -import java.awt.Toolkit; -import java.awt.BorderLayout; -import java.awt.Choice; -import java.awt.Font; -import java.awt.Graphics; - -import javax.swing.JList; -import javax.swing.JMenuBar; -import javax.swing.JTextPane; -import java.awt.event.InputMethodListener; -import java.awt.event.InputMethodEvent; -import java.beans.VetoableChangeListener; -import java.beans.PropertyChangeEvent; -import javax.swing.JPanel; -import java.beans.PropertyChangeListener; -import java.awt.event.MouseAdapter; -import java.awt.event.MouseEvent; -import javax.swing.UIManager; -import java.awt.TextField; -import java.awt.Panel; -import javax.swing.JScrollBar; -import javax.swing.ScrollPaneConstants; -import javax.swing.SwingWorker; -import javax.swing.border.LineBorder; - -/** - * @author Administrator 图形化 - */ -public class SwingMain { - - private JFrame frmvBy; - private JTextField supplierName; - private JTextField buyerNo2; - public static String no; - private JTextField account; - private JTextArea SkuNo; - private JTextField password; - private JTextField registerAccount; - private JTextArea ja; - private JTextField po; - - private String buyerAccount;//采购商账号,存储于配置文件中,记录上一次使用的账号 - private String supplier;//供应商 - private String buyerNo;//采购商编号 - - /** - * Launch the application. - */ - public static void main(String[] args) { - EventQueue.invokeLater(new Runnable() { - public void run() { - try { - SwingMain window = new SwingMain(); - window.frmvBy.setVisible(true); - } catch (Exception e) { - e.printStackTrace(); - } - } - }); - } - - /** - * Create the application. - */ - public SwingMain() { - - initData(); - initialize(); - } - - /** - * 读取data.xml文件保存的用户使用的数据,用于读取该用户上一次输入的数据 - * @throws JDOMException - * @throws IOException - */ - public void initData() { - try { - SAXBuilder builder = new SAXBuilder(); - Document document = builder.build(new File(".\\resources\\data.xml")); - Element root = document.getRootElement(); - Element element = root.getChild("data"); - this.buyerAccount = element.getChildText("buyerAccount"); - this.supplier = element.getChildText("supplier"); - this.buyerNo = element.getChildText("buyerNo"); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * 将用户输入过的数据保存在data.xml文件中 - * @param key 字段名 - * @param value 参数值 - * @throws JDOMException - * @throws IOException - */ - public void setData(String key,String value) { - try { - SAXBuilder builder = new SAXBuilder(); - Document document = builder.build(new File(".\\resources\\data.xml")); - Element root = document.getRootElement(); - Element element = root.getChild("data"); - element.getChild(key).setText(value); - XMLOutputter XMLOut = new XMLOutputter(); - XMLOut.output(document,new FileOutputStream(".\\resources\\data.xml")); - } catch (Exception e) { - e.printStackTrace(); - } - } - - /** - * 获取当前时间 - * @return - */ - public String getCurrentTime() { - SimpleDateFormat format = new SimpleDateFormat("[yyyy-MM-dd HH:mm:ss] "); - Date today = new Date(); - String time = format.format(today); - return time; - } - - /** - * frame初始化. - */ - private void initialize() { - frmvBy = new JFrame("ESSA自动化测试工具v1.0.0"); - frmvBy.getContentPane().setBackground(UIManager.getColor("Button.background")); - frmvBy.setTitle("ESSA自动化测试工具v1.0.1"); - frmvBy.setIconImage(Toolkit.getDefaultToolkit().getImage(SwingMain.class.getResource("/swing/icon.png"))); - frmvBy.getContentPane().setEnabled(false); - frmvBy.setResizable(false); - frmvBy.setBackground(UIManager.getColor("Button.background")); - frmvBy.setForeground(Color.LIGHT_GRAY); - frmvBy.setBounds(650, 350, 526, 467); - frmvBy.setSize(686, 405); - frmvBy.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - frmvBy.getContentPane().setLayout(null); - - //日志 - JScrollPane jsp; - ja = new JTextArea(); - jsp = new JScrollPane(ja); - jsp.setBounds(22, 186, 631, 134); - frmvBy.getContentPane().add(jsp); - - ja.setEditable(false); - ja.setWrapStyleWord(true); - ja.setLineWrap(true); - ja.setFont(new Font("微软雅黑", Font.PLAIN, 13)); - ja.append(getCurrentTime() + "默认选择场景:新增原厂商品\r\n"); - - //操作环境选择 - JLabel label = new JLabel("操作环境:"); - label.setBounds(24, 53, 78, 15); - label.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - frmvBy.getContentPane().add(label); - - //加入到购物车场景 - final JPanel ToCart = new JPanel(); - ToCart.setBounds(231, 42, 230, 128); - ToCart.setVisible(false); - frmvBy.getContentPane().add(ToCart); - ToCart.setLayout(null); - - //可视化操作选项 - JLabel label_1 = new JLabel("可视化操作:"); - label_1.setBounds(10, 119, 88, 15); - label_1.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - frmvBy.getContentPane().add(label_1); - - //可视化 - JRadioButton view = new JRadioButton("是"); - view.setBounds(103, 115, 42, 23); - view.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - view.setSelected(true); - frmvBy.getContentPane().add(view); - - //无头浏览器 - JRadioButton notView = new JRadioButton("否"); - notView.setBounds(160, 115, 44, 23); - notView.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - notView.setEnabled(false); - frmvBy.getContentPane().add(notView); - - ButtonGroup group = new ButtonGroup(); - group.add(view); - group.add(notView); - - //po询价场景 - final JPanel POInquiry = new JPanel(); - POInquiry.setBounds(231, 42, 234, 134); - frmvBy.getContentPane().add(POInquiry); - POInquiry.setVisible(false); - POInquiry.setLayout(null); - - // po单号字段 - JLabel POnum = new JLabel("PO单号:"); - POnum.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - POnum.setBounds(25, 5, 68, 25); - POInquiry.add(POnum); - - // po单号文本值 - po = new JTextField(); - po.setBounds(90, 6, 110, 25); - POInquiry.add(po); - po.setColumns(10); - - //必填文本 - JLabel lblNewLabel = new JLabel("*必填"); - lblNewLabel.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - lblNewLabel.setForeground(Color.RED); - lblNewLabel.setBounds(200, 10, 44, 15); - POInquiry.add(lblNewLabel); - - //右侧流程介绍文本 - final JLabel process = new JLabel(); - process.setBounds(474, 25, 179, 170); - process.setForeground(Color.GRAY); - process.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - process.setText( - "新增原厂商品场景流程:
1.商品建档
2.更新商品图片
3.审核商品
4.检查商品库,验证是否新增成功
PS:以上均由账号(linxun)操作

"); - frmvBy.getContentPane().add(process); - - //操作场景 - JLabel label_2 = new JLabel("操作场景:"); - label_2.setBounds(24, 87, 78, 15); - label_2.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - frmvBy.getContentPane().add(label_2); - - //新增原厂商品场景 - final JPanel addOriginal = new JPanel(); - addOriginal.setBounds(231, 37, 234, 134); - addOriginal.setVisible(true); - frmvBy.getContentPane().add(addOriginal); - addOriginal.setLayout(null); - - //场景选择,插入对应的值,并打印在日志上 - final JComboBox selectSystem = new JComboBox(); - selectSystem.setBounds(102, 51, 114, 20); - selectSystem.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - if ("SIT".equals((String) selectSystem.getSelectedItem())) { - Model.setEnv("SIT"); - ja.append(getCurrentTime() + "已选择环境:SIT\r\n"); - } else if ("DIT".equals((String) selectSystem.getSelectedItem())) { - Model.setEnv("DIT"); - ja.append(getCurrentTime() + "已选择环境:DIT\r\n"); - } else if ("HOTFIX".equals((String) selectSystem.getSelectedItem())) { - Model.setEnv("HOTFIX"); - ja.append(getCurrentTime() + "已选择环境:HOTFIX\r\n"); - } else if ("UAT".equals((String) selectSystem.getSelectedItem())) { - Model.setEnv("UAT"); - ja.append(getCurrentTime() + "已选择环境:UAT\r\n"); - } - } - }); - selectSystem.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - selectSystem.addItem("SIT"); - selectSystem.addItem("HOTFIX"); - selectSystem.addItem("UAT"); - selectSystem.addItem("DIT"); - frmvBy.getContentPane().add(selectSystem); - - //添加市场商品 - final JPanel addMarket = new JPanel(); - addMarket.setBounds(0, 67, 230, 46); - addOriginal.add(addMarket); - addMarket.setVisible(false); - addMarket.setLayout(null); - - //采购商注册 - final JPanel register = new JPanel(); - register.setBounds(231, 42, 224, 134); - frmvBy.getContentPane().add(register); - - //浏览器选择 - final JComboBox browser = new JComboBox(); - browser.setEnabled(false); - browser.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - browser.setBounds(102, 147, 114, 20); - browser.setModel(new DefaultComboBoxModel(new String[] { "Chrome", "Firefox", "IE" })); - frmvBy.getContentPane().add(browser); - - //场景选择,根据随选场景做对应的交互 - final JComboBox selectScene = new JComboBox(); - selectScene.setBounds(102, 85, 114, 20); - selectScene.setForeground(Color.BLACK); - selectScene.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - selectScene.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - //此处为默认将所有的场景视图先隐藏,后续根据所选场景显示对应的视图 - addOriginal.setVisible(false); - addMarket.setVisible(false); - ToCart.setVisible(false); - POInquiry.setVisible(false); - register.setVisible(false); - if ("新增原厂商品".equals((String) selectScene.getSelectedItem())) { - process.setText( - "新增原厂商品场景流程:
1.商品建档
2.更新商品图片
3.审核商品
4.检查商品库,验证是否新增成功
PS:以上均由账号(linxun)操作

"); - addOriginal.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:新增原厂商品\r\n"); - } else if ("新增市场商品".equals((String) selectScene.getSelectedItem())) { - process.setText("新增市场商品场景流程:
" + "1.指定采购商编号(默认:RUS00833)
" - + "2.使用账号(maomeixiang)对指定采购商进行市场商品建档并选择审核人为\"邢昌勇\"
" - + "3.使用账号(xingchangyong)对市场商品审核
"); - addOriginal.setVisible(true); - addMarket.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:新增市场商品\r\n"); - } else if ("发布团购".equals((String) selectScene.getSelectedItem())) { - ja.append(getCurrentTime() + "已选择场景:发布团购,运行过程中将会打开关闭浏览器2次!\r\n"); - process.setText( - "发布团购场景流程:
1.先执行新增原厂商品流程,生成一个原厂SKU
2.使用账号(linrong)为新增的SKU分配类目经理
3.团购设置中添加该SKU,并发布团购,验证团购发布结果"); - addOriginal.setVisible(true); - } else if ("采购商注册".equals((String) selectScene.getSelectedItem())) { - register.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:采购商注册,运行过程中将会打开关闭浏览器2次!\r\n"); - process.setText( - "采购商注册流程:
1.使用账号(admin)在bpms后台生成一个邀请码
2.采购商平台填写注册信息,并填入上一步生成的邀请码
PS:新账号密码默认为:essa123


"); - } else if ("添加SKU至购物车".equals((String) selectScene.getSelectedItem())) { - ToCart.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:添加SKU至购物车\r\n"); - process.setText( - "添加SKU至购物车流程:
1.Buyer平台根据填入的采购
商信息进行登录操作
2.若未填写商品编号,将从数
据库随机查出一个符合要求的
sku添加至购物车


"); - } else if ("成品询价".equals((String) selectScene.getSelectedItem())) { - ToCart.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:成品询价,将重启浏览器多次\r\n"); - process.setText( - "成品询价流程:
1.Buyer平台根据填入的采购
商信息加入sku,若未填写sku
编号,将随机从数据库获取符
合要求的sku
2.bpms后台登录账号(chenhong)对该sku进行成
品询价审核
"); - } else if ("生成PO".equals((String) selectScene.getSelectedItem())) { - ToCart.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:生成PO,将重启浏览器多次\r\n"); - process.setText( - "生成PO流程:
1.采购商平台加入商品至购物车
2.bpms后台登录账号(chenhong)对该sku进行成品询价审核
3.再次登录采购商平台,进行拼柜、设置唛头、贴纸和提交PO操作"); - } else if ("PO询价".equals((String) selectScene.getSelectedItem())) { - POInquiry.setVisible(true); - ja.append(getCurrentTime() + "已选择场景:PO询价\r\n"); - process.setText("PO询价使用介绍:
1.填入需要询价的PO单号
2.工具将对该PO单号循环进行询价,直到所有商品均询价完成
3.如果运行过程中出现询价异常等弹框,手工关闭弹窗后脚本仍会继续执行之后的操作"); - } - } - }); - selectScene.setModel( - new DefaultComboBoxModel(new String[] { "新增原厂商品", "新增市场商品", "发布团购", "采购商注册", "成品询价", "生成PO", "PO询价" })); - frmvBy.getContentPane().add(selectScene); - - JLabel label_3 = new JLabel("供应商名称:"); - label_3.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - label_3.setBounds(9, 15, 91, 15); - addOriginal.add(label_3); - - //供应商名称 - supplierName = new JTextField(); - supplierName.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - supplierName.setForeground(Color.BLACK); - supplierName.setBounds(92, 10, 114, 25); - addOriginal.add(supplierName); - supplierName.setText(supplier); - supplierName.setColumns(10); - - //选择图片 - JButton button = new JButton("选择图片"); - button.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - button.setBounds(91, 44, 91, 23); - addOriginal.add(button); - - JLabel lblSku = new JLabel("商品图片:"); - lblSku.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - lblSku.setBounds(22, 48, 70, 15); - addOriginal.add(lblSku); - - final JLabel label_7 = new JLabel("*必填"); - label_7.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - label_7.setBounds(192, 48, 42, 15); - addOriginal.add(label_7); - label_7.setForeground(Color.RED); - - //图片地址 - final JLabel picPath = new JLabel(""); - picPath.setVisible(false); - addOriginal.add(picPath); - - JLabel label_5 = new JLabel("采购商编号:"); - label_5.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - label_5.setBounds(8, 15, 86, 15); - addMarket.add(label_5); - - //采购商编号 - buyerNo2 = new JTextField(); - buyerNo2.setBounds(93, 11, 114, 25); - addMarket.add(buyerNo2); - buyerNo2.setFont(new Font("宋体", Font.PLAIN, 14)); - buyerNo2.setText(buyerNo); - buyerNo2.setColumns(10); - - //选择图片按钮 - button.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - JFileChooser jf = new JFileChooser(); - jf.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); - jf.showDialog(new JLabel(), "选择图片"); - File file = jf.getSelectedFile(); - String s = null; - try { - s = file.getAbsolutePath(); - } catch (NullPointerException exception) { - } - if (s == "" || s == null) { - ja.append(getCurrentTime() + "您未选择图片,请选择图片\r\n"); - } else { - ja.append(getCurrentTime() + "选择的图片为:" + s + "\r\n"); - picPath.setText(s); - label_7.setText("已选"); - } - } - }); - - JLabel label_4 = new JLabel("浏览器:"); - label_4.setBounds(38, 149, 62, 15); - label_4.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - frmvBy.getContentPane().add(label_4); - - //开始按钮 - JButton btnNewButton = new JButton("开 始"); - btnNewButton.setBounds(551, 325, 101, 35); - frmvBy.getContentPane().add(btnNewButton); - btnNewButton.setFont(new Font("微软雅黑", Font.PLAIN, 17)); - - JLabel lblEssav = new JLabel("ESSA自动化测试工具 V1.0.1"); - lblEssav.setBounds(225, 10, 228, 29); - lblEssav.setFont(new Font("微软雅黑", Font.BOLD, 16)); - frmvBy.getContentPane().add(lblEssav); - - JLabel lblwindowsjdkbug = new JLabel( - "提示:1.建议使用版本号为68.0的Chrome浏览器
         2.由于部分操作会用到鼠标事件,若运行时手动切换界面可能会导致运行出错"); - lblwindowsjdkbug.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - lblwindowsjdkbug.setBounds(25, 323, 456, 40); - frmvBy.getContentPane().add(lblwindowsjdkbug); - - JLabel Account = new JLabel("采购商账号:"); - Account.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - Account.setBounds(9, 10, 88, 15); - ToCart.add(Account); - - JLabel Password = new JLabel("密码:"); - Password.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - Password.setBounds(50, 41, 65, 15); - ToCart.add(Password); - - JLabel No = new JLabel("商品编号:"); - No.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - No.setBounds(22, 100, 88, 15); - ToCart.add(No); - - account = new JTextField(); - account.setText(buyerAccount); - account.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - account.setBounds(92, 4, 130, 25); - ToCart.add(account); - account.setColumns(10); - - password = new JTextField(); - password.setText("essa123"); - password.setToolTipText(""); - password.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - password.setBounds(92, 37, 130, 25); - ToCart.add(password); - password.setColumns(10); - - //sku编号 - SkuNo = new JTextArea(); - SkuNo.setText("选填,勿填活动商品"); - SkuNo.setForeground(Color.LIGHT_GRAY); - SkuNo.setFont(new Font("微软雅黑", Font.PLAIN, 12)); - SkuNo.setLineWrap(true); - SkuNo.addMouseListener(new MouseAdapter() { - @Override - public void mouseClicked(MouseEvent e) { - if (SkuNo.getText().equals("选填,勿填活动商品") || SkuNo.getText().equals("选填,勿填非活动商品") ) { - SkuNo.setForeground(Color.black); - SkuNo.setText(""); - } - } - }); - SkuNo.setBounds(92, 100, 130, 25); - SkuNo.setBorder(new LineBorder(new java.awt.Color(127,157,185), 1, false)); - ToCart.add(SkuNo); - SkuNo.setColumns(10); - - //商品类型 - JLabel kind = new JLabel("商品类型:"); - kind.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - kind.setBounds(22, 75, 70, 15); - ToCart.add(kind); - - //非活动商品 - JRadioButton notActivity = new JRadioButton("非活动"); - notActivity.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent arg0) { - Model.setIsactivity(0); - SkuNo.setText("选填,勿填活动商品"); - } - }); - notActivity.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - notActivity.setBounds(92, 71, 70, 23); - ToCart.add(notActivity); - - //活动商品 - JRadioButton isActivity = new JRadioButton("活动"); - isActivity.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - Model.setIsactivity(1); - SkuNo.setText("选填,勿填非活动商品"); - } - }); - isActivity.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - isActivity.setBounds(165, 71, 64, 23); - ToCart.add(isActivity); - - //活动和非活动单选 - ButtonGroup group1 = new ButtonGroup(); - group1.add(notActivity); - group1.add(isActivity); - notActivity.setSelected(true); - - JLabel RegisterAccount = new JLabel("采购商邮箱:"); - register.add(RegisterAccount); - RegisterAccount.setFont(new Font("微软雅黑", Font.PLAIN, 14)); - - registerAccount = new JTextField(); - registerAccount.setForeground(Color.LIGHT_GRAY); - registerAccount.setText("若不填写将自动生成"); - registerAccount.addMouseListener(new MouseAdapter() { - @Override - public void mouseClicked(MouseEvent e) { - if (registerAccount.getText().equals("若不填写将自动生成")) { - registerAccount.setForeground(Color.black); - registerAccount.setText(""); - } - } - }); - register.add(registerAccount); - registerAccount.setFont(new Font("微软雅黑", Font.PLAIN, 13)); - registerAccount.setColumns(10); - - btnNewButton.addActionListener(new ActionListener() { - public void actionPerformed(ActionEvent e) { - SwingWorker worker = new SwingWorker() {// 加入线程 - - @Override - protected Void doInBackground() throws Exception { - String Environment = (String) selectSystem.getSelectedItem(); - String Scene = (String) selectScene.getSelectedItem(); - String Browser = (String) browser.getSelectedItem(); - //记录用户输入的数据,下次读取 - setData("supplier", supplierName.getText()); - setData("buyerNo", buyerNo2.getText()); - setData("buyerAccount", account.getText()); - ja.append(getCurrentTime() + "程序正在启动中……切勿双击【开始】\r\n"); - BrowserEngine.setInit(Environment, Browser); - TestNG testNG = new TestNG(); - List suites = new ArrayList(); - if (Scene == "新增原厂商品") { - AddOriginalGoodsPage.setSupplierName(supplierName.getText()); - UpdatePicPage.setPicPath(picPath.getText()); - suites.add(".\\resources\\suites\\addOriginalGoods.xml");// 图形界面 - } else if (Scene == "新增市场商品") { - Model.setBuyerNo(buyerNo2.getText()); - Model.setPicPath(picPath.getText()); - Model.setSupplierName(supplierName.getText()); - suites.add(".\\resources\\suites\\addMarketGoods.xml");// 图形界面 - } else if (Scene == "发布团购") { - AddOriginalGoodsPage.setSupplierName(supplierName.getText()); - UpdatePicPage.setPicPath(picPath.getText()); - suites.add(".\\resources\\suites\\publishGroupPurchase.xml");// 图形界面 - } else if (Scene == "采购商注册") { - if (!(registerAccount.getText().equals("") - || registerAccount.getText().equals("若不填写将自动生成"))) { - Model.setEmail(registerAccount.getText()); - } - suites.add(".\\resources\\suites\\buyerRegister.xml");// 图形界面 - } else if (Scene == "添加SKU至购物车") {// 暂时舍弃 - Model.setBuyerAccount(account.getText()); - Model.setBuyerPassword(password.getText()); - Model.setSkuNo(SkuNo.getText()); - suites.add(".\\resources\\suites\\addSkuToCart.xml"); - } else if (Scene == "成品询价") { - Model.setBuyerAccount(account.getText()); - Model.setBuyerPassword(password.getText()); - Model.setSkuNo(SkuNo.getText()); - if (Model.getIsactivity() == 1) { - suites.add(".\\resources\\suites\\activityInquiry.xml"); - }else { - suites.add(".\\resources\\suites\\productInquiry.xml"); - } - } else if (Scene == "生成PO") { - Model.setBuyerAccount(account.getText()); - Model.setBuyerPassword(password.getText()); - Model.setSkuNo(SkuNo.getText()); - if (Model.getIsactivity() == 1) { - suites.add(".\\resources\\suites\\activitySendPO.xml"); - }else { - suites.add(".\\resources\\suites\\sendPO.xml"); - } - } else if (Scene == "PO询价") { - Model.setPoNum(po.getText()); - suites.add(".\\resources\\suites\\POInquiry.xml"); - } - testNG.setTestSuites(suites); - testNG.run(); - ja.append(getCurrentTime() + "=======" + Scene + "场景,执行完毕!=======\r\n"); - if (Scene == "新增原厂商品" || Scene == "新增市场商品" || Scene == "发布团购") { - no = Model.getSkuNo(); - if (no != null) { - ja.append(getCurrentTime() + "SKU商品编号:" + no + "\r\n"); - } else { - ja.append(getCurrentTime() - + "程序执行失败了!\r\n你可查看目录中test-output/index.html的测试报告,或者查看Log中的执行日志检查原因\r\n"); - } - } else if (Scene == "采购商注册") { - String code = Model.getInvateCode(); - String email = Model.getEmail(); - if (code != null && email != null) { - ja.append(getCurrentTime() + "生成的邀请码:" + Model.getInvateCode() + "\r\n"); - ja.append(getCurrentTime() + "新采购商邮箱:" + Model.getEmail() + "\r\n"); - } else { - ja.append(getCurrentTime() - + "程序执行失败了!\r\n你可以分析目录中test-output/index.html的测试报告,或者查看目录中Log文件夹生成的执行日志\r\n"); - } - } else if (Scene == "添加SKU至购物车") { - ja.append(getCurrentTime() + "所选采购商账号:" + Model.getBuyerAccount() + "\r\n"); - ja.append(getCurrentTime() + "添加的SKU编号为:" + Model.getSkuNo() + "\r\n"); - } else if (Scene == "成品询价") { - ja.append(getCurrentTime() + "采购商账号:" + Model.getBuyerAccount() + "\r\n"); - ja.append(getCurrentTime() + "SKU编号:" + Model.getSkuNo() + "\r\n"); - } else if (Scene == "生成PO") { - ja.append(getCurrentTime() + "采购商账号:" + Model.getBuyerAccount() + "\r\n"); - ja.append(getCurrentTime() + "PO单号:" + Model.getPoNum() + "\r\n"); - } - return null; - } - }; - worker.execute(); - - } - }); - - } -} diff --git a/src/test/java/swing/icon.png b/src/test/java/swing/icon.png deleted file mode 100644 index 475b23e..0000000 Binary files a/src/test/java/swing/icon.png and /dev/null differ diff --git a/target/.gitignore b/target/.gitignore deleted file mode 100644 index 4569837..0000000 --- a/target/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -/classes/ -/test-classes/ diff --git a/target/classes/META-INF/MANIFEST.MF b/target/classes/META-INF/MANIFEST.MF deleted file mode 100644 index 89d4a95..0000000 --- a/target/classes/META-INF/MANIFEST.MF +++ /dev/null @@ -1,5 +0,0 @@ -Manifest-Version: 1.0 -Built-By: Administrator -Build-Jdk: 1.8.0_181 -Created-By: Maven Integration for Eclipse - diff --git a/target/classes/META-INF/maven/com.essatest/essa/pom.properties b/target/classes/META-INF/maven/com.essatest/essa/pom.properties deleted file mode 100644 index a335c06..0000000 --- a/target/classes/META-INF/maven/com.essatest/essa/pom.properties +++ /dev/null @@ -1,7 +0,0 @@ -#Generated by Maven Integration for Eclipse -#Tue Oct 23 15:18:34 CST 2018 -version=0.0.1-SNAPSHOT -groupId=com.essatest -m2e.projectName=EssaAuto -m2e.projectLocation=D\:\\WorkSpace\\EssaAuto -artifactId=essa diff --git a/target/classes/META-INF/maven/com.essatest/essa/pom.xml b/target/classes/META-INF/maven/com.essatest/essa/pom.xml deleted file mode 100644 index 71a3f3b..0000000 --- a/target/classes/META-INF/maven/com.essatest/essa/pom.xml +++ /dev/null @@ -1,135 +0,0 @@ - - 4.0.0 - - com.essatest - essa - 0.0.1-SNAPSHOT - jar - - essa - http://maven.apache.org - - - UTF-8 - - - - - - org.testng - testng - 6.14.3 - - - - - org.seleniumhq.selenium - selenium-java - 3.11.0 - - - - - org.seleniumhq.selenium - selenium-firefox-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-chrome-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-safari-driver - 3.11.0 - - - - org.seleniumhq.selenium - selenium-ie-driver - 3.11.0 - - - - - org.seleniumhq.selenium - selenium-support - 2.46.0 - - - - javax.mail - mail - 1.4 - - - - org.apache.commons - commons-collections4 - 4.1 - - - - org.apache.poi - poi - 3.14 - - - - org.apache.poi - poi-ooxml - 3.14 - - - - org.apache.poi - poi-ooxml-schemas - 3.14 - - - - org.apache.commons - commons-io - 1.3.2 - - - - mysql - mysql-connector-java - 6.0.6 - - - org.dbunit - dbunit - 2.5.4 - - - jdom - jdom - 1.0 - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 2.7.1 - - - - resources/suites/testng.xml - - - - - - - - diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst deleted file mode 100644 index e69de29..0000000 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst +++ /dev/null diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst deleted file mode 100644 index 6cdc20c..0000000 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ /dev/null @@ -1,15 +0,0 @@ -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\testSuite\SendEmail.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\BasePage.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\HomePage.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\BrowserEngine.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\Logger.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\LoginPage.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\LogType.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\SupplierStrengthPage.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\testSuite\Test_Login.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\ListenerSuite.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\framework\SendEmail.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\BaseTest.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\testSuite\Test_Development_Ability.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\SupplierOperationsTrackPage.java -C:\Users\Administrator\git\selenium_windows\src\test\java\com\essa\pageObject\NewProduct.java diff --git a/target/test-classes/com/essa/framework/BasePage.class b/target/test-classes/com/essa/framework/BasePage.class deleted file mode 100644 index 6f1e83e..0000000 Binary files a/target/test-classes/com/essa/framework/BasePage.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/BrowserEngine.class b/target/test-classes/com/essa/framework/BrowserEngine.class deleted file mode 100644 index f5f2d6a..0000000 Binary files a/target/test-classes/com/essa/framework/BrowserEngine.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/ListenerSuite.class b/target/test-classes/com/essa/framework/ListenerSuite.class deleted file mode 100644 index bdfd882..0000000 Binary files a/target/test-classes/com/essa/framework/ListenerSuite.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/LogType$LogTypeName.class b/target/test-classes/com/essa/framework/LogType$LogTypeName.class deleted file mode 100644 index c7c0196..0000000 Binary files a/target/test-classes/com/essa/framework/LogType$LogTypeName.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/LogType.class b/target/test-classes/com/essa/framework/LogType.class deleted file mode 100644 index ca4692e..0000000 Binary files a/target/test-classes/com/essa/framework/LogType.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/Logger.class b/target/test-classes/com/essa/framework/Logger.class deleted file mode 100644 index 5032ed1..0000000 Binary files a/target/test-classes/com/essa/framework/Logger.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/SendEmail$1.class b/target/test-classes/com/essa/framework/SendEmail$1.class deleted file mode 100644 index e7e05c6..0000000 Binary files a/target/test-classes/com/essa/framework/SendEmail$1.class and /dev/null differ diff --git a/target/test-classes/com/essa/framework/SendEmail.class b/target/test-classes/com/essa/framework/SendEmail.class deleted file mode 100644 index c25afc4..0000000 Binary files a/target/test-classes/com/essa/framework/SendEmail.class and /dev/null differ diff --git a/target/test-classes/com/essa/pageObject/BaseTest.class b/target/test-classes/com/essa/pageObject/BaseTest.class deleted file mode 100644 index d2bef5a..0000000 Binary files a/target/test-classes/com/essa/pageObject/BaseTest.class and /dev/null differ diff --git a/target/test-classes/com/essa/pageObject/HomePage.class b/target/test-classes/com/essa/pageObject/HomePage.class deleted file mode 100644 index 953d9d8..0000000 Binary files a/target/test-classes/com/essa/pageObject/HomePage.class and /dev/null differ diff --git a/target/test-classes/com/essa/pageObject/LoginPage.class b/target/test-classes/com/essa/pageObject/LoginPage.class deleted file mode 100644 index d4b59f4..0000000 Binary files a/target/test-classes/com/essa/pageObject/LoginPage.class and /dev/null differ diff --git a/target/test-classes/com/essa/pageObject/SupplierOperationsTrackPage.class b/target/test-classes/com/essa/pageObject/SupplierOperationsTrackPage.class deleted file mode 100644 index bb4dfb0..0000000 Binary files a/target/test-classes/com/essa/pageObject/SupplierOperationsTrackPage.class and /dev/null differ diff --git a/target/test-classes/com/essa/pageObject/SupplierStrengthPage.class b/target/test-classes/com/essa/pageObject/SupplierStrengthPage.class deleted file mode 100644 index 258d60f..0000000 Binary files a/target/test-classes/com/essa/pageObject/SupplierStrengthPage.class and /dev/null differ diff --git a/target/test-classes/com/essa/testSuite/SendEmail$1.class b/target/test-classes/com/essa/testSuite/SendEmail$1.class deleted file mode 100644 index 530d34b..0000000 Binary files a/target/test-classes/com/essa/testSuite/SendEmail$1.class and /dev/null differ diff --git a/target/test-classes/com/essa/testSuite/SendEmail.class b/target/test-classes/com/essa/testSuite/SendEmail.class deleted file mode 100644 index 6f33911..0000000 Binary files a/target/test-classes/com/essa/testSuite/SendEmail.class and /dev/null differ diff --git a/test-output/Default suite/Default test.html b/test-output/Default suite/Default test.html deleted file mode 100644 index 8701c8b..0000000 --- a/test-output/Default suite/Default test.html +++ /dev/null @@ -1,71 +0,0 @@ - - -TestNG: Default test - - - - - - - - -

Default test

- - - - - - - - - - - -
Tests passed/Failed/Skipped:0/0/0
Started on:Tue Oct 16 11:58:40 CST 2018
Total time:0 seconds (8 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - \ No newline at end of file diff --git a/test-output/Default suite/Default test.xml b/test-output/Default suite/Default test.xml deleted file mode 100644 index 4f65f64..0000000 --- a/test-output/Default suite/Default test.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/test-output/Default suite/testng-failed.xml b/test-output/Default suite/testng-failed.xml deleted file mode 100644 index cc31c11..0000000 --- a/test-output/Default suite/testng-failed.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/test-output/bpms自动化测试/addOriginalGoods.html b/test-output/bpms自动化测试/addOriginalGoods.html deleted file mode 100644 index 85b9407..0000000 --- a/test-output/bpms自动化测试/addOriginalGoods.html +++ /dev/null @@ -1,94 +0,0 @@ - - -TestNG: addOriginalGoods - - - - - - - - -

addOriginalGoods

- - - - - - - - - - - -
Tests passed/Failed/Skipped:3/0/0
Started on:Fri Aug 17 12:48:18 CST 2018
Total time:68 seconds (68748 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
auditOriginal
Test class: com.essa.testSuite.TestAddOriginalGoods
16com.essa.testSuite.TestAddOriginalGoods@4a668b6e
toAddOriginalGoodsPage
Test class: com.essa.testSuite.TestAddOriginalGoods
30com.essa.testSuite.TestAddOriginalGoods@4a668b6e
updatePic
Test class: com.essa.testSuite.TestAddOriginalGoods
12com.essa.testSuite.TestAddOriginalGoods@4a668b6e

- - \ No newline at end of file diff --git a/test-output/bpms自动化测试/addOriginalGoods.xml b/test-output/bpms自动化测试/addOriginalGoods.xml deleted file mode 100644 index c8e677a..0000000 --- a/test-output/bpms自动化测试/addOriginalGoods.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/test-output/bpms自动化测试/login.html b/test-output/bpms自动化测试/login.html deleted file mode 100644 index 3036782..0000000 --- a/test-output/bpms自动化测试/login.html +++ /dev/null @@ -1,89 +0,0 @@ - - -TestNG: login - - - - - - - - -

login

- - - - - - - - - - - -
Tests passed/Failed/Skipped:2/0/0
Started on:Mon Aug 13 10:09:58 CST 2018
Total time:13 seconds (13736 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
login
Test class: com.essa.testSuite.Test_Login
Parameters: admin, essa123
2com.essa.testSuite.Test_Login@5f16132a
login
Test class: com.essa.testSuite.Test_Login
Parameters: linrong, essa123
2com.essa.testSuite.Test_Login@5f16132a

- - \ No newline at end of file diff --git a/test-output/bpms自动化测试/login.xml b/test-output/bpms自动化测试/login.xml deleted file mode 100644 index 291c876..0000000 --- a/test-output/bpms自动化测试/login.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/bpms自动化测试/testng-failed.xml b/test-output/bpms自动化测试/testng-failed.xml deleted file mode 100644 index 4a7005b..0000000 --- a/test-output/bpms自动化测试/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test-output/bpms自动化测试报告/login.html b/test-output/bpms自动化测试报告/login.html deleted file mode 100644 index e969ca2..0000000 --- a/test-output/bpms自动化测试报告/login.html +++ /dev/null @@ -1,89 +0,0 @@ - - -TestNG: login - - - - - - - - -

login

- - - - - - - - - - - -
Tests passed/Failed/Skipped:2/0/0
Started on:Tue Apr 10 16:15:46 CST 2018
Total time:21 seconds (21610 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
login
Test class: com.essa.testSuite.Test_Login
Parameters: admin, essa123
5com.essa.testSuite.Test_Login@17cd7a0
login
Test class: com.essa.testSuite.Test_Login
Parameters: linrong, essa123
4com.essa.testSuite.Test_Login@17cd7a0

- - \ No newline at end of file diff --git a/test-output/bpms自动化测试报告/login.xml b/test-output/bpms自动化测试报告/login.xml deleted file mode 100644 index c798019..0000000 --- a/test-output/bpms自动化测试报告/login.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/bpms自动化测试报告/登录.html b/test-output/bpms自动化测试报告/登录.html deleted file mode 100644 index 508d820..0000000 --- a/test-output/bpms自动化测试报告/登录.html +++ /dev/null @@ -1,89 +0,0 @@ - - -TestNG: ¼ - - - - - - - - -

¼

- - - - - - - - - - - -
Tests passed/Failed/Skipped:2/0/0
Started on:Tue Apr 10 15:42:54 CST 2018
Total time:23 seconds (23496 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
login
Test class: com.essa.testSuite.Test_Login
Parameters: admin, essa123
6com.essa.testSuite.Test_Login@1205a84
login
Test class: com.essa.testSuite.Test_Login
Parameters: linrong, essa123
5com.essa.testSuite.Test_Login@1205a84

- - \ No newline at end of file diff --git a/test-output/bpms自动化测试报告/登录.xml b/test-output/bpms自动化测试报告/登录.xml deleted file mode 100644 index d2e6549..0000000 --- a/test-output/bpms自动化测试报告/登录.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/bullet_point.png b/test-output/bullet_point.png deleted file mode 100644 index 176e6d5..0000000 Binary files a/test-output/bullet_point.png and /dev/null differ diff --git a/test-output/collapseall.gif b/test-output/collapseall.gif deleted file mode 100644 index a2d80a9..0000000 Binary files a/test-output/collapseall.gif and /dev/null differ diff --git a/test-output/emailable-report.html b/test-output/emailable-report.html deleted file mode 100644 index 72a1fc3..0000000 --- a/test-output/emailable-report.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - -TestNG Report - - - - - - - -
Test# Passed# Skipped# FailedTime (ms)Included GroupsExcluded Groups
新增原厂商品
addOriginalGoods40069,357
- -
ClassMethodStartTime (ms)
新增原厂商品
addOriginalGoods — passed
com.essa.testSuite.TestAddOriginalGoodsauditOriginal154028013252314207
getSkuNo15402801467312285
toAddOriginalGoodsPage154028008827829443
updatePic154028011772314799
-

addOriginalGoods

com.essa.testSuite.TestAddOriginalGoods#auditOriginal

back to summary

-

com.essa.testSuite.TestAddOriginalGoods#getSkuNo

back to summary

-

com.essa.testSuite.TestAddOriginalGoods#toAddOriginalGoodsPage

back to summary

-

com.essa.testSuite.TestAddOriginalGoods#updatePic

back to summary

- - diff --git a/test-output/failed.png b/test-output/failed.png deleted file mode 100644 index c117be5..0000000 Binary files a/test-output/failed.png and /dev/null differ diff --git a/test-output/index.html b/test-output/index.html deleted file mode 100644 index 840320b..0000000 --- a/test-output/index.html +++ /dev/null @@ -1,316 +0,0 @@ - - - - - - TestNG reports - - - - - - - - - - -
- Test results -
- 1 suite -
- -
-
-
-
-
- - com.essa.testSuite.TestAddOriginalGoods -
-
-
-
- - - auditOriginal - -(原厂商品审核) -
-
-
-
- - - getSkuNo - -(去商品库获取添加的sku编号) -
-
-
-
- - - toAddOriginalGoodsPage - -(原厂商品建档) -
-
-
-
- - - updatePic - -(更新图片) -
-
-
-
-
-
-
- D:\WorkSpace\EssaAuto\resources\suites\addOriginalGoods.xml -
-
-
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
-<suite guice-stage="DEVELOPMENT" name="新增原厂商品">
-  <test thread-count="5" name="addOriginalGoods">
-    <classes>
-      <class name="com.essa.testSuite.TestAddOriginalGoods">
-        <methods>
-          <include name="toAddOriginalGoodsPage"/>
-          <include name="toGoodsRelesePage"/>
-          <include name="updatePic"/>
-          <include name="auditOriginal"/>
-          <include name="getSkuNo"/>
-        </methods>
-      </class> <!-- com.essa.testSuite.TestAddOriginalGoods -->
-    </classes>
-  </test> <!-- addOriginalGoods -->
-</suite> <!-- 新增原厂商品 -->
-            
-
-
-
-
- Tests for 新增原厂商品 -
-
-
    -
  • - addOriginalGoods (1 class) -
  • -
-
-
-
-
- Groups for 新增原厂商品 -
-
-
-
-
-
- Times for 新增原厂商品 -
-
-
- - Total running time: 1 minutes -
-
-
-
-
-
-
- Reporter output for 新增原厂商品 -
-
-
-
-
-
- 0 ignored methods -
-
-
-
-
-
- Methods in chronological order -
-
-
-
com.essa.testSuite.TestAddOriginalGoods
-
- setUp - 0 ms -
-
- toAddOriginalGoodsPage - 7840 ms -
-
- updatePic - 37285 ms -
-
- auditOriginal - 52085 ms -
-
- getSkuNo - 66293 ms -
-
- tearDown - 68578 ms -
-
-
-
-
- - diff --git a/test-output/jquery-1.7.1.min.js b/test-output/jquery-1.7.1.min.js deleted file mode 100644 index 979ed08..0000000 --- a/test-output/jquery-1.7.1.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v1.7.1 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
"+""+"
",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
t
",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; -f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
","
"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() -{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/test-output/junitreports/TEST-com.buyer.testSuite.TestAddToCart.xml b/test-output/junitreports/TEST-com.buyer.testSuite.TestAddToCart.xml deleted file mode 100644 index c38afec..0000000 --- a/test-output/junitreports/TEST-com.buyer.testSuite.TestAddToCart.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/test-output/junitreports/TEST-com.buyer.testSuite.TestBuyGoods.xml b/test-output/junitreports/TEST-com.buyer.testSuite.TestBuyGoods.xml deleted file mode 100644 index 41f3bbd..0000000 --- a/test-output/junitreports/TEST-com.buyer.testSuite.TestBuyGoods.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - diff --git a/test-output/junitreports/TEST-com.buyer.testSuite.TestRegister.xml b/test-output/junitreports/TEST-com.buyer.testSuite.TestRegister.xml deleted file mode 100644 index 9f79337..0000000 --- a/test-output/junitreports/TEST-com.buyer.testSuite.TestRegister.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - diff --git a/test-output/junitreports/TEST-com.buyer.testSuite.TestSendPO.xml b/test-output/junitreports/TEST-com.buyer.testSuite.TestSendPO.xml deleted file mode 100644 index e68c810..0000000 --- a/test-output/junitreports/TEST-com.buyer.testSuite.TestSendPO.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.TestAddMarketGoods.xml b/test-output/junitreports/TEST-com.essa.testSuite.TestAddMarketGoods.xml deleted file mode 100644 index 0e7030e..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.TestAddMarketGoods.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.TestAddOriginalGoods.xml b/test-output/junitreports/TEST-com.essa.testSuite.TestAddOriginalGoods.xml deleted file mode 100644 index f1fbcd5..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.TestAddOriginalGoods.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.TestGenrateCode.xml b/test-output/junitreports/TEST-com.essa.testSuite.TestGenrateCode.xml deleted file mode 100644 index 75e704a..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.TestGenrateCode.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.TestGroupPurchase.xml b/test-output/junitreports/TEST-com.essa.testSuite.TestGroupPurchase.xml deleted file mode 100644 index 5eb43bb..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.TestGroupPurchase.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.TestProductInquiry.xml b/test-output/junitreports/TEST-com.essa.testSuite.TestProductInquiry.xml deleted file mode 100644 index 2a20e98..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.TestProductInquiry.xml +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/test-output/junitreports/TEST-com.essa.testSuite.Test_Login.xml b/test-output/junitreports/TEST-com.essa.testSuite.Test_Login.xml deleted file mode 100644 index a0be5e2..0000000 --- a/test-output/junitreports/TEST-com.essa.testSuite.Test_Login.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/navigator-bullet.png b/test-output/navigator-bullet.png deleted file mode 100644 index 36d90d3..0000000 Binary files a/test-output/navigator-bullet.png and /dev/null differ diff --git a/test-output/old/Default suite/Default test.properties b/test-output/old/Default suite/Default test.properties deleted file mode 100644 index 37da032..0000000 --- a/test-output/old/Default suite/Default test.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=Default test] \ No newline at end of file diff --git a/test-output/old/Default suite/classes.html b/test-output/old/Default suite/classes.html deleted file mode 100644 index b296fe8..0000000 --- a/test-output/old/Default suite/classes.html +++ /dev/null @@ -1,6 +0,0 @@ -
- - - - -
Class nameMethod nameGroups
diff --git a/test-output/old/Default suite/groups.html b/test-output/old/Default suite/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/Default suite/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/Default suite/index.html b/test-output/old/Default suite/index.html deleted file mode 100644 index 532b9fc..0000000 --- a/test-output/old/Default suite/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for Default suite - - - - - diff --git a/test-output/old/Default suite/main.html b/test-output/old/Default suite/main.html deleted file mode 100644 index 96e58e6..0000000 --- a/test-output/old/Default suite/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for Default suite -Select a result on the left-hand pane. diff --git a/test-output/old/Default suite/methods-alphabetical.html b/test-output/old/Default suite/methods-alphabetical.html deleted file mode 100644 index f5684cb..0000000 --- a/test-output/old/Default suite/methods-alphabetical.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


Default suite

(Hover the method name to see the test class name)

- diff --git a/test-output/old/Default suite/methods-not-run.html b/test-output/old/Default suite/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/Default suite/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/Default suite/methods.html b/test-output/old/Default suite/methods.html deleted file mode 100644 index f5684cb..0000000 --- a/test-output/old/Default suite/methods.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


Default suite

(Hover the method name to see the test class name)

- diff --git a/test-output/old/Default suite/reporter-output.html b/test-output/old/Default suite/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/Default suite/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/Default suite/testng.xml.html b/test-output/old/Default suite/testng.xml.html deleted file mode 100644 index e2a9453..0000000 --- a/test-output/old/Default suite/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for Default suite<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="Default suite">
  <test thread-count="5" verbose="2" name="Default test">
    <classes>
      <class name="com.essa.testSuite.TestSelenium">
        <methods>
          <include name="testEssa"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestSelenium -->
    </classes>
  </test> <!-- Default test -->
</suite> <!-- Default suite -->
\ No newline at end of file diff --git a/test-output/old/Default suite/toc.html b/test-output/old/Default suite/toc.html deleted file mode 100644 index be39c8e..0000000 --- a/test-output/old/Default suite/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for Default suite - - - - -

Results for
Default suite

- - - - - - - - - - -
1 test0 class0 method:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
Default test (0/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/bpms-test/classes.html b/test-output/old/bpms-test/classes.html deleted file mode 100644 index 687deb6..0000000 --- a/test-output/old/bpms-test/classes.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.Test_Login  
@Test
 login 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/bpms-test/groups.html b/test-output/old/bpms-test/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/bpms-test/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/bpms-test/index.html b/test-output/old/bpms-test/index.html deleted file mode 100644 index 3b317ab..0000000 --- a/test-output/old/bpms-test/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for bpms-test - - - - - diff --git a/test-output/old/bpms-test/login.properties b/test-output/old/bpms-test/login.properties deleted file mode 100644 index 467692e..0000000 --- a/test-output/old/bpms-test/login.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=login] \ No newline at end of file diff --git a/test-output/old/bpms-test/main.html b/test-output/old/bpms-test/main.html deleted file mode 100644 index 0b15ae0..0000000 --- a/test-output/old/bpms-test/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for bpms-test -Select a result on the left-hand pane. diff --git a/test-output/old/bpms-test/methods-alphabetical.html b/test-output/old/bpms-test/methods-alphabetical.html deleted file mode 100644 index e4aeeab..0000000 --- a/test-output/old/bpms-test/methods-alphabetical.html +++ /dev/null @@ -1,12 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpms-test

(Hover the method name to see the test class name)

- - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/04/10 16:09:00 0      loginmain@21116517
18/04/10 16:09:05 5158      loginmain@21116517
18/04/10 16:08:50 -9795   >>setUp    main@21116517
18/04/10 16:09:10 9512   <<tearDown    main@21116517
diff --git a/test-output/old/bpms-test/methods-not-run.html b/test-output/old/bpms-test/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/bpms-test/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/bpms-test/methods.html b/test-output/old/bpms-test/methods.html deleted file mode 100644 index 6df26c6..0000000 --- a/test-output/old/bpms-test/methods.html +++ /dev/null @@ -1,12 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpms-test

(Hover the method name to see the test class name)

- - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/04/10 16:08:50 0   >>setUp    main@21116517
18/04/10 16:09:00 9795      loginmain@21116517
18/04/10 16:09:05 14953      loginmain@21116517
18/04/10 16:09:10 19307   <<tearDown    main@21116517
diff --git a/test-output/old/bpms-test/reporter-output.html b/test-output/old/bpms-test/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/bpms-test/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/bpms-test/testng.xml.html b/test-output/old/bpms-test/testng.xml.html deleted file mode 100644 index 4cd361d..0000000 --- a/test-output/old/bpms-test/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for bpms-test<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="bpms-test">
  <listeners>
    <listener class-name="com.essa.framework.ListenerSuite"/>
  </listeners>
  <test thread-count="5" name="login">
    <classes>
      <class name="com.essa.testSuite.Test_Login"/>
    </classes>
  </test> <!-- login -->
</suite> <!-- bpms-test -->
\ No newline at end of file diff --git a/test-output/old/bpms-test/toc.html b/test-output/old/bpms-test/toc.html deleted file mode 100644 index a36983a..0000000 --- a/test-output/old/bpms-test/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for bpms-test - - - - -

Results for
bpms-test

- - - - - - - - - - -
1 test1 class1 method:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
login (2/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/bpms-test/登录.properties b/test-output/old/bpms-test/登录.properties deleted file mode 100644 index 50f3032..0000000 --- a/test-output/old/bpms-test/登录.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=¼] \ No newline at end of file diff --git a/test-output/old/bpms自动化测试/addOriginalGoods.properties b/test-output/old/bpms自动化测试/addOriginalGoods.properties deleted file mode 100644 index 2500805..0000000 --- a/test-output/old/bpms自动化测试/addOriginalGoods.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=addOriginalGoods] \ No newline at end of file diff --git a/test-output/old/bpms自动化测试/classes.html b/test-output/old/bpms自动化测试/classes.html deleted file mode 100644 index 3031a84..0000000 --- a/test-output/old/bpms自动化测试/classes.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestAddOriginalGoods  
@Test
 updatePic 
 toAddOriginalGoodsPage 
 auditOriginal 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/bpms自动化测试/groups.html b/test-output/old/bpms自动化测试/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/bpms自动化测试/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/bpms自动化测试/index.html b/test-output/old/bpms自动化测试/index.html deleted file mode 100644 index 4af7da0..0000000 --- a/test-output/old/bpms自动化测试/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for bpmsԶ - - - - - diff --git a/test-output/old/bpms自动化测试/login.properties b/test-output/old/bpms自动化测试/login.properties deleted file mode 100644 index 467692e..0000000 --- a/test-output/old/bpms自动化测试/login.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=login] \ No newline at end of file diff --git a/test-output/old/bpms自动化测试/main.html b/test-output/old/bpms自动化测试/main.html deleted file mode 100644 index 55dd7e2..0000000 --- a/test-output/old/bpms自动化测试/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for bpmsԶ -Select a result on the left-hand pane. diff --git a/test-output/old/bpms自动化测试/methods-alphabetical.html b/test-output/old/bpms自动化测试/methods-alphabetical.html deleted file mode 100644 index 1e700e4..0000000 --- a/test-output/old/bpms自动化测试/methods-alphabetical.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpmsԶ

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/08/17 12:49:10 0      auditOriginalmain@38262958
18/08/17 12:48:18 -51906   >>setUp    main@38262958
18/08/17 12:49:26 16056   <<tearDown    main@38262958
18/08/17 12:48:27 -42801      toAddOriginalGoodsPagemain@38262958
18/08/17 12:48:58 -12574      updatePicmain@38262958
diff --git a/test-output/old/bpms自动化测试/methods-not-run.html b/test-output/old/bpms自动化测试/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/bpms自动化测试/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/bpms自动化测试/methods.html b/test-output/old/bpms自动化测试/methods.html deleted file mode 100644 index acd7de1..0000000 --- a/test-output/old/bpms自动化测试/methods.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpmsԶ

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/08/17 12:48:18 0   >>setUp    main@38262958
18/08/17 12:48:27 9105      toAddOriginalGoodsPagemain@38262958
18/08/17 12:48:58 39332      updatePicmain@38262958
18/08/17 12:49:10 51906      auditOriginalmain@38262958
18/08/17 12:49:26 67962   <<tearDown    main@38262958
diff --git a/test-output/old/bpms自动化测试/reporter-output.html b/test-output/old/bpms自动化测试/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/bpms自动化测试/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/bpms自动化测试/testng.xml.html b/test-output/old/bpms自动化测试/testng.xml.html deleted file mode 100644 index 37a3cd3..0000000 --- a/test-output/old/bpms自动化测试/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for bpmsԶ<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="bpmsԶ" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="addOriginalGoods">
    <classes>
      <class name="com.essa.testSuite.TestAddOriginalGoods">
        <methods>
          <include name="toAddOriginalGoodsPage"/>
          <include name="toGoodsRelesePage"/>
          <include name="updatePic"/>
          <include name="auditOriginal"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestAddOriginalGoods -->
    </classes>
  </test> <!-- addOriginalGoods -->
</suite> <!-- bpmsԶ -->
\ No newline at end of file diff --git a/test-output/old/bpms自动化测试/toc.html b/test-output/old/bpms自动化测试/toc.html deleted file mode 100644 index 95be4b5..0000000 --- a/test-output/old/bpms自动化测试/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for bpmsԶ - - - - -

Results for
bpmsԶ

- - - - - - - - - - -
1 test1 class3 methods:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
addOriginalGoods (3/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/classes.html b/test-output/old/bpms自动化测试报告/classes.html deleted file mode 100644 index 687deb6..0000000 --- a/test-output/old/bpms自动化测试报告/classes.html +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.Test_Login  
@Test
 login 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/bpms自动化测试报告/groups.html b/test-output/old/bpms自动化测试报告/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/bpms自动化测试报告/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/index.html b/test-output/old/bpms自动化测试报告/index.html deleted file mode 100644 index 51284dd..0000000 --- a/test-output/old/bpms自动化测试报告/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for bpmsԶԱ - - - - - diff --git a/test-output/old/bpms自动化测试报告/login.properties b/test-output/old/bpms自动化测试报告/login.properties deleted file mode 100644 index 467692e..0000000 --- a/test-output/old/bpms自动化测试报告/login.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=login] \ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/main.html b/test-output/old/bpms自动化测试报告/main.html deleted file mode 100644 index 4a15cee..0000000 --- a/test-output/old/bpms自动化测试报告/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for bpmsԶԱ -Select a result on the left-hand pane. diff --git a/test-output/old/bpms自动化测试报告/methods-alphabetical.html b/test-output/old/bpms自动化测试报告/methods-alphabetical.html deleted file mode 100644 index 7d51392..0000000 --- a/test-output/old/bpms自动化测试报告/methods-alphabetical.html +++ /dev/null @@ -1,12 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpmsԶԱ

(Hover the method name to see the test class name)

- - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/04/10 16:15:56 0      loginmain@21116517
18/04/10 16:16:01 5474      loginmain@21116517
18/04/10 16:15:46 -10016   >>setUp    main@21116517
18/04/10 16:16:06 10366   <<tearDown    main@21116517
diff --git a/test-output/old/bpms自动化测试报告/methods-not-run.html b/test-output/old/bpms自动化测试报告/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/bpms自动化测试报告/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/methods.html b/test-output/old/bpms自动化测试报告/methods.html deleted file mode 100644 index b51588e..0000000 --- a/test-output/old/bpms自动化测试报告/methods.html +++ /dev/null @@ -1,12 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


bpmsԶԱ

(Hover the method name to see the test class name)

- - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/04/10 16:15:46 0   >>setUp    main@21116517
18/04/10 16:15:56 10016      loginmain@21116517
18/04/10 16:16:01 15490      loginmain@21116517
18/04/10 16:16:06 20382   <<tearDown    main@21116517
diff --git a/test-output/old/bpms自动化测试报告/reporter-output.html b/test-output/old/bpms自动化测试报告/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/bpms自动化测试报告/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/testng.xml.html b/test-output/old/bpms自动化测试报告/testng.xml.html deleted file mode 100644 index aa1666a..0000000 --- a/test-output/old/bpms自动化测试报告/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for bpmsԶԱ<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="bpmsԶԱ">
  <listeners>
    <listener class-name="com.essa.framework.ListenerSuite"/>
  </listeners>
  <test thread-count="5" name="login">
    <classes>
      <class name="com.essa.testSuite.Test_Login"/>
    </classes>
  </test> <!-- login -->
</suite> <!-- bpmsԶԱ -->
\ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/toc.html b/test-output/old/bpms自动化测试报告/toc.html deleted file mode 100644 index 49642e4..0000000 --- a/test-output/old/bpms自动化测试报告/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for bpmsԶԱ - - - - -

Results for
bpmsԶԱ

- - - - - - - - - - -
1 test1 class1 method:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
login (2/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/bpms自动化测试报告/登录.properties b/test-output/old/bpms自动化测试报告/登录.properties deleted file mode 100644 index 50f3032..0000000 --- a/test-output/old/bpms自动化测试报告/登录.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=¼] \ No newline at end of file diff --git a/test-output/old/index.html b/test-output/old/index.html deleted file mode 100644 index 4809603..0000000 --- a/test-output/old/index.html +++ /dev/null @@ -1,9 +0,0 @@ - - - - -

Test results

- - - -
SuitePassedFailedSkippedtestng.xml
Total400 
新增原厂商品400Link
diff --git a/test-output/old/发布团购商品/classes.html b/test-output/old/发布团购商品/classes.html deleted file mode 100644 index 0b24c39..0000000 --- a/test-output/old/发布团购商品/classes.html +++ /dev/null @@ -1,86 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestGroupPurchase  
@Test
 SkuCategoryManagerCongfig 
 isPublish 
 publishGroupPurchase 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.essa.testSuite.TestAddOriginalGoods  
@Test
 updatePic 
 toAddOriginalGoodsPage 
 auditOriginal 
 getSkuNo 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/发布团购商品/groups.html b/test-output/old/发布团购商品/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/发布团购商品/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/发布团购商品/index.html b/test-output/old/发布团购商品/index.html deleted file mode 100644 index 3699441..0000000 --- a/test-output/old/发布团购商品/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 发布团购商品 - - - - - diff --git a/test-output/old/发布团购商品/main.html b/test-output/old/发布团购商品/main.html deleted file mode 100644 index e9082b4..0000000 --- a/test-output/old/发布团购商品/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 发布团购商品 -Select a result on the left-hand pane. diff --git a/test-output/old/发布团购商品/methods-alphabetical.html b/test-output/old/发布团购商品/methods-alphabetical.html deleted file mode 100644 index fab0d6d..0000000 --- a/test-output/old/发布团购商品/methods-alphabetical.html +++ /dev/null @@ -1,26 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


发布团购商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:48:58 0      SkuCategoryManagerCongfigSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:34 -24692      auditOriginalSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:48 -10456      getSkuNoSwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:32 33352      isPublishSwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:04 5388      publishGroupPurchaseSwingWorker-pool-2-thread-3@424428761
18/09/30 17:47:44 -74401   >>setUp    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:51 -7210   >>setUp    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:50 -8038   <<tearDown    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:36 37852   <<tearDown    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:47:51 -67349      toAddOriginalGoodsPageSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:21 -37771      updatePicSwingWorker-pool-2-thread-3@424428761
diff --git a/test-output/old/发布团购商品/methods-not-run.html b/test-output/old/发布团购商品/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/发布团购商品/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/发布团购商品/methods.html b/test-output/old/发布团购商品/methods.html deleted file mode 100644 index a962727..0000000 --- a/test-output/old/发布团购商品/methods.html +++ /dev/null @@ -1,26 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


发布团购商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:47:44 0   >>setUp    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:47:51 7052      toAddOriginalGoodsPageSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:21 36630      updatePicSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:34 49709      auditOriginalSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:48 63945      getSkuNoSwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:50 66363   <<tearDown    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:51 67191   >>setUp    SwingWorker-pool-2-thread-3@424428761
18/09/30 17:48:58 74401      SkuCategoryManagerCongfigSwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:04 79789      publishGroupPurchaseSwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:32 107753      isPublishSwingWorker-pool-2-thread-3@424428761
18/09/30 17:49:36 112253   <<tearDown    SwingWorker-pool-2-thread-3@424428761
diff --git a/test-output/old/发布团购商品/publishGroupPurchase.properties b/test-output/old/发布团购商品/publishGroupPurchase.properties deleted file mode 100644 index 058632b..0000000 --- a/test-output/old/发布团购商品/publishGroupPurchase.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=publishGroupPurchase] \ No newline at end of file diff --git a/test-output/old/发布团购商品/reporter-output.html b/test-output/old/发布团购商品/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/发布团购商品/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/发布团购商品/testng.xml.html b/test-output/old/发布团购商品/testng.xml.html deleted file mode 100644 index f934462..0000000 --- a/test-output/old/发布团购商品/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 发布团购商品<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="发布团购商品">
  <test thread-count="5" name="publishGroupPurchase">
    <classes>
      <class name="com.essa.testSuite.TestAddOriginalGoods">
        <methods>
          <include name="toAddOriginalGoodsPage"/>
          <include name="updatePic"/>
          <include name="auditOriginal"/>
          <include name="getSkuNo"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestAddOriginalGoods -->
      <class name="com.essa.testSuite.TestGroupPurchase">
        <methods>
          <include name="SkuCategoryManagerCongfig"/>
          <include name="publishGroupPurchase"/>
          <include name="isPublish"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestGroupPurchase -->
    </classes>
  </test> <!-- publishGroupPurchase -->
</suite> <!-- 发布团购商品 -->
\ No newline at end of file diff --git a/test-output/old/发布团购商品/toc.html b/test-output/old/发布团购商品/toc.html deleted file mode 100644 index 6957345..0000000 --- a/test-output/old/发布团购商品/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 发布团购商品 - - - - -

Results for
发布团购商品

- - - - - - - - - - -
1 test2 classes7 methods:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
publishGroupPurchase (7/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/成品询价/classes.html b/test-output/old/成品询价/classes.html deleted file mode 100644 index bc6ce03..0000000 --- a/test-output/old/成品询价/classes.html +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestProductInquiry  
@Test
 productInquiry 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.buyer.testSuite.TestAddToCart  
@Test
 addSku 
 keywordToCart 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/成品询价/groups.html b/test-output/old/成品询价/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/成品询价/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/成品询价/index.html b/test-output/old/成品询价/index.html deleted file mode 100644 index 54ed0c7..0000000 --- a/test-output/old/成品询价/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 成品询价 - - - - - diff --git a/test-output/old/成品询价/main.html b/test-output/old/成品询价/main.html deleted file mode 100644 index 9693e55..0000000 --- a/test-output/old/成品询价/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 成品询价 -Select a result on the left-hand pane. diff --git a/test-output/old/成品询价/methods-alphabetical.html b/test-output/old/成品询价/methods-alphabetical.html deleted file mode 100644 index 3fea793..0000000 --- a/test-output/old/成品询价/methods-alphabetical.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


成品询价

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/28 11:24:17 0      keywordToCartSwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:44 27112      productInquirySwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:10 -7530   >>setUp    SwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:39 21860   >>setUp    SwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:38 20939   <<tearDown    SwingWorker-pool-1-thread-1@501200943
diff --git a/test-output/old/成品询价/methods-not-run.html b/test-output/old/成品询价/methods-not-run.html deleted file mode 100644 index 1a734a3..0000000 --- a/test-output/old/成品询价/methods-not-run.html +++ /dev/null @@ -1,3 +0,0 @@ -

Methods that were not run

- -
com.buyer.testSuite.TestAddToCart.addSku
    将sku加入购物车
\ No newline at end of file diff --git a/test-output/old/成品询价/methods.html b/test-output/old/成品询价/methods.html deleted file mode 100644 index f021b6a..0000000 --- a/test-output/old/成品询价/methods.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


成品询价

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/28 11:24:10 0   >>setUp    SwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:17 7530      keywordToCartSwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:38 28469   <<tearDown    SwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:39 29390   >>setUp    SwingWorker-pool-1-thread-1@501200943
18/09/28 11:24:44 34642      productInquirySwingWorker-pool-1-thread-1@501200943
diff --git a/test-output/old/成品询价/productInquiry.properties b/test-output/old/成品询价/productInquiry.properties deleted file mode 100644 index 1055370..0000000 --- a/test-output/old/成品询价/productInquiry.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=productInquiry] \ No newline at end of file diff --git a/test-output/old/成品询价/reporter-output.html b/test-output/old/成品询价/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/成品询价/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/成品询价/testng.xml.html b/test-output/old/成品询价/testng.xml.html deleted file mode 100644 index 36c840d..0000000 --- a/test-output/old/成品询价/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 成品询价<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="成品询价">
  <test thread-count="5" name="productInquiry">
    <classes>
      <class name="com.buyer.testSuite.TestAddToCart">
        <methods>
          <include name="keywordToCart"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestAddToCart -->
      <class name="com.essa.testSuite.TestProductInquiry">
        <methods>
          <include name="productInquiry"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestProductInquiry -->
    </classes>
  </test> <!-- productInquiry -->
</suite> <!-- 成品询价 -->
\ No newline at end of file diff --git a/test-output/old/成品询价/toc.html b/test-output/old/成品询价/toc.html deleted file mode 100644 index 9cbf12e..0000000 --- a/test-output/old/成品询价/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 成品询价 - - - - -

Results for
成品询价

- - - - - - - - - - -
1 test2 classes2 methods:
-  chronological
-  alphabetical
-  not run (1)
0 groupreporter outputtestng.xml
- -

-

-
productInquiry (1/0/1) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/classes.html b/test-output/old/提交PO-活动商品/classes.html deleted file mode 100644 index 1e5d107..0000000 --- a/test-output/old/提交PO-活动商品/classes.html +++ /dev/null @@ -1,74 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.buyer.testSuite.TestAddToCart  
@Test
 addSku 
 keywordToCart 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.buyer.testSuite.TestSendPO  
@Test
 conslidation 
 sendPO 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/提交PO-活动商品/groups.html b/test-output/old/提交PO-活动商品/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/提交PO-活动商品/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/index.html b/test-output/old/提交PO-活动商品/index.html deleted file mode 100644 index 23fc09d..0000000 --- a/test-output/old/提交PO-活动商品/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 提交PO-活动商品 - - - - - diff --git a/test-output/old/提交PO-活动商品/main.html b/test-output/old/提交PO-活动商品/main.html deleted file mode 100644 index 44bc3dd..0000000 --- a/test-output/old/提交PO-活动商品/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 提交PO-活动商品 -Select a result on the left-hand pane. diff --git a/test-output/old/提交PO-活动商品/methods-alphabetical.html b/test-output/old/提交PO-活动商品/methods-alphabetical.html deleted file mode 100644 index 7cd31a8..0000000 --- a/test-output/old/提交PO-活动商品/methods-alphabetical.html +++ /dev/null @@ -1,18 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


提交PO-活动商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/03 16:02:33 0      addSkuAWT-EventQueue-0@662822946
18/09/03 16:02:55 22466      conslidationAWT-EventQueue-0@662822946
18/09/03 16:03:34 60820      sendPOAWT-EventQueue-0@662822946
18/09/03 16:02:24 -9143   >>setUp    AWT-EventQueue-0@662822946
18/09/03 16:02:47 13908   >>setUp    AWT-EventQueue-0@662822946
18/09/03 16:02:46 13142   <<tearDown    AWT-EventQueue-0@662822946
18/09/03 16:03:47 74155   <<tearDown    AWT-EventQueue-0@662822946
diff --git a/test-output/old/提交PO-活动商品/methods-not-run.html b/test-output/old/提交PO-活动商品/methods-not-run.html deleted file mode 100644 index 3340906..0000000 --- a/test-output/old/提交PO-活动商品/methods-not-run.html +++ /dev/null @@ -1,3 +0,0 @@ -

Methods that were not run

- -
com.buyer.testSuite.TestAddToCart.keywordToCart
    关键字搜索,并将sku加入购物车
\ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/methods.html b/test-output/old/提交PO-活动商品/methods.html deleted file mode 100644 index 733e4e6..0000000 --- a/test-output/old/提交PO-活动商品/methods.html +++ /dev/null @@ -1,18 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


提交PO-活动商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/03 16:02:24 0   >>setUp    AWT-EventQueue-0@662822946
18/09/03 16:02:33 9143      addSkuAWT-EventQueue-0@662822946
18/09/03 16:02:46 22285   <<tearDown    AWT-EventQueue-0@662822946
18/09/03 16:02:47 23051   >>setUp    AWT-EventQueue-0@662822946
18/09/03 16:02:55 31609      conslidationAWT-EventQueue-0@662822946
18/09/03 16:03:34 69963      sendPOAWT-EventQueue-0@662822946
18/09/03 16:03:47 83298   <<tearDown    AWT-EventQueue-0@662822946
diff --git a/test-output/old/提交PO-活动商品/reporter-output.html b/test-output/old/提交PO-活动商品/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/提交PO-活动商品/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/sendActivityPO.properties b/test-output/old/提交PO-活动商品/sendActivityPO.properties deleted file mode 100644 index b47f666..0000000 --- a/test-output/old/提交PO-活动商品/sendActivityPO.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=sendActivityPO] \ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/testng.xml.html b/test-output/old/提交PO-活动商品/testng.xml.html deleted file mode 100644 index 6fca015..0000000 --- a/test-output/old/提交PO-活动商品/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 提交PO-活动商品<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="提交PO-活动商品" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="sendActivityPO">
    <classes>
      <class name="com.buyer.testSuite.TestAddToCart">
        <methods>
          <include name="addSku"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestAddToCart -->
      <class name="com.buyer.testSuite.TestSendPO">
        <methods>
          <include name="conslidation"/>
          <include name="sendPO"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestSendPO -->
    </classes>
  </test> <!-- sendActivityPO -->
</suite> <!-- 提交PO-活动商品 -->
\ No newline at end of file diff --git a/test-output/old/提交PO-活动商品/toc.html b/test-output/old/提交PO-活动商品/toc.html deleted file mode 100644 index 65e9402..0000000 --- a/test-output/old/提交PO-活动商品/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 提交PO-活动商品 - - - - -

Results for
提交PO-活动商品

- - - - - - - - - - -
1 test2 classes3 methods:
-  chronological
-  alphabetical
-  not run (1)
0 groupreporter outputtestng.xml
- -

-

-
sendActivityPO (3/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/提交PO/classes.html b/test-output/old/提交PO/classes.html deleted file mode 100644 index 0a6035f..0000000 --- a/test-output/old/提交PO/classes.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestProductInquiry  
@Test
 productInquiry 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.buyer.testSuite.TestAddToCart  
@Test
 addSku 
 keywordToCartfirst
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.buyer.testSuite.TestSendPO  
@Test
 conslidation 
 sendPO 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/提交PO/groups.html b/test-output/old/提交PO/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/提交PO/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/提交PO/index.html b/test-output/old/提交PO/index.html deleted file mode 100644 index 9181b83..0000000 --- a/test-output/old/提交PO/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 提交PO - - - - - diff --git a/test-output/old/提交PO/main.html b/test-output/old/提交PO/main.html deleted file mode 100644 index b35f2ad..0000000 --- a/test-output/old/提交PO/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 提交PO -Select a result on the left-hand pane. diff --git a/test-output/old/提交PO/methods-alphabetical.html b/test-output/old/提交PO/methods-alphabetical.html deleted file mode 100644 index 050b912..0000000 --- a/test-output/old/提交PO/methods-alphabetical.html +++ /dev/null @@ -1,24 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


提交PO

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/10/23 15:21:02 0      addSkuSwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:42 39416      conslidationSwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:18 15757      productInquirySwingWorker-pool-1-thread-1@189909386
18/10/23 15:22:10 67650      sendPOSwingWorker-pool-1-thread-1@189909386
18/10/23 15:20:52 -10260   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:11 8873   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:35 32796   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:10 8121   <<tearDown    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:34 32022   <<tearDown    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:22:27 84737   <<tearDown    SwingWorker-pool-1-thread-1@189909386
diff --git a/test-output/old/提交PO/methods-not-run.html b/test-output/old/提交PO/methods-not-run.html deleted file mode 100644 index 3340906..0000000 --- a/test-output/old/提交PO/methods-not-run.html +++ /dev/null @@ -1,3 +0,0 @@ -

Methods that were not run

- -
com.buyer.testSuite.TestAddToCart.keywordToCart
    关键字搜索,并将sku加入购物车
\ No newline at end of file diff --git a/test-output/old/提交PO/methods.html b/test-output/old/提交PO/methods.html deleted file mode 100644 index 3db7a3b..0000000 --- a/test-output/old/提交PO/methods.html +++ /dev/null @@ -1,24 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


提交PO

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/10/23 15:20:52 0   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:02 10260      addSkuSwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:10 18381   <<tearDown    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:11 19133   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:18 26017      productInquirySwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:34 42282   <<tearDown    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:35 43056   >>setUp    SwingWorker-pool-1-thread-1@189909386
18/10/23 15:21:42 49676      conslidationSwingWorker-pool-1-thread-1@189909386
18/10/23 15:22:10 77910      sendPOSwingWorker-pool-1-thread-1@189909386
18/10/23 15:22:27 94997   <<tearDown    SwingWorker-pool-1-thread-1@189909386
diff --git a/test-output/old/提交PO/reporter-output.html b/test-output/old/提交PO/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/提交PO/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/提交PO/sendPO.properties b/test-output/old/提交PO/sendPO.properties deleted file mode 100644 index ba30809..0000000 --- a/test-output/old/提交PO/sendPO.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=sendPO] \ No newline at end of file diff --git a/test-output/old/提交PO/testng.xml.html b/test-output/old/提交PO/testng.xml.html deleted file mode 100644 index a621fdf..0000000 --- a/test-output/old/提交PO/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 提交PO<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="提交PO">
  <test thread-count="5" name="sendPO">
    <classes>
      <class name="com.buyer.testSuite.TestAddToCart">
        <methods>
          <include name="addSku"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestAddToCart -->
      <class name="com.essa.testSuite.TestProductInquiry">
        <methods>
          <include name="productInquiry"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestProductInquiry -->
      <class name="com.buyer.testSuite.TestSendPO">
        <methods>
          <include name="conslidation"/>
          <include name="sendPO"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestSendPO -->
    </classes>
  </test> <!-- sendPO -->
</suite> <!-- 提交PO -->
\ No newline at end of file diff --git a/test-output/old/提交PO/toc.html b/test-output/old/提交PO/toc.html deleted file mode 100644 index d65c86d..0000000 --- a/test-output/old/提交PO/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 提交PO - - - - -

Results for
提交PO

- - - - - - - - - - -
1 test3 classes4 methods:
-  chronological
-  alphabetical
-  not run (1)
0 groupreporter outputtestng.xml
- -

-

-
sendPO (4/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/新增原厂商品/addOriginalGoods.properties b/test-output/old/新增原厂商品/addOriginalGoods.properties deleted file mode 100644 index 2500805..0000000 --- a/test-output/old/新增原厂商品/addOriginalGoods.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=addOriginalGoods] \ No newline at end of file diff --git a/test-output/old/新增原厂商品/classes.html b/test-output/old/新增原厂商品/classes.html deleted file mode 100644 index bad2133..0000000 --- a/test-output/old/新增原厂商品/classes.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestAddOriginalGoods  
@Test
 updatePic 
 toAddOriginalGoodsPage 
 auditOriginal 
 getSkuNo 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/新增原厂商品/groups.html b/test-output/old/新增原厂商品/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/新增原厂商品/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/新增原厂商品/index.html b/test-output/old/新增原厂商品/index.html deleted file mode 100644 index 970e419..0000000 --- a/test-output/old/新增原厂商品/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 新增原厂商品 - - - - - diff --git a/test-output/old/新增原厂商品/main.html b/test-output/old/新增原厂商品/main.html deleted file mode 100644 index 82e4425..0000000 --- a/test-output/old/新增原厂商品/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 新增原厂商品 -Select a result on the left-hand pane. diff --git a/test-output/old/新增原厂商品/methods-alphabetical.html b/test-output/old/新增原厂商品/methods-alphabetical.html deleted file mode 100644 index 246bb3e..0000000 --- a/test-output/old/新增原厂商品/methods-alphabetical.html +++ /dev/null @@ -1,16 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


新增原厂商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/10/23 15:35:32 0      auditOriginalSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:46 14208      getSkuNoSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:34:40 -52081   >>setUp    SwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:49 16494   <<tearDown    SwingWorker-pool-2-thread-1@1322952988
18/10/23 15:34:48 -44245      toAddOriginalGoodsPageSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:17 -14801      updatePicSwingWorker-pool-2-thread-1@1322952988
diff --git a/test-output/old/新增原厂商品/methods-not-run.html b/test-output/old/新增原厂商品/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/新增原厂商品/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/新增原厂商品/methods.html b/test-output/old/新增原厂商品/methods.html deleted file mode 100644 index c353d78..0000000 --- a/test-output/old/新增原厂商品/methods.html +++ /dev/null @@ -1,16 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


新增原厂商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/10/23 15:34:40 0   >>setUp    SwingWorker-pool-2-thread-1@1322952988
18/10/23 15:34:48 7836      toAddOriginalGoodsPageSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:17 37280      updatePicSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:32 52081      auditOriginalSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:46 66289      getSkuNoSwingWorker-pool-2-thread-1@1322952988
18/10/23 15:35:49 68575   <<tearDown    SwingWorker-pool-2-thread-1@1322952988
diff --git a/test-output/old/新增原厂商品/reporter-output.html b/test-output/old/新增原厂商品/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/新增原厂商品/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/新增原厂商品/testng.xml.html b/test-output/old/新增原厂商品/testng.xml.html deleted file mode 100644 index 748985e..0000000 --- a/test-output/old/新增原厂商品/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 新增原厂商品<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="新增原厂商品">
  <test thread-count="5" name="addOriginalGoods">
    <classes>
      <class name="com.essa.testSuite.TestAddOriginalGoods">
        <methods>
          <include name="toAddOriginalGoodsPage"/>
          <include name="toGoodsRelesePage"/>
          <include name="updatePic"/>
          <include name="auditOriginal"/>
          <include name="getSkuNo"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestAddOriginalGoods -->
    </classes>
  </test> <!-- addOriginalGoods -->
</suite> <!-- 新增原厂商品 -->
\ No newline at end of file diff --git a/test-output/old/新增原厂商品/toc.html b/test-output/old/新增原厂商品/toc.html deleted file mode 100644 index c655b22..0000000 --- a/test-output/old/新增原厂商品/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 新增原厂商品 - - - - -

Results for
新增原厂商品

- - - - - - - - - - -
1 test1 class4 methods:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
addOriginalGoods (4/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/新增市场商品/addMarketGoods.properties b/test-output/old/新增市场商品/addMarketGoods.properties deleted file mode 100644 index 84bb610..0000000 --- a/test-output/old/新增市场商品/addMarketGoods.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=addMarketGoods] \ No newline at end of file diff --git a/test-output/old/新增市场商品/classes.html b/test-output/old/新增市场商品/classes.html deleted file mode 100644 index 6c94001..0000000 --- a/test-output/old/新增市场商品/classes.html +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestAddMarketGoods  
@Test
 auditMarketGoods 
 addMarketGoods 
 toMarketGoodsRelesePage 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/新增市场商品/groups.html b/test-output/old/新增市场商品/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/新增市场商品/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/新增市场商品/index.html b/test-output/old/新增市场商品/index.html deleted file mode 100644 index 0e904c7..0000000 --- a/test-output/old/新增市场商品/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 新增市场商品 - - - - - diff --git a/test-output/old/新增市场商品/main.html b/test-output/old/新增市场商品/main.html deleted file mode 100644 index c2f3b2d..0000000 --- a/test-output/old/新增市场商品/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 新增市场商品 -Select a result on the left-hand pane. diff --git a/test-output/old/新增市场商品/methods-alphabetical.html b/test-output/old/新增市场商品/methods-alphabetical.html deleted file mode 100644 index d07d256..0000000 --- a/test-output/old/新增市场商品/methods-alphabetical.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


新增市场商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:44:57 0      addMarketGoodsSwingWorker-pool-2-thread-1@1802781601
18/09/30 17:45:34 37398      auditMarketGoodsSwingWorker-pool-2-thread-1@1802781601
18/09/30 17:44:43 -13746   >>setUp    SwingWorker-pool-2-thread-1@1802781601
18/09/30 17:45:51 54036   <<tearDown    SwingWorker-pool-2-thread-1@1802781601
18/09/30 17:44:51 -5514      toMarketGoodsRelesePageSwingWorker-pool-2-thread-1@1802781601
diff --git a/test-output/old/新增市场商品/methods-not-run.html b/test-output/old/新增市场商品/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/新增市场商品/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/新增市场商品/methods.html b/test-output/old/新增市场商品/methods.html deleted file mode 100644 index 367959e..0000000 --- a/test-output/old/新增市场商品/methods.html +++ /dev/null @@ -1,14 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


新增市场商品

(Hover the method name to see the test class name)

- - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:44:43 0   >>setUp    SwingWorker-pool-2-thread-1@1802781601
18/09/30 17:44:51 8232      toMarketGoodsRelesePageSwingWorker-pool-2-thread-1@1802781601
18/09/30 17:44:57 13746      addMarketGoodsSwingWorker-pool-2-thread-1@1802781601
18/09/30 17:45:34 51144      auditMarketGoodsSwingWorker-pool-2-thread-1@1802781601
18/09/30 17:45:51 67782   <<tearDown    SwingWorker-pool-2-thread-1@1802781601
diff --git a/test-output/old/新增市场商品/reporter-output.html b/test-output/old/新增市场商品/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/新增市场商品/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/新增市场商品/testng.xml.html b/test-output/old/新增市场商品/testng.xml.html deleted file mode 100644 index 168353f..0000000 --- a/test-output/old/新增市场商品/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 新增市场商品<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="新增市场商品">
  <test thread-count="5" name="addMarketGoods">
    <classes>
      <class name="com.essa.testSuite.TestAddMarketGoods">
        <methods>
          <include name="toMarketGoodsRelesePage"/>
          <include name="addMarketGoods"/>
          <include name="auditMarketGoods"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestAddMarketGoods -->
    </classes>
  </test> <!-- addMarketGoods -->
</suite> <!-- 新增市场商品 -->
\ No newline at end of file diff --git a/test-output/old/新增市场商品/toc.html b/test-output/old/新增市场商品/toc.html deleted file mode 100644 index 914ee57..0000000 --- a/test-output/old/新增市场商品/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 新增市场商品 - - - - -

Results for
新增市场商品

- - - - - - - - - - -
1 test1 class3 methods:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
addMarketGoods (3/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/buyerRegister.properties b/test-output/old/添加SKU到购物车/buyerRegister.properties deleted file mode 100644 index 16309ee..0000000 --- a/test-output/old/添加SKU到购物车/buyerRegister.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=buyerRegister] \ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/classes.html b/test-output/old/添加SKU到购物车/classes.html deleted file mode 100644 index 7808599..0000000 --- a/test-output/old/添加SKU到购物车/classes.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.buyer.testSuite.TestAddToCart  
@Test
 addSku 
 keywordToCart 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/添加SKU到购物车/groups.html b/test-output/old/添加SKU到购物车/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/添加SKU到购物车/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/index.html b/test-output/old/添加SKU到购物车/index.html deleted file mode 100644 index 1a93f1e..0000000 --- a/test-output/old/添加SKU到购物车/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 添加SKU到购物车 - - - - - diff --git a/test-output/old/添加SKU到购物车/main.html b/test-output/old/添加SKU到购物车/main.html deleted file mode 100644 index b69b05c..0000000 --- a/test-output/old/添加SKU到购物车/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 添加SKU到购物车 -Select a result on the left-hand pane. diff --git a/test-output/old/添加SKU到购物车/methods-alphabetical.html b/test-output/old/添加SKU到购物车/methods-alphabetical.html deleted file mode 100644 index 78effd2..0000000 --- a/test-output/old/添加SKU到购物车/methods-alphabetical.html +++ /dev/null @@ -1,10 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


添加SKU到购物车

(Hover the method name to see the test class name)

- - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/08/31 16:16:32 0      keywordToCartAWT-EventQueue-0@662822946
18/08/31 16:16:24 -7683   >>setUp    AWT-EventQueue-0@662822946
18/08/31 16:16:49 16769   <<tearDown    AWT-EventQueue-0@662822946
diff --git a/test-output/old/添加SKU到购物车/methods-not-run.html b/test-output/old/添加SKU到购物车/methods-not-run.html deleted file mode 100644 index 1a734a3..0000000 --- a/test-output/old/添加SKU到购物车/methods-not-run.html +++ /dev/null @@ -1,3 +0,0 @@ -

Methods that were not run

- -
com.buyer.testSuite.TestAddToCart.addSku
    将sku加入购物车
\ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/methods.html b/test-output/old/添加SKU到购物车/methods.html deleted file mode 100644 index fa04755..0000000 --- a/test-output/old/添加SKU到购物车/methods.html +++ /dev/null @@ -1,10 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


添加SKU到购物车

(Hover the method name to see the test class name)

- - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/08/31 16:16:24 0   >>setUp    AWT-EventQueue-0@662822946
18/08/31 16:16:32 7683      keywordToCartAWT-EventQueue-0@662822946
18/08/31 16:16:49 24452   <<tearDown    AWT-EventQueue-0@662822946
diff --git a/test-output/old/添加SKU到购物车/reporter-output.html b/test-output/old/添加SKU到购物车/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/添加SKU到购物车/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/testng.xml.html b/test-output/old/添加SKU到购物车/testng.xml.html deleted file mode 100644 index 541637e..0000000 --- a/test-output/old/添加SKU到购物车/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 添加SKU到购物车<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="添加SKU到购物车" guice-stage="DEVELOPMENT">
  <test thread-count="5" name="buyerRegister">
    <classes>
      <class name="com.buyer.testSuite.TestAddToCart">
        <methods>
          <include name="keywordToCart"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestAddToCart -->
    </classes>
  </test> <!-- buyerRegister -->
</suite> <!-- 添加SKU到购物车 -->
\ No newline at end of file diff --git a/test-output/old/添加SKU到购物车/toc.html b/test-output/old/添加SKU到购物车/toc.html deleted file mode 100644 index f706ca8..0000000 --- a/test-output/old/添加SKU到购物车/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 添加SKU到购物车 - - - - -

Results for
添加SKU到购物车

- - - - - - - - - - -
1 test1 class1 method:
-  chronological
-  alphabetical
-  not run (1)
0 groupreporter outputtestng.xml
- -

-

-
buyerRegister (1/0/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/old/采购商注册/RegisterBuyer.properties b/test-output/old/采购商注册/RegisterBuyer.properties deleted file mode 100644 index 85daf12..0000000 --- a/test-output/old/采购商注册/RegisterBuyer.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=RegisterBuyer] \ No newline at end of file diff --git a/test-output/old/采购商注册/buyerRegister.properties b/test-output/old/采购商注册/buyerRegister.properties deleted file mode 100644 index 16309ee..0000000 --- a/test-output/old/采购商注册/buyerRegister.properties +++ /dev/null @@ -1 +0,0 @@ -[SuiteResult context=buyerRegister] \ No newline at end of file diff --git a/test-output/old/采购商注册/classes.html b/test-output/old/采购商注册/classes.html deleted file mode 100644 index b9fae78..0000000 --- a/test-output/old/采购商注册/classes.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Class nameMethod nameGroups
com.essa.testSuite.TestGenrateCode  
@Test
 genrateCode 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
com.buyer.testSuite.TestRegister  
@Test
 register 
@BeforeClass
 setUp 
@BeforeMethod
@AfterMethod
@AfterClass
 tearDown 
diff --git a/test-output/old/采购商注册/groups.html b/test-output/old/采购商注册/groups.html deleted file mode 100644 index 199cb3f..0000000 --- a/test-output/old/采购商注册/groups.html +++ /dev/null @@ -1 +0,0 @@ -

Groups used for this test run

\ No newline at end of file diff --git a/test-output/old/采购商注册/index.html b/test-output/old/采购商注册/index.html deleted file mode 100644 index f01b580..0000000 --- a/test-output/old/采购商注册/index.html +++ /dev/null @@ -1,6 +0,0 @@ -Results for 采购商注册 - - - - - diff --git a/test-output/old/采购商注册/main.html b/test-output/old/采购商注册/main.html deleted file mode 100644 index 917dcc6..0000000 --- a/test-output/old/采购商注册/main.html +++ /dev/null @@ -1,2 +0,0 @@ -Results for 采购商注册 -Select a result on the left-hand pane. diff --git a/test-output/old/采购商注册/methods-alphabetical.html b/test-output/old/采购商注册/methods-alphabetical.html deleted file mode 100644 index 6e1a475..0000000 --- a/test-output/old/采购商注册/methods-alphabetical.html +++ /dev/null @@ -1,16 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


采购商注册

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:50:20 0      genrateCodeSwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:31 11054      registerSwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:13 -7157   >>setUp    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:26 5905   >>setUp    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:25 5161   <<tearDown    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:47 27422   <<tearDown    SwingWorker-pool-2-thread-4@1012104814
diff --git a/test-output/old/采购商注册/methods-not-run.html b/test-output/old/采购商注册/methods-not-run.html deleted file mode 100644 index 54b14cb..0000000 --- a/test-output/old/采购商注册/methods-not-run.html +++ /dev/null @@ -1,2 +0,0 @@ -

Methods that were not run

-
\ No newline at end of file diff --git a/test-output/old/采购商注册/methods.html b/test-output/old/采购商注册/methods.html deleted file mode 100644 index 889eeba..0000000 --- a/test-output/old/采购商注册/methods.html +++ /dev/null @@ -1,16 +0,0 @@ -

Methods run, sorted chronologically

>> means before, << means after


采购商注册

(Hover the method name to see the test class name)

- - - - - - - - - - - - - - -
TimeDelta (ms)Suite
configuration
Test
configuration
Class
configuration
Groups
configuration
Method
configuration
Test
method
ThreadInstances
18/09/30 17:50:13 0   >>setUp    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:20 7157      genrateCodeSwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:25 12318   <<tearDown    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:26 13062   >>setUp    SwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:31 18211      registerSwingWorker-pool-2-thread-4@1012104814
18/09/30 17:50:47 34579   <<tearDown    SwingWorker-pool-2-thread-4@1012104814
diff --git a/test-output/old/采购商注册/reporter-output.html b/test-output/old/采购商注册/reporter-output.html deleted file mode 100644 index 063bc2e..0000000 --- a/test-output/old/采购商注册/reporter-output.html +++ /dev/null @@ -1 +0,0 @@ -

Reporter output

\ No newline at end of file diff --git a/test-output/old/采购商注册/testng.xml.html b/test-output/old/采购商注册/testng.xml.html deleted file mode 100644 index dc13063..0000000 --- a/test-output/old/采购商注册/testng.xml.html +++ /dev/null @@ -1 +0,0 @@ -testng.xml for 采购商注册<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite guice-stage="DEVELOPMENT" name="采购商注册">
  <test thread-count="5" name="buyerRegister">
    <classes>
      <class name="com.essa.testSuite.TestGenrateCode">
        <methods>
          <include name="genrateCode"/>
        </methods>
      </class> <!-- com.essa.testSuite.TestGenrateCode -->
      <class name="com.buyer.testSuite.TestRegister">
        <methods>
          <include name="register"/>
        </methods>
      </class> <!-- com.buyer.testSuite.TestRegister -->
    </classes>
  </test> <!-- buyerRegister -->
</suite> <!-- 采购商注册 -->
\ No newline at end of file diff --git a/test-output/old/采购商注册/toc.html b/test-output/old/采购商注册/toc.html deleted file mode 100644 index 1746701..0000000 --- a/test-output/old/采购商注册/toc.html +++ /dev/null @@ -1,30 +0,0 @@ - - -Results for 采购商注册 - - - - -

Results for
采购商注册

- - - - - - - - - - -
1 test2 classes2 methods:
-  chronological
-  alphabetical
-  not run (0)
0 groupreporter outputtestng.xml
- -

-

-
buyerRegister (1/1/0) - Results -
-
- \ No newline at end of file diff --git a/test-output/passed.png b/test-output/passed.png deleted file mode 100644 index 45e85bb..0000000 Binary files a/test-output/passed.png and /dev/null differ diff --git a/test-output/skipped.png b/test-output/skipped.png deleted file mode 100644 index c36a324..0000000 Binary files a/test-output/skipped.png and /dev/null differ diff --git a/test-output/testng-failed.xml b/test-output/testng-failed.xml deleted file mode 100644 index 65c5414..0000000 --- a/test-output/testng-failed.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/test-output/testng-reports.css b/test-output/testng-reports.css deleted file mode 100644 index 6c65926..0000000 --- a/test-output/testng-reports.css +++ /dev/null @@ -1,309 +0,0 @@ -body { - margin: 0px 0px 5px 5px; -} - -ul { - margin: 0px; -} - -li { - list-style-type: none; -} - -a { - text-decoration: none; -} - -a:hover { - text-decoration: underline; -} - -.navigator-selected { - background: #ffa500; -} - -.wrapper { - position: absolute; - top: 60px; - bottom: 0; - left: 400px; - right: 0; - overflow: auto; -} - -.navigator-root { - position: absolute; - top: 60px; - bottom: 0; - left: 0; - width: 400px; - overflow-y: auto; -} - -.suite { - margin: 0px 10px 10px 0px; - background-color: #fff8dc; -} - -.suite-name { - padding-left: 10px; - font-size: 25px; - font-family: Times; -} - -.main-panel-header { - padding: 5px; - background-color: #9FB4D9; //afeeee; - font-family: monospace; - font-size: 18px; -} - -.main-panel-content { - padding: 5px; - margin-bottom: 10px; - background-color: #DEE8FC; //d0ffff; -} - -.rounded-window { - border-radius: 10px; - border-style: solid; - border-width: 1px; -} - -.rounded-window-top { - border-top-right-radius: 10px 10px; - border-top-left-radius: 10px 10px; - border-style: solid; - border-width: 1px; - overflow: auto; -} - -.light-rounded-window-top { - border-top-right-radius: 10px 10px; - border-top-left-radius: 10px 10px; -} - -.rounded-window-bottom { - border-style: solid; - border-width: 0px 1px 1px 1px; - border-bottom-right-radius: 10px 10px; - border-bottom-left-radius: 10px 10px; - overflow: auto; -} - -.method-name { - font-size: 12px; - font-family: monospace; -} - -.method-content { - border-style: solid; - border-width: 0px 0px 1px 0px; - margin-bottom: 10; - padding-bottom: 5px; - width: 80%; -} - -.parameters { - font-size: 14px; - font-family: monospace; -} - -.stack-trace { - white-space: pre; - font-family: monospace; - font-size: 12px; - font-weight: bold; - margin-top: 0px; - margin-left: 20px; -} - -.testng-xml { - font-family: monospace; -} - -.method-list-content { - margin-left: 10px; -} - -.navigator-suite-content { - margin-left: 10px; - font: 12px 'Lucida Grande'; -} - -.suite-section-title { - margin-top: 10px; - width: 80%; - border-style: solid; - border-width: 1px 0px 0px 0px; - font-family: Times; - font-size: 18px; - font-weight: bold; -} - -.suite-section-content { - list-style-image: url(bullet_point.png); -} - -.top-banner-root { - position: absolute; - top: 0; - height: 45px; - left: 0; - right: 0; - padding: 5px; - margin: 0px 0px 5px 0px; - background-color: #0066ff; - font-family: Times; - color: #fff; - text-align: center; -} - -.top-banner-title-font { - font-size: 25px; -} - -.test-name { - font-family: 'Lucida Grande'; - font-size: 16px; -} - -.suite-icon { - padding: 5px; - float: right; - height: 20; -} - -.test-group { - font: 20px 'Lucida Grande'; - margin: 5px 5px 10px 5px; - border-width: 0px 0px 1px 0px; - border-style: solid; - padding: 5px; -} - -.test-group-name { - font-weight: bold; -} - -.method-in-group { - font-size: 16px; - margin-left: 80px; -} - -table.google-visualization-table-table { - width: 100%; -} - -.reporter-method-name { - font-size: 14px; - font-family: monospace; -} - -.reporter-method-output-div { - padding: 5px; - margin: 0px 0px 5px 20px; - font-size: 12px; - font-family: monospace; - border-width: 0px 0px 0px 1px; - border-style: solid; -} - -.ignored-class-div { - font-size: 14px; - font-family: monospace; -} - -.ignored-methods-div { - padding: 5px; - margin: 0px 0px 5px 20px; - font-size: 12px; - font-family: monospace; - border-width: 0px 0px 0px 1px; - border-style: solid; -} - -.border-failed { - border-top-left-radius: 10px 10px; - border-bottom-left-radius: 10px 10px; - border-style: solid; - border-width: 0px 0px 0px 10px; - border-color: #f00; -} - -.border-skipped { - border-top-left-radius: 10px 10px; - border-bottom-left-radius: 10px 10px; - border-style: solid; - border-width: 0px 0px 0px 10px; - border-color: #edc600; -} - -.border-passed { - border-top-left-radius: 10px 10px; - border-bottom-left-radius: 10px 10px; - border-style: solid; - border-width: 0px 0px 0px 10px; - border-color: #19f52d; -} - -.times-div { - text-align: center; - padding: 5px; -} - -.suite-total-time { - font: 16px 'Lucida Grande'; -} - -.configuration-suite { - margin-left: 20px; -} - -.configuration-test { - margin-left: 40px; -} - -.configuration-class { - margin-left: 60px; -} - -.configuration-method { - margin-left: 80px; -} - -.test-method { - margin-left: 100px; -} - -.chronological-class { - background-color: #0ccff; - border-style: solid; - border-width: 0px 0px 1px 1px; -} - -.method-start { - float: right; -} - -.chronological-class-name { - padding: 0px 0px 0px 5px; - color: #008; -} - -.after, .before, .test-method { - font-family: monospace; - font-size: 14px; -} - -.navigator-suite-header { - font-size: 22px; - margin: 0px 10px 5px 0px; - background-color: #deb887; - text-align: center; -} - -.collapse-all-icon { - padding: 5px; - float: right; -} diff --git a/test-output/testng-reports.js b/test-output/testng-reports.js deleted file mode 100644 index b147043..0000000 --- a/test-output/testng-reports.js +++ /dev/null @@ -1,122 +0,0 @@ -$(document).ready(function() { - $('a.navigator-link').click(function() { - // Extract the panel for this link - var panel = getPanelName($(this)); - - // Mark this link as currently selected - $('.navigator-link').parent().removeClass('navigator-selected'); - $(this).parent().addClass('navigator-selected'); - - showPanel(panel); - }); - - installMethodHandlers('failed'); - installMethodHandlers('skipped'); - installMethodHandlers('passed', true); // hide passed methods by default - - $('a.method').click(function() { - showMethod($(this)); - return false; - }); - - // Hide all the panels and display the first one (do this last - // to make sure the click() will invoke the listeners) - $('.panel').hide(); - $('.navigator-link').first().click(); - - // Collapse/expand the suites - $('a.collapse-all-link').click(function() { - var contents = $('.navigator-suite-content'); - if (contents.css('display') == 'none') { - contents.show(); - } else { - contents.hide(); - } - }); -}); - -// The handlers that take care of showing/hiding the methods -function installMethodHandlers(name, hide) { - function getContent(t) { - return $('.method-list-content.' + name + "." + t.attr('panel-name')); - } - - function getHideLink(t, name) { - var s = 'a.hide-methods.' + name + "." + t.attr('panel-name'); - return $(s); - } - - function getShowLink(t, name) { - return $('a.show-methods.' + name + "." + t.attr('panel-name')); - } - - function getMethodPanelClassSel(element, name) { - var panelName = getPanelName(element); - var sel = '.' + panelName + "-class-" + name; - return $(sel); - } - - $('a.hide-methods.' + name).click(function() { - var w = getContent($(this)); - w.hide(); - getHideLink($(this), name).hide(); - getShowLink($(this), name).show(); - getMethodPanelClassSel($(this), name).hide(); - }); - - $('a.show-methods.' + name).click(function() { - var w = getContent($(this)); - w.show(); - getHideLink($(this), name).show(); - getShowLink($(this), name).hide(); - showPanel(getPanelName($(this))); - getMethodPanelClassSel($(this), name).show(); - }); - - if (hide) { - $('a.hide-methods.' + name).click(); - } else { - $('a.show-methods.' + name).click(); - } -} - -function getHashForMethod(element) { - return element.attr('hash-for-method'); -} - -function getPanelName(element) { - return element.attr('panel-name'); -} - -function showPanel(panelName) { - $('.panel').hide(); - var panel = $('.panel[panel-name="' + panelName + '"]'); - panel.show(); -} - -function showMethod(element) { - var hashTag = getHashForMethod(element); - var panelName = getPanelName(element); - showPanel(panelName); - var current = document.location.href; - var base = current.substring(0, current.indexOf('#')) - document.location.href = base + '#' + hashTag; - var newPosition = $(document).scrollTop() - 65; - $(document).scrollTop(newPosition); -} - -function drawTable() { - for (var i = 0; i < suiteTableInitFunctions.length; i++) { - window[suiteTableInitFunctions[i]](); - } - - for (var k in window.suiteTableData) { - var v = window.suiteTableData[k]; - var div = v.tableDiv; - var data = v.tableData - var table = new google.visualization.Table(document.getElementById(div)); - table.draw(data, { - showRowNumber : false - }); - } -} diff --git a/test-output/testng-results.xml b/test-output/testng-results.xml deleted file mode 100644 index 371992f..0000000 --- a/test-output/testng-results.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/test-output/testng.css b/test-output/testng.css deleted file mode 100644 index 5124ba8..0000000 --- a/test-output/testng.css +++ /dev/null @@ -1,9 +0,0 @@ -.invocation-failed, .test-failed { background-color: #DD0000; } -.invocation-percent, .test-percent { background-color: #006600; } -.invocation-passed, .test-passed { background-color: #00AA00; } -.invocation-skipped, .test-skipped { background-color: #CCCC00; } - -.main-page { - font-size: x-large; -} - diff --git a/test-output/xml/com.essa.testSuite.Test_Login_results.xml b/test-output/xml/com.essa.testSuite.Test_Login_results.xml deleted file mode 100644 index e90c024..0000000 --- a/test-output/xml/com.essa.testSuite.Test_Login_results.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/test-output/发布团购商品/publishGroupPurchase.html b/test-output/发布团购商品/publishGroupPurchase.html deleted file mode 100644 index c1db28c..0000000 --- a/test-output/发布团购商品/publishGroupPurchase.html +++ /dev/null @@ -1,114 +0,0 @@ - - -TestNG: publishGroupPurchase - - - - - - - - -

publishGroupPurchase

- - - - - - - - - - - -
Tests passed/Failed/Skipped:7/0/0
Started on:Sun Sep 30 17:47:44 CST 2018
Total time:113 seconds (113094 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
SkuCategoryManagerCongfig
Test class: com.essa.testSuite.TestGroupPurchase
Test method: 配置商品类目经理
5com.essa.testSuite.TestGroupPurchase@11a26533
auditOriginal
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 原厂商品审核
14com.essa.testSuite.TestAddOriginalGoods@b5e5354
getSkuNo
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 去商品库获取添加的sku编号
2com.essa.testSuite.TestAddOriginalGoods@b5e5354
isPublish
Test class: com.essa.testSuite.TestGroupPurchase
Test method: 检查团购是否发布成功
4com.essa.testSuite.TestGroupPurchase@11a26533
publishGroupPurchase
Test class: com.essa.testSuite.TestGroupPurchase
Test method: 发布团购
27com.essa.testSuite.TestGroupPurchase@11a26533
toAddOriginalGoodsPage
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 原厂商品建档
29com.essa.testSuite.TestAddOriginalGoods@b5e5354
updatePic
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 更新图片
13com.essa.testSuite.TestAddOriginalGoods@b5e5354

- - \ No newline at end of file diff --git a/test-output/发布团购商品/publishGroupPurchase.xml b/test-output/发布团购商品/publishGroupPurchase.xml deleted file mode 100644 index aad35f4..0000000 --- a/test-output/发布团购商品/publishGroupPurchase.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/test-output/发布团购商品/testng-failed.xml b/test-output/发布团购商品/testng-failed.xml deleted file mode 100644 index ce15aeb..0000000 --- a/test-output/发布团购商品/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test-output/成品询价/productInquiry.html b/test-output/成品询价/productInquiry.html deleted file mode 100644 index e5e1066..0000000 --- a/test-output/成品询价/productInquiry.html +++ /dev/null @@ -1,331 +0,0 @@ - - -TestNG: productInquiry - - - - - - - - -

productInquiry

- - - - - - - - - - - -
Tests passed/Failed/Skipped:1/0/1
Started on:Fri Sep 28 11:24:10 CST 2018
Total time:34 seconds (34656 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - -
FAILED CONFIGURATIONS
Test methodExceptionTime (seconds)Instance
setUp
Test class: com.essa.testSuite.TestProductInquiry
org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
-from unknown error: web view not found
-  (Session info: chrome=69.0.3497.92)
-  (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
-Command duration or timeout: 0 milliseconds
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: '4F5EY2X7DB7A4UR', ip: '192.168.1.241', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
-Driver info: org.openqa.selenium.chrome.ChromeDriver
-Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.41.578737 (49da6702b16031..., userDataDir: C:\Users\ADMINI~1\AppData\L...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:60429}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 69.0.3497.92, webStorageEnabled: true}
-Session ID: da1afe504d58fa625211844ee43ef699
-*** Element info: {Using=xpath, value=//*[@id='username']}
-	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
-	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
-	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
-	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
-	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
-	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:421)
-	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:311)
-	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
-	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
-	at com.sun.proxy.$Proxy5.toString(Unknown Source)
-	at com.essa.framework.BasePage.sendKeys(BasePage.java:75)
-	at com.essa.pageObject.LoginPage.login(LoginPage.java:49)
-	at com.essa.pageObject.BaseTest.loginValid(BaseTest.java:56)
-	at com.essa.testSuite.TestProductInquiry.setUp(TestProductInquiry.java:26)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:654)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-... Removed 27 stack frames
Click to show all stack frames -
org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
-from unknown error: web view not found
-  (Session info: chrome=69.0.3497.92)
-  (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
-Command duration or timeout: 0 milliseconds
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: '4F5EY2X7DB7A4UR', ip: '192.168.1.241', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
-Driver info: org.openqa.selenium.chrome.ChromeDriver
-Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.41.578737 (49da6702b16031..., userDataDir: C:\Users\ADMINI~1\AppData\L...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:60429}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 69.0.3497.92, webStorageEnabled: true}
-Session ID: da1afe504d58fa625211844ee43ef699
-*** Element info: {Using=xpath, value=//*[@id='username']}
-	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
-	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
-	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
-	at java.lang.reflect.Constructor.newInstance(Unknown Source)
-	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
-	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
-	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
-	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
-	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
-	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:421)
-	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:311)
-	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
-	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
-	at com.sun.proxy.$Proxy5.toString(Unknown Source)
-	at com.essa.framework.BasePage.sendKeys(BasePage.java:75)
-	at com.essa.pageObject.LoginPage.login(LoginPage.java:49)
-	at com.essa.pageObject.BaseTest.loginValid(BaseTest.java:56)
-	at com.essa.testSuite.TestProductInquiry.setUp(TestProductInquiry.java:26)
-	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
-	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-	at java.lang.reflect.Method.invoke(Unknown Source)
-	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
-	at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
-	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
-	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
-	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
-	at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168)
-	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
-	at org.testng.TestRunner.privateRun(TestRunner.java:648)
-	at org.testng.TestRunner.run(TestRunner.java:505)
-	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
-	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
-	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
-	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
-	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
-	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
-	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
-	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
-	at org.testng.TestNG.runSuites(TestNG.java:1049)
-	at org.testng.TestNG.run(TestNG.java:1017)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:654)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-
5com.essa.testSuite.TestProductInquiry@34f66c96

- - - - - - - - - - - - -
SKIPPED CONFIGURATIONS
Test methodExceptionTime (seconds)Instance
tearDown
Test class: com.essa.testSuite.TestProductInquiry
0com.essa.testSuite.TestProductInquiry@34f66c96

- - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
keywordToCart
Test class: com.buyer.testSuite.TestAddToCart
Test method: 关键字搜索,并将sku加入购物车
20com.buyer.testSuite.TestAddToCart@78b69ec7

- - - - - - - - - - - - -
SKIPPED TESTS
Test methodExceptionTime (seconds)Instance
productInquiry
Test class: com.essa.testSuite.TestProductInquiry
Test method: 成品询价流程
org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
-from unknown error: web view not found
-  (Session info: chrome=69.0.3497.92)
-  (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
-Command duration or timeout: 0 milliseconds
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: '4F5EY2X7DB7A4UR', ip: '192.168.1.241', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
-Driver info: org.openqa.selenium.chrome.ChromeDriver
-Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.41.578737 (49da6702b16031..., userDataDir: C:\Users\ADMINI~1\AppData\L...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:60429}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 69.0.3497.92, webStorageEnabled: true}
-Session ID: da1afe504d58fa625211844ee43ef699
-*** Element info: {Using=xpath, value=//*[@id='username']}
-	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
-	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
-	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
-	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
-	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
-	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:421)
-	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:311)
-	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
-	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
-	at com.sun.proxy.$Proxy5.toString(Unknown Source)
-	at com.essa.framework.BasePage.sendKeys(BasePage.java:75)
-	at com.essa.pageObject.LoginPage.login(LoginPage.java:49)
-	at com.essa.pageObject.BaseTest.loginValid(BaseTest.java:56)
-	at com.essa.testSuite.TestProductInquiry.setUp(TestProductInquiry.java:26)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:654)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-... Removed 27 stack frames
Click to show all stack frames -
org.openqa.selenium.NoSuchWindowException: no such window: target window already closed
-from unknown error: web view not found
-  (Session info: chrome=69.0.3497.92)
-  (Driver info: chromedriver=2.41.578737 (49da6702b16031c40d63e5618de03a32ff6c197e),platform=Windows NT 10.0.17134 x86_64) (WARNING: The server did not provide any stacktrace information)
-Command duration or timeout: 0 milliseconds
-Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:26:55.152Z'
-System info: host: '4F5EY2X7DB7A4UR', ip: '192.168.1.241', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_181'
-Driver info: org.openqa.selenium.chrome.ChromeDriver
-Capabilities {acceptInsecureCerts: false, acceptSslCerts: false, applicationCacheEnabled: false, browserConnectionEnabled: false, browserName: chrome, chrome: {chromedriverVersion: 2.41.578737 (49da6702b16031..., userDataDir: C:\Users\ADMINI~1\AppData\L...}, cssSelectorsEnabled: true, databaseEnabled: false, goog:chromeOptions: {debuggerAddress: localhost:60429}, handlesAlerts: true, hasTouchScreen: false, javascriptEnabled: true, locationContextEnabled: true, mobileEmulationEnabled: false, nativeEvents: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: XP, platformName: XP, rotatable: false, setWindowRect: true, takesHeapSnapshot: true, takesScreenshot: true, unexpectedAlertBehaviour: , unhandledPromptBehavior: , version: 69.0.3497.92, webStorageEnabled: true}
-Session ID: da1afe504d58fa625211844ee43ef699
-*** Element info: {Using=xpath, value=//*[@id='username']}
-	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
-	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
-	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
-	at java.lang.reflect.Constructor.newInstance(Unknown Source)
-	at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
-	at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
-	at org.openqa.selenium.remote.http.JsonHttpResponseCodec.reconstructValue(JsonHttpResponseCodec.java:40)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:80)
-	at org.openqa.selenium.remote.http.AbstractHttpResponseCodec.decode(AbstractHttpResponseCodec.java:44)
-	at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
-	at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
-	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:545)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:319)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElementByXPath(RemoteWebDriver.java:421)
-	at org.openqa.selenium.By$ByXPath.findElement(By.java:361)
-	at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:311)
-	at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69)
-	at org.openqa.selenium.support.pagefactory.internal.LocatingElementHandler.invoke(LocatingElementHandler.java:38)
-	at com.sun.proxy.$Proxy5.toString(Unknown Source)
-	at com.essa.framework.BasePage.sendKeys(BasePage.java:75)
-	at com.essa.pageObject.LoginPage.login(LoginPage.java:49)
-	at com.essa.pageObject.BaseTest.loginValid(BaseTest.java:56)
-	at com.essa.testSuite.TestProductInquiry.setUp(TestProductInquiry.java:26)
-	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
-	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-	at java.lang.reflect.Method.invoke(Unknown Source)
-	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
-	at org.testng.internal.MethodInvocationHelper.invokeMethodConsideringTimeout(MethodInvocationHelper.java:59)
-	at org.testng.internal.Invoker.invokeConfigurationMethod(Invoker.java:458)
-	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:222)
-	at org.testng.internal.Invoker.invokeConfigurations(Invoker.java:142)
-	at org.testng.internal.TestMethodWorker.invokeBeforeClassMethods(TestMethodWorker.java:168)
-	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105)
-	at org.testng.TestRunner.privateRun(TestRunner.java:648)
-	at org.testng.TestRunner.run(TestRunner.java:505)
-	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
-	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
-	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
-	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
-	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
-	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
-	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
-	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
-	at org.testng.TestNG.runSuites(TestNG.java:1049)
-	at org.testng.TestNG.run(TestNG.java:1017)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:654)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-
0com.essa.testSuite.TestProductInquiry@34f66c96

- - \ No newline at end of file diff --git a/test-output/成品询价/productInquiry.xml b/test-output/成品询价/productInquiry.xml deleted file mode 100644 index 5362ae5..0000000 --- a/test-output/成品询价/productInquiry.xml +++ /dev/null @@ -1,67 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/test-output/成品询价/testng-failed.xml b/test-output/成品询价/testng-failed.xml deleted file mode 100644 index fbc5c20..0000000 --- a/test-output/成品询价/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test-output/提交PO-活动商品/sendActivityPO.html b/test-output/提交PO-活动商品/sendActivityPO.html deleted file mode 100644 index 724955e..0000000 --- a/test-output/提交PO-活动商品/sendActivityPO.html +++ /dev/null @@ -1,94 +0,0 @@ - - -TestNG: sendActivityPO - - - - - - - - -

sendActivityPO

- - - - - - - - - - - -
Tests passed/Failed/Skipped:3/0/0
Started on:Mon Sep 03 16:02:24 CST 2018
Total time:84 seconds (84111 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
addSku
Test class: com.buyer.testSuite.TestAddToCart
Test method: 将sku加入购物车
13com.buyer.testSuite.TestAddToCart@20fceaa1
conslidation
Test class: com.buyer.testSuite.TestSendPO
Test method: 开始拼柜
38com.buyer.testSuite.TestSendPO@6dd8e9aa
sendPO
Test class: com.buyer.testSuite.TestSendPO
Test method: 设置贴纸唛头,提交PO
13com.buyer.testSuite.TestSendPO@6dd8e9aa

- - \ No newline at end of file diff --git a/test-output/提交PO-活动商品/sendActivityPO.xml b/test-output/提交PO-活动商品/sendActivityPO.xml deleted file mode 100644 index 8c61fa8..0000000 --- a/test-output/提交PO-活动商品/sendActivityPO.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/test-output/提交PO/sendPO.html b/test-output/提交PO/sendPO.html deleted file mode 100644 index 4466ad7..0000000 --- a/test-output/提交PO/sendPO.html +++ /dev/null @@ -1,99 +0,0 @@ - - -TestNG: sendPO - - - - - - - - -

sendPO

- - - - - - - - - - - -
Tests passed/Failed/Skipped:4/0/0
Started on:Tue Oct 23 15:20:52 CST 2018
Total time:95 seconds (95783 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
addSku
Test class: com.buyer.testSuite.TestAddToCart
Test method: 将sku加入购物车
8com.buyer.testSuite.TestAddToCart@4de69ef7
conslidation
Test class: com.buyer.testSuite.TestSendPO
Test method: 开始拼柜
28com.buyer.testSuite.TestSendPO@6c615156
productInquiry
Test class: com.essa.testSuite.TestProductInquiry
Test method: 成品询价流程
16com.essa.testSuite.TestProductInquiry@2ebbddfb
sendPO
Test class: com.buyer.testSuite.TestSendPO
Test method: 设置贴纸唛头,提交PO
17com.buyer.testSuite.TestSendPO@6c615156

- - \ No newline at end of file diff --git a/test-output/提交PO/sendPO.xml b/test-output/提交PO/sendPO.xml deleted file mode 100644 index dcbda75..0000000 --- a/test-output/提交PO/sendPO.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/test-output/提交PO/testng-failed.xml b/test-output/提交PO/testng-failed.xml deleted file mode 100644 index 65c5414..0000000 --- a/test-output/提交PO/testng-failed.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/test-output/新增原厂商品/addOriginalGoods.html b/test-output/新增原厂商品/addOriginalGoods.html deleted file mode 100644 index 4d43fe1..0000000 --- a/test-output/新增原厂商品/addOriginalGoods.html +++ /dev/null @@ -1,99 +0,0 @@ - - -TestNG: addOriginalGoods - - - - - - - - -

addOriginalGoods

- - - - - - - - - - - -
Tests passed/Failed/Skipped:4/0/0
Started on:Tue Oct 23 15:34:40 CST 2018
Total time:69 seconds (69357 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
auditOriginal
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 原厂商品审核
14com.essa.testSuite.TestAddOriginalGoods@74462b00
getSkuNo
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 去商品库获取添加的sku编号
2com.essa.testSuite.TestAddOriginalGoods@74462b00
toAddOriginalGoodsPage
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 原厂商品建档
29com.essa.testSuite.TestAddOriginalGoods@74462b00
updatePic
Test class: com.essa.testSuite.TestAddOriginalGoods
Test method: 更新图片
14com.essa.testSuite.TestAddOriginalGoods@74462b00

- - \ No newline at end of file diff --git a/test-output/新增原厂商品/addOriginalGoods.xml b/test-output/新增原厂商品/addOriginalGoods.xml deleted file mode 100644 index 0392296..0000000 --- a/test-output/新增原厂商品/addOriginalGoods.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/test-output/新增原厂商品/testng-failed.xml b/test-output/新增原厂商品/testng-failed.xml deleted file mode 100644 index 70f5fb7..0000000 --- a/test-output/新增原厂商品/testng-failed.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/test-output/新增市场商品/addMarketGoods.html b/test-output/新增市场商品/addMarketGoods.html deleted file mode 100644 index bdea896..0000000 --- a/test-output/新增市场商品/addMarketGoods.html +++ /dev/null @@ -1,94 +0,0 @@ - - -TestNG: addMarketGoods - - - - - - - - -

addMarketGoods

- - - - - - - - - - - -
Tests passed/Failed/Skipped:3/0/0
Started on:Sun Sep 30 17:44:43 CST 2018
Total time:68 seconds (68659 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
addMarketGoods
Test class: com.essa.testSuite.TestAddMarketGoods
Test method: 市场商品建档
37com.essa.testSuite.TestAddMarketGoods@1b93ade2
auditMarketGoods
Test class: com.essa.testSuite.TestAddMarketGoods
Test method: 市场商品审核
16com.essa.testSuite.TestAddMarketGoods@1b93ade2
toMarketGoodsRelesePage
Test class: com.essa.testSuite.TestAddMarketGoods
Test method: 进入市场商品发布列表,选择采购商
5com.essa.testSuite.TestAddMarketGoods@1b93ade2

- - \ No newline at end of file diff --git a/test-output/新增市场商品/addMarketGoods.xml b/test-output/新增市场商品/addMarketGoods.xml deleted file mode 100644 index 10224ae..0000000 --- a/test-output/新增市场商品/addMarketGoods.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/test-output/新增市场商品/testng-failed.xml b/test-output/新增市场商品/testng-failed.xml deleted file mode 100644 index 1e07fb8..0000000 --- a/test-output/新增市场商品/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test-output/添加SKU到购物车/buyerRegister.html b/test-output/添加SKU到购物车/buyerRegister.html deleted file mode 100644 index c89646e..0000000 --- a/test-output/添加SKU到购物车/buyerRegister.html +++ /dev/null @@ -1,84 +0,0 @@ - - -TestNG: buyerRegister - - - - - - - - -

buyerRegister

- - - - - - - - - - - -
Tests passed/Failed/Skipped:1/0/0
Started on:Fri Aug 31 16:16:24 CST 2018
Total time:25 seconds (25249 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
keywordToCart
Test class: com.buyer.testSuite.TestAddToCart
Test method: 关键字搜索,并将sku加入购物车
16com.buyer.testSuite.TestAddToCart@33c31eea

- - \ No newline at end of file diff --git a/test-output/添加SKU到购物车/buyerRegister.xml b/test-output/添加SKU到购物车/buyerRegister.xml deleted file mode 100644 index cc5159a..0000000 --- a/test-output/添加SKU到购物车/buyerRegister.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - - diff --git a/test-output/添加SKU到购物车/testng-failed.xml b/test-output/添加SKU到购物车/testng-failed.xml deleted file mode 100644 index 5fa5e07..0000000 --- a/test-output/添加SKU到购物车/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/test-output/采购商注册/RegisterBuyer.html b/test-output/采购商注册/RegisterBuyer.html deleted file mode 100644 index b5f011c..0000000 --- a/test-output/采购商注册/RegisterBuyer.html +++ /dev/null @@ -1,89 +0,0 @@ - - -TestNG: RegisterBuyer - - - - - - - - -

RegisterBuyer

- - - - - - - - - - - -
Tests passed/Failed/Skipped:2/0/0
Started on:Tue Aug 28 10:52:45 CST 2018
Total time:35 seconds (35688 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
genrateCode
Test class: com.essa.testSuite.TestGenrateCode
5com.essa.testSuite.TestGenrateCode@15fa3089
register
Test class: com.buyer.testSuite.TestRegister
11com.buyer.testSuite.TestRegister@2324676a

- - \ No newline at end of file diff --git a/test-output/采购商注册/RegisterBuyer.xml b/test-output/采购商注册/RegisterBuyer.xml deleted file mode 100644 index 134313c..0000000 --- a/test-output/采购商注册/RegisterBuyer.xml +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/test-output/采购商注册/buyerRegister.html b/test-output/采购商注册/buyerRegister.html deleted file mode 100644 index b4bda3b..0000000 --- a/test-output/采购商注册/buyerRegister.html +++ /dev/null @@ -1,143 +0,0 @@ - - -TestNG: buyerRegister - - - - - - - - -

buyerRegister

- - - - - - - - - - - -
Tests passed/Failed/Skipped:1/1/0
Started on:Sun Sep 30 17:50:13 CST 2018
Total time:35 seconds (35407 ms)
Included groups:
Excluded groups:

-(Hover the method name to see the test class name)

- - - - - - - - - - - - -
FAILED TESTS
Test methodExceptionTime (seconds)Instance
register
Test class: com.buyer.testSuite.TestRegister
Test method: 填写注册采购商信息,注册采购商
java.lang.AssertionError: The following asserts failed:
-	采购商注册失败了! expected [true] but found [false]
-	at com.buyer.testSuite.TestRegister.register(TestRegister.java:39)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:662)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-... Removed 23 stack frames
Click to show all stack frames -
java.lang.AssertionError: The following asserts failed:
-	采购商注册失败了! expected [true] but found [false]
-	at org.testng.asserts.SoftAssert.assertAll(SoftAssert.java:43)
-	at com.buyer.testSuite.TestRegister.register(TestRegister.java:39)
-	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
-	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
-	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
-	at java.lang.reflect.Method.invoke(Unknown Source)
-	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
-	at org.testng.internal.Invoker.invokeMethod(Invoker.java:583)
-	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:719)
-	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:989)
-	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
-	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
-	at org.testng.TestRunner.privateRun(TestRunner.java:648)
-	at org.testng.TestRunner.run(TestRunner.java:505)
-	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
-	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
-	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
-	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
-	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
-	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
-	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
-	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
-	at org.testng.TestNG.runSuites(TestNG.java:1049)
-	at org.testng.TestNG.run(TestNG.java:1017)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:662)
-	at swing.SwingMain$9$1.doInBackground(SwingMain.java:1)
-	at javax.swing.SwingWorker$1.call(Unknown Source)
-	at java.util.concurrent.FutureTask.run(Unknown Source)
-	at javax.swing.SwingWorker.run(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
-	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
-	at java.lang.Thread.run(Unknown Source)
-
16com.buyer.testSuite.TestRegister@7fc399fa

- - - - - - - - - - - - -
PASSED TESTS
Test methodExceptionTime (seconds)Instance
genrateCode
Test class: com.essa.testSuite.TestGenrateCode
Test method: 生成采购商注册邀请码
5com.essa.testSuite.TestGenrateCode@28e0209a

- - \ No newline at end of file diff --git a/test-output/采购商注册/buyerRegister.xml b/test-output/采购商注册/buyerRegister.xml deleted file mode 100644 index ce78e60..0000000 --- a/test-output/采购商注册/buyerRegister.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - diff --git a/test-output/采购商注册/testng-failed.xml b/test-output/采购商注册/testng-failed.xml deleted file mode 100644 index 03bb0be..0000000 --- a/test-output/采购商注册/testng-failed.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - - - - - - - - - - - -- libgit2 0.21.2