Writing Variables to a csv file

Ask general questions here.
WesleyWest
Posts: 5
Joined: Thu Feb 28, 2019 3:00 am

Writing Variables to a csv file

Post by WesleyWest » Wed Mar 06, 2019 4:36 am

Hello! I am working on a project where we add inventory based on a csv connector, validate what was entered is what was saved and then I need to pause the test, change the software and validate the inventory but with different item numbers. ie, the item numbers will change when the software is upgraded.

May of explained that very badly but basiclly I need to write my variables to a csv file so I can access them in a later test. Any thoughts on where I should begin to look?

thanks!

User avatar
Stub
Posts: 515
Joined: Fri Jul 15, 2016 1:35 pm

Re: Writing Variables to a csv file

Post by Stub » Wed Mar 06, 2019 9:19 am

Sounds like basic I/O operations via the .NET Framework APIs to create and fill a file?

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

Re: Writing Variables to a csv file

Post by odklizec » Wed Mar 06, 2019 9:32 am

Hi,

I'm personally using CSVDatConnector to save data to csv files. Check for example this post with sample code:
writing-information-from-an-xml-to-a-cs ... tml#p34657

BTW, I may miss something from the problem description, but I consider mixing an automates test with manual steps a very bad idea. But maybe I just misunderstood something? ;)
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