Tag Info

Hot answers tagged

20

It's not actually a true "either this or that" question since you can actually use both together via watir-webdriver. Firstly: If we are talking about testing at the browser level, you can pretty much completely ignore the language used to run the server side. There's no C# remaining once the page is rendered to HTML+Javascript and sent over HTTP to the ...


9

I have actually used Sikuli and believe it is the future for QA automation. The fuzzy logic on image compare is pure genius. You can crank it up to be an exact match or turn it down to lesser. I have ran the same test on multiple browsers/OSes and resolutions without too many issues. It is way more robust than the old x,y testing of yesteryear. I created ...


8

Selenium IDE uses Record-Playback mechanism and generates rudimentary script that cannot be used directly for automation. I recommend using Selenium (RC) Remote Control which supports several browsers: chrome, IE, firefox, opera, safari etc. Selenium RC supports C# as well. You can use selenium IDE to understand commands if you are a beginner. If you select ...


7

I'm afraid I'm not very familiar with Watir, but I do have some experience with Selenium 1 and 2. I've used Selenium RC on a Python project before, and really loved it. But rather than RC, I have been using Selenium 2 WebDriver for testing a C# developed application. I started out using Selenium RC, but quickly switched because I found I needed support for ...


7

I can come up with some ideas: You are testing for devs who don't know how to give their elements IDs or use other APIs, and won't go back and fix things in a timely fashion. This is accumulating technical debt - better to get the devs to do it right - but, e.g., on legacy apps designed without a thought toward testability, screenshot testing might be the ...


6

I am not sure it's as easy as saying Sikuli is a better technology for test automation than Selenium or Watir - it's just an alternative. On my current project, the front end test team were struggling to test an application using flexmonkium. They had the skills and experience to write tests in flexmonkium, but our application needed to be recompiled with ...


6

In my opinion, none! When you are using images to locate elements then you are in trouble when someone comes along and decides to change how the application looks or the position of an element on the screen. You will build a fragile test suite and will be forever updating the images that you have used. One concern would be that IE and firefox don't always ...


6

For C# development, you can use either Selenium RC or WatiN. Watir adds the need to learn Ruby, which might be nice for companies using a LAMP stack. Our team had several developers look into Selenium, WatiN, and Watir for our C#-heavy project, and concluded that Selenium might be better if you had fewer testers with extensive development skills. This is ...


5

In terms of introductory resources, I'd recommend the book 'Everyday scripting with Ruby' by Brian Marik it's a great into to scripting/programming with ruby, and since everything watir does is powered by ruby, getting a good basic grasp of the language is important. Also the book is very much 'aimed' at testers. The other thing that's essential (for ...


5

