Run multiple module at same time.

Best practices, code snippets for common functionality, examples, and guidelines.
Esh
Posts: 2
Joined: Fri Nov 04, 2016 10:31 am

Run multiple module at same time.

Post by Esh » Fri Nov 04, 2016 10:38 am

Hi everyone,

I would like to know how to run multiple modules at the same time.
For example, I want to test the program execution during disk full.
So I create a Recording module, run the program mainly.
And create a Code module, will copy a big file to the disk that the program is running to produce the error.

Is possible to run the two modules at the same time?

Thanks!!

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

Re: Run multiple module at same time.

Post by odklizec » Fri Nov 04, 2016 1:08 pm

Hi,

In my opinion, the only way how to run two modules at the same time would be using multiple threads, as described for example in unexpected dialog handling code (here). Basically, the code starts second thread, in which you can do almost anything you want. The problem is, that there is currently no way to pause/stop test running in main thread from second (popupwatcher) thread.
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