Skip to end of metadata
Go to start of metadata

Purpose

SeleniumABAP provides a ABAP Object interface to Selenium RC which is an OpenSource project that allows to automate web application testing. It was tested in the CRM WebUI and with WebDynpro. In addition to connect to Selenium RC it can read the SeleniumIDE HTML format and produce output for ABAPUnit and eCATT.

Architecture

SeleniumABAP consists of a number of ABAP Object classes.

ZCL_SELENIUM_COMMAND

Represents a single Selenium Command with the parameters COMMAND, TARGET and VALUE.

ZCL_SELENIUM

Representing a test script created with SeleniumIDE. SeleniumIDE produces a HTML output which contains all recorded steps as a HTML table. All commands are saved inside a CL_OBJECT_COLLECTION using the ZCL_SELENIUM_COMMAND class.

ZCL_SELENIUM_READER_HTML

A helper class to read the HTML file created by SeleniumIDE into a ZCL_SELENIUM object. The HTML parsing is done using the ABAP IXML interface.

ZCL_SELENIUM_WRITER

Parent class for the different writer implementations. Providing an interface with a CONSTRUCTOR that sets the instance attribute with a ZCL_SELENIUM object and a CREATE method that returns the specific format as a string.

ZCL_SELENIUM_WRITER_ABAPUNIT

Implementation of a  ABAPUnit Export.

ZCL_SELENIUM_WRITER_ECATT

Implementation which exports a eCATT test script as XML. This file can be imported using transaction SECATT.

ZCL_SELENIUM_CLIENT

This class is created using the XSL-Transformations provided in the Blog Automate Web Application Testing with Selenium for ABAP. It is the connector to Selenium RC.