What is the difference between test case and smart folder?

Ask general questions here.
jecardenasri01
Posts: 23
Joined: Tue Feb 13, 2018 2:33 pm

What is the difference between test case and smart folder?

Post by jecardenasri01 » Fri Mar 09, 2018 4:40 pm

I know that in a testcase I can separate modules that connect to data bse with a smart folder so that the connections to the database of the other recording modules are not confused.

but I do not know exactly what difference it appears from that

in which case it is preferable to use a test case or a smart folder

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

Re: What is the difference between test case and smart folder?

Post by odklizec » Mon Mar 12, 2018 9:02 am

Hi,

Smart folder is just an "envelope", with some smart tools, like data binding or iteration count. Basically, it's (almost) the same like Test Case, except that the failure in smart folder is not counted in total test suite error count. Additionally, you can create as many Smart Folders inside Test Case, as you want. But Test Case cannot have nested Test Cases. Eventually, You can create Test Cases inside Smart Folder.

In my opinion, Test Case should be the top level element under Test Suite. You can use smart folders for loops and conditions, but Test Case should be the highest element in Test Suite hierarchy. Just my opinion ;)
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

krstcs
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: What is the difference between test case and smart folder?

Post by krstcs » Tue Mar 13, 2018 2:27 pm

In addition, Smart Folders that are not inside a Test Case cannot have test modules inside them, except in their SETUP and TEARDOWN sections.

Basically, the Test Case is the part of the script you want to "count" for testing purposes. Smart Folders are just a nice extra way to organize your script without having everything be a test case.
Shortcuts usually aren't...