Telerik blogs

Latest

For the latest product updates, please visit Release.

  • Productivity Testing

    How precise automated tests catch totally unexpected bugs

    You may remember my post where I mentioned the technique I like regarding writing precise Selenium tests. I believe the good test has double value if it doesn’t verify just the case it is written for, but even catches totally unexpected bugs. How does such test look like? Several days ago our Web Grid developers were working on resolving a weird bug in the control. As soon as the new build was ready, I started Selenium tests execution to verify that everything with the build is OK. Some of the tests failed, though, throwing an error that a specified element ...
    May 27, 2021 2 min read
  • Productivity Testing

    ASP.NET Web Control Performance Test in Selenium

    Since Selenium has been designed as a browser-oriented tool, load/performance tests definitely aren’t among its strong points. With the help of Selenium Remote Control  one can make precise performance test in his/her preferred language (executing number of opening page steps for example and calculating the average time), but I will limit this post in a really simple example test based entirely on Selenium Core. I’ve used RadGrid as a complex Web Control to check whether its execution time exceeds over an accepted period. What the Selenium Core test needs is just a result available for verification. So adding the ...
    May 27, 2021 2 min read
  • Productivity Testing

    Pressing keys simulation in Selenium, RadInput on fire

    Have you thought whether it’s easy to automate tests, simulating key pressing?  How is this handled in a browser-oriented tool like Selenium? Fortunately Selenium provides API for keyDown/Up and keyPress as well as a command to fire any event, which triggers correspondingly “on”-handler (of course - “fireEvent”). On the other hand the “type” command just sets the value of an input field, so that one can set new value of the input element without the need to fire any event. What if we need to see how a control behaves in case of some specific user input, though? An input ...
    May 27, 2021 2 min read
  • Productivity Testing

    Selenium IE performance issues; Tests optimization

    As started in my previous post Selenium supports XPath expressions, which is actually one of the most commonly used DOM element location strategies. Unfortunately people complain about slower tests in IE (the problem is explained in details and discussed here) because of the XPath as well as of some failing tests in IE, created for example with Selenium IDE in Firefox. These are due to the fact that Selenium includes external library in order to support XPath in IE too and Firefox supports it internally. So in other words, Selenium XPath support definitely differs in IE ...
    May 27, 2021 3 min read
  • Productivity Testing

    Selenium Scripts for RadControls; Firebug and XPath Support

    How do you, guys, use Selenium to test your RadControls? That question is really my favorite! It has been asked by our customers and I would like to answer it with this post. Actually I've been closely watching Selenium forums for the past several months. People often think using Selenium is difficult but I would disagree. This reference explains the basics of writing Selenium tests. It seems people identify easily which command to use. However, most people experience difficulties getting a proper locator. Should the respective element contain an ID its locating is trivial, but what should we ...
    May 27, 2021 3 min read