Hi All,
how can I add the status of the report in the subject in global parameter when using automation helper email module
Thanks,
Rajee
Global parameters - status of report
Re: Global parameters - status of report
Hi,
Basically, you can use this code to get the status of test suite:
Simply use this code right before SendEmail method and fill the subject parameter with anything you want, including test status. Hope this helps?
Basically, you can use this code to get the status of test suite:
Code: Select all
var tcStatus = Ranorex.Core.Reporting.ActivityStack.Current.Status; // returns test suite status
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
Ranorex explorer at Descartes Systems
Please add these details to your questions:
- Ranorex Snapshot. Learn how to create one >here<
- Ranorex xPath of problematic element(s)
- Ranorex version
- OS version
- HW configuration
Re: Global parameters - status of report
works absolutely fine, thanks. Is there a way to get the current test status, like how many tests were run, how many passed and how many failures?
Re: Global parameters - status of report
hey,
You could read the status of each test cases or smart folders of your test with this line:
regards, qwertzu
You could read the status of each test cases or smart folders of your test with this line:
Code: Select all
TestSuite.Current.GetTestContainer("<TestCaseName>").Status;
regards, qwertzu