How selenium-RC can be used for Localhost server?

126 views
Skip to first unread message

shams

unread,
Jul 23, 2006, 8:43:43 AM7/23/06
to selenium-users...@googlegroups.com
Hello All,

I am using selenium-RC to test one of my project. It is a ASP.NET and SQL Server 2000 application. I used Selenium IDE through FireFox and this time trying to use Selenium-RC. I am trying to access my local server and the URL is as follows:

*http://192.168.0.12/Pathway_2_7_T8/home.aspx.*

My sending command and the server response was as follows:

---------------------------------------------------------------------------
cmd=getNewBrowserSession&1=*iexplore&2=http://http://192.168.0.12/Pathway_2_7_T8
/home.aspx
---> Requesting http://localhost:4444/selenium-server/driver?cmd=getNewBrowserSe
ssion&1=*iexplore&2=http://http://192.168.0.12/Pathway_2_7_T8/home.aspx
queryString = cmd=getNewBrowserSession&1=*iexplore&2=http://http://192.168.0.12/
Pathway_2_7_T8/home.aspx
Jul 23, 2006 6:32:32 PM org.mortbay.util.Container start
INFO: Started HttpContext[/,/]

----------------------------------------------------------------------------

Browser also displaying following error message at its body:

-----------------------------------
HTTP ERROR: 404
//192.168.0.12/Pathway_2_7_T8/home.aspx/selenium-server/SeleneseRunner.html Not Found
RequestURI=//192.168.0.12/Pathway_2_7_T8/home.aspx/selenium-server/SeleneseRunner.html

Powered by Jetty://
-----------------------------------

So, I cannot access my test project with Selenium RC and also cannot perform test. I gone through tutorial and can drive www.google.com with selenium.

Someone please help me to drive my test application with Selenium-RC.

Looking forward for your great help.....

Best regards,

Zaman

j.a.c.c

unread,
Jul 23, 2006, 12:32:40 PM7/23/06
to selenium-users...@googlegroups.com
As you can see here:

*HTTP ERROR: 404
*

your URI is wrong.

You have to use only "http://192.168.0.12" or try using "http://localhost" when you create your selenium object.

And, after that, on the open command, use "/Pathway_2_7_T8/home.aspx" as parameter.

Jesús

shams

unread,
Jul 24, 2006, 2:12:24 AM7/24/06
to selenium-users...@googlegroups.com
Thanks Jesús, your information is correct and now I can drive on localhost also. My reporting was wrong at mail. :)

I have some other query also. Pls help me this regards also,

As now my selenium server is running so I need to perform test. My test product developed upon C#, ASP.NET and SQL Server 2000 and some other web tools. How can i proceed on writing test cases and executing them? Pls give me some document reference for study.

Looking forward to you.

Best regards,

zaman

j.a.c.c

unread,
Jul 24, 2006, 11:24:18 PM7/24/06
to selenium-users...@googlegroups.com
Well, I think you are in the good way already. The Selenium-RC tutorial is a good starting point.

You need to make a choice about what client driver (java,perl,C#, etc.) and what testing framework (JUnit, TestNG,etc. ) to use.

If you have a lot of pages to test, it is easier to record them with selenium-ide and save them as java/ruby for example. In this way you save time because you don't have to look in your pages field names, locators of links, select/options, etc.

Another good info is the selenium API documentation.

You can always consult the forum of course!

Jesús.

Reply all
Reply to author
Forward
0 new messages