Ranorex and more .NET

Ask general questions here.
User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Ranorex and more .NET

Post by giuseppe.lacagnina » Tue Dec 15, 2015 10:13 am

Hi Everyone.

I was wondering whether it is possible to include more advanced .NET features in the C# code of my projects. In particular, I would like to be able to exchange test information, at the end of the tests, to some dedicated server to improve on the reporting.

What I have in mind is to implement some mechanism to send data to some RESTful architecture.
Would that be possible?

Thanks in advance!

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3937
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Ranorex and more .NET

Post by odklizec » Tue Dec 15, 2015 10:32 am

Hi Giuseppe,

You can add almost anything you want to your Ranorex tests (as long as it's .Net 3.5 compliant). Current Ranorex Studio is based of SharpDevelop 3.2, which supports Net 3.5 and I believe it allows to compile and debug also .Net 4.0 code? So If you know what you want and how to code it in .Net, it should not be a problem to extend your tests with advanced custom code.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Ranorex and more .NET

Post by giuseppe.lacagnina » Tue Dec 15, 2015 10:51 am

That was also my guess. Thanks!!!

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

Re: Ranorex and more .NET

Post by krstcs » Tue Dec 15, 2015 6:16 pm

Yes, SD 3.2 (and therefore Ranorex) fully supports code-completion and compile with 4.0.

You can COMPILE 4.5+ but you won't have full code-completion and some async methods are a little wonky (technical term... :D).

I actually do a lot of service calls for functional validation of the front end of our test, all in .NET in Ranorex. I have external libraries that I have created for many of them, but it all works great.
Shortcuts usually aren't...

User avatar
giuseppe.lacagnina
Posts: 113
Joined: Fri Sep 18, 2015 10:25 am
Location: Brunn am Gebirge, Vienna, Austria

Re: Ranorex and more .NET

Post by giuseppe.lacagnina » Wed Dec 16, 2015 5:26 pm

I probably will not need much, but it is certainly good to know!
As the number and complexity of my test cases increase, I am thinking more and more of ways to "power up" my test suites.