Object and Step

Overview

Repository Menu consists Object, Steps and Test data. Every Websites or application has Object such as user name or Password or male or female etc., we need to take xpath of each element and create object in breez, when you create object in breez, You will automatically create steps. These steps are used in input file with specific keywords. For some of the steps, user might require a data, like for name, email or mobile number etc., at that time we will use test data screen to add our data.

Repository Hierarchy

Object Screen

There are many ways to create Object from breez

1) Repositoryà Objectà Select screenà Create Object

2) Org Artefactà Screenà Object Iconà Create object

3) Org Uploadsà Object uploads

4) Element extraction

Step

There are many ways to create Steps from Breez. There can be multiple step for single object.

1) Repositoryà Stepà Select screenà Create Step

2) Org Artefactà Screenà Steps list Iconà Create Steps

3) Org Uploadsà Step uploads

4) Element extraction

Pre-requisites

Following are the pre-requisites for Repository:

1) We need to create target system

2) Create credential if required

3) Create screen

Object

Fields that are important in the Object screen:

  1. Object name: You can enter the object name suitable for your element. For example if you are adding object for gender, then you can just enter the object name as female or male.
  2. Object type: Object type depend on the element, you can analyze type of object. If it requires input then select text field in the drop down, If object require clicking, then select Button in the object type
  3. Path Priority: This field is by default as byXpath, it is not a mandatory field, but we can choose the priority of the xpath, if we want the xpath to be from class or id, we can give class or id as 1. Here 1 is the highest priority and 8 is the least priority.
  4. Object xpath: Details of xpath is shown in the below topic
  5. How to take xpath
  6. Open any website in your browser. I am using ICICI insurance website
  7. Open inspect
    • Method 1: Right click and inspect
    • Method 2: Press CTRL+SHIFT+i
  8. Click on Element
  9. Click on the icon shown above and click on the element which you want xpath
  10. I am clicking on DOB
  11. We will be using the above code to generate the xpath
  12. Press ctrl+f and we need to use the //input [@“name=user_dob”] in search field and click enter
  13. The object in the website should be highlighted
  14. Note: We can create xpath for the object automatically from element extraction screen. Please use the element extraction user guide to create xpath, object and step automatically.
  15. Creating Object from repository
  16. Select object -> select your screen
  17. Click on Create Object
  18. Object name, Object xpath and Object type is the mandatory field
  19. For DOB object, we need to enter the data in the text field, so we will be selecting textfield.
  20. Click on create
  21. Object is successfully created
  22. Creating the Object from screen configuration
  23. Go to org Artefact - > Screen - > Object
  24. Create the object
  25. Enter the mandatory field and create
  26. Date is created

Test Step

The important fields in the Test steps screens are

  1. Keyword Category There are many category in the keyword, some of the example are web, Validation etc, each of these field is dedicated to specific function, like validation keywords are used to validated.
  2. Keyword name each keyword do a specific task.
  3. Sequence number Normally, this field is auto populated. We can also manually change the sequence number. It just defines in which order the test steps should be executed.The least number will be automated first.
  4. Object name this is a mandatory field and it has to be selected to know xpath of that particular step.
  5. Create this is a button, which helps to create the test step
  6. Screenshot This field will be none by default. We can manually change it as per requirement.

Create Test steps using Repository

  1. Go to Repository menu -> Test steps -> select your screen create test steps
  2. Create test step
  3. 1) Select Object name2) Keyword category3) Keyword Name: These 3 are mandatory fields.
  4. Click on create
  5. Newly created steps

Create test step using screen configuration

  1. Go to Org Artefact -> Screen -> click on step icon -> create test steps
  2. Select artefact and screen
  3. Click on the test step icon
  4. Scroll down -> Create test step
  5. Enter all the mandary field and create

Create test step from Object screen

  1. Click on the edit option
  2. Scroll down -> Click on the show steps of objects
  3. Create steps
  4. Note: same steps can be followed to create test from Object present in the screen configation

Create test steps from + icon in object screen

  1. select object and screen
  2. Only above shown field is mandatory

Note: Just like above example of creating the test steps using + sysmbol in object screen can be done using screen configuration also. Select Artefact -> screen -> select object icon -> click on +

Remember when you use + for creating test step, Object name will be automatically selected and it is not editable.