2022
To test a User Defined Function, it has to be accompanied by a method generally started with header "//@Test". The user must save the created Function before testing it.
The following code snippet shows the Test method required to test the previously created Append Function.
//@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 shows the User Defined Function along with Test method required to execute it.