Page 1 of 1

Output variable on file

Posted: Wed Dec 13, 2017 3:01 pm
by kkaehler
Hello,
I'm new using Ranorex and I'm automating a Web application where I write some data, save and get an ID. Getting the value of this id and reporting it on the test report is working fine, but I would like to write this ID on a file for further controlling.
Is this possible? How can I do this?

We have Ranorex Version 7.2.1 +git.92f281f3, .NET Runtime Version: 4.0.30319.42000 on Windows 7.

Thanks for your help.
Karin

Re: Output variable on file

Posted: Thu Dec 14, 2017 1:25 pm
by odklizec
Hi,

Since Ranorex is built on .Net, you can use any file writing method available in VB .Net or C#. I'm personally using Ranorex CSV DataConnector methods for writing CSV files. For an example code, check this post:
https://www.ranorex.com/forum/writing-i ... tml#p34657

Re: Output variable on file

Posted: Mon Dec 18, 2017 12:34 pm
by kkaehler
Hi,

thanks for your answer.
I hoped it could be possible using Data Binding or something like this, because I'm not familiar with user code at this time.
:(

Re: Output variable on file

Posted: Mon Dec 18, 2017 12:48 pm
by odklizec
Hi,

I'm afraid, there is no such option at this time. You can always create a feature request via UserVoice platform:
https://uservoice.ranorex.com/forums/15 ... ve-ranorex
However, I think it would be much faster to use the code I provided or find something else. As for programming knowledge, I think it's a good time to start learning something new? Many things could be automated via Recordings. But some special tasks simply needs custom code.