Search found 14 matches

by tmcpherson
Wed Jul 12, 2017 10:02 pm
Forum: Bug Reports
Topic: GetAttributeValue does not work with generic arguments
Replies: 1
Views: 4393

GetAttributeValue does not work with generic arguments

I've had my own code in my test suite for a while now. After I upgrade to Ranorex 7.1, that code stopped working correctly. Specifically, if I have some InputTag inputTag, inputTag.GetAttributeValue<bool>("Checked") always returns False. Some example codes and outputs follow. var inputTag = adapter ...
by tmcpherson
Fri Jun 30, 2017 1:49 pm
Forum: Automation Tools
Topic: Save more than 3 screenshots on error
Replies: 4
Views: 1834

Re: Save more than 3 screenshots on error

That is exactly what I needed. Thanks!
by tmcpherson
Thu Jun 29, 2017 3:30 pm
Forum: Automation Tools
Topic: Save more than 3 screenshots on error
Replies: 4
Views: 1834

Re: Save more than 3 screenshots on error

That's disappointing. Thanks for the info.
by tmcpherson
Wed Jun 28, 2017 8:10 pm
Forum: Automation Tools
Topic: Save more than 3 screenshots on error
Replies: 4
Views: 1834

Save more than 3 screenshots on error

Currently, Ranorex will save a screenshot when an error occurs. It also the screenshots of the two actions prior to the error occurring. Is there a way to make it save more screenshots without explicitly calling the screenshot method?
by tmcpherson
Thu Mar 23, 2017 5:39 pm
Forum: Object Identification and Technologies
Topic: Finding controls by their children's properties
Replies: 1
Views: 2146

Finding controls by their children's properties

I'm attempting to write some xpath to efficiently find a dom control. The dom itself doesn't have unique properties, but one of the child elements does. I have the following xpath that finds it correctly: /dom[@domain='stuff']//?[@tagname='candidate-home']//ancestor-or-self::dom However, I remember ...
by tmcpherson
Wed Mar 22, 2017 2:11 pm
Forum: Automation API
Topic: Validation message only on failure
Replies: 6
Views: 2688

Re: Validation message only on failure

Haha, yeah. My log said things like "SUCCESS: X item was Y when it was supposed to be Z."

That said, the custom code is working as I want it to.
by tmcpherson
Tue Mar 21, 2017 7:38 pm
Forum: Automation API
Topic: Validation message only on failure
Replies: 6
Views: 2688

Re: Validation message only on failure

Yeah, it's kind of unfortunate. I was hoping for an action I could use like the default Validate stuff, but it doesn't seem like that's possible. Custom code it is.

Thanks for the help.
by tmcpherson
Tue Mar 21, 2017 6:14 pm
Forum: Automation API
Topic: Validation message only on failure
Replies: 6
Views: 2688

Re: Validation message only on failure

That's a good point, and it would accomplish what I described in my post, but I agree that the report should pretty much always show most messages so that I also see the other logs I actually want to see. In the particular case that is irritating me, I'm validating an XML response from interacting w...
by tmcpherson
Tue Mar 21, 2017 4:41 pm
Forum: Automation API
Topic: Validation message only on failure
Replies: 6
Views: 2688

Validation message only on failure

Is it possible to make a validation message only show up if a test fails? I'm used to more traditional assert libraries, where if the assert passes, the test runner/report is unaware of it entirely. A detailed error message doesn't even appear. With Validate methods, however, the message always appe...
by tmcpherson
Tue Feb 28, 2017 6:54 pm
Forum: General Questions
Topic: Using a single data source for multiple test suites
Replies: 4
Views: 1964

Re: Using a single data source for multiple test suites

I actually specifically don't want to have a network file. I want to have a data source reference a file in a different project. These projects are in the same solution. Currently, I am the only person working on this particular solution, but we are using source control for it. When I make changes, ...
by tmcpherson
Tue Feb 28, 2017 4:06 pm
Forum: General Questions
Topic: Using a single data source for multiple test suites
Replies: 4
Views: 1964

Re: Using a single data source for multiple test suites

Ah, I see what you mean. I actually did add the Excel file to multiple tests without checking the 'copy file to project' box. That worked. However, each test suite that referenced the Excel file referenced it by absolute filepath. That filepath is unique to my computer, and we deploy these tests to ...
by tmcpherson
Mon Feb 27, 2017 9:54 pm
Forum: General Questions
Topic: Using a single data source for multiple test suites
Replies: 4
Views: 1964

Using a single data source for multiple test suites

The product I am testing has various URLs, each of which point to a different version of the product. I will have many tests that will iterate over every one of these URLs. I would like to use an Excel data connector as a data source. That's easy enough to set up for one test, but what I would parti...
by tmcpherson
Mon Feb 06, 2017 3:09 pm
Forum: Automation API
Topic: Logging using the API
Replies: 2
Views: 1957

Re: Logging using the API

That is exactly the information I needed. Thanks!
by tmcpherson
Fri Feb 03, 2017 10:39 pm
Forum: Automation API
Topic: Logging using the API
Replies: 2
Views: 1957

Logging using the API

Hey everyone, I've been experimenting with logging using just the Ranorex API. I am not using Ranorex Studio. I've tried a few different things to make my code give me rxlogs that look nice. None of them have worked particularly well. They all look more or less like this: [TestMethod] public void Sa...