I have a QA person creating Selenium scripts inside Selenium IDE for Rails 3 app.
I am trying to find way to automate the export from Selenium IDE into rspec so they will be run automatically on our CI server. Basically, I don't want to manually export scripts from Selenium IDE. Has anyone done this or have suggestions on an approach?
Thanks.
-Matt
Yes, you can export your selenium test to rspec. But you need to install another firefox add on call php formatters.
When you had installed this add on your firefox, you can convert your selenium ide tests to rspec.
Related
I need to link Selenium IDE to automate the tests I have in my Firefox suite, but I don't know how to install Selenium in TeamCity.
Short answer, you don't. You have to record your tests in firefox, and then import them as a unit tests into your project (Maven for Java, NUnit for C# etc.). Then, run those tests as any others. Here are some solutions, you might want to take a look
Running selenium automation tests on remote teamcity build agent
Automate Selenium tests on TeamCity Continuous Integration server
Best way to wire up Selenium test automation
How to setup TeamCity for run selenium auto tests?
I'm trying to export my test automation created in Selenium IDE, but I can't find the option to export. I have a few test scenarios where the tests are the same but I need to make a copy of an existing test and swap some IDs for it to work.
I can only save it as a .side file and not as individual Python scripts for Selenium. I'd like to export an existing script and re import it into Selenium IDE as a copy (where I can make some changes, while keeping the majority of the commands the same).
My Selenium IDE looks like this:
How can I export my test scripts (to Python) or how can I make a copy of an existing test script inside Selenium IDE (ex. make a copy of UAT FCC-A Application, such that it makes another Test with all the same commands)?
I'm on Chrome.
You have Export option on Selenium IDE
But only Java JUnit at the moment.
I hope that helps.
The newest Katalon Recorder (Selenium IDE for Chrome) has covered the feature of exporting test script to Javaļ¼C#,Python 2,Ruby and so on.
Followed is the link to view these features.
Katalon Automation Recorder Quickstart
I have created a few HTML test suites with Selenium IDE. They are automatically tested and by Jenkins daily. Now, I'm wondering if it is possible to create a screenshot whenever a test fails.
Is it possbile to catch the exeption when the IDE test fails and capture the screen? Or is it only possible with TestNG? If it's only possible with TestNG, how does selenium HTML tests work combined with TestNG?
Kind regards,
Selenium IDE doesn't directly support saving screen shots like this. Check out this other (duplicate) question: Screenshots using Selenium IDE Firefox plugin
selenium ide does not have built in screenshot capabilities, but you can inject raw javascript: "javascript{alert();}" will display an alert. If you can find a way to do it in javascript, you could add the js to selenium ide.
I'm pretty newbie to selenium.
Im trying to configure selenium for a project in my university like the one configured with phppgadmin.
There is no .jar file, I dont need to run anything, dont even need to install libraries, etc... I dont know if this is a RC Server or Webdriver.
Also, I want to use the PHPUnit format, cause this way I can just export test cases from the Firefox Selenium IDE plugin. There is a way to do that?
There is a lot of information, webdrivers, etc in Internet but I believe the way phppgadmin do this is the best way.
If you're just looking for something quick and dirty Selenium 1 imported off of the IDE is probably for you. If in the future you plan on continuing your university project I would highly recommend learning about Selenium Webdriver (Selenium 2).
Just as a small aside: You can export your tests from the selenium IDE in any language you desire, PHP is just one of the many choices that include (Java (JUnit), Java (TestNG), Ruby, and Python). If you're interested in PHPUnit look here http://www.phpunit.de/manual/3.1/en/selenium.html, this will give you the back drop on how to start coding your Selenium Tests.
If you're going to be using the selenium RC you want to go to http://seleniumhq.org/download/. Download Selenium server. You start the server with a java -jar command. So java -jar /path/to/sel/selenium-server-standalone-2.24.1.jar. This will start the RC server and when you're interested in running some tests execute the tests and then selenium server will take care of the rest
I am setting up Selenium tests on Hudson and looking for an easy way to present nice results such as Project summary and build summary on Hudson.
Currently I have written Selenium test cases in Rspec and PHPUnit's extension for Selenium (I prefer working on Rspec over PHP).
What is the best way to present detailed report for Selenium tests on Hudson CI Server?
I prefer to use Rspec over PHPUnit. It would be very nice if I can use rspec and still integrate well with Hudson CI Server.
I would very much appreciate for detailed comments.
thank you so much for your help
Best regards
If you have the results as HTML files, you can use the HTML Publisher plugin.
Have a look at a similar question https://serverfault.com/questions/184805/how-to-view-test-results-in-hudson/185027#185027 This guy seams to have integrated the selenium tests into junit and therefore the results can be published using the xunit tests.
There are two selenium plugins, one should work for you.
This I have no idea what rspec is I entered rspec and Hudson into google. The second link was this one http://reprocessed.org/blog/easy_rails_ci_with_hudson It should contain everything you need.