Skip to Content
avatar image
Former Member

how to bypass the warning message while replay of CBTA using VBScript

HI All,

Currently we are facing issue while warning messages.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 04, 2015 at 03:20 PM

    Hi Eswari,

    the problem I see in the screen shot is quite common and would come up with any Test Automation Tool, not just CBTA. During recording you entered at date that was current at that time but is now outdated and the application is raising that warning.

    So the question here how to provide the current date or even a future date during run time.

    Here you just need to replace the date value '20.10.2015' by a so called token like

    %today%   for current date or

    %=Date+7%  for 7 days in the future.

    Details on the concepts behind to solve similar problems you can find in the following guide:

    https://support.sap.com/content/dam/library/SAP%20Support%20Portal/support-programs-services/solution-manager/processes/…

    Just search for 'Standard Tokens' to find the related page.

    Regards Reiner

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 10, 2015 at 02:42 PM

    Dear Eswari, There is no possibility to set the behavior "on Warning" any differently than the default behavior - which is to fail. If you encounter a warning in the application when you run a script, it fails. it cannot be bypassed. The warnings need to be resolved. There is no other option. This of course is not the case with errors. You can change the behavior "On Error". However just because you can change the behavior on error, does not mean you can extend this to "on warning". I have verified this with the CBTA developers, and it is factual. Regards, Paul

    Add comment
    10|10000 characters needed characters exceeded