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

Class library usage, coding and language questions.
albertog
Posts: 15
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
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
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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: 15
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: 7470
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: 15
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
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
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

AbhijitDhar
Posts: 2
Joined: Wed Jul 13, 2022 11:31 am

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

Post by AbhijitDhar » Mon May 08, 2023 3:01 pm

odklizec wrote:
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.
Hi odklizec, I have similar test suite structure as mentioned here. I am not able to fetch the name of the test case and the Pass or fail status. I am able to get the name of the test suite or run config, but not the test case name.
Can you please help me here?

Marie143
Posts: 30
Joined: Tue Jul 26, 2022 5:20 pm

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

Post by Marie143 » Sun Jun 04, 2023 9:04 am

AbhijitDhar wrote:
Mon May 08, 2023 3:01 pm
odklizec wrote:
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.
https://www.grandrapidsconcretepros.com
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.
demolition contractors
Hi odklizec, I have similar test suite structure as mentioned here. I am not able to fetch the name of the test case and the Pass or fail status. I am able to get the name of the test suite or run config, but not the test case name.
Can you please help me here?
Did you fix it already?