The watir.com website is a great collection of resources about Watir. Željko Filipin, Watir community manager, is currently working on a book about Watir (https://github.com/zeljkofilipin/watirbook/). It is currently a work in progress, but I'm sure he would very much be interested in hearing what kind of things someone new to Watir would like to see in the ...


4

I have used it for 1 day. I think it is easier to use and faster to learn. Also you have the benefits of image compare. (Selenium does not have this). This said, I think You could use it for Flash automation. (I never managed to do this in a good way with selenium). Furthermore you don't have to learn autoIt or another scripting for desktop automation. So ...


3

Sikuli is useful whenever you're automating something that's not web based. I really like Selenium and Watir, but they're restricted to web technologies, and even though these are probably the most common nowadays, there are still plenty of companies who use desktop apps. For these, I find Sikuli and its fuzzy matches to be quite useful. Bear in mind that ...


3

This is how I'm doing drag and drop in watir-webdriver. This only works in Firefox: browser.div(:text=>"from_div").wd.drag_and_drop_on(browser.div(:text=>"to_div").wd)


2

I've used Sikuli several times and my big win was for testing memory leaks on our mobile app (using the simulator) that i could not have found manually. Also running with Sikuli allows us to bypass budget restrictions :) Additionally we have customized apps, so i like that i can use Sikuli to make sure the right colour is applied in the right place - trust ...


2

For watir-webdriver there is http://watirwebdriver.com/ site created by Alister Scott.


2

If you have some scripting skills in Ruby I would by pass the record/playback and code the test directly in WATIR http://www.watir.com/


2

create a path provider where you test data is located. in a file create a method that returns expanded path def datapath filename File.expand_path(File.join(File.dirname(__FILE__), filename)) end use it in your test browser.file_field(:name,"the_file").set(datapath(filename))


1

If you are using Firefox driver you do not have to go through the additional steps. However, we have to go through the additional steps if we use chromedriver. Did you perform those steps?


1

Watir drives a real browser, so it should work. We tried that but at the end settled for our own tool that drives either Firefox or other browser (using WebDriver). Additionally you can pick anything from "no code at all" to "full Java (optionally JRuby) code". The link to the tool is in my profile. What is most challenging and this is not related to the ...


1

I am actively using Telerik Test Studio at the moment. It is a pretty powerful record and playback tool and long with a pretty solid framework that is similar in structure to WatiN and Selenium RC. With Test Studio the underlying test framework is free but the record and playback studio piece is not. It has plugin integration with VS 2008 and 2010 which ...


1

I think putting all your money on image recognition only tests might get you into trouble as soon as the look/layout of a site changes and you didn't or couldn't make your screenshot collection smart enough to still work - in that case all your test cases would need to be repaired. I'd try a combination of both - Sikuli as well as Selenium are available as ...


1

I've done something similar using events and/or autoit.. don't recall off the top of my head what the solution was (would need to go back and find that code) I'd recommend asking on the main StackOverflow site and tag the question with Watir and Watir-webdriver.. a lot more of the Watir folks watch that site than this one


1

One approach that my work is to extract paths like this to a config file of some point that could be set depending on where you run the script from. Then you can read the value out of the config at start up. Another approach I have taken in C# is to have a directory that is part of my project that gets built out with the project so if I have dependencies ...


1

Have your looked at VSTT - Microsoft Test Tool. VSTT 2010 should be a good bet if you are looking for functional test automation. Web Services Testing, UI testing, Biztalk testing and Data Driven Testing Support. Please look at VSTT - http://msdn.microsoft.com/en-us/library/ee338734(v=vs.90).aspx Visual Studio Performance Testing Quick Reference Guide ...


1

I have used Sikuli and found it to be a great help in testing WPF.NET GUI applications (which do not comprise standard window instances with window handles like other Window apps do) and are otherwise very hard to test. I think Watir and Selenium are primarily for testing browser based applications, whereas Sikuli can also be used to test non-browser GUI ...


1

The major benefit for me is that Specflow compiles feature file into the unit tests. I am using NUnit and with this feature I can run my tests written in “classic” style and GivenWhenThen style in one suite. Some things look very ridiculous when I’ve tried to describe them in Gherkin (Specflow): Scenario: The edit user page should have button Delete ...


1

testerab, you mentioned escaping the equals sign with the relevant HTML escape character. There are two kinds of encoding for special characters in HTML: entity notation and URL Encoding. In entity notation, an equals sign would be &#x003D In URL encoding, an equal sign would be %3D For your problem, the appropriate encoding would be URL ...


1

Well, the error message says that span(:class, "CLASS3") returns nil. If the code works in IRB but not when you run the script, it is usually timing problem. Maybe the element is not at the page when you try to access it. By the way, div(:id, ID2) should be div(:id, "ID2") (please notice the quotes), otherwise it should raise NameError: uninitialized ...


1

I am running Watir scripts from Jenkins CI on a couple of projects. I do plan to write about it at my blog soon. If you have specific questions, please ask. I have recently recorded a screencast about the entire test automation solution I have developed for a client: Test automation at HomeSwap.com


1

A quick Google shows plenty of people doing this, including This page from WatirMelon ( if you dont know of this site could be worth your while reading it, lots of good stuff on it ) and an example of using ci_reporter is here



Only top voted, non community-wiki answers of a minimum length are eligible