This page is maintained for older versions of Rapise only. The latest documentation can be found at: https://rapisedoc.inflectra.com
Web Testing

Purpose

 

Rapise lets you record and play automated tests against web applications on a variety of web browsers including Firefox, Internet Explorer and Google Chrome. Rapise lets you record or create your tests against one browser and then play the same test back against all of the other browsers. Some of the web browsers will require the installation of a special Rapise plugin to allow automated testing.

 

Rapise provides comprehensive support for testing Web applications. Rapise supports cross-browser testing. It uses the web browser Document Object Model (DOM) to interact with the current web page. The various web browsers on the market have various differences in DOM implementation. In many cases these differences are not significant. But sometimes they require special handling. Rapise tries to overcome the differences and make the recorded scripts as universal as possible:

 

Cross Browser Testing

 

When developing and testing a web application you naturally need to test it with different web browsers and of course (based on bitter experience) multiple version of each web browser. With Rapise you can record a test script using one browser and then play it back using Mozilla Firefox, Google Chrome or Microsoft Internet Explorer:

 

web_testing1

 

With Rapise, you can run your recording in a different browser than the one in which it was recorded simply by changing the specified browser in the playback settings:

 

web_testing2

 

In addition, it is possible to have more control over the cross browser execution using the available APIs and configuration variables. You can also run the recording in multiple browsers in succession using either a Rapise sub-test or simply executing the test from our SpiraTest test management system and passing through different parameter values.

 

DOM API

 

In addition to the usual recording, learning and playback that is similar to testing other technologies (desktop, mobile, etc.) there are some unique functions that are available on all recorded web objects:

 

Upon learning a web element in Rapise, you get an object of type HTMLObject . Each HTMLObject provides set of functions to facilitate the cross-browser access to web element parents and children.

 

DOM Function

Description

DoDOMChildAt

Returns n-th child (zero-based).

DoDOMChildrenCount

Returns number of children elements for this one.

DoDOMFindParentWithAttribute

Returns parent element (if any) with given attribute matching given string or 'regex´┐Ż

DoDOMGetAttribute

Returns specified attribute.

DoDOMNextSibling

Returns next sibling element for this one.

DoDOMParent

Returns parent element having this element.

DoDOMPrevSibling

Return previous sibling element for this one.

DoDOMRoot

Returns Root element having this element.

 

 

See Also

 

·Web Spy - How to use the Web Spy to inspect web pages and dynamically query for HTML elements

·XPath - An explanation of the XPath language, how it can be used to dynamically query objects in web application and some examples

·CSS - An explanation of how to use CSS selectors (common in frameworks such as jQuery) to dynamically query objects in web applications

·Web Testing Tutorial - a basic example of how to record, learn and playback tests using a our sample web application

·Setting up Web Browsers - describes the steps needed to configure each of the web browsers to work with Rapise.