forked from NetEase/Dagger
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NetEase#21 from andrewleo/master
add self-test and build automated testing process
- Loading branch information
Showing
17 changed files
with
783 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package com.netease.test; | ||
|
||
import org.testng.annotations.AfterClass; | ||
import org.testng.annotations.BeforeClass; | ||
import org.testng.annotations.Test; | ||
|
||
import com.netease.dagger.BrowserEmulator; | ||
|
||
/** | ||
* click的一系列测试 | ||
* @author WeiYating | ||
*/ | ||
public class ClickOperations { | ||
|
||
BrowserEmulator be; | ||
String input = "hello"; | ||
|
||
@BeforeClass | ||
public void doBeforeClass() { | ||
be = new BrowserEmulator(); | ||
CommonFunction.openCaptain(be); | ||
} | ||
|
||
@Test | ||
public void clickOperations() { | ||
CommonFunction.clickOperations(be); | ||
} | ||
|
||
@Test(dependsOnMethods = "clickOperations") | ||
public void clickButton() { | ||
CommonFunction.clickButton(be); | ||
} | ||
|
||
@Test(dependsOnMethods = "clickButton") | ||
public void clickLink() { | ||
CommonFunction.clickLink(be); | ||
} | ||
|
||
@Test(dependsOnMethods = "clickLink") | ||
public void submitForm() { | ||
CommonFunction.submitForm(be, input); | ||
} | ||
|
||
@AfterClass(alwaysRun = true) | ||
public void doAfterClass() { | ||
be.quit(); | ||
} | ||
} |
Oops, something went wrong.