Forum Discussion

nebsta's avatar
nebsta
Contributor
9 years ago

Table Checkpoint - optional records

I have an issue where I am verifying objects displayed on screen by comparing to a table checkpoint, however, I run the tests against different environments where I am expecting some data to differ. Is it possible to set some records within a table checkpoint as optional so that they won't fail the test if they don't exist?

 

If not is there an alternative? I have attempted to use a CSV but realised that the records can come in any order so I'm thinking it would be quite difficult to verify this.

2 Replies

  • Bobik's avatar
    Bobik
    Frequent Contributor

    You can uncheck some values inside Stores\Tables editor to remove them from comparison. But I'm not sure will it help you.
    I think the only way is to create separate Stores\Tables to each environment. For example if there are different datetime formatting. Then you can use needed table from your code.

     

     

    • Marsha_R's avatar
      Marsha_R
      Icon for Champion Level 3 rankChampion Level 3

      We've done that with Tables/Stores and some other areas.  We have an environment variable that we set at the beginning of tests and then table comparisons or button labels or whatever we need can vary depending on how that variable is set.