how to use reusable functions in all the recording files

Class library usage, coding and language questions.
smohanty78
Posts: 23
Joined: Tue Feb 10, 2015 10:51 am

how to use reusable functions in all the recording files

Post by smohanty78 » Fri Apr 03, 2015 12:15 pm

Hi
I have created reusable functions(.cs) for sorting to do sorting.
I would like to use in all the test cases.
Please tell me how to use it.
I have tried creating new instance of that class and calling the reusable function.
it didn't work.

Regards,
Sangita

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

Re: how to use reusable functions in all the recording files

Post by odklizec » Fri Apr 03, 2015 12:33 pm

Hi,

You can, for example, try inheritance approach. Check this post:
http://www.ranorex.com/forum/function-l ... tml#p26060
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