English 中文(简体)
Is Watir only for Ruby applications?
原标题:

Or can it be used to automate websites made with other technologies as well?

最佳回答

Watir is written in Ruby... if you want to write something similar in other languages you can use WatiN(.Net) or Watij(Java). I m sure there are probably more by now.

In the end... they all can test a web page written in any language.

问题回答

Ryan is right here, but since this is a common question it should be made even clearer.

WATIR just drives the web browser. The browser does not know or care what language is used to create the website or run the webserver and other back-end pieces.

Watir was created as a vendor neutral tool to be used in classes teaching automation techniques to testers with little to no coding experience. The tool proved so useful it took on a life of it s own and has been developed beyond a mere example into a full fledged tool for driving a browser and doing web test automation. Ruby was chosen as the language as it was felt it is an easy language for testers to learn. (and I happen to agree with that)

So you write the automation code in Ruby. That also makes Watir easy to use with state of the art BDD testing frameworks such as Cucumber, which is also in Ruby. But you can use it to test nearly any website.

I personally test a site that is implemented in .net, and runs on IIS and MS SQL, using a combination of Watir, the Watircraft Framework, and Cucumber.





相关问题
Running automated Web browser tests under Hudson

I m running Hudson for my automated builds and love it. I d now like to create automated Web browser tests using either WaTiN (preferred) or Selenium. As my Hudson runs as a Windows service (under ...

What approach should I use to test a VBScript?

I ve been asked to help out with a project which has made extensive use of VBScript to process a whole bunch of text files and generate certain outputs - sanitized files, SQL entries etc.. The script ...

Integration Testing for a Web App

I want to do full integration testing for a web application. I want to test many things like AJAX, positioning and presence of certain phrases and HTML elements using several browsers. I m seeking a ...

Best practice approach for automated testing

This is a very strange request for advice for which I truly feel there is no real answer. In my project I have archiving routines on various objects that have been consumed for logical calculations, I ...

Jython exception handling within loops

I am using Marathon 2.0b4 to automate tests for an application. A shortcoming of wait_p, one of the script elements provided by Marathon, is that its default timeout is hardcoded to be 60 seconds. I ...

Is there any error checking web app cralwers out there?

Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...

热门标签