Is there a way to return the name of the current sub routine or function?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-11-2010
04:56 PM
08-11-2010
04:56 PM
Is there a way to return the name of the current sub routine or function?
Hi All,
Is there a way to return the name of the current sub routine or function that is being run. It would be nice to enter into the log.
I am currently coding in VB Script.
I assume there is no way to do it using VB script but is there a TestComplete inbuilt function?
Thanks heaps,
Adrian
Is there a way to return the name of the current sub routine or function that is being run. It would be nice to enter into the log.
I am currently coding in VB Script.
I assume there is no way to do it using VB script but is there a TestComplete inbuilt function?
Thanks heaps,
Adrian
29 REPLIES 29
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2013
11:02 PM
03-19-2013
11:02 PM
How can we do it in VB Script ??
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2013
02:23 AM
05-22-2013
02:23 AM
Bit late but would like to add my vote for this too.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2013
09:04 PM
05-22-2013
09:04 PM
@Steven, your vote was counted.
@Anand, I guess that you will have to create a script extension and execute the JScript code there. You can call this script extension from any of your VBScript projects.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2013
04:41 PM
07-17-2013
04:41 PM
Hi,
when i add the above code to script extension then i get following error
'arguments.callee.caller' is null or not an object
Microsoft JScript runtime error
code.js
obviously script extension does not work for getting th running routine name.
~Abhijeet
when i add the above code to script extension then i get following error
'arguments.callee.caller' is null or not an object
Microsoft JScript runtime error
code.js
obviously script extension does not work for getting th running routine name.
~Abhijeet
Thanks,
--Abhijeet Bhagat
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
07:24 AM
04-07-2014
07:24 AM
I'd like to add my vote to this as well.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
05:14 PM
04-07-2014
05:14 PM
Hi Morgan,
Done. Thanks for your participation.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
07:08 PM
04-07-2014
07:08 PM
This is going to be useful in my project also. Please count my vote.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
08:47 PM
04-07-2014
08:47 PM
please count my vote as well for this feature being available via vbs
Thanks,
--Abhijeet Bhagat
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2014
10:56 PM
04-07-2014
10:56 PM
Hi Guys,
I've added your votes, as well. Thanks.
---------
Tanya Yatskovskaya
SmartBear Community and Education Manager
Tanya Yatskovskaya
SmartBear Community and Education Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-29-2014
11:10 AM
07-29-2014
11:10 AM
Hi, I'd like for this functionality to be added to VBScript too. Please add a vote from me.
