fbpx

How to validate the edit functionality in screen

How to validate the edit functionality in screen

Home Forums Ask Expert How to validate the edit functionality in screen

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31357
    Mrinal Sarkar
    Participant

      We are facing one issue while scripting. We aim to automate the Edit flow like a customer name should get edited.

      For this, we are supplying the values like Title, First name, Last name from the data table. While execution we are able to update the values. And also print the new name in the Msgbox/Alertbox.
      But how can we verify it in Test Report that the values have been updated with a new name? We tried using GetText() but it does not print anything on the Test Report.

      Kindly let us know what approach we should take?

      #31358
      Sasha ZAP
      Moderator

        Hello mrinal.sarkar6,

        First you need to specify the object from which you wish to get its value to the final test report:
        To specify such object which ZAPTEST will recognize (Find it in the app you test) you may need to use different methods, such as set relative object, set Area object, use logic to capture the object during run-time, etc.
        After you’ve verified that ZAPTEST finds the object, if you want to send the object’s value to the final test report you should use the “ReportText” method – For example if I want to add to the final text report the string which appears in the “Text to validate” object I can set the following code:
        Application(“Application”).View(“View”).Object(“Text to validate”).ReportText

        Please check our tutorial page for more help:

        Tutorial

        Thanks,
        ZAPTEST Team

        #31365
        Mrinal Sarkar
        Participant

          Thanks Sasha , I tried this option. It is working fine.

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

        Virtual Expert

        ZAPTEST

        ZAPTEST Logo