How to get Function/Command/Handler name

New to Eggplant

I need to return the self created Function/Command/Handler name

I know that you can use the following to return the Suite/Script but, I need the Function/Command/Handler running inside the Script.

Put SuiteInfo.name & "/" & my name & into myInfo

log myInfo

Gives me the Suite/Script info but, for Example if I have the following Function I need to return function name, "myFunction" as "Suite name/Script name/myFunction"

Function myFunction

     Put SuiteInfo.name & "/" & my name & "/" & <myFunctionName> into myInfo

      log myInfo

end myFunction

also need it to work for Command

to myCommand

     Put SuiteInfo.name & "/" & my name & "/" & <myCommandName> into myInfo

      log myInfo

end myCommand

I've tried the following:

param(0)

CallStack()

my caller

Thanks for any help in advance

wtwynn


Comments

Sign In or Register to comment.