Quality Testing

Quality is delighting customers

Hi Friends,

Currently, I Installing selenium IDE and RC in windows 2003 server, While doing the installation I facing some Issues, Please provide your valuable solution and help to execute the selenium.

FYI - Hereby I added till now Installation and error Message details i received.

Selenium IDE
1. Added Selenium IDE in firefox Browser
2. Created an new test case and test suite
3. Save the test case in HTML format
4. Saved by the of name (Sample.HTML)

Installed JDK 1.6.0_20 added on this path [ C:\Program Files\Java\jdk1.6.0_20 ]

Created Firefox Profile
1. using RUN command opened the firefox.exe -profilemanager
2. created the Firefoxselenium.bat profile on this path ( File Destination : C:\Firefoxselenium)
3. Created the BAT file using this command

cd
cd C:\selenium-remote-control-1.0.3\selenium-server-1.0.3
java -jar selenium-server.jar -port 4444 -firefoxProfileTemplate C:\Firefoxselenium\Suite.html [-interactive] http:\\www.xyz.com C:\selenium\G_alltestff.html* C:\selenium\*Results.html*
pause

4. Created new Folder called Seleniumin [ C:\Seleniumin ]
5. C:\Seleniumin - In this folder I created a sub folder called tests [ C:\Seleniumin\tests ]
6. under tests folder Added the sample.HTML file
7. Also In the same Selenium folder I created 2 HTML File
C:\Seleniumin\G_alltestff.html
C:\Seleniumin\suite.html

Selenium RC
1. Downloaded the RC zip file
2. Extracted in the C: drive (C:\selenium-remote-control-1.0.3)
3. In the System Environmental Path I added these values
CLASSPATH - .;C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar;
JAVA_HOME- C:\Program Files\Java\jdk1.6.0_20;
$path - C:\Program Files\Mozilla Firefox\firefox.exe;
Same Kinda values added on the System variables without ( ; )

4. Using CMD prompt I started the Selenium RC Server ( C:\selenium-remote-control-1.0.3\selenium-server-1.0.3\selenium-server.jar)

Command : java -jar selenium-server.jar -interactive

Result :

05:22:52.890 INFO - Started SocketListener on 0.0.0.0:4444
05:22:52.890 INFO - Started org.openqa.jetty.jetty.Server@110d81b
Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http:/
/www.yahoo.com)

entered : cmd=open&1=http://www.xyz.com

Error :
java:245)
at org.openqa.jetty.util.ThreadedServer.handle(ThreadedServer.java:357)
at org.openqa.jetty.util.ThreadPool$PoolThread.run(ThreadPool.java:534)
05:29:16.046 INFO - Got result: ERROR Server Exception: sessionId doesn't exist
; perhaps this session was already stopped? on session

5. So I used this command - cmd=getNewBrowserSession&1=*firefox&2=http://www.xyz.com
6. New fire fox Browser has opened, But the already installed selenium IDE is not in that browser

Here, How To Execute selenium also for intermediate I used EDIT PLUS Software

Please Help me ... If am Wrong Please correct me , Waiting for your reply ..

Smaple.HTML Code
using System;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading;
using NUnit.Framework;
using Selenium;

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

[SetUp]
public void SetupTest()
{
selenium = new DefaultSelenium("localhost", 4444, "*chrome", "http://www.google.com/");
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 TheSeleniumtutorialTest()
{
// Open the base URL like google.com
selenium.Open("/");
// type selenium tutorial in text field which has id/name of q
selenium.Type("q", "selenium tutorial");
// click on submit button which has html id/name of btnG and wait for results
selenium.Click("btnG");
selenium.WaitForPageToLoad("30000");
selenium.Click("link=Selenium Tutorial for Beginner/Tips for Experts");
selenium.WaitForPageToLoad("30000");
}
}
}


--
With Regards,
R.Rajkumar Ragavendran
QA Engg
+91-988-493-3735

Views: 2

Comment

You need to be a member of Quality Testing to add comments!

Join Quality Testing

TTWT Magazine

Advertisement

You Can


Call for Articles

Advertisement

Videos

  • Add Videos
  • View All

Badge

Loading…

© 2012   Created by Quality Testing.

Badges  |  Report an Issue  |  Terms of Service