Step-by-Step execution

Ask general questions here.
tbose
Posts: 2
Joined: Thu Oct 12, 2017 2:48 pm

Step-by-Step execution

Post by tbose » Tue Oct 17, 2017 2:38 pm

Hi everyone,

I am a newbie to Ranorex Studio, but after searching this forum and the online help, I didn`t find an answer to the following question:

is it possible to execute each item in my recordings/automation code in a step-by-step manner?

I know it`s possible to execute each single step via context menu --> "Run Selected Item(s)", but instead of having to do it manually for each step (whilch will compile the whole solution every time...), I am looking for an automated step-by-step execution way, where I only have to press a shortcut/button to continue the test run to the next step and halt there again until I choose to continue for the next step and so forth (like automated break points after each step).

Would be greatly helpful imho in order to debug test automation code, but maybe it´s just me requesting such feature because I am newbie to Ranorex :? :wink:

I hope I was clear enough with the above description.
Please let me know if you have questions regarding my request.

Thanks for your reply!

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

Re: Step-by-Step execution

Post by odklizec » Tue Oct 17, 2017 7:00 pm

Hi,

The only way to achieve what you want is to add a breakpoint somewhere in recording (its auto-generated cs file) and run the solution in debug mode (with attached debugger). Execution hould stop at the breakpoint. Then you can use F11 to jump to next line of code. Hope this helps?
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

tbose
Posts: 2
Joined: Thu Oct 12, 2017 2:48 pm

Re: Step-by-Step execution

Post by tbose » Wed Oct 18, 2017 9:15 am

Hi odklizec,

thanks for the quick reply!
I will check out your suggestion and see whether it`s convenient for my purpose.