How to code review Ranorex "UserCode.cs" scripts?

Best practices, code snippets for common functionality, examples, and guidelines.
Posts: 25
Joined: Tue Jan 06, 2015 10:31 am

How to code review Ranorex "UserCode.cs" scripts?

Post by mto » Fri Sep 02, 2016 10:15 am

Hello all,

We are using Ranorex to develop test scripts and we need to code review "UserCode.cs" scripts.

What is the best tool to do this? is it possible using Gerrit?

Thank you in advance for your advise.

Best regards


Posts: 250
Joined: Tue Mar 24, 2015 5:05 pm
Location: Des Moines, Iowa, USA

Re: How to code review Ranorex "UserCode.cs" scripts?

Post by Vaughan.Douglas » Fri Oct 21, 2016 1:24 pm

I think you mean to ask how others go about conducting code reviews on their Ranorex user code. Is that correct?

I've not personally used Gerrit, but it seems like it could work. We've got static code tools like HP Fortify, but we generally don't use that on our automation code (at this point). We do informal reviews of our code since it is not customer facing and tends to undergo more rapid updates to keep up with the agile development of the production code.
Doug Vaughan

Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to code review Ranorex "UserCode.cs" scripts?

Post by krstcs » Fri Oct 21, 2016 3:01 pm

I would agree with Vaughan.Douglas, unless you are completely re-writing the Ranorex functionality in your user code, I don't think that there is much benefit to formal code/peer-reviews. Your user code will generally be small enough that there is no point.

Note: I'm the only one in our company that does Ranorex automation, so there isn't anyone to peer-review my stuff, but I have some very deep and serious code that gets run, so take what I say for what it cost you... :D
Shortcuts usually aren't...