File read operation

File read operation

Home Forums Ask Expert File read operation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32175
    Bhavin Acharya
    Participant

      Hi,
      I just download and install ZapTest and want to use it for my one of the requirement. Please find below steps to execute with ZapTest.
      1. Go to my computer file path
      2. Open the file (txt, word)
      3. Search some keyword
      4. Provide me the result i.e. sentence which contains the given keywords.
      Anyone can help me to execute the same?
      Thanks in advance.
      Regards,
      Bhavin Acharya.

      #32177
      Sasha ZAP
      Moderator

        Hello bhavin.acharya,

        Please refer to the online ZAPTEST Beginner Tutorial to get familier with ZAPTEST:

        Tutorial

        In general you need to do the following:
        1. Execute the TextWord file you need to do the test upon.
        2. Using ZAPTEST scan its GUI.
        3. Remove unnecessary objects (Not a must).
        4. To execute a file use the method “Launch”.
        5. Use the method “GetText” to capture a text, use a condition to check if the captured text is the expected one, and use a loop to go over the entire text to find the expected string (Or use VBScript method such as “InStr”).
        6. Use method such as “CusomReport” to report the final result in the test’s final report.

        To get more understanding of the methods you can check the following “How-To” documentation:
        https://www.zaptest.com/user-zone/product-training

        Hope this helps.

        Thanks,
        ZAPTEST Team

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

      Virtual Expert

      ZAPTEST

      ZAPTEST Logo