Customization

How to customize a solution in Testware Framework Manager

Overview

A Testware Framework Manager solution will be easily maintained and customized by a combination of using the Visual Studio IDE and the user-friendly application interface.

Extension Classes

All custom implementation to a Testware Framework Manager framework is handled through extension classes in the underlying Visual Studio solution.

Within an extension class, additional functionality may be added as methods and will thereby expand and enrich the test automation framework in general.

The following example shows the creation an extension class...

images

Within an extension class you may add new extension methods for a page object.

When creating a extension method, the produced source code will be a scaffolded function and does require a subsequent manual adaption in Visual Studio IDE afterward.

The following example shows the creation an extension method...

images

Create an Extension Class

  1. Select the Solution Explorer tab on the left side of the main application...
  2. Select an existing page object class in the Page folder of the API project...
  3. Open the Right Mouse Button menu and select the Create Extension Class entry...

A new extension class has now been created in the extension folder...

Create an Extension Method

  1. Select the Solution Explorer tab on the left side of the main application...
  2. Select an existing page object class in the Extension folder of the API project...
  3. Open the Right Mouse Button menu and select the Create Extension Method entry...
  4. Fill-in the properties in the Add Extension Method dialog and choose the OK button...

A new extension class method has now been created in the extension folder...


Dynamic Menus

Handling dynamic menus for a web application in Testware Framework Manager requires some minor customization.

The Framework Manager menu definitions is by default implemented to be handled as a semicolon-separated string of links, but within an extension class behaviors may be overridden.

Following example shows a custom implementation of a dynamic menu...

images

images


Custom Controls

Handling custom controls for a web application in Testware Framework Manager requires some minor customization.

When defining a new custom control in a page definition, the code generator will automatically create an extension class in the framework API where behaviors may be overridden.

The following example shows the implementation of customs control...

images

images


Module Functionality

A module extension may be considered as a class with high-level reusable features and may consist of methods from several page objects or external services.

The following example shows an implementation of a module extension...

images

images


The Video Guide