question

dclaar avatar image
dclaar Suspended asked dclaar Suspended posted

FeatureRequest: testCaseFile caller

It is nice that you can see either the current or the main caller, but in nested test cases, you really want to see the caller. There doesn't seem to be any way to do this right now.
iTestfeature request
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
KumarS avatar image
KumarS answered KumarS posted
Can you explain this in more detail so that we can file the feature request?
2 comments
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

dclaar avatar image dclaar commented ·

Well, really what I want to do is something like:

 

mytest.fftc#mytest: 

if error

   call print_error.fftc#print_error "oops!"

 

print_error:

   puts "encountered error ${arg[1]} in [testCaseFile caller][testCaseName caller]"

 

 

Which would output:

encountered error oops! in mytest.fftc#mytest

 

I guess I really don't just want the testcase file name, I want to know where I came from. Kind of like perl's caller() function.

0 Likes 0 ·
KumarS avatar image KumarS dclaar commented ·

Logged feature request as:

KAZ-16120

 

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.