|
-
Nov 4th, 2009, 10:53 AM
#1
Thread Starter
Frenzied Member
Automated functional testing with WebDriver and jUnit
Being new to Java and all that, I got the hang of jUnit to create unit test for code, and today nutted out to work with webdriver for functional tests.
Was wondering if one can use jUnit for asserting the results of webdriver test results?
Did not look (it's late......kinda last minute thought before hitting the sack), but create a normal jUnit test suite, use webdriver to run tests on the UI, and assert the results with jUnit. Something like that?
If one can do this, did anyone do it? Some simple sample perhaps if you did?
Only "promising" link I got from google seems to be in some blog which seems to be blocked here (China....what's new?)
-
Nov 5th, 2009, 01:56 AM
#2
Thread Starter
Frenzied Member
Re: Automated functional testing with WebDriver and jUnit
Pretty simple it turned out:
Code:
@Test
public void SomeTest() {
WebDriver driver = new FirefoxDriver();
driver.get("https://xxx.xxx.xxx.xxx:8081");
assertEquals("Log on", driver.getTitle());
}
Now I'm stuck with the windows authenticated login that pops up. This is a team build site, from there it got authentication on it now.
-
Nov 12th, 2009, 08:04 AM
#3
Thread Starter
Frenzied Member
Re: Automated functional testing with WebDriver and jUnit
Hey!
Anyone here use WebDriver at all?
Need some help with PageFactories.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|