views:

241

answers:

1

Hi

I am developing VBscript for GUI testing. And I wonder if there is possibilites to get the current Sub name.

I have divied the GUI testing into different Sub and want to log the Sub name to the logg file to track what is run.

So this i that I want

Sub TestCase1
 Log.Message(SubName)

 ' Rest of test
End Sub

By using this I don't have the sub name hardcoded as a text string

A: 
Helen
Okay. Thanks for the replay. If VBScript can not handle it there is nothing to do. Then it will be a static string. Because I want the name of each Sub. And Project.TestItems is just related to the Test one defines and I want to log several sub calls in a test.
Kristoffer