How to run existing Selenium scripts in TOSCA - selenium

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

Related

why do we need to run selenium standalone server for webdriverjs tests?

from selenium docs https://www.seleniumhq.org/docs/03_webdriver.jsp#webdriver-and-the-selenium-server we don't need to run selenium-server if we are using webdriver but almost all javascript automation frameworks need selenium-server to be started before running tests. why do we need to run selenium standalone server for webdriverjs tests ?
This is not true. Given your browser/ driver pair supports directConnect. It will run without the selenium server regardless of the language binding.
For instance, Here is the directConnect reference for protractor. https://github.com/angular/protractor/blob/master/docs/server-setup.md#connecting-directly-to-browser-drivers

Info to update Selenium webdriver

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.

Is Selemium IDE deprecated?

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.

Moving from Selenium IDE to what?

I have been given the following job from my boss:
three years ago a former employee created selenium tests for our project and committed them via eclipse
now I have to update the tests due to the fact that the software has changed through time.
I created new IDE tests, instead of editing the old ones.
I have committed them through CVS in the project folder and I access them via a browser (selenium has some folder in the project)
when I run these tests via IDE, they run fine, but when I run them via the TEstRUnner that is in the old selenium installation, there are a lot of errors.
Should I install new version of Selenium in the project folder and what should it be?
Or should I just run the tests from IDE instead? (I read somewhere that TestRunner will be deprecated)
How are tests made in IDE run through Web Driver?
Have you looked at Selenium Builder? It supports migrating existing scripts, works well with Sauce Labs and there is also a Jenkins plugin](https://wiki.jenkins-ci.org/display/JENKINS/Selenium+Builder+Plugin) available.
Tests built using Selenium IDE are built using Selenium RC (1.0), and selenium WebDriver is the foundation of Selenium 2.0. Selenium has a migration document for this transition. In moving to Web Driver, you might be required to code the tests yourself, rather than using the point and click Selenium IDE.
Additionally, there is a hybrid approach for using Selenium RC code on Selenium Web Driver: http://docs.seleniumhq.org/docs/03_webdriver.jsp#alternative-back-ends-mixing-webdriver-and-rc-technologies
In order to run the Web Driver tests, you will need to have a selenium server or local browser to execute these tests. Some examples are SauceLabs, Selenium Grid, a standalone Selenium Server, or I believe you allow Web Driver to directly control the browser on the computer executing the code.

Running a Selenium2 IDE test case on the command line

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