Search
 
 

Display results as :
 


Rechercher Advanced Search

Latest topics
» FlexMonkium Download Not available under Gorillalogic site
Thu Dec 08, 2016 5:40 pm by bhanu.praveen

» Selenium Script issue
Tue Dec 06, 2016 9:48 pm by njain213

» Difference between QTP, Selenium and Silk test
Tue Dec 06, 2016 7:58 pm by jessicacyrus1

» Where does selenium script pick browser from
Tue Dec 06, 2016 1:52 pm by janbaskt

» Safari throws an HTTP ERROR: 404
Tue Dec 06, 2016 1:51 pm by janbaskt

» Access Denied Error in Selenium RC
Tue Dec 06, 2016 1:51 pm by janbaskt

» Automating Flex application through selenium webdriver
Fri Dec 02, 2016 2:06 pm by abhinay.krs

» Starting with Selenium, what is Selenium?
Mon Nov 28, 2016 4:00 pm by Foma

» Getting started with Selenium
Mon Nov 28, 2016 3:23 pm by Rebbelx

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Getting started with Selenium RC/Eclipse (Java)

View previous topic View next topic Go down

Getting started with Selenium RC/Eclipse (Java)

Post by Aurum on Thu Mar 17, 2011 6:22 am

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:

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

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum