Forum Discussion
- Marsha_RModeratorI'd like it in keyword tests too please.
- TanyaYatskovskaSmartBear Alumni (Retired)Hi,
I've added your votes. Thanks!
- Marsha_RModeratorAnother vote please, so we can do this in keyword tests.
- TanyaYatskovskaSmartBear Alumni (Retired)
Hi,
I've added your votes.
Manfred, thanks for sharing your solution.
- AliceOccasional Contributor
Please add my vote as well!
- katvenNew Contributor
+1 for this feature.
Kindly add my vote too.
- TanyaYatskovskaSmartBear Alumni (Retired)
Hi,
Thanks for your requests! Now, we have a special place in the Community where our users can submit their ideas or vote for the ideas they like. I’ve found a similar idea that has already been submitted. You can vote it up.
TestComplete’s PO monitors this forum on a regular basis, and uses this information for development planning.
- anik_cadieuxContributor
I am also trying to figure out a way to know the current script name. We are launching TestExecute with Bamboo using command line. I think we can use
BuiltIn.ParamStr
- meinTestOccasional Contributor
For JavaScript, I found the following workaround. Maybe it will help others.
I create a try-catch block. Within the try I provoke an exception, this one I catch-up with the catch and read-out the function name in the stack.
Note: this also works across several units -> USEUNIT
function getCaller(){ let arrStackLines = []; try{ throw new Error("throw a error to get the stack"); }catch(objE){ arrStackLines = objE.stack.split("\n"); } let strLine = arrStackLines[arrStackLines.length -1]; let intStart = strLine.indexOf("at ") + 3; let intEnd = strLine.indexOf("(<"); Log.Message(strLine.substring(intStart, intEnd)); }
Btw. please add my vote..:-)
Best regards
meinTest GmbH
SmartBear preferred value-added Service
Provider in the DACH region
Related Content
- 2 years ago
- 4 years ago
Recent Discussions
- 20 hours ago
- 20 hours ago
- 5 days ago