We are building a new experience for our SmartBear Community.
This site is now read-only. You can still browse and search as usual. Learn More
This site is now read-only. You can still browse and search as usual. Learn More
In the case of a run test, I see the indicator in the upper right corner.
It has two lines. I can modify the contents of the top line arbitrarily with the Indicator.PushText statement.
Currently, I constantly see the name of the project in the bottom line.
How can I query the name of the currently running keyword or scrip test at runtime?
If I know, I can write in the top line, though
How can I put this name on the bottom line?
What I did back before we had the CurrentTestCase name available was build my own stack. At the top of every test, have a variable that contains the name of the test and push that to the indicator. Pop it off at the end of the test so that when you have tests calling other tests or functions, the name will be accurate as the flow changes.
Here's how you get the name of the current test:
https://support.smartbear.com/testcomplete/docs/testing-with/running/get-test-name.html
You only have access to the one line of text.
What I did back before we had the CurrentTestCase name available was build my own stack. At the top of every test, have a variable that contains the name of the test and push that to the indicator. Pop it off at the end of the test so that when you have tests calling other tests or functions, the name will be accurate as the flow changes.