diff --git a/LicenseProvider.dll b/LicenseProvider.dll new file mode 100644 index 0000000..011b1d5 Binary files /dev/null and b/LicenseProvider.dll differ diff --git a/README.md b/README.md index fd03950..653e9b1 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,16 @@ hahahahahahha hahahahahahaha hahahahahahahhahahaha hahahahahahahahhahahahahahahh + +QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ + + + + + + + + + + +11111111111111111111111111111111111111 \ No newline at end of file diff --git "a/RTM\350\264\246\345\217\267.txt" "b/RTM\350\264\246\345\217\267.txt" new file mode 100644 index 0000000..5c20064 --- /dev/null +++ "b/RTM\350\264\246\345\217\267.txt" @@ -0,0 +1,25 @@ +RoadmapWeb ·¼ˆWeb£¬ÌṩëŠÍ¶°Ù¼Ò˜·Ê¹Óà rmweb.rtm.net 80 ÐÇ“ÃËRTM-ááÌ¨Ž¤Ì– (QA) +StarFrontWeb1 ÐÇ“ÃË Ç°Ì¨1-Ö± I starweb01.rtm.net 80 QA-CN +StarFrontWeb2 ÐÇ“ÃË Ç°Ì¨2 starweb02.rtm.net 80 áą́ʹÓÃÕß CNQA +BackOffice ¹«Ë¾áą́ backoffice.rtm.net80 Ù€×À½›Àí 1010 +IBOffice ´úÀíáą́ iboffice.rtm.net80 ºÉ¹Ù 2030 +DealerWeb ºÉ¹ÙWebϵ½y dealer.rtm.net 80 2031 +ServerWebTool ËÅ·þÆ÷Web¹¤¾ß ServerWebTool.rtm.net 8011 2032 + 2033 + ˜ŒÊÖ 3030 + 3031 + 3032 + 3033 + 3034 + 3035 + 3036 + 3037 + + ÐÇ“ÃËRTM (QA) + QA-CN + ×î¸ß´úÀí "Ž¤Ì–:A001 +AgentCode:1111" + Ò»°ã´úÀí N/A + Íæ¼Ò C001~C050 ¬F½ð + C100~C150 ÐÅÓà + diff --git a/acfun.java b/acfun.java new file mode 100644 index 0000000..1df600a --- /dev/null +++ b/acfun.java @@ -0,0 +1,77 @@ +package com.example.tests; + +import java.util.regex.Pattern; +import java.util.concurrent.TimeUnit; +import org.testng.annotations.*; +import static org.testng.Assert.*; +import org.openqa.selenium.*; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.Select; + +public class Acfun { + private WebDriver driver; + private String baseUrl; + private boolean acceptNextAlert = true; + private StringBuffer verificationErrors = new StringBuffer(); + + @BeforeClass(alwaysRun = true) + public void setUp() throws Exception { + driver = new FirefoxDriver(); + baseUrl = "http://www.acfun.cn/"; + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + } + + @Test + public void testAcfun() throws Exception { + driver.get(baseUrl + "/"); + driver.findElement(By.linkText("登录/注册")).click(); + driver.findElement(By.id("ipt-account-login")).clear(); + driver.findElement(By.id("ipt-account-login")).sendKeys("18170737052"); + driver.findElement(By.id("ipt-pwd-login")).clear(); + driver.findElement(By.id("ipt-pwd-login")).sendKeys("quan112358"); + driver.findElement(By.linkText("登录")).click(); + driver.findElement(By.linkText("退出")).click(); + } + + @AfterClass(alwaysRun = true) + public void tearDown() throws Exception { + driver.quit(); + String verificationErrorString = verificationErrors.toString(); + if (!"".equals(verificationErrorString)) { + fail(verificationErrorString); + } + } + + private boolean isElementPresent(By by) { + try { + driver.findElement(by); + return true; + } catch (NoSuchElementException e) { + return false; + } + } + + private boolean isAlertPresent() { + try { + driver.switchTo().alert(); + return true; + } catch (NoAlertPresentException e) { + return false; + } + } + + private String closeAlertAndGetItsText() { + try { + Alert alert = driver.switchTo().alert(); + String alertText = alert.getText(); + if (acceptNextAlert) { + alert.accept(); + } else { + alert.dismiss(); + } + return alertText; + } finally { + acceptNextAlert = true; + } + } +} diff --git a/ddd.txt b/ddd.txt new file mode 100644 index 0000000..58e8239 --- /dev/null +++ b/ddd.txt @@ -0,0 +1,6 @@ +ddddddddddddddddddddddddddd + + + + +hahfahfkahskdjfhakdshfkjasf \ No newline at end of file diff --git a/git.png b/git.png new file mode 100644 index 0000000..34c877d Binary files /dev/null and b/git.png differ diff --git a/lambor1.java b/lambor1.java new file mode 100644 index 0000000..dd0c725 --- /dev/null +++ b/lambor1.java @@ -0,0 +1,78 @@ +package com.example.tests; + +import java.util.regex.Pattern; +import java.util.concurrent.TimeUnit; +import org.testng.annotations.*; +import static org.testng.Assert.*; +import org.openqa.selenium.*; +import org.openqa.selenium.firefox.FirefoxDriver; +import org.openqa.selenium.support.ui.Select; + +public class Lambor1 { + private WebDriver driver; + private String baseUrl; + private boolean acceptNextAlert = true; + private StringBuffer verificationErrors = new StringBuffer(); + + @BeforeClass(alwaysRun = true) + public void setUp() throws Exception { + driver = new FirefoxDriver(); + baseUrl = "http://lamborweb01.rtm.net/"; + driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); + } + + @Test + public void testLambor1() throws Exception { + driver.get(baseUrl + "/"); + driver.findElement(By.linkText("登录")).click(); + driver.findElement(By.linkText("登录")).click(); + // ERROR: Caught exception [Error: Dom locators are not implemented yet!] + // ERROR: Caught exception [Error: Dom locators are not implemented yet!] + // ERROR: Caught exception [Error: Dom locators are not implemented yet!] + // ERROR: Caught exception [Error: Dom locators are not implemented yet!] + driver.findElement(By.linkText("登录")).click(); + driver.findElement(By.linkText("登录")).click(); + } + + @AfterClass(alwaysRun = true) + public void tearDown() throws Exception { + driver.quit(); + String verificationErrorString = verificationErrors.toString(); + if (!"".equals(verificationErrorString)) { + fail(verificationErrorString); + } + } + + private boolean isElementPresent(By by) { + try { + driver.findElement(by); + return true; + } catch (NoSuchElementException e) { + return false; + } + } + + private boolean isAlertPresent() { + try { + driver.switchTo().alert(); + return true; + } catch (NoAlertPresentException e) { + return false; + } + } + + private String closeAlertAndGetItsText() { + try { + Alert alert = driver.switchTo().alert(); + String alertText = alert.getText(); + if (acceptNextAlert) { + alert.accept(); + } else { + alert.dismiss(); + } + return alertText; + } finally { + acceptNextAlert = true; + } + } +}