Output data into DataSource

Ask general questions here.
praneet
Posts: 2
Joined: Thu Nov 08, 2018 2:22 am

Output data into DataSource

Post by praneet » Tue Nov 13, 2018 7:46 am

Hello Team,

We are using Ranorex licence Version v8.3.0 and we are trying to generate output data into input datasource with new column.
We are able to genreate output reports in different formats like Emailing, PDF reporting through Ranorex automation helpers, in the same way do we have any plugins/ functions to generate output data(Example Pass/ Fail) into our input excel/Data table.

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

Re: Output data into DataSource

Post by odklizec » Tue Nov 13, 2018 9:22 am

Hi,

I'm afraid, there is no a built-in way to write to excel data connector. But it's possible to write to excel, using .net methods or 3rd party libs. And then you just need to refresh the data connector. I would suggest to start with this post:
viewtopic.php?f=4&t=8735&p=35318#p35286

Also, it's way easier to write to CSV data connector, because this can be done directly with Ranorex own dataconnector methods. I posted a small example here:
how-to-dynamically-create-test-containe ... tml#p49222
Honestly, from the long-term perspective, it's much better to use CSV over Excel, which only advantage is the ability to organize data in multiple tabs and maybe using Excel macros? But that's about it. Excel data connectors makes the opening and editing of data connectors slower, excel files cannot be edited directly in Ranorex, and excel files cannot be easily compared in source control management apps. And of course, they still require Excel to be installed on the machine, where you create your tests. Ture, excel is almost everywhere today, but still, it's an unnecessary obstacle ;)
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