Huge rxlog.data file though if-condition

Ranorex Spy, Recorder, and Studio.
fablich
Posts: 6
Joined: Mon Feb 19, 2018 9:18 am

Huge rxlog.data file though if-condition

Post by fablich » Tue Mar 20, 2018 11:12 am

We have an outer Data-Source connected to our Test-Case and a Smartfolder with an if-condition inside. The Smartfolder has its own (inner) Data-Source.
The outer Data-Source detirmes wheter the Smartfolders if-condition is fulfilled or not.
So basically at the start of the solution the if-condition can be calculated to decide wehter or not the inner Data-Source should be read or not.

In our case we can reproduce (see Attachments) that the whole inner Data-Source is read into the log-file. That meant a 100MB rxlog.data File for each Iteration in a real test-Iteration.
We found a workaround for this issue with a user-code-module that sets the Data-Range of the inner Data-Source from 1 to 1. That reduced the rxlog.data File from 100MB to 1 MB. But we still read one unneeded row into our log-files. So it is a bit quick and dirty.

Is there a better solution available?
test1.PNG
Test-Suite structure
test1.PNG (7.38 KiB) Viewed 229 times
test2.PNG
Log-File
test2.PNG (31.59 KiB) Viewed 229 times

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

Re: Huge rxlog.data file though if-condition

Post by odklizec » Tue Mar 20, 2018 12:26 pm

Hi,

Your workaround is probably the best you can currently do. There is already a feature request about excluding unfulfilled conditions from report. Please cast a vote...
https://uservoice.ranorex.com/forums/15 ... e-unfulfil
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

fablich
Posts: 6
Joined: Mon Feb 19, 2018 9:18 am

Re: Huge rxlog.data file though if-condition

Post by fablich » Tue Mar 20, 2018 1:12 pm

odklizec wrote:Hi,

Your workaround is probably the best you can currently do. There is already a feature request about excluding unfulfilled conditions from report. Please cast a vote...
https://uservoice.ranorex.com/forums/15 ... e-unfulfil
Thanks for the quick Response. The idea got my vote.