ZIP1729217903264_12306题目.zip 1.91MB

zjxlg666

资源文件列表:

1729217903264_12306题目.zip 大约有6个文件
  1. 12306题目/
  2. 12306题目/TestTemplate.java 1.32KB
  3. 12306题目/功能说明书.docx 1.95MB
  4. 12306题目/提交文件及说明.docx 11.35KB
  5. 12306题目/测试用例模版.xlsx 10.22KB
  6. 12306题目/测试需求文档.docx 13.09KB

资源介绍:

1729217903264_12306题目.zip
import org.apache.commons.io.FileUtils; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.CsvSource; import org.openqa.selenium.*; import org.openqa.selenium.chrome.ChromeDriver; import java.io.File; import java.util.concurrent.TimeUnit; public class TestTemplate { private WebDriver driver; @BeforeEach public void setup() { System.setProperty("webdriver.chrome.driver", "C:\\Users\\86153\\AppData\\Local\\Google\\Chrome\\Application\\chromedriver.exe"); driver = new ChromeDriver(); driver.get("https://www.12306.cn/index/index.html"); driver.manage().window().maximize(); driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); } \\ 请在这里插入JUnit5测试代码 @AfterEach public void teardown() { this.driver.quit(); } private void takeScreenshot(String fileName) { File screenshotFile = ((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE); try { FileUtils.copyFile(screenshotFile, new File(fileName)); } catch (Exception e) { e.printStackTrace(); } } }
100+评论
captcha
    类型标题大小时间
    ZIPlogback的jar包869.01KB6月前
    ZIPIjkPlayer 0.8.0 版本64位的so文件已上传27.83MB6月前
    ZIPhomework1.zip414B6月前
    ZIPjlink v8版本 实测好用3.69MB6月前
    ZIPspring-boot-2.2.x源码13.65MB6月前
    ZIPch10-12.zip3.49KB6月前
    ZIP梦幻西游道人20241021f2.41MB6月前
    ZIP基于pygame的简易游戏框架.zip455.96KB6月前