Header

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Editing an Object

Sometimes, an object's name or properties might change, or you might want to rearrange your object hierarchy. Here's how you can edit an object in Qualitia Automation Studio (QAS):

Viewing Test Cases Before Modifying Objects 

Before updating an object, check which test cases might get affected. This can help you understand the impact of your changes. Here's how you can do it:

  1. Login to your QAS - Client.

  2. Access Develop from left navigation to view Test Explorer screen.

  3. Click Objects icon from the right side of the screen.

    1. A slide-out panel will appear where the existing objects are listed.

  4. In the left panel, find the object you are planning to update.

    1. This could be a parent or child object that's been used in some tasks.

  5. Right-click on the object, then click on View Test Cases from the context menu. 

This will show you a list of all the test cases where the given object is used. If you select an object from the list view (right-pane) and choose to edit it, you will also see a list of impacted tasks. You can then decide whether to proceed with the edits or take some other action based on the potential impact.

View Repository

  1. Login to Qualitia Automation Studio Client <insert Screenshot>

  2. Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

  4. You will see Object Repository.

  5. All the objects will be listed.

  6. Initiate Object Spy. For comprehensive guidelines on how to launch a web object spy, please refer to Launching Object.

  7. By default, you will land in Learn Objects Tab. <insert Screenshot>

  8. Click Repository tab.

  9. All the Pages from which the Objects captured under the Project will be listed.

  10. Click Refresh icon to update newly captured objects.

  11. If you see a Light Bulb icon next to an Object, it indicates that the Smart Locator is used to identify the Object.

Filter Objects List

  1. Login to Qualitia Automation Studio Client <insert Screenshot>

  2. Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

  4. You will see Object Repository.

  5. All the objects will be listed.

  6. By default, you will land in Learn Objects Tab. <insert Screenshot>

  7. Click Repository tab.

  8. All the Pages from which the Objects captured under the Project will be listed.

  9. Click the expand section to view the Objects under each page.

  10. If you wish to search for an Object, click Filter icon.

    1. Select the Web Page dropdown from which you want to filter Objects.

    2. From the Object Class select the WebElement you want to Filter.

  11. Objects that match the filter criteria will be listed.

  12. If you prefer to clear the filters, click x button next to each of the filter option.

Edit Objects from Object Repository

The Object Spy feature allows you to update object details, including their locator type and associated locator value.

To modify an object learned through the Hover mode, follow these steps:

  1. Login to Qualitia Automation Studio Client <insert Screenshot>

  2. Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

  4. You will see Object Repository.

  5. All the Pages from which the Objects captured under the Project will be listed.

  6. Click Expand button before each web page to view the Objects under the page.

  7. Within the Repository section, locate and select the page under which the object that requires updating resides.

  8. Hover on the object that you want to edit.

  9. You will see three options

    1. Edit

    2. Highlight

    3. Delete

  10. Click the Edit (Pencil) icon adjacent to the object you intend to modify.

  11. You can edit

    1. Name: Name of the Object

    2. Class: Class of the Object

    3. Locator Type

    4. Locator Value

  12. if you prefer to change the object with another object, click Update Object icon.

  13. The section will change to light orange color to give the feedback that the Update Object mode is on.

  14. Click on the new Object you wanted to replace; the object will be updated.

  15. Double click the Page Name to Edit the name of the page.

  16. Once updated, click the Tick mark.

  17. After making the necessary changes to the object details, click Save.

  18. Once all the changes are made, click Save To Repository to update the changes.

Note: Keep in mind that Smart Locator mode does not support changes to the Locator Value (HTML tag/structure) or Locator Type. If you intend to edit them, uncheck the Smart Locator.

For a use case, consider a website where the properties of a web element, say a button, have been updated during a website revamp. You can use this process to update the details of the button in your test script.

To modify an object learned through the Image mode:

  1. Login to Qualitia Automation Studio Client <insert Screenshot>

  2. Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

  4. You will see Object Repository.

  5. All the objects will be listed.

  6. Initiate Chrome Object Spy. For comprehensive guidelines on how to launch a web object spy, please refer to Launching Object.

  7. Ensure you are in Learn Objects Tab. <insert Screenshot>

  8. Initiate the browser (Edge or Chrome) that has the Web Object Spy enabled.

  9. For a comprehensive guide on how to launch a web object spy, please refer to Launching Object Spy.

  10. Within the Repository section, locate and select the page under which the object that requires updating resides.

  11. Hover on the object that you want to edit.

  12. You will see four options:

    1. A camera icon to indicate it is an image object.

    2. Edit.

    3. Highlight.

    4. Delete.

  13. Amend the object details as needed, you can update:

    1. Name: Name of the Object.

    2. Class: Class of the Object.

    3. Locator Type.

    4. Locator Value.

  14. If you prefer to change the image object with another image, click Update Object icon.

  15. The section will change to light orange color to give the feedback that the Update Object mode is on.

  16. Click the new image you wanted to replace; the image object will be updated.

  17. Click Save to save the changes, if you have clicked edit by mistake or you don’t want the changes made to be saved, click Reset.

  18. Once all the changes are made, click Save To Repository to update the changes.

  19. As an example, if the source of an image object has been changed on the website, you might need to update the test script to reflect this change.

Note: Please note that Smart Locator mode doesn't support the Image mode.

The object will be locked for any edits if any user or you for that matter is trying to edit the Object in Object Repository and trying to edit it using the Object Spy.

Remove Objects from Object Repository

The Object Spy feature allows you to update object details, including their locator type and associated locator value.

To modify an object learned through the Hover mode, follow these steps:

  1. Login to Qualitia Automation Studio Client <insert Screenshot>

  2. Access Develop from left navigation of your Qualitia Automation Studio -Client to view Test Explorer screen.

  3. Click Objects icon from extreme right of the toolkit.

  4. You will see Object Repository.

  5. All the objects will be listed.

  6. Within the Repository section, locate and select the page under which the object that requires updating resides.

  7. Hover on the object that you want to edit.

  8. You will see three options:

    1. Edit

    2. Highlight

    3. Delete

  9. Click the Delete (bin) icon.

  10. Once all the changes are made, click Save To Repository to update the changes.

Note: Remember, you can only remove objects that are not part of any tasks or test cases. Removing parent object, will remove all its child objects as well.

  • No labels