📜 ⬆️ ⬇️

Fake - complete web application testing

Fake
Just yesterday, the first version of an amazing project appeared, which I want to tell you about. It is called somewhat unsightly - Fake .
In short, Fake is a WebKit-based and AppleScript browser designed for automated testing of web applications. Surely those of you who have not yet learned the charms of automated testing remember how they debugged some complicated registration form and, catching a particularly tricky bug, you had to reload the page a lot of times and fill out the form. And even those who are already writing tests cannot be sure that JavaScript and Ajax work as they should and still have to test the site by manually loading the pages again and again.

This problem is what Fake solves. This is a browser in which you can create a sequence that simulates the user's work with the site - the so-called. workflow (which can be roughly translated as "workflow"), save it and then run in batch mode with one click of a button. In fact, Fake allows for full integration testing of web applications, as close as possible to what the end user sees. The list of available actions is very extensive and allows you to simulate the user's behavior on the site with a very high degree of accuracy: you can download pages, click on links and buttons, send forms, simulate pressing the browser buttons "Forward" and "Back", opening new tabs, etc. . The test side is represented by the ability to add statements (assertion) for the presence of a specific title, text or HTML code on a page. Interestingly, you can also specify a js code that returns true or false as an approval argument, and then it will be executed when the process starts, and the execution result will be passed to the approval. For statements (and for page execution errors), you can hang handlers that can run an arbitrary console script.

Test scripts are compiled in graphical mode by dragging actions into the workspace in the desired order, AppleScript can also be used. It looks like this:


Since the well-known open source project WebKit is used as the basis for the project, all its buns are available in Fake, including web inspector, Firebug's local counterpart, which allows you not to switch to another browser to view the page code.
')
As I mentioned above, the first public release of the project took place only yesterday (version 0.2) and it is still in deep beta with all the consequences - there are no error messages, no documentation, the interface is not sufficiently polished, etc. But the project can be used right now and I, frankly, very much itch itching to incite it on your project and see how much the development process has changed.

Technical details: Fake only works under Mac OS X 10.5 and higher and is unlikely to be ported to other systems due to AppleScript. Now from the developer’s site, you can download a demo that will run until August 1. There are plans to release several more demo versions, and then the project will be paid.

UPD by camelos : For all other platforms there is Selenium .

Source: https://habr.com/ru/post/98420/


All Articles