I want to know what's the difference between Selenium IDE and Selenium builder.
All I know it's Selenium builder can support webdriver.
But what is a webdriver?
Thanks
From the Selenium IDE website
Selenium IDE is an integrated development environment for Selenium scripts. It is implemented as a Firefox extension, and allows you to record, edit, and debug tests. Selenium IDE includes the entire Selenium Core, allowing you to easily and quickly record and play back tests in the actual environment that they will run in.
On the other hand, Builder is an extension that helps you build Selenium tests more quickly by helping turn your actions into Selenium code.
Finally a webdriver is a web automation framework that allows you to execute your tests against different browsers. Selenium-webdriver is one example, but Watir-webdriver is another. These frameworks spin up a browser instance and mimic user action against the page's elements in order to test webpages and webapps.
'Selenium Web Driver' is a tool for writing automated tests of websites. It aims to mimic the behavior of a real user, and as such interacts with the HTML of the application.
Related
So I am writing a cross-platform (so far plans for Windows and Ubuntu) application for both the web and desktop.
This application
is expected to at times be moderately graphically intensive and perform a substantial amount of file IO. I am writing it in Dart. Which may seem like a
"funny" choice given the circumstances, however I did not want
to deal with any heavy API's or have two code bases (NaCl and GCC with two different libs).
In short I am using Dart to interact with an HTML web page, and noticed the Dart VM does
not interact with a webpage unless you are in Dartium. But I want a "desktop application" as well as a web application which eliminates Dartium as a choice, so alternately I plan to use a Qt Webview to make it look like a desktop app, but what I am wondering is would it be worth it to go through the trouble of embedding the Dart VM into my app? In doing so would it easily enough to get the Dart VM (running a dart script) to interact with the page in the Qt Webview (I am a bit new to Dart)? Thanks for reading!
Dartium will eventually be merged with Chromium, allowing your DART applications to run inside chrome directly as a web technology.
Once that merges, you can take advantage of the new Chrome Apps which allow you to have a desktop version of your web technologies. As such, you won't need to use Qt Webview, or embed dartVM into your native application; just use Chrome Apps.
~Main
This is first time i was thinking about this scenario. I have few scripts in Selenium webdriver and few script in QTP.
Using Webdriver, I have automated web based HTML5 Application via eclipse Juno
and using QTP, I have automated SAP Purchase request placing order.
Now both become depended module for me, from SAP data's are flowing to web base application.
And I'm planning to automate eclipse via QTP so that it will execute selenium script.
Can someone provide me how to proceed with situation and give me some strategy to proceed.
Thanks in advance
Raj R
Since the Eclipse UI is written in Java you should be able to automate Eclipse using QTP's Java addin.
If it is reasonable possible, I wouldn't record actions on Eclipse from QTP. Are you aware that eclipse has a rich set of runtime options? See if you can create an eclipse .ini file that starts the desired Selenium test. When it works as desired, you can start this file with the SystemUtil.Run statement in QTP.
Does anyone have experience with Chrome extension testing?
For example:
I want to create an extension that uses the
popup browser action, and automate a test case that checks the
behavior of the popup when clicked.[chromium issue]
Perhaps you could use selenium (it would be really great if this is possible).
Have you considered using a general purpose GUI-testing tool? If you are looking for a free, basic solution, check out Sikuli. There is a bunch of similar tools out there.
I've gotten some mileage using protractor to navigate to the url for the popup and running tests on it as if it were a regular page.
I'm looking to unit test some SWT and Swing code for a project I'm working on and the tests run fine as long as I'm running them from eclipse.
As soon as I run them in my hudson environment it fails since hudson runs the tests in headless mode.
What's the best way of doing this? Open source solutions only please (since the project is open source).
You could run Xvfb (X virtual framebuffer, an X11 server that performs all graphical operations in memory) and this works fine.
But there is another solution with Hudson's plugin for Xvnc. Simply install the plugin and check the checkbox in the job configuration screen:
alt text http://www.justinedelson.com/blog/wp-content/uploads/xvnc_box.jpg
Hudson will then automatically start up a Xvnc session and set the DISPLAY environment variable to the appropriate value and then shut down the session when the build is complete. One advantage this has over the Xvfb method is that if you have multiple Swing/SWT projects building simultaneously, each build has its own X session. This may not be an issue at all but it seems like a good idea.
Before using this plugin, you obviously have to have Xvnc installed. What's less obvious (although sensible) is that you must also set a password. You do this by running:
$ vncpassword
This has to be done as the same user Hudson runs as.
Try the Abbot Java GUI Testing Framework and SWTbot. At least SWTbot should be able to do it.
If neither offers a headless mode, then this blog post might give you some ideas how to get rid of the UI for testing.
Using Swing I tend to organise things so that the component tree can be created without a Window at the top. Doing this allows you to simply create a JPanel in a unit test and use that as your top-level component. There are certain things you cannot test, such as focus and any logic involved in the creation of the Frame for normal operation, but the vast majority can be tested.
You may want to look into the FEST library to make life easier whether you go headless or not, it looks very good: http://fest.easytesting.org/swing/wiki/pmwiki.php
I was sure I posted this here before, not sure what happened to it.
Cacio allows for running Swing app headless.
http://rkennke.wordpress.com/2011/10/17/cacio-for-ui-testing/
I don't know about SWT, but with Swing you can't. Any instantiation of a Window (JFrame, JDialog, etc.) even if it is never set to visible will blow up in headless mode (on JDK 5). What we did was not run in headless mode and install Xvfb to provide the windowing without actually having a real windowing system installed.
You could try RedDeer Testing framework
https://github.com/jboss-reddeer/reddeer
• Support for running tests in a Jenkins CI environment (Hudson like)
An ideal one would be where I could:
Test my JS live, not just see screenshots
Test in multiple browsers in multiple OSes
Test under various resolutions
Test in different mobile platforms
I know that's too much to ask for, but which one gets closest?
The two that spring immediately to mind are:
http://browsershots.org/
http://deviceanywhere.com/
You can use Selenium RC or Selenium 2 (WebDriver) for automated cross-browser testing as well as different platform.
Selenium WebDriver is better than Selenium RC. Selenium RC is deprecated now. You can find the details about Selenium2 (WebDriver) in the following URL:
http://docs.seleniumhq.org/docs/03_webdriver.jsp