skip to main |

skip to sidebar



Results of Watir Test Automation for a .Net Project



0

comments


at

3:09 PM

This is part of a white paper i presented to my employer:Advantages of WatirBy using Watir, the following has been achieved: - Out of 14 smoke test cases, 10 have been automated.Accuracy has been optimized since the human error is significantly reduced for multiple releases. With Watir, it's guaranteed that the exact same test case will be run on subsequent releases. This is a common benefit of test automation.The time for running smoke test cases is reduced by approximately 70%. A transaction that would take 4 minutes manually took 1 minute using Watir.Table 1 shows the time measurements for smoke test cases taken for manual run and automated run:Test Case Automatable (Y/N)Average Manual Run Time(Seconds)Average Automation Time (Seconds)1Y59162Y130303Y140364N250-5N230-6Y370927Y240348N255-9N245-10Y1904011Y2056012Y2085513Y1904514Y21048Table 1 Time Measurements for Manual vs. Automated Run To avoid data dependency, test cases were made more interactive; by providing user input and database access blocks where necessary. Cost of automation has been cut. An alternative to a proprietary automation tool has been found.Disadvantages of WatirSome cons may hindeWatir adoption: Watir requires knowledge in Ruby programming language.WatirRecorder++ does not support some html elements like iframe.Watir reporting capabilities are limitedWatir is still in the development phase to support other browsers like Mozilla Firefox.Conclusion:We prototyped an automation test model for a .NET project. And the results were satisfying. Human errors are eliminated and testing time is significantly optimized.Watir makes a convenient free alternative for test automation of .NET web applications. It has most of the features and capabilities available in other proprietary automation suites.Using Watir, the time required for smoke and regression tests can be significantly reduced. This is very useful in agile projects where recurrent smoke tests are required for small builds.Watir's scripting language is Ruby. A powerful programming language. This gives Watir scripts virtually unlimited capabilities.Watir has some limitations when it comes to reporting and recognition of some html element.Using open source/free alternatives in your organization can be of a great business value through time and cost reduction.



&;



&;

© 2007-2011 testsquad.org All Rights Reserved.