1. Home
  2. OpKey Help
  3. 5. Working with Business Components
  4. 5.1 Overview

5.1 Overview

Overview 

What is a Business Component?

Business Component refers to the repository of reusable executable functions that can be used across different Business Processes . It is considered to be the smallest artifact unit of OpKey Test Accelerator.

These Business Components can be composed of various Keywords, Service Repository, Pre- built Business Components.

Once you have created any Business Component, it can be easily modified and reused repetitively.

For example:

Let’s Suppose you are a Admin of an Enterprise Application say, Workday. Your requirement is to add a new user having  valid login credentials.

Here, you can create a Business Component for adding a new user.

Working on a Business Component File and Performing Actions on it

Go to OpKey Test Accelerator Dashboard > Click on Business Component.

A Manage Business Component window will get open.

The Manage Business Component Window displays the list of all Existing Business Component(s). This List of Business Component(s) can be in either of the two views.One is the Grid View and the Other is the Label View.

Now, Let us learn how to create a Business Component  in OpKey Test Accelerator .

Creating a Business Component File

A Business Component File can be created in either of the two views.

For Grid View

To Add a new Business Component

  • Click on Create Tab.

OR

Select a Label and Right Click on It.Now,select Create Business Component.

OR

Select a Label  and click on Create Business Component icon.

  • A pop up window will get open.

  • The field marked with * is mandatory.  Enter the Name of the Business Component.
  • Also, Enter the description of the Business Component. Click on Create.

For Label View

Go to the Label view, by clicking on the Grid View Tab.

The Existing Business Component(s) will get displayed in Label view.To Add a new Business Component , Click on Create.

A pop up window will get open.

The field marked with * is mandatory.  Enter the Name of the Business Component.

Also, Enter the description of the Business Component.

Click on the Labels Dropdown. The dropdown of  Labels  is auto populated with all the pre-built Labels. You may select the Labels from it.

Click on Create.

You will be navigated to the Modify Business Component window. You can see a blank flowchart with Start and End boxes.

Getting Familiar with the Business Component Icons

 Step Details

While working with the Business Component in OpKey Test Accelerator, you can view details of the selected Test Step within the Business Component module.

It includes the Step Information where you can read the brief summary of the Selected Test Step.

With the help of Step Details window, you don’t need to open the Object Repository file for viewing object details. When you select any test step its corresponding details such as Object Arguments, Object Image and Object Properties are displayed at the bottom of the screen under Step Details section.

Object Arguments section displays the name of object(s) mapped with the test step and the properties associated with the object are displayed under Object Properties section. Object Image section displays the image of the object mapped with that particular step.

In case of multiple objects associated with a test step, you need to select the object to view its corresponding image and object properties.

The object details shown under Step Details panel are in Read Only mode.

The Step Details window also allows you to view Data Input Arguments involved in the Test Step including its Data Type, Name and Mapped Data.

Grid Option in Business Components

Clicking here allows you to view all the Test Steps in the form of Grid as shown

Let’s see what are the actions that can be performed on the Business Component File.

Create Copy

You can create a duplicate file for the Selected Business Component. To do so-

  • Select the appropriate Business Component file in the Manage Business Component window.

For Grid View

  • Here, the Selected Business Component file is  “Create Receipt for Four Way Purchase Order“.Click on Create Copy Tab.

OR 

          Right Click on the Selected Business Component File and Select Create Copy Option.

OR 

          Click on the Create Copy icon.

For Label View

  • Switch to Label view and Click on Create Copy Tab. Here, the Selected Business Component File is “Bank Statement Loader”.

  • A Duplicate file will be created for the selected Business Component.

Sync

You can Synchronize  the Data of the Selected Business Component(s) of one Project with another . To do so-

For Grid View

Case 1:Selecting a Business Component for Synchronization

  • Select the appropriate Business Component file in the Manage Business Component window. Let’s say “Create Receipt for Four Way Purchase Order” and click on Sync  Tab.

OR 

          Right Click on the Selected Business Component File and Select Sync  Option.

OR 

               Click on the Sync icon.

Case 2:Selecting a Label for Synchronization

  •  You can also select a  Label for Synchronization.It can be best used in case you wish to Synchronize multiple Business Component(s).
  • Select the appropriate Label in the Manage Business Component window. Let’s say “Label Next” and click on Sync  Tab.

OR

          Right Click on the Selected Label and Select Sync  Option.

     OR

         Select the appropriate Label and click on the Sync  icon.

For Label View

  • Switch to Label View
  • Mark the Check boxes Corresponding to the Business Component(s) you wish to Select for Synchronization.
  • Click on Sync  Tab.

  • A pop up window will get open as

  • All the fields marked with * are mandatory. Enter the URL Name.
  • The User Name  and Password Fields are Auto-populated with the relevant details.
  • Click on the Select Project dropdown. The Dropdown will get auto-populated with all the existing Projects.
  • Select the appropriate Project.
  • Click on the Sync Icon.

