Start using- sensetalk feature in eggplant


For all my testscripts I would like to have one initialization script where i load function/handlers by using ‘start using’ command of sensetalk and execute all scripts from this script.

Are the functions/handlers usable in all the scripts or only the calling script?

Please advise.


SenseTalk’s start using and stop using commands are a convenient way to add and remove scripts in a list known as the backScripts. The backScripts is a global property, so handlers in those scripts are available from any script, not just from the script that inserted them.

SenseTalk also has a frontScripts list, but it is rarely used. Handlers in the frontScripts come before (and therefore override) handlers in the current script, which in turn take precedence over those in the backScripts.