Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to automate testing of a browser-based app? [closed]

If it were a windows program, I would use Auto it to automate testing. Is there something similar for browser-based apps?

Nothing too complex, it should just allow scripting (preferable for me to macro-recording) to simulate human interaction with the browser, which means being able to identify fields of a form by name, inject text into some, simulate mouse-click on others, etc and then, after submitting a form, should be able to read text certain named controls, check the status of others (checked, radio group index, read-only, etc).

While I do appreciate a full featured product, I don't appreciate a steep learning curve. so something as simple as the scripting of Auto It woudl be fine.

I don't know if it makes a difference which browser is used, but I could live with MSIE 6 or higher (maybe 7 or higher at a push).


Edit: Three posters so far (out of three) recommend Selenium. One says it is FireFox only and I need to test MSIE, however some quick googling shows that this should be possible (although you might have to set everything up in FF first, then switch over to MSIE).

See http://www.emadibrahim.com/2009/01/19/testing-web-app-with-selenium-explorer-and-net/ and http://wiki.openqa.org/display/SEL/Selenium+Core+FAQ Hope this helps someone.

like image 340
Mawg says reinstate Monica Avatar asked Jun 07 '10 08:06

Mawg says reinstate Monica


People also ask

How do you automate cross browser testing?

Use Selenium to automate your cross-browser tests WebDriver accepts commands and sends them to a browser to execute them (hence the name). Teams can automate tests for their web applications by instructing WebDriver to perform specific actions in any browser and device.

Can you automate app testing?

Automating mobile app testing is key to testing faster and extending test coverage, both on platforms and test scenarios. Mobile app automation is notoriously complex, but most test cases can successfully be automated.

Does Selenium test browser based applications?

Selenium cannot automate desktop applications; it can only be used in browsers. It is considered to be one of the most preferred tool suites for automation testing of web applications as it provides support for popular web browsers which makes it very powerful.


2 Answers

You have several options to choose from:

  • Selenium
  • Watin/Watir
  • HtmlUnit
like image 158
Giorgi Avatar answered Dec 27 '22 00:12

Giorgi


Sahi is another option. (We user sahi and selenuim)

like image 36
Max Kosyakov Avatar answered Dec 27 '22 02:12

Max Kosyakov