Possible to Debug Ranorex Methods in Visual Studio?

Class library usage, coding and language questions.
QaTester
Posts: 11
Joined: Fri Nov 08, 2013 8:03 pm

Possible to Debug Ranorex Methods in Visual Studio?

Post by QaTester » Tue Jan 07, 2014 10:22 pm

Hello,

Is it possible to debug individual test methods, i.e. User Code actions, in Visual Studio? I added all the assemblies and using statements that would normally come with a Visual Studio Coded UI project (Microsoft.VisualStudio.TestTools.UnitTesting....etc.etc.) to my Ranorex project as well as the "[TestMethod]" attributes to the methods I want to debug, but I'm not getting the "Debug Tests" context menu item that I would normally get when right-clicking inside of those methods. I think the Ranorex API is lightyears ahead of VS' coded-ui, however, I still prefer VS debugger capabilities and would be more productive debugging from VS instead of Ranorex Studio. Am I missing something, or is this impossible?

User avatar
BernhardS
Ranorex Guru
Ranorex Guru
Posts: 36
Joined: Tue Dec 17, 2013 6:35 pm

Re: Possible to Debug Ranorex Methods in Visual Studio?

Post by BernhardS » Thu Jan 09, 2014 3:49 pm

Hello QaTester,

It should be possible to debug selected tests as you can see in my example below below.
CodedUI.png
CodedUI.png (11.31 KiB) Viewed 1154 times
Is the RUN option available and working in the context menu?
Please let me know if I understand something wrong.

Regards,
Bernhard

QaTester
Posts: 11
Joined: Fri Nov 08, 2013 8:03 pm

Re: Possible to Debug Ranorex Methods in Visual Studio?

Post by QaTester » Thu Jan 09, 2014 7:54 pm

Bernhard,

Thank you for the reply.

Actually I meant debugging individual modules as opposed to entire tests, much like you would in Ranorex Studio. Below is a screenshot of where I would want the item to appear in the context menu.
Capture.PNG
Capture.PNG (25.2 KiB) Viewed 1150 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Possible to Debug Ranorex Methods in Visual Studio?

Post by Support Team » Tue Feb 11, 2014 5:16 pm

Hello QaTester,

Do you mean a similar action as "Play selected Item/s" in Ranorex?
I am not exactly sure, but I am afraid that this is not possible in Visual Studio.

Regards,
Bernhard
.
Image

QaTester
Posts: 11
Joined: Fri Nov 08, 2013 8:03 pm

Re: Possible to Debug Ranorex Methods in Visual Studio?

Post by QaTester » Wed Feb 26, 2014 11:41 pm

Yes! That is exactly what I mean. I would like to be able to debug individual modules or user code methods without having to invoke entire tests.

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Possible to Debug Ranorex Methods in Visual Studio?

Post by Support Team » Mon Mar 03, 2014 5:09 pm

Hi QaTester,

I am not exactly sure, but I am afraid that this is not possible.

Regards,
Bernhard
.
Image