firefox is not able to run automatically the entire test suite also not showing any content in the log file:

16 views
Skip to first unread message

srinivas katikireddy

unread,
Feb 7, 2011, 11:21:43 PM2/7/11
to SeleniumWiki, vasu...@gmail.com
Can any one help me why my firefox is not able to run automatically
the entire test suite when I try to run it in selenium RC through
command prompt. Its only running the first test case in the entire
suite…and also it is not showing any content in the log file, it is
0Kb in size.

I am using OS: Window 7
Browser: firefox3.6.13

Bellow Is the log file content when I click on “ShowLog” button on the
firefox browser.

• info(1297135641967): Appending missed logging messages
• info(1297135597614): Starting test /selenium-server/tests/googleTc1
• info(1297135597642): Executing: |open | / | |
• info(1297135597643): onXhrStateChange(): xhr.readyState = 1 method =
HEAD time = 1297135597643
• info(1297135597643): onXhrStateChange(): xhr.readyState = 1 method =
HEAD time = 1297135597643
• info(1297135597922): onXhrStateChange(): xhr.readyState = 2 method =
HEAD time = 1297135597922
• info(1297135597922): onXhrStateChange(): xhr.readyState = 4 method =
HEAD time = 1297135597922
• info(1297135602822): Executing: |setSpeed | 1000 | |
• info(1297135603824): Executing: |type | q | selenium rc |
• info(1297135604851): Executing: |click | btnG | |
• info(1297135605913): Executing: |pause | 3000 | |
• info(1297135608914): Executing: |verifyTextPresent | Selenium-RC | |
• info(1297135610008): Executing: |type | q | selenium ide |
• info(1297135611018): Executing: |click | btnG | |
• info(1297135612040): Executing: |pause | 3000 | |
• info(1297135615044): Executing: |verifyTextPresent | Selenium IDE |
|
• info(1297135616075): Executing: |type | q | selenium grid |
• info(1297135617085): Executing: |click | btnG | |
• info(1297135618111): Executing: |pause | 3000 | |
• info(1297135621114): Executing: |verifyTextPresent | Selenium Grid |
|
• info(1297135622138): Executing: |type | q | session id error in
selenium |
• info(1297135623147): Executing: |click | btnG | |
• info(1297135624170): Executing: |pause | 3000 | |
• info(1297135627174): Executing: |verifyTextPresent | SessionId
doesn't exist | |
• info(1297135642021): Done appending missed logging messages
• error(1297135642022): Log window displayed. Logging events will now
be recorded to this window.

Pavandeep Puddupakkam

unread,
Feb 8, 2011, 4:59:51 PM2/8/11
to SeleniumWiki
Download the Selenium RC from the following link
http://code.google.com/p/selenium/downloads/detail?name=selenium-remote-control-1.0.3.zip&can=2&q=

Create a folder called selenium and save the G_alltestff.html file and
then use the same path in the batch file C:
\selenium\G_alltestff.html.

I suggest you start writing the selenium script either in Java or C#.
You will have better control over the script and write your reports to
a text file. There are a couple of articles on how to work with
selenium rc in Java and C#.

create G_alltestff.html (For Firefox)

<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Test Suite</title>
</head>
<table id="suiteTable" cellpadding="1"
cellspacing="1"
border="1"
class="selenium">
<tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href=".\Tests\Name of you
selenium script.html">Name of the Script</a></td></tr>
</tbody>
</table>
</body>
</html>

The batch file to call selenium rc is as under:
This is an example of the SeleniumFirefox.bat file.

cd
\ cd C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-
SNAPSHOT
java -jar selenium-server.jar -port 4545 -firefoxProfileTemplate C:
\Firefoxselenium -htmlSuite chrome http://www.yourtestwebsite.com// C:
\selenium\G_alltestff.html* C:\selenium\*Results.html*
pause

Also check this doc - https://docs.google.com/Doc?docid=0Aa63T0zKfD3hZGczOHZyZ181OGRrZ2hmd2Zx&hl=en

On Feb 8, 3:21 pm, srinivas katikireddy <srinivasonselen...@gmail.com>
wrote:
Reply all
Reply to author
Forward
0 new messages