methods disappeared

Best practices, code snippets for common functionality, examples, and guidelines.
IvanT
Posts: 24
Joined: Wed Feb 06, 2019 8:00 pm

methods disappeared

Post by IvanT » Wed Sep 11, 2019 6:03 pm

i was working with desktop app and ranorex closed (itself). when i opened again and try to run test i had a lot of errors.
the problem:i have (had) 1 Usercodes file containse all common methods witch i often use and now this file is empty, last my copy doesn't have a lot of methods. reboot ranorex or windows doesn't help. HELP please ....:?::?::?::?::?:

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

Re: methods disappeared

Post by odklizec » Wed Sep 11, 2019 7:10 pm

Hi,

I’m sorry to be a bearer of bad news, but if you don’t have a backup copy of file with common methods in source control of your choice, then you are, most probably, out of luck. If you are not using source control system (GIT, TFS, SVN,...) then you just have learned why it’s critical to use one and why you should commit code changes several times a day.
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

IvanT
Posts: 24
Joined: Wed Feb 06, 2019 8:00 pm

Re: methods disappeared

Post by IvanT » Wed Sep 11, 2019 7:40 pm

very bad news

IvanT
Posts: 24
Joined: Wed Feb 06, 2019 8:00 pm

Re: methods disappeared

Post by IvanT » Wed Sep 11, 2019 7:50 pm

but what was it? what happened.. why everything disappered?

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

Re: methods disappeared

Post by odklizec » Wed Sep 11, 2019 8:26 pm

Hi,

I can’t say? My best guess is that you did not save the solution (recent changes) for some time? And then, when Ranorex crashed, all changes were lost?
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

IvanT
Posts: 24
Joined: Wed Feb 06, 2019 8:00 pm

Re: methods disappeared

Post by IvanT » Thu Sep 12, 2019 3:15 pm

No i save changes everyday

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

Re: methods disappeared

Post by odklizec » Thu Sep 12, 2019 3:22 pm

Hi,

Well, that’s weird. I’ve never experienced anything like that. Sadly, if you are not using source control system, you are out of luck.
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