The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:
Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Testing Tools >> Selenium

Pages: 1 | 2 | >> (show all)
vijjusab
Junior Member


Reged: 02/18/04
Posts: 3
Loc: India
How to install Selenium IDE
      #397886 - 07/16/07 04:58 AM

Hi All,

How to install Selenium IDE?
on accessing Selenium IDE download page, it's displaying the URL for diff versions of firefox extension.

I've selected version 0.8.7, the following file was downloaded: selenium-ide-0.8.7.xpi

on trying to install the same, windows is not recognizing the file extension, thereby it's aborting the installation.

Pl. tell me how to proceed with Selenium IDE installation...


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: vijjusab]
      #397917 - 07/16/07 05:50 AM

I also have a question, it is possible to use Selenium under IE too? There is only a Firefox extension available to download.

Post Extras: Print Post   Remind Me!   Notify Moderator  
zelm
Advanced Member


Reged: 07/20/01
Posts: 406
Loc: Hamburg
Re: How to install Selenium IDE [Re: Wizzard]
      #397945 - 07/16/07 06:42 AM

Quote:

it is possible to use Selenium under IE too?



Not Selenium IDE but Selenium RC

Edited by zelm (07/16/07 06:43 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: zelm]
      #397949 - 07/16/07 06:56 AM

Thank you very much. But, how can I install it? I cannot find it out.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Juleo_2607
Advanced Member


Reged: 05/11/05
Posts: 442
Loc: Pune
Re: How to install Selenium IDE [Re: Wizzard]
      #398213 - 07/17/07 12:20 AM

You need to:
1. Install Mozilla Firefox first.
2. Go to openqa.org and click on the Selenium IDE link.
3. Click on the latest installable version available and just wait for it to install.
4. You can access Selenium IDE in Mozilla from Tools-> Selenium IDE.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: Juleo_2607]
      #398650 - 07/18/07 12:26 AM

Thank you very much for detailed installation procedure description I know how to install the Firefox extension.

I wanted to ask how to use Selenium RC. Sorry for the misunderstanding.


Post Extras: Print Post   Remind Me!   Notify Moderator  
PredatoR
Newbie


Reged: 07/19/07
Posts: 3
Loc: Kiev, Ukraine
Re: How to install Selenium IDE [Re: Wizzard]
      #399194 - 07/19/07 06:41 AM

Wizzard,

For example for java:

1.Download Selenium RC from openqa site.
2.Start any java IDE.
3.Create new project.
4.Add to your project classpath selenium-java-client-driver.jar
5.Record your test to from Selenium IDE and translate it to java code (Selenium IDE has automation translation feature)
6.Look for example tests in \selenium-remote-control-0.9.0\java\source\test\java\com\thoughtworks\selenium
and create your test using examples.
7.Run selenium server from console (You need initialized java environment variable to do this) like: java -jar selenium-server -proxyInjectionMode.
8.Run your test in IDE.
9.Enjoy...


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: PredatoR]
      #399201 - 07/19/07 06:54 AM

Wow, thank you very much, I think I got the point

Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: Wizzard]
      #399448 - 07/20/07 03:22 AM

Just one more question. I installed MS Visual C# Express, copies the code from Selenium IDE in C# code into a command line application in C# Express, added all the libraries into project and run. But it does not seem to do something in the browser window. Why?

Selenium server is running to...

It causes internal server error

