Hi Pavan,
We want to know whether the following scenario can be tested with Selenium:
Input Data from text file should be fed to 5 different websites at the same time and compare the results displayed on all the sites
For this, I tried to install Selenium RC
I have followed what u have detailed for creation of .bat files, .html files. I saved them on desktop and tried to run Selenium RC on IE by double clicking on *SeleniumIE.bat* but got below error:
Even I tried saving these files in c drive but got same error. Please suggest me.......
*\\ C:\>cd\
C:\>cd C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-SNAPSHOT
C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-SNAPSHOT>java -jar selenium-server.jar -port 4545 -htmlSuite *iehta [
http://www.google.com.au] C:\selenium\G_alltestsie.html C:\selenium\Results.html\\ Exception in thread "main" java.lang.UnsupportedClassVersionError: org/openqa/selenium/server/SeleniumServer (Unsupported major.minor version 49.0)\\ at java.lang.ClassLoader.defineClass0(Native Method)\\ at java.lang.ClassLoader.defineClass(Unknown Source)\\ at java.security.SecureClassLoader.defineClass(Unknown Source)\\ at java.net.URLClassLoader.defineClass(Unknown Source)\\ at java.net.URLClassLoader.access$100(Unknown Source)\\ at java.net.URLClassLoader$1.run(Unknown Source)\\ at java.security.AccessController.doPrivileged(Native Method)\\ at java.net.URLClassLoader.findClass(Unknown Source)\\ at java.lang.ClassLoader.loadClass(Unknown Source)\\ at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)\\ at java.lang.ClassLoader.loadClass(Unknown Source)\\ at java.lang.ClassLoader.loadClassInternal(Unknown Source)
C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-SNAPSHOT>pause\\ Press any key to continue . . .
Below is my SeleniumIE.bat file content:
cd\\\ cd C:\selenium-remote-control-1.0-SNAPSHOT\selenium-server-1.0-SNAPSHOT\\ java -jar selenium-server.jar -port 4545 -htmlSuite *iehta [
http://www.google.com.au] C:\selenium\G_alltestsie.html C:\selenium\Results.html\\ pause
*
*SeleniumFirefox.bat content:*
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
Created G_alltestff.html file as below
<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>
Created G_alltestie.html file as below
<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="C:\Selenium\Tests\Name of you selenium script.html">Name of the Script</a></td></tr>\\ </tbody>\\ </table>\\ </body>\\ </html>
Tried with both browsers but didn't work...
Thanks in advance,
Mahesh