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