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

Why there is “Iterations” in test reports

Why there is “Iterations” in test reports

Home Forums Ask Expert Why there is “Iterations” in test reports

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #61725
    Brian Docku
    Participant

      Hello,

      Why there is Iteration 1, Iteration 2 and etc in reports while using datables in scripts?
      Any way to change that behavior? I would like to see not “Iteration 1” but some logical info there.

      #61794
      Airat ZAP
      Moderator

        Hello, Brian
        Iteration basically represent each raw that you have in the datable by default there will be just Iteration numbers in the reports.
        But you can change this behavior by using zap.reports namespace methods, please check our documentation: https://www.zaptest.com/documentation
        Here is some example imagine you have login names in datable like this:
        Datatable
        You can use this method to name current iteration with login name from Datatable:
        zap.Report.SetIterationName “Starting test using login name: ” & Datatable.Value(“Login name”)
        After doing this your ZapTest report will look like this:
        Report example

        Also you can use this methods to create logical subsections in the reports, for example:
        Zap.Report.StartSection “Open Website”
        Application(“zap”).Launch “chrome”, “www.zaptest.com”
        Application(“zap”).View(“Homepage”).Object(“ZAPTEST”).Exist
        Zap.Report.EndSection “Open Website”

        • This reply was modified 9 months, 2 weeks ago by Dmytro ZAP.
        • This reply was modified 9 months, 2 weeks ago by Airat ZAP.
        • This reply was modified 9 months, 2 weeks ago by Airat ZAP.
      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.