Professional Documents
Culture Documents
Best Practices Naming Conventions
Best Practices Naming Conventions
Best Practices
Naming Conventions
February 2017
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 2 of 10
Best Practices
Naming Conventions
Table of Contents
Definition .................................................................................................................................... 4
Purpose ..................................................................................................................................... 4
Worksoft Naming Standards and Best Practices ........................................................................ 4
Conventions for Worksoft Elements ........................................................................................... 5
Variables ..................................................................................................................................... 5
Transaction Code/Component or Unit Test Process ................................................................... 5
SAP Human Resource Info Types .............................................................................................. 6
Integrated or End to End Test Process ........................................................................................ 6
Data Layouts ............................................................................................................................... 6
Recordsets ................................................................................................................................... 7
Dynamic Objects in HTML ........................................................................................................ 8
Conventions for Folder Structures .............................................................................................. 9
Processes ..................................................................................................................................... 9
Sub Processes (t-codes/components) .......................................................................................... 9
Utilities...................................................................................................................................... 10
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 3 of 10
Best Practices
Naming Conventions
Definition
In the Worksoft Automated Testing methodology, a naming standard is the set of rules governing
the character sequence to be used for identifiers of things like processes, variables, record sets,
folders, and other entities used in the Worksoft Certify test automation tool set.
Purpose
A good naming standard helps to create order and reduce confusion. When working in a shared
environment like the one we use for Certify, the use of consistently structured names greatly
reduces confusion. With multiple individuals re-using Certify entities, the ability to glance at the
name and quickly determine the true content or functionality is crucial as it greatly reduces the
likelihood of confusion.
Using Certify will result in an inventory of multiple testing assets. In many situations the
creators of the original test assets will not be the same as those tasked with maintaining them.
The use of naming standards will make it significantly easier for subsequent generations of
Quality Analysis analysts and developers to understand what the Certify processes are doing and
how to fix or re-use the processes for new business testing needs.
The use of a standard naming convention when using Certify will help group and categorize
testing assets, thereby simplifying and speeding up the tasks of sorting, searching and reporting.
Worksoft Naming Standards and Best Practices
The Certify naming best practices are intended to cover all Certify entities including processes,
sub-processes (t-codes/components), data layouts, record sets, variables, as well as the folder
structures in which they are stored.
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 4 of 10
Best Practices
Naming Conventions
Conventions for Worksoft Elements
Variables
Variables are the containers that hold data as a business process is being executed and
reflect the fields where data are being entered or displayed on a transactional or web
page. Variables should reflect the name of the field as they are displayed on the screen.
In most cases variables already exist which allow you to pull the variable directly from
the variable folder (just make sure it is the correct type like text versus numeric). You
should only create variables as a last resort for items that do not exist. For example, if
your screen name is Company Code you can use an existing variable called Company or
Company Code, whichever exits. Creating variables at random and not using existing
variables can cause a bloated mess in the variable folder(s) and make it difficult to debug
the processes you are creating. You should never create folders for variables as this leads
to confusion due to multiple variables with the same name and other maintenance
headaches.
• If a field needs more than one variable, then delimit the variable with a _VariantName
• If a variable needs to be assigned more than one value at the same time, for example for
comparison purposes, then the same variable name should be used with a ‘#’ to indicate that
it indeed is a necessary variable and not a duplicate of an existing variable.
Format: TCode_Description1_Description2_Description3
Component_ComponentDescription
Example: VA01_CreateStandardOrder_SingleItem
Example: VA01_CreateContractOrder_MultipleItems
Example WebOrder_SelectionPane
If a process uses a child process to work with a multi-element object such as a table or
grid it should be extended with the parent process name +, _C , + additional description.
Example: VA01_CreateContractOrder_MultipleItems
Example: VA01_CreateContractOrder_MultipleItems_C _TableInput
Format: ApplicationArea_Description1_Description2_Description3
Example: O2C_ShipBill_ConstantQuote
CRM_CustomOrder_ProcessThroughSAP
WebOrder_FromBrowser_ToSAP_ToMainframe
Data Layouts
• Named exactly as the Process Name
• Variant Layouts will have the same name as the Process name plus identifier
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 6 of 10
Best Practices
Naming Conventions
• Highlight the Certify Process name while in the process data editor, then use the copy
function. When creating the record layout paste the copied process name into the layout
name field.
• Provide a description if needed
• Most Certify processes have only one layout associated with it. However there may be a need
to have more than one. In this case use the same name as the original layout and add a variant
identifier
Recordsets
• Named exactly as the Process Name
• Any number of recordsets are possible for any given test
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 7 of 10
Best Practices
Naming Conventions
• Name the object using a generalized name rather than a specific name +
(REPLACEME=inner text)
Example: Dynamic Link (REPLACEME=inner text)
Example: Dynamic Window (REPLACEME=caption)
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 8 of 10
Best Practices
Naming Conventions
Processes
For example, the folder name for Order to Cash integrated business processes in Certify would
be defined as (OTC) Order to Cash. The ‘OTC’ acronym will be used in naming all Order to
Cash processes stored under this folder…i.e. OTC_StandardOrder_MultipleLineItems. This
reflects the use of the folder structure acronym while supporting a strong definition for the
process. Following this procedure makes it easy to find the process will reside within the (OTC)
Order to Cash folder.
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 9 of 10
Best Practices
Naming Conventions
Sub-Processes (t-codes/components)
Utilities
Utilities are sub processes that can be used by many different business processes. They can be routines
related to dates, financial processes, clean up, and conversion routines. This is a small sampling of
utilities that already exist within Certify for your use. All utilities start with UTL_ followed by a
descriptor showing what it is used for. An example is UTL_ConvertDatetoJulianFormat. This would
convert a standard date format to Julian.
2017 Worksoft, Inc. All rights reserved. Worksoft and Worksoft Certify are registered trademarks of
Worksoft, Inc. All other marks are property of their respective owners.
Page 10 of 10