-
-
Save lfryc/3612628 to your computer and use it in GitHub Desktop.
test file that contains the javascript test functions
This file contains hidden or 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
public class lukas | |
{ | |
@drone | |
browser initiation... | |
@Test | |
public void chaitu() | |
{ | |
TestHandler.runQUnitMethod(browser, "lukas", "chaitu"); | |
} | |
@Test | |
public void enlighten() | |
{ | |
TestHandler.runQUnitMethod(browser, "lukas", "enlighten"); | |
} | |
} |
This file contains hidden or 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
module("lukas"); | |
test("chaitu",function(){ | |
ok(true); | |
}); | |
test("enlighten",function(){ | |
equal("1","1","you are right"); | |
ok(true); | |
}); |
This file contains hidden or 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
class TestHandler { | |
static void runQUnitMethod(WebDriver browser, String className, String methodName) { | |
String url = ...; // compose URL | |
browser.get("..."); | |
// wait and read results | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment