I am using Selenium IDE 2.9.1 at the moment and beginner in Selenium. I invoke the test suite from a .bat file which contains following command:
java -jar C:\Apps\SeleniumTest\selenium-server-standalone-2.52.0.jar -htmlSuite "*firefox" "http://testurl" "C:\Apps\SeleniumTest\SeleniumSuite.html" "C:\Apps\SeleniumTest\SeleniumTestResult.html"
The test suite executes successfully but in TestResult file that is generated following is logged as info:
info: Selenium 1.0 (Core, RC, etc) is no longer under active development. Please update to WebDriver ASAP
I am not planning to use WebDriver, RC. My plan is to stick to Selenium IDE only for basic automation test scripts. Can somebody please tell me what action steps should I take now? I read one similar post but could not find a concrete solution.
Related
How to run existing Selenium scripts in TOSCA?
As per my knowledge, TOSCA uses C# as a scripting language. If your selenium scripts are developed in C#, then you'll able to run those in TOSCA.
You need to use the Selenium module from TBox automation tools under Tosca.
The folder Selenium contains the following Modules:
Start Selenium Server
Run Selenium Scripts
These Modules can be used to start Selenium test cases directly from Tosca Commander. NUnit or JUnit 4 test cases are supported. You can run DLL and JAR files which contain Selenium 1 (RemoteControl) and Selenium 2 (WebDriver) test cases. For more info see here
From the windows command prompt I run
java -jar selenium-server-standalone-2.50.0.jar -htmlsuite "*firefox"
"http://localhost" "c:\my-test-suite.html"
"c:\my-test-suite-results.html"
The results file shows this message
"info: Selenium 1.0 (Core, RC, etc) is no longer under active development. Please update to WebDriver ASAP"
I am using Selenium IDE to generate the test suite html file.
Can I safely ignore this error message or should I give up on Selenium IDE?
Selenium IDE is not deprecated and you may use it to record\replay scripts.
Actually you may export tests from the Selenium IDE to run with WebDriver (for C#, Java or Ruby).
Selenium WebDriver is enchanced version (I'd say next generation) of the Selenium RC so it's more powerfull and flexible, and it's under active development to support actual browser versions.
Selenium RC is still maintained but not developed so in fact you may safely continue with it as long as it satisfies your needs.
I am New to selenium RC..already working on selenium IDE. For selenium RC i have chosen java language.also installed selenium rc server.
Now i dont have any idea have to go further.
Please advice me on same
There are two steps.
You have to start the server with
java -jar selenium-server.jar
And once it is running you can run a java application with something like:
Selenium selenium = new DefaultSelenium( "localhost",
4444,
"*firefox",
"http://www.somesite.com/");
// the code from your Selenium IDE export goes here, e.g.
selenium.open("http://www.somesite.com/somePage.html");
selenium.stop();
For more information see, the following tutorial:
Selenium Remote Control For Java — A Tutorial.
Export the testcases you have in IDE and use them inside your java program.
Sorry to be that generic, but your question is really vague...
I need to use the Selenium IDE to create tests for projects we are working on, but to then take these tests and run them from the command line.
The situation is that we want our developers to be able to use the IDE to test websites using a central repository of test suites using the Selenium IDE. We also need the same tests (i.e. in the IDE HTML format) to be run by a CI server (Jenkins) on Sauce Labs.
I have found that the export from the IDE isn't great (test cases that worked on the IDE don't work from the command line). I also need to use WebDriver, e.g Selenium2.
This must be possible but I just cannot see how to do it.
Try out Selunit it combines Selenium tests in Selenese HTML format with Continuous Integration. Here is a tutorial how to execute Selenium tests directly from Selenium IDE in Hudson builds and to benefit from its reporting capabilities provided for JUnit, where Selunit transforms Selenium reports to.
Selenium provides a command-line test script runner, but it's well hidden. Check out the -htmlsuite option of selenium-server.jar.
In windows system you have to download selenium-server-standalone-2.32.0.jar and Browser(IE, chrome) driverserver after downlaod you have to open CMD and run command
java -jar selenium-server-standalone-2.0b3.jar -Dwebdriver.ie.driver=.\IEDriverServer32.exe
I would like to create a script or a batch file on windows that automatically opens Selenium IDE (plugin) and opens and runs a test file.
I would recommend Selenium RC for running automated Selenium tests. You can easily export tests from IDE into several languages supported by Selenium RC and then use an appropriate test framework. It is also possible to run IDE tests written in HTML through Selenium RC using the htmlSuite command line parameter.
Selenium RC documenation
How to run Selenium IDE tests within Selenium RC
Try it!
Save the below commands in a batch file and schedule when you want. You can place it in start up to start your scripts when you start your system.
C:
CD \selenium-remote-control-1.0.1\selenium-server-1.0.1
java -jar selenium-server.jar -port 4444
java -jar selenium-server.jar -htmlSuite "*iehta" "http://www.testsite.com/" "C:\testsuite.html" "C:\Results.html"
Pause