In this way, the data from one Project can be Synchronized with the Data of another Project for the selected Business Component.

Export

You can Export the Selected Business Component(s) to a win.rar Zip File . To do so-

For Grid View

Case 1:To Export a Selected Business Component File

  • Select the appropriate Business Component file in the Manage Business Component window. Let’s say “Create Receipt For Four Way Purchase Order” and click on Export Tab.

OR 

          Right Click on the Selected Business Component File and Select Export Option.

OR 

      Click on the Export icon.

Case 2:To Export a Selected Label

  •  You can also select a  Label for Export.It can be best used in case you wish to Export multiple Business Component(s).
  • Select the appropriate Label in the Manage Business Component window. Let’s say “Label Next” and click on Export Tab.

OR

          Right Click on the Selected Label and Select Export Option.

     OR

         Select the appropriate Label and click on the Export icon.

For Label View

  • Switch to Label View
  • Mark the Check boxes Corresponding to the Business Component(s) you wish to Export
  • Click on Export Tab.

  •  win.rar Zip File will get exported.

In this way, you can Export the Selected Business Component(s) in OpKey Test Accelerator.

Open in New Tab

You can Select a Business Component and then Open it in New Tab. To do so-

For Grid View

Select the Business Component, which you wish to Open in New Tab. Here, “Create Receipt for Four Way Purchase Order”.

  • Click on the “Open in New Tab” Icon.

OR

Right Click on the Selected Business Component and Select Open in New Tab Option.

For Label View

  • Switch to Label View
  • Select the Business Component you wish to Open in New Tab.
  • Click on Edit Business Component icon.

The selected Business Component will get Open in a New Tab in “Modify Business Component” window.

Delete

You can Select a Business Component and then Delete it. To do so-

For Grid View

Select the Business Component, which you wish to Delete. Here, “Create Receipt For Four way Purchase Order”.

  • Click on the “Delete” Icon.

OR

Right Click on the Selected Business Component and Select Delete Option.

For Label View

  • Switch to Label View
  • Select the Business Component you wish to Delete.
  • Click on Delete Business Component icon.

A pop up window will get open as

Click OK.
The Selected Business Component will get Deleted and the Message “Artifact Deleted Successfully” will get displayed.

In this way, you can successfully delete a Business Component in OpKey Test Accelerator.

Rename

You can Select a Business Component and then Modify it’s name. To do so-

For Grid View

Select the Business Component, which you wish to Rename. Here, “Create Receipt For Four Way Purchase Order “.

  • Click on the “Rename” Icon.

OR

Right Click on the Selected Business Component and Select Rename Option.

For Label View

  • Switch to Label View
  • Select the Business Component you wish to Rename.
  • Click on Rename Business Component icon.

A pop up window will get open as

Click OK.

The Name and Description field will be editable and auto filled with the Existing Business Component Details. You can Modify the Name and its Description of the Business Component as per the requirements.

Click on the Label dropdown. It will get auto-populated with all the Existing Labels in the Project. Select the appropriate Label to which the Business Component has to be assigned.

Click Update.

The Business Component will get Updated Successfully, and a message “Business Component Updated Successfully” will be displayed on the screen.

In this way, you can successfully Rename a Business Component in OpKey Test Accelerator.

Search

You can Search for a specific Business Component(s) by it’s name or the Name of the Label to which the Business Component(s) is assigned in the Search Box [depending on the Type of View Selected]. To do so-

For Grid View

Let’s Say, you are looking for a specific Business Component“Create Receipt for Four Way Purchase Order” .

  • Once you start typing the name of the Business Component in the Search Box . The List of the Business Component(s) start filtering accordingly in the Manage Business Component window.

  • You can also Type the Keywords related to the Name of the Business Component in the Search Box. Still, the Search will begin and the Business Component(s) will get filtered accordingly.

For Label View

  • In the Label View, a Business Component can be searched by either typing it’s name/Keyword  or Selecting the Name of the Label to which the Business Component(s) is assigned to in the Search box.
  • To Search by Name of the Business Component, Go to the Search by Keyword Search Box and Type the Keyword/Name of the Business Component to be Searched.
  • Once you start typing the name of the Business Component in the Search Box . The List of the Business Component(s) start filtering accordingly in the Manage Business Component window.

  • To Search for Business Component(s) assigned to a specific label, Go to the Search by Label Dropdown. The Dropdown will get auto populated with all the Existing Labels.
  • Select the appropriate Label.
  • All the Business Component(s) assigned to that Label will get filtered accordingly in the Manage Business Component window.

  • Clicking on the Clear Search icon will clear the Text written in the Text Box.

In this way, you can successfully Search for a specific Business Component(s) in OpKey Test Accelerator.

Was this article helpful to you? Yes No