fbpx

Get your 6-month No-Cost Opt-Out offer for Unlimited software automation!

“Include” method does not work as expected

“Include” method does not work as expected

Home Forums ZAPTEST Old Posts “Include” method does not work as expected

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30857
    Alisha Michaels
    Participant

      Hello ZAP,

      We have some strange behavior when adding the “Include” method to a testing script:
      In some tests the *.zap file which the Include adds can be used (For example its assigned constant variables), but in other tests it does not work at all (Cannot use anything in the included file, or an error message appears).
      Why is this happens?
      Is there some solution to such issue?

      Thanks.

      #30858
      Sasha ZAP
      Moderator

        Hello AlishaM,

        Thank you for your question.

        Basically if the “Include” statement does work in some tests and in others it does not work this may be an issue of the test itself:
        You need to check the *.zap file which the Include is adding to your test, maybe there are some coding errors (Try to run the *zap file separately and make sure it gets the required valuesexecution, if necessary use the “MsgBox” command to see the required values).
        Also there is a need to check if the Include *.zap file’s attributes (Such as variables) is being used properly in the main test (For example, same Transaction name cannot appear in the include file and in the main test).

        If all the above did not help, please remove the Include statement and copy to the main test all the *.zap code which the Include supposed to import to the test:
        Also send ZAP the exact issue with the Include statement .

        Please contact ZAP for further help.

        Thanks,
        Sasha

        #30859
        Alisha Michaels
        Participant

          Thank you Sasha for the detailed answer.

        Viewing 3 posts - 1 through 3 (of 3 total)
        • You must be logged in to reply to this topic.