Search found 26 matches

by Darwin
Thu Jul 26, 2018 10:51 pm
Forum: General Questions
Topic: Taskbar window options (cascade, stack, etc.) ignored?
Replies: 1
Views: 1079

Taskbar window options (cascade, stack, etc.) ignored?

In my suite setup routine, I'm trying to handle the occasional problem where our WPF AUT has been run with a higher screen resolution than is used by the VM when our nightly test suite is launched. In this case, the AUT's UI will be partially offscreen and various controls inaccessible. To correct t...
by Darwin
Fri May 11, 2018 11:18 pm
Forum: General Questions
Topic: Iterate through controls with variables in path in User Code
Replies: 3
Views: 1468

Re: Iterate through controls with variables in path in User Code

Thanks--after noticing that I took a much deeper look at how these recording variables are used and how test cases "bind" to them--and, of course, the Repository--and it's going to free me up to do a LOT more in user code now. And considering the limitations of recordings when it comes to logic, loo...
by Darwin
Thu May 10, 2018 10:38 pm
Forum: General Questions
Topic: Iterate through controls with variables in path in User Code
Replies: 3
Views: 1468

Re: Iterate through controls with variables in path in User Code

Never mind--poking through the generated code in my recordings I see where they pass variables to the Repository directly then get the controls back. E.g.: [TestVariable("2df735a2-b879-4091-8ed9-c7af5026f400")] public string ProgrammerIndex { get { return repo.ProgrammerIndex; } set { repo.Programme...
by Darwin
Thu May 10, 2018 7:16 pm
Forum: General Questions
Topic: Iterate through controls with variables in path in User Code
Replies: 3
Views: 1468

Iterate through controls with variables in path in User Code

Apologies if this has been asked and answered--if so, I have not been able to find the solution. I have a number of labels on the screen--the amount can fluctuate as they represent a number of devices connected to the AUT. They have paths similar to this: list[@automationid='programmerPanels']/conta...
by Darwin
Tue May 01, 2018 7:50 pm
Forum: General Questions
Topic: How to call a recording module from a code module
Replies: 5
Views: 4802

Re: How to call a recording module from a code module

I find myself needing to do this as well. I'm working on some logic for test suite startup, and I've found that I get frequent failures from the WPF process if I make my first calls to the UI from user code instead of from a recording module. I don't want to risk that. I think what I will be doing s...
by Darwin
Tue Apr 10, 2018 6:37 pm
Forum: How To …
Topic: Parsing JUnit/XML report file to email results
Replies: 1
Views: 3517

Parsing JUnit/XML report file to email results

Just sharing a parser I wrote to email the results of our nightly automation suite runs to our team. Not everyone who gets the email will necessarily have or want the Ranorex report viewer on their PC (or other device) they use to check email, but I wanted them all to see the basic results and stats...
by Darwin
Mon Mar 26, 2018 5:56 pm
Forum: General Questions
Topic: Inconsistent "Failed to instrument WPF process" problems
Replies: 3
Views: 1999

Re: Inconsistent "Failed to instrument WPF process" problems

My test suite ran multiple times over the weekend smoothly and perfectly. This appears to have fixed the issue. I would appreciate confirmation from Ranorex support--if you can repro this situation by trying to access the UI from user code before accessing the UI from a "normal" inline recording ste...
by Darwin
Mon Mar 26, 2018 5:25 pm
Forum: General Questions
Topic: String comparison with escape chars
Replies: 7
Views: 2335

Re: String comparison with escape chars

I've converted this all to the hex hash string (Unicode had the same problems as UTF). I did notice in my original version however that any logging with those string values containing escape sequences/unprintable chars breaks JUnit/XML logging. I've entered this issue in the Bug Reports forum. https...
by Darwin
Mon Mar 26, 2018 5:22 pm
Forum: Bug Reports
Topic: Escape chars/unprintable chars breaks JUnit report
Replies: 1
Views: 1543

Escape chars/unprintable chars breaks JUnit report

1. Enable "Create a JUnit compatible copy of the Report" in test suite 2. Add a test case or recording that calls a user code module 3. Enter this code in the default user code method: Report.Log(ReportLevel.Info, "N^´ûÈZ÷~¸‰a\u001c?Â/\u0005"); 4. Run test 5. Open the XML report Result: Bad XML form...
by Darwin
Fri Mar 23, 2018 10:45 pm
Forum: General Questions
Topic: Inconsistent "Failed to instrument WPF process" problems
Replies: 3
Views: 1999

Re: Inconsistent "Failed to instrument WPF process" problems

After messing with this for a couple days and looking for some common attributes among the test cases that encounter this most regularly, I believe I've found the culprit. Apparently trying to access the AUT's UI from within user code *before* the UI is accessed by the inline recording steps is trig...
by Darwin
Fri Mar 23, 2018 8:28 pm
Forum: General Questions
Topic: String comparison with escape chars
Replies: 7
Views: 2335

Re: String comparison with escape chars

Alex--

Thanks--using the hex hash strings is a good idea. I want to keep the function open and flexible for re-use with other test cases, and that'd be a better implementation than a monster switch clause.
by Darwin
Fri Mar 23, 2018 6:30 pm
Forum: General Questions
Topic: Inconsistent "Failed to instrument WPF process" problems
Replies: 3
Views: 1999

Inconsistent "Failed to instrument WPF process" problems

I keep running into this problem--our AUT is a desktop application; I'm running Ranorex 8.0.1 on Win10 x64; Ranorex and our app are both running as 32-bit instances; and in my test cases I'm typically launching the application in start-up and closing it in teardown. I will see this warning and typic...
by Darwin
Fri Mar 23, 2018 5:49 pm
Forum: General Questions
Topic: String comparison with escape chars
Replies: 7
Views: 2335

Re: String comparison with escape chars

Alex-- Thanks--I'm not surprised you couldn't repro, as I did a poor job explaining the problem. I was trying to leave my function intact and pass a string value into it via data binding, e.g.: public void VerifySourceAndDeviceHashes(string sourceFileHash) And using the Data Binding UI (image). What...
by Darwin
Thu Mar 22, 2018 10:43 pm
Forum: General Questions
Topic: String comparison with escape chars
Replies: 7
Views: 2335

Re: String comparison with escape chars

OK--So I guess the real question is, "How can I pass a string value with escape chars embedded and intact?" I ask this because I am not using the constants in my example when actually running the test in Ranorex. I was trying to pass the values declared in those constants, but I expect that Ranorex ...
by Darwin
Thu Mar 22, 2018 6:17 pm
Forum: General Questions
Topic: String comparison with escape chars
Replies: 7
Views: 2335

String comparison with escape chars

I am trying to do a file comparison by calculating the MD5 hash of two files and comparing the hashes as strings. This works just fine in my sample project in Visual Studio, but when I copy the code over to Ranorex the string comparisons continually fail. I am declaring constants from known files us...