2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 //@Test
function testFirstAndLastName(){//@Test
function testFirstAndLastName(){
  var firstname = "Xxxxxx";
  var lastname = "Yyyyy";
  addFirstAndLastNames(firstname, lastname);
}  var firstname = "Xxxxxx"; var lastname = "Yyyyy";  addFirstAndLastNames(firstname, lastname);
}

The following screen shot depicts the user User Defined function along with Test method required to execute it .

  1. After writing the Test method immediately after the UDF ,which is a good practice, user can save by hitting save button located at the top right corner of the page .
  2. Now user is prompted to select the available Test Methods in a pop-up, so that he/she can select the appropriate name and hit "Run Tests" button
  3. Finally, the number of codes executed in the Top ribbon.  Image Added