Scripts are usually created automatically in RAMP, but to deal with them confidently you need to understand some scripting basics.
Basic JavaScript syntax
- Comments are marked with /* */
- Lines are ended with a semicolon ( ; )
- Literals are enclosed in double-quotes (")
- There are Framework Objects that Scripts Can Refer To
- The structure of the conditional switch statement is:
switch ( n )
{
case 1:
execute code block 1
break
case 2:
execute code block 2
break
default:
code to be executed if n is
different from case 1 and 2
}
{
case 1:
execute code block 1
break
case 2:
execute code block 2
break
default:
code to be executed if n is
different from case 1 and 2
}
Types of scripts in RAMP
This topic covers:
- The interaction between Invoke Scripts and Return Script
- Button Script
- Eliminate Script
Application level tracing
- Use the Tracing option in the Framework menu to start Application Level Tracing.