Is it possible to get the run status of a Test Module by name

Ask general questions here.
Morales233
Posts: 1
Joined: Mon Nov 11, 2019 6:07 am

Is it possible to get the run status of a Test Module by name

Post by Morales233 » Mon Nov 11, 2019 6:10 am

Hello,

Using Ranorex9.1

I have the following structure for a test:

+TestCase1
-- Module1
--Module2
--Moduel3

I need to check if the Module 2 has passed and only then execute Module 3.
One way is to set the Error Behavior at Test Case level to Continue with Sibling -- I cannot use this as i want to run this test for multiple data sets
Another way which i can think of is by setting a Global Parameter and binding it to Module 2 and Module 3

Is there any other method that i can use to get or set the status of a Module by passing the module name as the argument?

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

Re: Is it possible to get the run status of a Test Module by name

Post by odklizec » Tue Nov 12, 2019 7:53 am

Hi,

I think that using a Global parameter and binding it to Module2 and Module3, is the best way to achieve what you want. Of course, you may need to enclose Module3 in a Smart folder, with defined condition - if Global parameter contains certain value, then run Module3, else skip it.

BTW, it seems that you asked (under different name) this question before? And there is also an answer:
https://www.ranorex.com/forum/viewtopic ... 621#p56624
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