Hi All,
Newbie question...
Ranorex has an action "Get Value" but no "Save Value"
How do I save a value I have retrieved using "Get Value" to a file.
My app is a web app and I am using Ranorex 7.1 (as of today, was 6.0).
Thanks,
Wilson Logan.
"Save Value"
Re: "Save Value"
Hi,
Since Ranorex is built around .Net, you can code almost anything you want. There are several ways how to save things to file, using either C# or VB .Net. Unfortunately, without knowing more details about your use case (what exactly do you want to save and how do you want to use the file), it's hard to suggest something definitive. All I can do is to redirect you to some posts about saving things to file:
https://docs.microsoft.com/en-us/dotnet ... -text-file
https://stackoverflow.com/questions/756 ... e-to-files
https://stackoverflow.com/questions/103 ... in-c-sharp
Eventually, you can use Ranorex own CSV data connector writer...
https://www.ranorex.com/forum/writing-i ... tml#p34657
Since Ranorex is built around .Net, you can code almost anything you want. There are several ways how to save things to file, using either C# or VB .Net. Unfortunately, without knowing more details about your use case (what exactly do you want to save and how do you want to use the file), it's hard to suggest something definitive. All I can do is to redirect you to some posts about saving things to file:
https://docs.microsoft.com/en-us/dotnet ... -text-file
https://stackoverflow.com/questions/756 ... e-to-files
https://stackoverflow.com/questions/103 ... in-c-sharp
Eventually, you can use Ranorex own CSV data connector writer...
https://www.ranorex.com/forum/writing-i ... tml#p34657
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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
Re: "Save Value"
Thank you Pavel,
I had already found the solutions you describe.
I was hoping for a 'native' solution. Not all testers can write VB or C#.
Is it really such a strange thing to want to save output? Clearly it must be or the functionality would be included.
It seems so basic a requirement....
Anyway, thank you for confirming my suspicions.
Cheers,
Wilson.
I had already found the solutions you describe.
I was hoping for a 'native' solution. Not all testers can write VB or C#.
Is it really such a strange thing to want to save output? Clearly it must be or the functionality would be included.
It seems so basic a requirement....
Anyway, thank you for confirming my suspicions.
Cheers,
Wilson.
-
- Posts: 254
- Joined: Tue Mar 24, 2015 5:05 pm
- Location: Des Moines, Iowa, USA
Re: "Save Value"
I think the problem is "save" isn't clear. Do you want to "save" the value in a parameter to pass it along between modules/test cases? Do you want to "save" the value to output it in a report?evildrome wrote:Thank you Pavel,
I had already found the solutions you describe.
I was hoping for a 'native' solution. Not all testers can write VB or C#.
Is it really such a strange thing to want to save output? Clearly it must be or the functionality would be included.
It seems so basic a requirement....
Anyway, thank you for confirming my suspicions.
Cheers,
Wilson.
You can see "to save" isn't such a basic requirement at all and depending on your meaning Ranorex has provided different native solutions.
Doug Vaughan
Re: "Save Value"
Hi Vaughan,
From Wilson's initial post, it seems he just want to write some obtained values to file...
https://uservoice.ranorex.com/forums/15 ... ve-ranorex
From Wilson's initial post, it seems he just want to write some obtained values to file...
In my opinion, it's better to use a piece of custom code, which can be adapted to whoever specific needs. I don't think that some kind of generic GUI based save-to-file action will suit everyone? Anyway, there can always be created a feature request...How do I save a value I have retrieved using "Get Value" to a file.
https://uservoice.ranorex.com/forums/15 ... ve-ranorex
Pavel Kudrys
Ranorex explorer at Descartes Systems
Please add these details to your questions:
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