Page 1 of 1

Remove Warning for optional Action

Posted: Fri Apr 27, 2012 11:48 am
by swmatisa
WinXP SP3 (WindowsUpdate done)
Ranorex 3.2.3
*********************************
Hello,

I try to create an "optional action". I set Properties "Continue On Failed" to True and "Use Logging" to False. But I see the folowing warning in the log:

Code: Select all

00:27.156 Warn User Jump to itemView Help(Optional Action) Failed to find item...  
What must I do to remove this warning?

Thanks

Re: Remove Warning for optional Action

Posted: Mon Apr 30, 2012 10:02 am
by Support Team
Hi,

It is unfortunately not possible to disable the whole logging mechanisms for a single action in a recording at the moment.
If the action fails you are still getting a notification.
You can create a new Test Case for this action/recording and there you can set the "Report Level" to "Error" as workaround.

Regards,
Markus
Ranorex Support Team

Re: Remove Warning for optional Action

Posted: Tue May 01, 2012 9:03 am
by swmatisa
Support Team wrote:You can create a new Test Case for this action/recording and there you can set the "Report Level" to "Error" as workaround.
Thanks for the answer, but this will multiply the number of TestCases.

It would be interesting to have "Real Optional Action", with for example a Boolean variable to "enable/disable" the action.

Best Regards

Re: Remove Warning for optional Action

Posted: Tue May 01, 2012 11:53 am
by Support Team
Hi,
swmatisa wrote:It would be interesting to have "Real Optional Action", with for example a Boolean variable to "enable/disable" the action.
As Markus already said, currently there is no real option for this issue. I will add an issue to our internal TFS server. Then this feature will be discussed and maybe it is in one of the next versions.

Regards,
Peter
Ranorex Team

Re: Remove Warning for optional Action

Posted: Wed May 02, 2012 6:52 am
by swmatisa
swmatisa wrote:As Markus already said, currently there is no real option for this issue. I will add an issue to our internal TFS server. Then this feature will be discussed and maybe it is in one of the next versions.
OK. I hope we are not alone, because it will be very useful for us.

Thanks

Re: Remove Warning for optional Action

Posted: Mon May 14, 2012 8:42 pm
by carsonw
swmatisa wrote:OK. I hope we are not alone, because it will be very useful for us.
You're not - we asked for the same thing in the API forum (I think you just asked for it a more effective way).

Carson.

Re: Remove Warning for optional Action

Posted: Wed May 16, 2012 4:01 pm
by Support Team
Hi guys,

This feature will be available in one of the next Ranorex versions.

Regards,
Peter
Ranorex Team

Re: Remove Warning for optional Action

Posted: Tue Nov 05, 2013 7:51 am
by SanMan
2013/11/05 08:26:50.022 INFO Validation (Optional Action)
Validating AttributeEqual (Checked='False') on item


So there is no way I can get rid of these (optional Action) is my test report?

Validate.EnableReport = false; does not work


Pete

WorkAround: set Report.Log(ReportLevel.Info, "Validation"...) to Report.Log(ReportLevel.Info, "User"...)

Re: Remove Warning for optional Action

Posted: Thu Nov 07, 2013 1:23 pm
by Support Team
Hi,
SanMan wrote:So there is no way I can get rid of these (optional Action) is my test report?
Currently it is not possible to get rid of the optional action warning if you enable the seeting on a actions inside the action grid, expect you convert the action to user code and you add a try catch to your code with a report action inside the catch clause. But we have already scheduled a feature to give the user more choice of this action. It will be in one of the next Ranorex versions but I cannot tell you when this feature will be available.

Sample:
try
{
    your actions.......
}
catch(Exception ex) { Report.Info("(Optional Action) " + ex.Message); }
Regards,
Peter
Ranorex Team

Re: Remove Warning for optional Action

Posted: Thu Feb 20, 2014 7:58 pm
by tgagel
Hello,

Are there any updates on when this feature will be available?

Thanks.

Todd

Re: Remove Warning for optional Action

Posted: Fri Feb 21, 2014 4:55 pm
by Support Team
Hello Todd,

Yes there is an update for this feature. It will be available in the Ranorex 5.0

Regards,

Markus (S)

Re: Remove Warning for optional Action

Posted: Thu Jul 17, 2014 2:49 pm
by agrimm
Hi,
is there an update avaliable in one of the 5.x Versions now, where you can disable the warning?

Thank you

Re: Remove Warning for optional Action

Posted: Wed Jul 23, 2014 1:40 pm
by Support Team
Hi agrimm,

Yes this is possible in 5.0.
If the setting "Use Logging" set to false in the recorder action properties dialog no warning message will be shown in the report if "Continue on fail" is active.

Regards,
Bernhard

Re: Remove Warning for optional Action

Posted: Wed Jul 23, 2014 2:37 pm
by agrimm
Yep, very nice, worked perfectly.
Thank you