AJAX testing with Test Studio
Testing AJAX is no longer painful thanks to Telerik Test Studio. This automated testing tool employs a rich set of features to help you automate AJAX-intense web content. You can test complex UI actions like drag-and-drop, invoke JavaScript functions from your test code, and perform logging actions. What’s more, the test recorder makes it easy to wait on AJAX operations before executing specific verification.
AJAX Test Automation
Utilizing AJAX techniques can tremendously improve the responsiveness and usability of your web applications. Testing AJAX applications, however, can be quite challenging. There are quite a few complications that the AJAX technology brings up which make it difficult for testing tools to reliably create test automation for AJAX-driven applications.
Testing dynamic pages
Problem
Most automated testing tools will force you to determine the absolute coordinates of an element on a page in order to record any verification against it. Unlike static content, however, a dynamic value implemented with Ajax is an element that could vary with each instance of a page…
Solution
Test Studio doesn't use absolute coordinates to locate the dynamic elements on your page. A smart algorithm automatically determines the best parameters to uniquely locate each element.
See how we solve this problem Back to top
Cross-browser compatibility testing
Problem
With new versions of the major browsers coming out every other month, testing your app across multiple browsers can create plenty of headaches. Different browsers use various techniques for content presentation which impose challenges to automating the testing process: separate tests need to be created for each browser individually.
Solution
Thanks to Test Studio’s browser abstraction capabilities, you can expand your browser compatibility testing to all the latest browsers without making any changes to your test cases:
- ● Internet Explorer (7.x, 8.x, 9.x) +
- ● Firefox (4.x, 5.x, 6.x, 7.x, 8.x, 9.x, 10.x) +
- ● Safari for Windows (3.x, 4.x, 5.x) +
- ● Chrome (6.x) +
See how we solve this problem Back to top
AJAX requests and operations
Problem
AJAX apps store the UI logic to the client while making asynchronous calls to the server to send and receive data from there. This could cause testers’ pain when building verifications on elements that already exist however have not yet been populated, or elements which existence is triggered by a prior action.
Solution
Test Studio can handle both scenarios using built-in wait mechanism. Unlike most automated testing tools which will ask you to define exactly how long they should wait for an element to appear, Test Studio allows you to ensure elements exist prior to performing actions and verifications. In addition, your test will wait until the data has been populated before moving on.
See how we solve this problem Back to top
Automating custom controls
Problem
Customers sometimes need to extend the components they are using to develop their application. This, however results in a new element type in the visual tree, failing to identify the base control.
Solution
Test Studio automatically detects the base class inherited from the original component and automatically suggests verifications for that base control – quick tasks, action handling, mouse actions, and more. This gives customers who heavily utilize custom controls a richer out-of-the-box experience.
See how we solve this problem Back to top
Testing Telerik controls for ASP.NET AJAX
Problem
If the application under test has been built with Telerik RadControls for ASP.NET AJAX, you’ll be having hard times automating anything but HTML elements. This would leave the logical elements (grid row, scheduler appointment, etc.) outside the scope of your test.
Solution
The RadControls translators not only abstract out all the component specifics, but also allow you to go beyond basic HTML testing and verify complex functionality, such as JavaScript calls, and “Wait for AJAX” synchronization points. And the best part, your translators will be automatically updated as soon as Telerik ships update to its RadControls suites.
See how we solve this problem Back to top
Handling JavaScript calls
Problem
Building test automation for conducting form validations, invoking mouse or logging actions usually requires solid development skills
Solution
Validation of form submissions and on-click action are codeless and easy with Test Studio. The tool supports JavaScript function invocation and validation directly from your code. It also understands JSON objects, can handle strongly typed objects returned from JavaScript, as well as access to JQUERY API’s.
See how we solve this problem Back to top
Page element identification
Problem
When your application under test is a complex multi-layered one, organizing and classifying your web page elements might turn to be a hard thing to accomplish.
Solution
Test Studio provides quick access to your page DOM explorer which is hooked to the test recording surface. Users can drag elements directly from the page to locate in the DOM tree, or add them to the Elements explorer.
See how we solve this problem Back to top