Loading...

Handling static and dynamic Test Objects

Introduction

Test Objects are one of the most crucial parts of building a successful automation project. Some of them are static (do not change at all) and some of them are dynamic (they are dependent on some dynamically changing parameters). This tutorial shows you different approaches for handling different types of test objects.

Static objects

Static objects are very easy to handle. Just go to Object Repository, choose New Test Object and use your favorite selector.

Dynamic objects

Dynamic objects are a bit trickier to deal with than static objects, but it is not so difficult as it may look like, there is a akaAT way to handle parameterized objects

Step to use dynamic object with akaAT:

Step 1: Put variables on the side of variables

Step 2: Write in locator to find element and put value variable into Locate Value through the character ${param}

Step 3: Create a testcase and call the test object and pass the value to the set variable location

In the Source section we can use many components: default, variable, global variable, data column.

  • Default values, we can fill the value directly in the value.
  • Variable we can choose the value of the variable instead of the text we pass and when changing we only need to change the value in the variable
  • Data column we can link to a table of data to get the values in the table to pass in the values
  • Global is the same as the variable except that the global variable can be used for all test cases while the variable is only used. for the test case that contains it

We will try out the components with dynamic XPath

First, we can create a data file and associate the dynamic XPath with the values in the table

We create the data file and add value to the table. Then in the testcase, in the source we select Data Column and let the value is the data file point name column name

The next thing that is to use variables, we set aside variables and create a variable to add value to the variable

Then we go to the testcase, in the source we use the variable and select the corresponding variable

And the last way is we can use global variables

We create global variables, add values and then in the testcase in the source we select the global variables and select the corresponding values

Blog Posts

Image

Getting Started

Go to akaAT Download page to get the latest version of akaAT Studio. A suitable version for your system will be automatically detected and recommended for download...

Continue Reading...

Image

Define Test and Variables

In this chapter, we’ll first define the steps of the data-driven test. Then, we’ll define the required variables for this scenario. You’ll also find out how to manage variables in akaAT Studio...

Continue Reading...

Image

Multi-touch Actions in Mobile App

Multi-touch action often appears in gaming applications. This tutorial shows you how to perform a multi-touch action...

Continue Reading...

Image

Web Handling

What are Locators?
Locators are basically the HTML attributes of a web element. They help identify unique web elements on a page and command testing frameworks...

Continue Reading...

Image

Pop-up Handling

When performing automation testing, you may sometimes deal with pop-up dialog issue that needs to be handled differently from normal test objects. This tutorial shows you how to deal with pop-up controls....

Continue Reading...

Image

Alert Handling

What is an alert?
An alert is a JavaScript function which is used to notify users on a Web page. It displays a dialog with a specified message and OK/Cancel buttons...

Continue Reading...

Image

Textbox Handling

This tutorial illustrates how to handle Textbox, Checkbox, Radio buttons using akaAT Studio. The reference source code is provided at the end of the tutorial...

Continue Reading...

Image

iFrame Issue Handling

A very common type of control used in website is the HTML iframe. And this control needs to be handled in a specific manner when testing. This article shows you how to handle iframes...

Continue Reading...

Image

Dropdown Handling

A drop-down list (abbreviated drop-down; also known as a drop-down menu) is a graphical control element, similar to a list box, that allows the user to choose one value from a list...

Continue Reading...

Image

Static and Dynamic Test Objects Handling.

Test Objects are one of the most crucial parts of building a successful automation project. Some of them are static (do not change at all) and some of them are dynamic (they are dependent on some dynamically changing parameters)...

Continue Reading...