Index: ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java =================================================================== diff -u -r21683 -r21685 --- ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java (.../Delivery.java) (revision 21683) +++ ssts-web/src/test/java/test/forgon/disinfectsystem/selenium/Delivery.java (.../Delivery.java) (revision 21685) @@ -5,6 +5,7 @@ import java.util.List; import org.apache.commons.collections4.CollectionUtils; +import org.apache.log4j.Logger; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import org.openqa.selenium.WebDriver; @@ -22,6 +23,7 @@ import test.forgon.disinfectsystem.selenium.tools.Utils; public class Delivery { + protected Logger logger = Logger.getLogger(this.getClass()); @BeforeMethod public void init() { // 调试时需要打开 @@ -78,6 +80,7 @@ } attempts++; } + logger.debug("尝试打开发货窗口的次数 = " + attempts); assertTrue(windowOpened , "发货窗口没有打开!"); // Utils.retryingFindAndClickBySeleniumAPI(By.linkText(name));