Search found 4 matches

by alinaKava
Wed Feb 03, 2016 1:58 pm
Forum: Automation API
Topic: TestSuiteRunner.Run and return value
Replies: 6
Views: 3418

Re: TestSuiteRunner.Run and return value

Thanks! It works.
by alinaKava
Thu Jan 28, 2016 10:20 am
Forum: Automation API
Topic: TestSuiteRunner.Run and return value
Replies: 6
Views: 3418

Re: TestSuiteRunner.Run and return value

My solution is to add code module to test suite teardown void ITestModule.Run() { TestSuite.TestSuiteCompleted += delegate { IReportItem Failed = null; if (TestReport.CurrentTestSuiteActivity != null) { foreach (IReportItem rep in TestReport.CurrentTestSuiteActivity.Children) if ((rep as Activity).S...
by alinaKava
Wed Jan 27, 2016 2:01 pm
Forum: Automation API
Topic: TestSuiteRunner.Run and return value
Replies: 6
Views: 3418

Re: TestSuiteRunner.Run and return value

Some misunderstanding.
For example, see first report - in this case TestSuiteRunner return 0, but first test case failed. In second report TestSuiteRunner return -1 - I pressed Pause Break. I need , TestSuiteRunner return -1 if any test case failed like in first report. Thank you.
by alinaKava
Mon Jan 25, 2016 4:14 pm
Forum: Automation API
Topic: TestSuiteRunner.Run and return value
Replies: 6
Views: 3418

TestSuiteRunner.Run and return value

Hi. One or more test cases failed and after that in Program.cs after all test cases- error = TestSuiteRunner.Run(typeof(Program), Environment.CommandLine); in debug mode Run returns 0 and that's why error = 0 If I press "Pause break" - Run returns -1 and error = -1 How should I do that TestSuiteRunn...