For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Class library usage, coding and language questions.
albertog
Posts: 10
Joined: Fri Mar 19, 2021 12:33 pm

For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by albertog » Mon Sep 27, 2021 4:38 pm

Hello there,

I kindly ask for help for the following weird situation I have:

Given a test structure like this

Test Suite
-- Test case (1)
-- -- Smart folder (1)
...
-- -- Smart folder (n)
...
-- Test case (n)
-- -- Smart folder (1)
...
-- -- Smart folder (n)

I have added some user code which checks into the Status of the current test container (both test cases and smart folders).
Capture.PNG
Capture.PNG (11.96 KiB) Viewed 262 times
By debugging test execution, it looks like that only for those smart folders children of a test case, that property value is always set to "Ignored", from the beginning to the end, regardless real outcome of their execuction (which is consistently and truthful reported on the final report file).
Only nested smart folders have this issue: even if I change the test structure by moving them one level up (making them siblings of the other test cases) there is no more issue with their status.

I have also removed all of them actions and recordings inside the smart folders, leaving only user code for debugging, and it's still the same issue.

Only one solution (of one of my colleagues) reportedly have this problem.

Can anyone please help me out? Is this a Ranorex issue, do I have some wrong setting? Can anyone please point me out some workaround?

Thank you very much in advance

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

Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by odklizec » Tue Sep 28, 2021 7:41 am

Hi,

Could you please share a sample test suite, so I don't have to recreate the test suite structure you described? Thanks.

Also, please try this code...

Code: Select all

var tcStatus = TestSuite.Current.GetTestContainer("TestCaseName").Status;
Just to see if it returns different result than CurrentTestContainer.Status. Thanks.
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

albertog
Posts: 10
Joined: Fri Mar 19, 2021 12:33 pm

Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by albertog » Tue Sep 28, 2021 10:57 am

Hi odklizec , thanks for the info!

It looks like that, from a new test suite, the problem is triggered often (not always) when adding or removing data sources conditions.

Actually I tried to attach a zip file with the solution aforementioned, but it seems to fail the upload. What is the procedure to attach sample solutions here?

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

Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by odklizec » Tue Sep 28, 2021 11:06 am

Hi,

Attaching zip should work OK, but maybe it's too big? Please export the solution via menu Tools >> Compress solution and open folder. This should zip only the necessary files, without bin, reports and obj folders.
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

albertog
Posts: 10
Joined: Fri Mar 19, 2021 12:33 pm

Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by albertog » Tue Sep 28, 2021 1:44 pm

Yes, that way it worked! Thank you!

Please find it attached
Attachments
NRT_Shape2.zip
(44.96 KiB) Downloaded 22 times

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

Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"

Post by odklizec » Wed Sep 29, 2021 7:25 am

Hi,

Thanks for the sample project, but I'm afraid, it works as expected for me? All recordings show Success status.
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