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).
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
For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
You do not have the required permissions to view the files attached to this post.
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
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...
Just to see if it returns different result than CurrentTestContainer.Status. Thanks.
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;
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
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
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?
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?
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
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.
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 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
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
Yes, that way it worked! Thank you!
Please find it attached
Please find it attached
You do not have the required permissions to view the files attached to this post.
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
Hi,
Thanks for the sample project, but I'm afraid, it works as expected for me? All recordings show Success status.
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 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
-
- Posts: 2
- Joined: Wed Jul 13, 2022 11:31 am
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
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.odklizec wrote: ↑Tue Sep 28, 2021 7:41 amHi,
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...Just to see if it returns different result than CurrentTestContainer.Status. Thanks.Code: Select all
var tcStatus = TestSuite.Current.GetTestContainer("TestCaseName").Status;
Can you please help me here?
Re: For nested Smart folder executions, CurrentTestContainer.Status value is always "Ignored"
Did you fix it already?AbhijitDhar wrote: ↑Mon May 08, 2023 3:01 pmdemolition contractorsodklizec wrote: ↑Tue Sep 28, 2021 7:41 amHi,
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...Just to see if it returns different result than CurrentTestContainer.Status. Thanks.Code: Select all
var tcStatus = TestSuite.Current.GetTestContainer("TestCaseName").Status;
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?