Quality Testing

Quality is delighting customers

Hi All,

Recently I was installed Selenium IDE Add-In in my FF browser and playing different type of applications.

But I want to learn Selenium RC; can any one help me please?

If you have any document on Selenium RC, please share me.

Thanks,
Priya

Views: 181

Replies to This Discussion

Here's (hopefully) an easy path to getting Server installed and running. Assuming you're on Windows platform to keep the instructions simple:

Update Java
Go to http://www.java.com/en/download/index.jsp and check you have the latest version of the Jave Runtime Environment (JRE) on your system. Remember RC is written in Java so to avoid possibke issues keep the JRE on your system up to date.

Create a folder for the RC files
On your local system create a folder called C:\selenium\rc to store the files you're about to download.

Download Remote Control
Head over to http://seleniumhq.org/download/ and grab the latest Selenium RC .zip file. Unzip all folders withinthe .zip into the \rc folder you just created Inside the .zip you'll see a whole bunch of other folders. One is for the RC, called selenium-server just to confuse us, the others are for the particular language you may want to use. The attached .bat file should start Selenium Server for you when you double click it.

Your choice now is of which language to export your IDE generated Selenese tests and write more elaborate scripts in. With that decided you can even create a simple batch file to run those scripts, a crude but simple way to get started.

Mark.
Attachments:
Thanks a lot Mark. This information is more helpful to me. I will install as per your steps mentioned. If any clarification, I will contact you through this group.

I need to learn one open source tool perfectly.

Once again Thanks.


Regards,
Mary
Hi Mark,

While running the selenese script from eclpise/testng, i am getting an error stating -

Could not contact Selenium Server; have you started it on 'localhost:4444' ?

Can you help me out in fixing the issue.

below is the script -

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

public class googletest {
private Selenium selenium;
@BeforeClass
public void setup() {
selenium = new DefaultSelenium("localhost", 4444, "*iexplore", "http://www.google.com");
selenium.start();
}
@Test
public void GoogleSearch(){
selenium.open("http://www.google.com/webhp");
assertEquals("Google",selenium.getTitle());
selenium.type("q", "Selenium OpenQa");
assertEquals("Selenium Openqa", selenium.getValue("q"));
selenium.click("btnG");
selenium.waitForPageToLoad("50000");

}
@AfterClass
public void tearDown(){
selenium.stop();
}
}
Hi ,
If its about RC Doc then i think this is the best one u can get online, directly from the developers of RC
http://seleniumhq.org/docs/05_selenium_rc.html

Regards,
Rakesh.P
Hi Bharat
U get that [couldnot contact selenium server ....] error when u wont start selenium server and start Running Test case from Eclipse ..
Open the command prompt and browse to seleniym Remote control directory..below line assumes SeleniumRC to be located under C:\ Drive ..hence slenium server can be started using the following command

C:\selenium-remote-control-1.0.1\selenium-server-1.0.1>java -jar selenium-server.jar
This will start selenium server at port 4444 if u want to change the port then use
java -jar selenium-server.jar -port 4466
Hi Priya,

i am also new,i follow the below steps ,RC working fine , please if any mistake let me know

1.first you record the script in IDE(JAVA)
2.install Java
3.Install Eclipse Ide
4.add selenium jar files to Eclipse ide
5.In IDE record script copy and paste the Eclipse and give proper class names (Care full this part )
6.Select run button in Eclipse ide
7.Automatically launch the IE

Regards,
malli

RSS

TTWT Magazine


Advertisement

Advertisement

Advertisement

Advertisement

© 2019   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service