Is there a way to pause a running test when running it through Ranorex?
I want do pause the running project and do some operation.
Thanks
Is there a way to pause a running project?
Re: Is there a way to pause a running project?
Add a breakpoint.
Add a message box to you code.
Add a thread.sleep method to your code.
...
Add a message box to you code.
Add a thread.sleep method to your code.
...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!
Ciege...
Ciege...
Re: Is there a way to pause a running project?
These way is ok, but not good. If there is a button in Ranorex that can pause the running project, it will be great.
Re: Is there a way to pause a running project?
Depending on how you control and run your tests - you can create a new thread to run the tests and have control over that thread. You can then create a button on your controller to suspend and resume the thread in which the tests are running on.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Is there a way to pause a running project?
The problem is not pausing a running test, but resuming the test afterwards. Before resuming the test, you have to make sure that the desktop has exactly the same state as before, e.g. that the same window is active as before pausing the test, the correct control has focus, the keyboard has the correct modifier keys held down, and so on. This is a hard, if not impossible thing to do If we allowed to pause a test at arbitrary positions.
However, we might add a feature to pause a test at certain positions, e.g. in between actions of a recording. In order to pause user code, you might then need to add a line of code that tells Ranorex it is safe to pause execution at this location, for example "BreakPoint.Create()". I filed a feature request for this issue.
Regards,
Alex
Ranorex Team
However, we might add a feature to pause a test at certain positions, e.g. in between actions of a recording. In order to pause user code, you might then need to add a line of code that tells Ranorex it is safe to pause execution at this location, for example "BreakPoint.Create()". I filed a feature request for this issue.
Regards,
Alex
Ranorex Team
Re: Is there a way to pause a running project?
Has anyone taken action to implement this feature?Support Team wrote: If filed a feature request for this issue.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Is there a way to pause a running project?
Hello,
This is unfortunately not part of Ranorex at the moment. There is already a feature request in our bug tracking system, but due too less customer requests it was not implemented until now.
I will add an entry in order to discuss this feature again.
Regards,
Bernhard
This is unfortunately not part of Ranorex at the moment. There is already a feature request in our bug tracking system, but due too less customer requests it was not implemented until now.
I will add an entry in order to discuss this feature again.
Regards,
Bernhard
Re: Is there a way to pause a running project?
Hi Bernhard,
Please add another vote for this feature. Just today I was in a need to pause the running test to be able to debug a crash in aut. Stopping the test caused some problems with debugging so I had to add a long delay to RX test to be able to "pause" the test and debug the aut. Simple "pause" would be really helpful.
Please add another vote for this feature. Just today I was in a need to pause the running test to be able to debug a crash in aut. Stopping the test caused some problems with debugging so I had to add a long delay to RX test to be able to "pause" the test and debug the aut. Simple "pause" would be really helpful.
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Is there a way to pause a running project?
Hello,
Thank you, I will add this vote to the feature request.
Regards,
Bernhard
Thank you, I will add this vote to the feature request.
Regards,
Bernhard