Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Modern day Web-applications usually have dynamic web elements. Consistency in execution of test cases with these dynamic objects is the biggest challenge that modern days day web applications face.

Qualitia finds a way out of it. Qualitia gives an 's patented innovation / innovative approach / innovative technology overcomes this challenge. It gives an advanced option which resolves this problem of objects with dynamic elements.

Qualitia SmartLocator automatically identifies dynamic objects during the test case execution. The SmartLocator feature automatically modifies the locator value at runtime and updates it in the repository for future use. This way, Qualitia never fails to identify objects even though object locator value is getting changed after every session.

Qualitia gives you complete control over where to use this option as it can be enabled for every single object separately. This works with every desktop web object with dynamic elements which is added using Qualitia Object Spy.

Adding New Object

...

in Qualitia

...

While adding Starting v5.6, Qualitia automatically enables this option while adding new objects using Qualitia Object Spy, you You will see the SmartLocator option on the right-hand side corner . By default, this option is enabled for newly added objects.

Image Removed

in the Object Spy window. Qualitia highly recommends to keep this option enabled. 

Image Added

Editing Existing Objects

While editing object details from the Objects screen of Qualitia Automation Studio, you will find this option as follows: 

whereas, while editing objects from the Object Spy window, you will find this option on the right-hand side corner.

Image Removed

Info

Disabling this option, object will no longer be eligible for SmartLocator identification. Qualitia recommends you to keep SmartLocator enabled. 

If you wish to enable this option for this object later, you will have to perform either of the following steps for SmartLocator to work for this object:

  1. Add the object again using Qualitia Object Spy.
  2. Specify a valid xpath manually for the object, it will be identified by SmartLocator only after the first execution.

Use Case-1

Benefits of SmartLocator Feature

Let's take an example of https://in.yahoo.com/. On this pageweb application, you will find few section names at the top of the window. Attribute values for these menus (Home, Mail, News and so forth) are dynamic. Add these objects in Qualitia under some test case and execute the click action on it.  

Ensure you keep the SmartLocator option enabled on the Object Spy window while adding these objects in into the repository.  

As these objects contain dynamic elements, locater values will be updated after starting a new session. During the test case execution, objects will get identified auto-correcting the locater values over existing values. You can view the existing and updated locator values analyzing Info Log from the test execution report. 

Use Case - 2

Let's assume Sometimes, it might happen that even after auto-correcting the locater value, objects did you enable this feature, object will not get identified while execution. In this case,   Qualitia  execution report will give gives proper error logs in the execution reports about object identification failure. In this case, relearn this You can relearn the object using   Qualitia   Object Spy  and  

Info

In case the failure persists, you can edit the object, disable this option and add object locator type manually. Also, inform Qualitia support inform Qualitia support about the failure with appropriate logs

Disabling this option, object will no longer be eligible for SmartLocator identification. Qualitia recommends you to keep SmartLocator enabled.

If you wish to enable this option for this object later, you will have to perform either of the following steps for SmartLocator to work for this object:

  1. Add the object again using Qualitia Object Spy.
  2. Specify a valid xpath manually for the object, it will be identified by SmartLocator only after the first execution.

Existing Qualitia Users

If you are an existing Qualitia user and you are having any web applications which have objects with dynamic element, even you can use the SmartLocator feature. This will automatically modify the locator value at runtime and Qualitia will never fail to identify objects even though object locator value is dynamic. After upgrading to Qualitia Automation Studio v5.6, you can enable this option from the Object Spy window as mentioned in the screenshot below.

Image Added


Info

By default, the SmartLocator option is disabled for all the pre-existing objects. It is not recommended to enable this option for the parameterised objects. See limitations for more information.