NOTICE: Our Community is moving. Get more information. Updated information on a New Login Process
The following are suggested 4Test standards that can be implementedfor all published material, including documentation, courseware, and consultingwork.
Elements in a LIST are called
Elements in a list object (ComboBox, ListBox, PageList, RadioList) are called
Members of a record are called
Data types are denoted in all capital letters.
LIST OF WINDOW
User-defined types are denoted in all capital letters. Underscores are used between words.
type LANGUAGE is enum
type NEW_EMPLOYEE is record
type COLUMN is INTEGER, STRING
Constants are denoted in all capital letters. Underscores are used between words.
const CREATE = TRUE
const APP_EXEC = "c:\foo\foo.exe"
The booleans true and false are denoted in all capital letters.
The null value is denoted in all capital letters.
The first and all significant letters of built-in and user-defined functions, methods, and properties are capitalized.
Hungarian notation is used for naming variables
LIST OF WINDOW lwChildren
Data driven functions preface the testcase name with DataFor.
A single space precedes an opening parenthesis (expect for dynamic instantiation). No space follows the opening parenthesis.
MainWin("My App").DialogBox("Open").GetCaption ()
A single space separates function parameters.
ListInsert (lList, 4, "new item")
testcase Foo (wDialog, "Open", FALSE)
A single space separates operators.
for i = 1 to 50
The boolean expression in the if statement is enclosed in parenthesis.
if (sFirstVar == sSecondVar)
The ! operator is outside the parenthesis.
Dialog boxes have a standard set of methods.
Method names for custom objects which emulate standard functionality are the same as the built-in methods.
wCustomPageList.Select ("Tab One")
A single space follows a comment designation.
// bring up the app
The first letter of a comment is lowercase.
// check that field has correct value
Comments inside of functions are indented along with the statement being described. Comment sections are separated with a blank line.
// populate the field
// verify date is correct
File headers include the file name, brief description of the contents, author and date. A separator line delimits the header section from the body of the file.
// Window declarations for My App.
// Written by Testy Software, April 96