Search found 7 matches
- Tue Jan 21, 2020 11:42 pm
- Forum: General Questions
- Topic: TestSuite status incorrect on retry
- Replies: 8
- Views: 1331
Re: TestSuite status incorrect on retry
We found a solution that works with retries, and does indeed indicate the "latest" status of the current container: Ranorex.Core.Reporting.TestReport.CurrentTestContainerActivity.Status So, in the teardown of each test, the first recording module calls the following function: public static void Take...
- Fri Jan 03, 2020 12:12 am
- Forum: General Questions
- Topic: TestSuite status incorrect on retry
- Replies: 8
- Views: 1331
Re: TestSuite status incorrect on retry
Hi Robin, Although we can check the test status without a teardown section, a recording added to the test case after a failing recording does not get executed. For instance, if our test suite looks like this: SuiteName Setup Recording1 Snapshot Teardown If Recording1 fails, "Snapshot" does not execu...
- Sat Dec 21, 2019 12:24 am
- Forum: General Questions
- Topic: TestSuite status incorrect on retry
- Replies: 8
- Views: 1331
Re: TestSuite status incorrect on retry
We are on 9.2.0, haven't updated to 9.2.1 yet. Is there a change in 9.2.1 which would affect this? Adding these lines to Program.cs after the call to TestSuiteRunner.Run() doesn't help, since I need to get the status in the teardown of the failed test case. I need a snapshot for failed test cases, a...
- Tue Dec 17, 2019 11:02 pm
- Forum: General Questions
- Topic: TestSuite status incorrect on retry
- Replies: 8
- Views: 1331
Re: TestSuite status incorrect on retry
Unfortunately, this doesn't work. GetTestContainer(string).Status has the same behavior as CurrentTestContainer.Status - when the test fails on the first try, but succeeds on retry, both statuses are Failed.
- Sat Dec 14, 2019 1:09 am
- Forum: General Questions
- Topic: TestSuite status incorrect on retry
- Replies: 8
- Views: 1331
TestSuite status incorrect on retry
Hello, We are building a test suite in which we are using retries for each test case. In the teardown of each test case, we have a recording which checks the status of the testsuite, in order to determine if a snapshot should be captured: Program.RUN_COUNT[TestSuite.CurrentTestContainer.Name]++; int...
- Wed Jul 25, 2018 6:29 pm
- Forum: General Questions
- Topic: Setting editor selection
- Replies: 3
- Views: 1409
Re: Setting editor selection
Hi Jon, Thanks for your reply. I have attached a snapshot of the application, with the editor open. Hopefully this will help. To answer your question, no I do not see the methods I am trying to call when browsing the Actions collection for the Element. I do see a number of other methods which are de...
- Wed Jul 18, 2018 7:47 pm
- Forum: General Questions
- Topic: Setting editor selection
- Replies: 3
- Views: 1409
Setting editor selection
We are currently building some UI tests for an IntelliJ plugin. One thing we need to be able to do is set the selection in an editor in IntelliJ - the editor contains code, and we want to find a snippet of code and select it. The editor is a Java JComponent, which we are able to access in a user-cod...