Forum Discussion

nav's avatar
nav
Occasional Contributor
6 years ago

What is best operation to use in this scenario, If we can't use file checkpoint?

In the file comparison operation, IF we have a baseline file in our files which we use as EXPECTED DATA. And if we go to web page and export a new data file(ACTUAL DATA) how can that File pulled in to  store to compare with baseline file?

I am trying to validate data in this sceanario.

6 Replies

  • Marsha_R's avatar
    Marsha_R
    Champion Level 3

    Why can't you use file checkpoint?  What happens when you try?

    • tristaanogre's avatar
      tristaanogre
      Esteemed Contributor

      The new file doesn't need to be "pulled in".  When you create the file checkpoint, in keyword tests, the first file you select will be your "actual data".  Then you indicate to use your stored "expected data" as the file to be used for the comparison. (https://support.smartbear.com/testcomplete/docs/testing-with/checkpoints/files/creating.html)

       

      If you're using script code, reference the following.

       

      https://support.smartbear.com/testcomplete/docs/reference/project-objects/items/stores/file/check.html

      • nav's avatar
        nav
        Occasional Contributor

        Yes, "How can i indicate to use your stored "expected data" as the file to be used for the comparison".

        This is the sceanrio:

        I am working on an Inventory project, So First file i have kept in my local system as Actual Data. But Now My challenge is i will need to automate a scenario where i need go to the inventory UI and export a new report and this exported report will be downloaded in local system automatically. Now how can i compare files, First file which is already in my local system as "extected data" and the second file which is downloaded using export report functionality"(actual data).