Forum Discussion
Alex,
Thank you very much for your answer
Unfortunately, the best fit solution for me, as you mentioned would be the Jenkins server which is currently out of scope for the next couple of months
A summary (high level) report is exactly what I need to generate, and have found more information on this page but is only available with test plans and not single runs
The JUnit style report is a good option but requires another piece of software which is not always the best option (looking for a link type like Jenkins - eg. - for test results click here - which could be done exporting the html files)
(Does SmartBear recommend any reporting apps ?)
when you export the html files, do you know if there is a way to add the test title to the report (with editing it manually)
-----------------
Not directly related:
Is there a way we can output the text name automatically - that I can add to, say, the event 'onStopTest'
e.g.
Log.Message("you have just ran: " + test.name)
>but is only available with test plans and not single runs
try to use aqTestCase object, maybe it helps
>Does SmartBear recommend any reporting apps
TestComplete has special support of Jenkins, AzureDevOps, Zephyr - these tools are for orchestration, but have their reporting as well.
This tools have their pros and cons. And maybe you need to choose one of it mostly not as reporting tool, but if you have plans to get additional value to your QA processes.
If we talk only about reporting systems, internally, we test how TestComplete works with Allure. And it works 🙂
>when you export the html files, do you know if there is a way to add the test title to the report (with editing it manually)
it depends how do you export the log. If you do it automatically, yes, you can set the name of the file:
TestComplete.exe "C:\My Projects\MySuite.pjs" /run /p:MyProj /exportLog:"C:\TestLogs\Log.html"
>Is there a way we can output the text name automatically - that I can add to, say, the event 'onStopTest'
not sure how you split the code by tests and what do you run, but maybe this helps for you:
function EventControl1_OnLogError(Sender, LogParams)
{
var strFoo = aqConvert.VarToStr(arguments.callee.caller);
Log.Message(strFoo.split(" ")[1].split("(")[0])
}
- AlexKaras3 years agoChampion Level 3
AGubarev :
> we test how TestComplete works with Allure. And it works
Sounds really promising. Is it possible to prepare another demo or a sort of a HowTo article with an example?
- AGubarev3 years agoSmartBear Alumni (Retired)
yes, we have a lot of internal things which we will be glad to share.
Thanks sonya_m and TanyaYatskovska we've had a chance to "say" something to community 🙂
For now, we have no ready video/tutorial for that. But I found that we already have something in Community: https://community.smartbear.com/t5/TestComplete-Questions/Allure-Reporting-using-TestComplete-14-1-Junit-or-JavaClasses/m-p/186731/highlight/true#M65490
- AlexKaras3 years agoChampion Level 3
> Thanks @sonya_m and @TanyaYatskovska we've had a chance to "say" something to community
Our sincere kudos go to Tanya, Sonya, management who approved this event and all guys who participated in the event and assisted in its preparation.
- sonya_m3 years agoSmartBear Alumni (Retired)
This has been one of the most active threads, thanks everyone for being so involved!
The best question bonus points will go to hannecroonen!
- Lee_M3 years agoCommunity Hero
arguments.callee.caller
I will further investigate this approach, but last time I ran it, it got one of the subfunctions names (eg Close dialogue, which is called multiple times and is not the parent script run)
- AGubarev3 years agoSmartBear Alumni (Retired)
aqTestCase.Begin("Name 1"); Log.Message(aqTestCase.CurrentTestCase.Name) aqTestCase.End();
- Lee_M3 years agoCommunity Hero
Thanks,
This has a limitation, this would only work if your case was in a test case using the EP and will not work for simple tests (or testing when building the tests)
If you call the name of a case then I have found it needs to be hardcoded, you can't ready the initiator of the current test
e.g.
- order_book_test
(test sections)
1, login
1.1, navigate - (say which function test is going to this page, ref will get login and not order_book_test)
2, order book "testing"
3, logout
Related Content
- 9 months ago
- 8 months ago
- 11 months ago
- 15 years ago
- 12 years ago