Edited by Wizzard (07/20/07 04:27 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
PredatoR
Newbie


Reged: 07/19/07
Posts: 3
Loc: Kiev, Ukraine
Re: How to install Selenium IDE [Re: PredatoR]
      #399895 - 07/23/07 01:36 AM

Wizzard,

Quote:

create your test using examples



Code generated by Selenium IDE isn't a complete test. You need to implement some methods to your source code in order to make Selenium works. For example code in Java:
Code:

import org.openqa.selenium.server.*;
import com.thoughtworks.selenium.*;

public class createSurveyTest extends TestCase {
//Test case it's from junit package, don't now how it will look in C# that's why you need to see examples.
public void startServer(String url) throws Exception {
selenium = new DefaultSelenium("localhost",SeleniumServer.getDefaultPort(), "*pifirefox", url);
selenium.start();
}

protected void stopServer() throws Exception {
selenium.stop();
}

public void test() throws Throwable {
startServer("http://example.com");
//Test code generated from Selenium IDE
stopServer();
}
}


This Code perfectly work in java.
Code in C# will be almost the same.

Edited by PredatoR (07/23/07 01:47 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: PredatoR]
      #399928 - 07/23/07 03:20 AM

Well, I found out that the generated script is not a complete test. I have a C# script like this:

using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;

namespace SeleniumTests
{
[TestFixture]
public class NewTest
{
private ISelenium selenium;
private StringBuilder verificationErrors;

[STAThread]
static void Main()
{
NewTest MyTest = new NewTest();
MyTest.SetupTest();
MyTest.TheNewTest();
MyTest.TeardownTest();
}

[SetUp]
public void SetupTest
{
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://localhost:4444");
selenium.Start();
verificationErrors = new StringBuilder();
}

[TearDown]
public void TeardownTest()
{
try
{
selenium.Stop();
}
catch (Exception)
{
// Ignore errors if unable to close the browser
}
Assert.AreEqual("", verificationErrors.ToString());
}

[Test]
public void TheNewTest()
{
selenium.Open("/ebintranet/do/start");
selenium.SelectFrame("contentFrame");
selenium.Type("login", "admin");
selenium.Type("password", "password");
selenium.Click("//button[@type='submit']");
selenium.WaitForPageToLoad("30000");
selenium.SelectFrame("relative=up");
selenium.SelectFrame("menuFrame");
for (int second = 0; ; second++)
{
if (second >= 60) Assert.Fail("timeout");
try
{
if (selenium.IsElementPresent("itemKlienti")) break;
}
catch (Exception)
{ }
Thread.Sleep(1000);
}
selenium.Click("itemKlienti");
selenium.Click("itemZiadosti");
selenium.Click("itemZamestnanci");
selenium.Click("itemNastavenia");
selenium.Click("itemKlient");
selenium.Click("itemLogout");
selenium.WaitForPageToLoad("30000");
}
}
}

and it does not work. I also tried your Java code in Eclipse and when I run it like an application, I got an error: Selection does not contain a main type.

Edited by Wizzard (07/23/07 03:21 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
PredatoR
Newbie


Reged: 07/19/07
Posts: 3
Loc: Kiev, Ukraine
Re: How to install Selenium IDE [Re: Wizzard]
      #399969 - 07/23/07 05:20 AM

Wizzard,

I don't now why your code doesn't work because I have no Visual Studio at work and I never wrote in C# but if C# work's like Java i mean that execution start's from main method then your don't need main method to start your test because it's not a common program it's a JUnit test case or NUnit test case for C# that's explains why you get an error when run my test in Eclipse like application. Well, that's all lyrics. In fact, like I sad, to write your first test your need to see examples. They can be found here: selenium-remote-control-0.9.0\dotnet\source\src\IntegrationTests

Example test in C#:

using System;
using NUnit.Framework;
using Selenium;

namespace ThoughtWorks.Selenium.IntegrationTests
{
[TestFixture]
public class GoogleTest
{
private ISelenium selenium;

[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost", 4444, "*firefox", "http://www.google.com");
selenium.Start();
}

[TearDown]
public void TeardownTest()
{
selenium.Stop();
}

[Test]
public void GoogleSearch()
{
selenium.Open("http://www.google.com/webhp");
Assert.AreEqual("Google", selenium.GetTitle());
selenium.Type("q", "Selenium OpenQA");
Assert.AreEqual("Selenium OpenQA", selenium.GetValue("q"));
selenium.Click("btnG");
selenium.WaitForPageToLoad("5000");
Assert.IsTrue(selenium.IsTextPresent("www.openqa.org"));
Assert.AreEqual("Selenium OpenQA - Google Search", selenium.GetTitle());
}
}
}


Same test in Java:

package com.thoughtworks.selenium;

import junit.framework.*;

import org.openqa.selenium.server.*;

public class GoogleTest extends TestCase
{
private Selenium selenium;

public void setUp() throws Exception {
String url = "http://www.google.com";
selenium = new DefaultSelenium("localhost", SeleniumServer.getDefaultPort(), "*firefox", url);
selenium.start();
}

protected void tearDown() throws Exception {
selenium.stop();
}

public void testGoogleTestSearch() throws Throwable {
selenium.open("http://www.google.com/webhp");
assertEquals("Google", selenium.getTitle());
selenium.type("q", "Selenium OpenQA");
assertEquals("Selenium OpenQA", selenium.getValue("q"));
String s = selenium.getLogMessages();
System.out.println("The log messages are the following:\n" + s);
selenium.click("btnG");
selenium.waitForPageToLoad("5000");
assertEquals("Selenium OpenQA - Google Search", selenium.getTitle());
}
}


Both of them must work if you will do all like I sad in my first post.

Update: Just try second test in Java that I give in my post. I just created new project then created new class file and then just copy-paste test into it. Work's fine...

Edited by PredatoR (07/23/07 05:44 AM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
Wizzard
Member


Reged: 11/14/06
Posts: 123
Loc: Bratislava, Slovakia, EU
Re: How to install Selenium IDE [Re: PredatoR]
      #400233 - 07/24/07 03:33 AM

Well, thank you very much. After some corrections, it works in C# like before, I just still see that Internal server error 500...

Post Extras: Print Post   Remind Me!   Notify Moderator  
zainz
Newbie


Reged: 08/07/07
Posts: 1
Re: How to install Selenium IDE [Re: Wizzard]
      #404570 - 08/07/07 05:42 AM

hi there,

i am new to selenium, i tried to install and run the selenium but was unable to do it i get the following error

halt
Aug 7, 2007 2:38:25 PM org.openqa.selenium.server.ProxyHandler handle
WARNING: EOFException(EOFException(java.net.SocketException: Connection reset by
peer: socket write error))


i have installed the selenium and configured the proxy , i am able to connect to the web browser using proxy but unable to retrive the request.

when i use the following command i get the above error the command is

cmd=open&1=www.google.de

any suggestion and ideas

thanks in advaance


Post Extras: Print Post   Remind Me!   Notify Moderator  
DeanJones
Newbie


Reged: 02/26/07
Posts: 15
Loc: Maharashtra,India
Re: How to install Selenium IDE [Re: zainz]
      #426969 - 10/24/07 05:46 AM

can any body tell which language is default to selenium tool so that we should not get any problems w.r.to API while writing automation scripts

is the scripting specific to the language used for application like java should be used in selenium while automating java applications and VB scripting or C# should be used for scripting in case of .net applications ? please make it clear?


Post Extras: Print Post   Remind Me!   Notify Moderator  
siralos
Newbie


Reged: 11/05/07
Posts: 2
Re: How to install Selenium IDE [Re: DeanJones]
      #430460 - 11/05/07 08:18 AM

If you don't mind using linux, you can use the free LiveCD linux distro BugnuX ( http://www.bugnux.org ). It contains Selenium IDE by default and so all u have to do is pop the cd in a pc, boot, and start working on Selenium IDE.

Post Extras: Print Post   Remind Me!   Notify Moderator  
pankajbhugra
Newbie


Reged: 03/07/08
Posts: 4
Re: How to install Selenium IDE [Re: PredatoR]
      #464633 - 03/07/08 03:58 AM

Hi All,

I am using Selenium for Testing, in my company.
I am using HTML format, and selenium RC.
Selenium is using JavaScripting for defining functions and calling from IE or Firefox, and running the pages on web.
We can see the LOG through Show Logs button on WEB.

I am looking to save these Logs in one file, but i m failed to find the place to do so.
Is there any function in Selenium, that we can use to do the same?

I found from the core folder of selenium:
To see the browser logs, you need to
either show the log window in GUI mode, or enable browser-side logging in Selenium RC.

Any one on this group - Do you have any information of How to enable browser-side logging in Selenium RC?

Please help to sort out this problem.

Pankaj


Post Extras: Print Post   Remind Me!   Notify Moderator  
pankajbhugra
Newbie


Reged: 03/07/08
Posts: 4
Re: How to install Selenium IDE [Re: pankajbhugra]
      #464635 - 03/07/08 04:00 AM

Quote:

Hi All,

I am using Selenium for Testing, in my company.
I am using HTML format, and selenium RC.
Selenium is using JavaScripting for defining functions and calling from IE or Firefox, and running the pages on web.
We can see the LOG through Show Logs button on WEB.

I am looking to save these Logs in one file, but i m failed to find the place to do so.
Is there any function in Selenium, that we can use to do the same?

I found from the core folder of selenium:
To see the browser logs, you need to
either show the log window in GUI mode, or enable browser-side logging in Selenium RC.

Any one on this group - Do you have any information of How to enable browser-side logging in Selenium RC?

Please help to sort out this problem.

Pankaj




Post Extras: Print Post   Remind Me!   Notify Moderator  
nazifa
Newbie


Reged: 04/10/08
Posts: 1
Re: How to install Selenium IDE [Re: pankajbhugra]
      #474111 - 04/10/08 04:43 AM

How can I can install Selenium IDE for .net.

Post Extras: Print Post   Remind Me!   Notify Moderator  
LuboT
Junior Member


Reged: 10/07/05
Posts: 48
Loc: Bulgaria
Re: How to install Selenium IDE [Re: nazifa]
      #474488 - 04/11/08 01:32 AM

The IDE is one and doesn't depend of the web application.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1 | 2 | >> (show all)



Extra information
0 registered and 14 anonymous users are browsing this forum.

Moderator:  LNB, AJ, michaeljf 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 34089

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5