Validate a string of text in an output file

Best practices, code snippets for common functionality, examples, and guidelines.
dbanker77
Posts: 1
Joined: Thu Apr 06, 2017 9:19 pm

Validate a string of text in an output file

Post by dbanker77 » Thu Apr 06, 2017 9:49 pm

new to Ranorex. Recording a test that produces an output file. I need to verify a few words in the file. Is there an easy way to do this? My coding experience is non-existent and scripting skills very limited.

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

Re: Validate a string of text in an output file

Post by odklizec » Fri Apr 07, 2017 8:36 am

Hi,

I'm afraid, without seeing the file and knowing what exactly you would like to validate, there is not much anyone here can do or suggest. Generally speaking, you will most probably have to use some code to validate the text. I'm sure you can google-out many .net-based code samples and techniques for text comparison. And I believe the file validation has been discussed also here?
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