How to create a smart folder in c # code ?

Class library usage, coding and language questions.
Cyril
Posts: 2
Joined: Tue Nov 02, 2021 5:25 pm

How to create a smart folder in c # code ?

Post by Cyril » Wed Nov 03, 2021 10:41 am

Hello

I would like to create smart folders or case tests by writing C # code.
Without using the usual creation buttons.
is it possible ?

Thank you

Bye

Jacob
Certified Professional
Certified Professional
Posts: 120
Joined: Mon Mar 22, 2021 10:01 pm

Re: How to create a smart folder in c # code ?

Post by Jacob » Fri Nov 05, 2021 4:55 pm

Hi Cyril,

Welcome to the forum! This may be possible. I would double check the API documentation to confirm, though. I've never done this myself via code before. But maybe someone else in the forum has. I'd wait to see if anyone else has any experience that may be able to offer pointers.

--Jacob
Image

Cyril
Posts: 2
Joined: Tue Nov 02, 2021 5:25 pm

Re: How to create a smart folder in c # code ?

Post by Cyril » Tue Dec 28, 2021 9:00 am

Hello
Thank you for your reply, I am looking at the API on my side.
Please keep me posted if you see any additional info
Have a good day

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

Re: How to create a smart folder in c # code ?

Post by odklizec » Tue Dec 28, 2021 9:13 am

Hi,

If I'm not mistaken, this has been discussed before. And I'm quite sure that there is no public API for this. What's the use case? I mean do you really think it would be easier and faster (not to mention bug-proof) to code the test structure, instead of creating it in Studio? I really doubt that ;)
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