Getting started with Selenium RC/Eclipse (Java)
Page 1 of 1 • Share •
Getting started with Selenium RC/Eclipse (Java)
Hello, colleagues!
Please help me to get started. It is very confusing because there are
newer version of Selenium RC, but all tutorials are for old ones.
I have set up Eclipse as http://img21.imageshack.us/f/eclips.png/
1) Can you please tell me whether the set up is correct? Which libraries I don't need? I will be doing very simple test cases (open/verify/close).
2) I have the following code from IDE which I would like to import to Eclipse:
Can you please tell me the step by step instructions of how to create a class (test case) with this code in the Eclipse and run this simple test case?
Thanks in advance.
Please help me to get started. It is very confusing because there are
newer version of Selenium RC, but all tutorials are for old ones.
I have set up Eclipse as http://img21.imageshack.us/f/eclips.png/
1) Can you please tell me whether the set up is correct? Which libraries I don't need? I will be doing very simple test cases (open/verify/close).
2) I have the following code from IDE which I would like to import to Eclipse:
- Code:
package com.example.tests;
import com.thoughtworks.selenium.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.util.regex.Pattern;
public class Untitled extends SeleneseTestCase {
@Before
public void setUp() throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://en.wikipedia.org/");
selenium.start();
}
@Test
public void testUntitled() throws Exception {
selenium.open("/wiki/Boeing_XP-15");
verifyTrue(selenium.isTextPresent("aircraft"));
}
@After
public void tearDown() throws Exception {
selenium.stop();
}
}
Can you please tell me the step by step instructions of how to create a class (test case) with this code in the Eclipse and run this simple test case?
Thanks in advance.
Aurum- Posts: 1
Join date: 2011-03-17
Similar topics» Lets Get this Party Started
» السلام عليكم ورحمة الله الان برنامج charles3.6.5.java.carack بين ايديكم وعلى اكثر من سيرفر
» Getting started with Selenium RC/Eclipse (Java)
» [Help] How to use Selenium RC with Java Eclipse IDE
» Selenium RC "java.lang.RuntimeException: Firefox couldn't be found in the path!" problem
» السلام عليكم ورحمة الله الان برنامج charles3.6.5.java.carack بين ايديكم وعلى اكثر من سيرفر
» Getting started with Selenium RC/Eclipse (Java)
» [Help] How to use Selenium RC with Java Eclipse IDE
» Selenium RC "java.lang.RuntimeException: Firefox couldn't be found in the path!" problem
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» sample webdriver code for php users
» which standalone server to use
» Dynamic Drop Down Selection
» It is possible to find list of all URL's exist in any web page in selenium ide
» It is possible to compare 2 same images in selenium IDE.
» how to compare 2 ULR's which is exist in same web page (View page source).
» Web Driver: Unable to click a link present inside the frame of a frameset
» Help me to get dynamicaly loaded options of dropdown in Selenium RC -Junit test case