1. Home
  2. OpKey Help
  3. 7. Working with Test Case
  4. 7.1 Overview

7.1 Overview

What is a Test Case?

Test Case is one of the most significant artifact of OpKey Test Accelerator where we just call a pre-built Business Process  and map it with static data or Local Data Repository.

Once the Test Case is mapped with the Local Data Repository, it can be undergo a number of test iterations as per the requirement of the Test Scenario.

The Test Case so created,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 and assign privileges to him.

For this purpose, you can create a Business Process for by calling the pre-built  Business Component for adding a new user in to it.

Once, the Business Component is added to the Business Process, you can add another pre-built Business Component for assign privileges to the User.

Likewise, You can add other Business Components to the Business Processes depending upon the requirement of the Test Scenario.

After the Business Process is created, you can create a Test  Case and call the Business Process in to it.

Then, the Test Case can undergo a number of Iterations, by parameterizing it with Static Data or Local Data Repository.

Working on a Test Case File and Performing Actions on it

Go to OpKey Test Accelerator Dashboard > Click on Test Case.

A Manage Test Case  window will get open.

The Manage Test Case Window displays the list of all Existing Test Case(s). This List of Test Case(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 Test Case  in OpKey Test Accelerator .

Creating a Test Case File

A Test Case File can be created in either of the two views.

For Grid View

To Add a new Test Case File 

  • Click on Create Tab.

OR

Select a Label and Right Click on It.Now,select Create Test Case.

OR

Select a Label  and click on Create Test Case icon.

  • A pop up window will get open.

  • The field marked with * is mandatory.  Enter the Name of the Test case.
  • The dropdown of  Business Process  is auto populated with all the pre-built Business Processes. You may select the Business Process from it.
  • Also, Enter the description of the Test Case. Click on Create.

For Label View

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

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

A pop up window will get open.

The field marked with * is mandatory.  Enter the Name of the Test case.

The dropdown of  Business Process  is auto populated with all the pre-built Business Processes. You may select the Business Process from it.

Also, Enter the description of the Test Case.

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 Test Case window. You can see the flowchart with mapped Business Components [associated with the Business Process], Start and End boxes.

 

Getting Familiar with the Test Case Icons

Let’s see what are the actions that can be performed on the Test Case File.

Create Copy

You can create a duplicate file for the Selected Test Case. To do so-

  • Select the appropriate Test Case file in the Manage Test Case window.

For Grid View

  • Here, the Selected Test Case file is  “Create Transaction with Multiple Lines and Make Receipt“.Click on Create Copy Tab.

OR 

          Right Click on the Selected Test Case 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 Test Case File is “BCG_EFT”.

  • A Duplicate file will be created for the selected Test Case.

Sync

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

For Grid View

Case 1:Selecting a Test Case for Synchronization

  • Select the appropriate Test Case file in the Manage Test Case window. Let’s say “Create Transaction with Multiple Lines and Make Receipt” and click on Sync  Tab.

OR 

          Right Click on the Selected Test Case 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 Test Case(s).
  • Select the appropriate Label in the Manage Test Case 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 Test Case(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 of one Project can be Synchronized with the Data of another Project for the selected Test Case.

Export

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

For Grid View

Case 1:To Export a Selected Test Case File

  • Select the appropriate Test Case file in the Manage Test Case window. Let’s say “Create Transaction with Multiple Lines and Make Receipt” and click on Export Tab.

OR 

          Right Click on the Selected Test Case 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 Test Case(s).
  • Select the appropriate Label in the Manage Test Case window. Let’s say “New Label” 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 Test Case(s) you wish to Export
  • Click on Export Tab.

  •  win.rar Zip File will get exported.

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

Open in New Tab

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

For Grid View

Select the Test Case, which you wish to Open in New Tab. Here, “Create Transaction in Multiple Lines and Make Receipt”

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

OR

Right Click on the Selected Test Case and Select Open in New Tab Option.

For Label View

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

The selected Test Case will get Open in a New Tab in “Modify Test Case” window.

Delete

You can Select a Test Case and then Delete it. To do so-

For Grid View

Select the Test Case, which you wish to Delete. Here, “Create Transactions with Multiple Lines and Make Receipt”.

  • Click on the “Delete” Icon.

OR

Right Click on the Selected Test Case and Select Delete Option.

For Label View

  • Switch to Label View
  • Select the Test Case you wish to Delete.
  • Click on Delete Test Case icon.

A pop up window will get open as

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

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

Rename

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

For Grid View

Select the Test Case, which you wish to Rename. Here, “Create Transactions with Multiple Lines and Make Receipt”.

  • Click on the “Rename” Icon.

OR

Right Click on the Selected Test Case and Select Rename Option.

For Label View

  • Switch to Label View
  • Select the Test Case you wish to Rename.
  • Click on Rename Test Case icon.

A pop up window will get open as

Click OK.

The Name field will be editable and auto filled with the Existing Test Case name. You can Modify the Name of the Test Case. Here, the modified Name is “Create Transaction  and Make Receipt“.

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 Test Case has to be assigned.

Click Update.

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

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

Search

You can Search for a specific Test Case(s) by it’s Name or the Name of the Label to which the Test Case(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 Test Case –“Create Transactions with Multiple Lines and Make Receipt” .

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

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

For Label View

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

  • To Search for Test Case(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 Test Case(s) assigned to that Label will get filtered accordingly in the Manage Test Case 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 Test Case(s) in OpKey Test Accelerator.

Was this article helpful to you? Yes No