Hi,

I am new to Selenium RC using Java + Eclipse(Indigo) + TestNG (All having
latest vesrion)

I have recoreded test case and export it as JUnit4 Remote Control(As it has
@Before and @After; which is absent in JUnit4 Remote Control TestNG Export.
I donot know why it is so?)

Configure TestNG in Eclipse.

I followed the Step -
1) Created New Java Code.
2) Added the latest jar files for TestNG (testng-6.8.jar) and Selenium
RC(selenium-java-2.25.0) Java client and click on Finish button. Start
Selenium Server - selenium-server-standalone-2.25.0.jar
3) Added new class in src.
4) Added below code-
My Code -
package com.example.tests;

import com.thoughtworks.selenium.*;
import org.testng.annotations.*;
import static org.testng.Assert.*;



public class GoogleTest {
private Selenium selenium;
@BeforeClass
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*firefox",
"http://oswego.biz/");
selenium.start();
}

@Test
public void testJUnit4RemoteControl() throws Exception {
selenium.open("/Digitalworkbook_staging/default.aspx?alias=tnf");
selenium.type("id=txtUserName", "admin");
selenium.type("id=txtPassword", "1234");
selenium.click("id=LinkButton1");
selenium.waitForPageToLoad("60000");
}

@AfterClass
public void tearDown() throws Exception {
selenium.stop();
}
}

For above code I have refer -
http://pragmaticqa.co.uk/blog/2008/11/setting-up-selenium-rc-testng-using-eclipse/

It displays error as - Refer attached screenshot


Thanks in advance.

Thanks and Regards,
Shailesh Jagtap.

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to selenium-users@googlegroups.com.
To unsubscribe from this group, send email to selenium-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Bl9yHC80NqsJ.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupselenium-users @
categoriesselenium
postedNov 26, '12 at 11:32a
activeNov 26, '12 at 11:32a
posts1
users1
websiteseleniumhq.org

1 user in discussion

Shailesh: 1 post

People

Translate

site design / logo © 2022 Grokbase